The tag has no wiki summary.

learn more… | top users | synonyms (1)

0
votes
1answer
46 views

Using _e() on text inside video tags prints that text, instead of only showing when html5 <video> element is not supported

I'm creating a wordpress theme in which I'm creating a shortcode for a video. Part of the output of this shortcode is something like this: $result .= '<video class="fullWidth" width="auto" ...
0
votes
3answers
93 views

Should we localize custom-made themes / plugins?

Does anyone know how much do the localization functions from WordPress affect the speed of a website? Do you think it's worth replacing all strings with gettext inside a theme, even if it will only ...
0
votes
3answers
80 views

__(): What if I have to pass in a variable?

In the docs for the translate function __( $text, $domain ), it states that you must put the string directly in place of $text, that you cannot do something clever such as __( $my_text, 'text-domain' ...
0
votes
2answers
2k views

Where is the right .mo file inside the language repository?

I need to translate my Wordpress in Italian. Following the instruction written on WordPress in Your Language, I've searched my .mo file inside the Language Repository but I've some problems. The ...
0
votes
1answer
2k views

month name translation

I use the birdtips theme and it formats the post date as $birdtips_posted = date(__('Y. F j.', 'birdtips'), strtotime(get_the_time("Y-m-d"))); where Y. F j. is already rewritten to reflect my ...
0
votes
1answer
96 views

Does the textdomain have to be the theme's name?

Does a theme's text domain have to be the actual theme name? If you develop WP themes, couldn't you just use the same name (perhaps your business name) for all the theme's you develop, making it ...
0
votes
1answer
256 views

Why set a second parameter in the translate function?

The second parameter in the translate function is optional, but I always see people use it and some don't. So I want to know if I should use it or not and if yes, how I will use it later. I asking ...
0
votes
3answers
133 views

Translation for plugin

I modified a .po file, basically I opened as txt file and made the changes, however I uploaded it and is changes are not working. I wonder if I need an special software for doing and generate a new ...
0
votes
2answers
281 views

Removing translation textdomain

I am working on a plugin for myself, so, it's totally useless to load textdomain. But most of codes I copied from others are using the __(' ','') I copied the codes from several plugins. So, even if I ...
0
votes
4answers
4k views

How to translate month names in “Archives”

How can I modify month names in "Archives" in my blog? I would like to translate english month names into my mother tongue. I'm using the english version of wordpress 3.1.3
0
votes
2answers
26 views

Translating my custom theme, always translated version?

I have a custom theme which is in Dutch and now i am trying to translate the theme into english. For this i am using poedit, and converted some theme strings into _e('string-is-here') I save both ...
0
votes
2answers
80 views

WordPress Translation Issue

I tried to change text using the below code function ctxtlearn_gettext( $ctxttranslation, $ctxttext ) { $ctxttrans = array_values(changeTxt_setting('trans',true)); $ctxtdirty = false; ...
0
votes
2answers
16 views

Using wordpress translations strings in plugin

right now I'm building a helper plugin to make it easier for me to do simple tasks, such as registering post types. When doing this, i'd like to use some of wordpress base translations. Wordpress has ...
0
votes
1answer
34 views

Localization, escape html elements mid-sentence

I am trying to translate a few strings inside of a new plugin I'm about to release. I have a string set up like : <?php _e('The image <em>MUST</em> be less than <strong>500 ...
0
votes
1answer
185 views

Using gettext to translate wp-login.php can't translate `Back to` into other language

I created a plugin to translate text of wp-login.php page into Arabic, every thing translated well except Back to which appear at the bottom of login form, I can't catch it to translate into Arabic ...
0
votes
1answer
233 views

Website in multiple Language

I want to make Sit in Wordpress in which I want to make content in ENglish and Gujrati Language . WHen Admin create a Page in English at that time Admin want to create content with Gujarati Language. ...
0
votes
1answer
782 views

Theme localization in WPML - .mo file error [closed]

We are creating a multi-lingual multi-site (on sub-domains/domain mapping) on Wordpress. We recently bought WPML Wordpress plugin and installed it on the basic language (English) version. Now we are ...
0
votes
2answers
364 views

Translate wordpress plugin

Below is a small tutorial of translation from English To German. (You can change the it as your needs). in any plugin file, it has unique name in its header. /* Plugin Name: SampleTut ....... */ ...
0
votes
1answer
516 views

Using Variable in WordPress Translate Functions

From everything I've read, you should only translate text strings via the WP translation functions like _e() or __(). However, I need a way to translate content submitted via a form. Is there some ...
0
votes
1answer
253 views

WordPress For Urdu Language

Can I use WordPress for Urdu Language? I want entire site to be toggled-translated in Urdu Language with one click... Is it possible to do it with some plugin or do i have to write manual codes for ...
0
votes
1answer
156 views

How to translate “$before” with get text in get_the_term_list?

How can I make $before (Books:) a translateable string <?php echo get_the_term_list( $post->ID, 'book', 'Books: ',', ', ' ', '' ); ?> with this method?: <?php the_content(__('Read ...
0
votes
1answer
2k views

Translated my theme (translation not showing up)

I read a lot about what is the optimal to translate your website (french and english in my case) I set up a Multi site where I created two site one french mywebsite.com/fr and one in english ...
0
votes
1answer
129 views

Easy way to update a single translation entry without having to translate

I'm using the "Featured Image" meta box which allows you to attach a secondary thumbail to a post. The title for this box is defined in the Wordpress codebase like so: __('Featured Image') Which ...
0
votes
1answer
144 views

Wordpress localization - gettext and git

We're about to start working on localization of a highly customized wordpress theme with over 200 php files. We're using git for version control. Are there any particular hints or warnings we should ...
0
votes
1answer
111 views

Translation with wordpress what does the process involve?

What's the process involved with translating content into the language of your own? Or multiple languages? I'm looking to create a website that requires various different language translations.
0
votes
1answer
14 views

Translations does not work with .pot file

I've created a theme at underscores.me and it seems it is multi-language ready. There is a .pot file in the language folder, so I downloaded POEdit and translated the things in there (like Posted on, ...
0
votes
1answer
20 views

Programmatically choose language for translation

I have a multilanguage website (to do it I use both Polylang and Loco Translate). My problem is that I want to send an email to our users, but I don't know in which language to send it until I ...
0
votes
1answer
27 views

translate the_title() with .po & .mo

i need to translate the_title(). I am using code: <?php _e(the_title()); ?> but not working ... any ideas ?
0
votes
1answer
25 views

Post types translation

I try to translate post types names (Post, Page and Attachment). I have the following code: function create_skip_post_types_box () { $post_types = get_post_types(array('public'=>true), ...
0
votes
1answer
31 views

Replacing strings within posts with the translatable string

I am working on a multi language website. Some posts have external resources for download. 'Download' string which is wrapped in a tag for download is in english across all languages. How can I wrap ...
0
votes
1answer
48 views

Translate arguments of a user added custom code [closed]

I needed to hardcode some extra code to a existing portfolio-template. Now there are two arguments which values need to be translated: <a href="/news/" class="hover-on"> <div ...
0
votes
1answer
315 views

WPML language tags (Qtranslate feature) [closed]

I for many years used qtranslate plugin for translating my wordpress websites, but for now I decided to use other plugin, called WPML. And now I'm struggled with one problem: I am missing one ...
0
votes
1answer
76 views

Change language for each website using multisite

I am using wordpress multisite and have three different sites setup; Default (English) German Japanese I've got all the sites working seperately which is fine. My theme has the .mo and .po files for ...
0
votes
1answer
117 views

Updating WordPress Theme/Plugin POT file without losing line numbers consistency

This is a recurrent problem I have when building WordPress Theme or Plugin: each new feature added to the code breaks the i18n files consistency. POT/PO files store the line number of the translated ...
0
votes
1answer
121 views

Translations not returning translated strings

I have the following function to display my comment form in my child theme function pietergoosen_comment_form_fields( $args = array(), $post_id = null ) { if ( null === $post_id ) ...
0
votes
1answer
299 views

Translation of theme using child theme

I have created a folder called “languages” in my child theme directory and added a: da_DK.po and a da_DK.mo file generated using POedit. I have created a functions.php file in my child theme ...
0
votes
1answer
317 views

Translate a theme with a PO file

I'm new to WordPress. two weeks ago I downloaded a theme for my Arabic language blog, and the theme is scripted in English but it contains a folder called languages/ and inside it has two files one is ...
0
votes
2answers
218 views

Is it possible to check is loaded language files correctly with WordPress plugin?

I have a plugin to be translated. I have done following tasks: 1. Loaded the TextDomain $my_td = 'mysignup'; function my_signup_textdomain_init() { load_plugin_textdomain( $my_td, false, ...
0
votes
1answer
77 views

How to make the_tags title translatable?

How can I make the text in the_tags function translatable? Currently I'm using following: <?php the_tags('<div class="tags">Post Tags',' ','</div>'); ?> But I'd like to make ...
0
votes
1answer
110 views

mo / po translation files does not seem to work

I have a theme that was bought from themefuse and they say it supports localisation using a plugin called CodeStyling Localization However even though I make the necessary steps to translate strings ...
0
votes
1answer
230 views

Can't manage to make translate_user_role() work

I've been looking into wpse archives to solve my problem but I can't manage to do such a thing. I built this code : $args = array('fields' => 'all_with_meta'); $users = get_users($args); foreach ...
0
votes
3answers
136 views

English version of my site show french strings [closed]

This is a weird one : http://www.famille-labruyere.com/ is the french version of the site http://www.famille-labruyere.com/en/ is the english one The problem is that the english version show theme ...
0
votes
1answer
461 views

setlocale for date

So I purchased a premium wordpress theme, but I can't get through its Polish localization - the dates outside the_time or the_date are displaying in English (default server's language). I read that I ...
0
votes
2answers
76 views

Borrowing of Previously Translated Strings by Child Plugin

Gist: When writing an extension of a plugin, can the extension "borrow" the translations of the req'd parent plugin by using it's textdomain? Scenario: Let's say that there's a parent plugin, whose ...
0
votes
1answer
108 views

Theme Translation?

I've download a theme called Contango from Wordpress Themes Repository. The theme have a folder called "languagues" and have a file called "contango.po". I could open that file and do translation, but ...
0
votes
2answers
434 views

How to define theme translation file?

If I have WordPress installation in English, then I can define my theme translation file in the wp-config.php file with following: define('WPLANG', 'sv_SE'); But if I have WordPress installed in ...
0
votes
1answer
382 views

WPML icl_register_string() throws fatal error but works [closed]

I'm helping someone with a custom plugin and they need it to be WPML compatible. Using the method from WPML I was able to register a string in WPML and output it on the other end. However, when the ...
0
votes
1answer
5k views

Custom strings for translation using Polylang plugin

I'm using WP 3.5 and Polylang 0.9.8 plugin to make translations to different languages. All is good, and the plugin works fine, but now I'm facing a problem -- I need to translate custom strings, for ...
0
votes
1answer
256 views

Transposh Japanese language transaltion not showing up

If you go to this site and click on japanese in the top left corner, it shows the japanese page with this showing up: <!--[if gt IE 8]><!--> <html class="no-js" lang="ja" dir="ltr"> ...
0
votes
1answer
390 views

I'm looking for a visual composer / builder plugin that supports RTL

i'm looking for a plugin that enables building pages in a visual drag & rop interface, these plugins are getting better and gaining popularity - there's several plugins in this category such as ...