The tag has no usage guidance.

learn more… | top users | synonyms (1)

0
votes
1answer
26 views

Localize strings from db

I'm using this method to translate strings in my template. The question is, what if some strings are dynamically loaded from the db? How can i translate them? I've been googling for days and even ...
0
votes
1answer
18 views

Translating a pager string

Most of Wordpress function found in themes look like this: <?php echo get_next_posts_link( 'Older posts', $the_query->max_num_pages ); // display older posts link ?> <?php echo ...
0
votes
1answer
15 views

Issue with strtotime() and Meta Box date

Shouldn't this code display the date provided from the META BOX date picker input field according to the language chosen? Explanation: The Meta Box value that is coming in though rwmb_meta() is ...
2
votes
1answer
29 views

Do you need to escape hard coded plain text?

I started playing with the Underscores starter theme and noticed it uses esc_html_e() even on plain text: <a class="skip-link" href="#content"><?php esc_html_e( 'Skip to content', '_s' ); ...
0
votes
0answers
6 views

Change WordPress frontend language on link/cookie

I want to change the frontend language of my WordPress (single installation, no multisite) based on either a link the user clicks or an already present cookie. So I got the following language check ...
0
votes
0answers
25 views

Is placing translation files in subdirectory in wp-content/languages folder valid?

Some of the plugin uses textdomain like just the language (eg en_GB.po, it_IT.po, tr_TR.po etc..). If i put these files directly into wp-content/languages/plugins/ directory then some files will be ...
0
votes
1answer
23 views

Translate custom order status through a filter?

I'm using this plugin to customize order statuses in Woocommerce: Woocommerce Order Status Manager In documentation it says I translate order status name using the following filter: ...
0
votes
2answers
19 views

Conflict with single and double quotes

This might be a very silly question but I am losing my hair over this.. So basically, I have the following line of code" 'Default' => '<img src="' . THEMEROOT . ...
1
vote
1answer
9 views

Translating a word with locotranslate, but wordpress does display another by default

I use wpadverts plugin and Loco translate to translate the plugin. I'm trying to translate from English to French the "Email" word to "Email" :D. When I translate the word in LocoTranslate plugin, it ...
0
votes
0answers
26 views

How to correctly translate custom posts url rewrites?

I've got a custom post type 'product'. I've just added the rewrite option: 'rewrite' => array('slug'=>__('products','jungle'),'with_front'=> false) Fine. But I want mydomain.com/products ...
0
votes
0answers
8 views

Load custom language(.mo) file after admin selection option on theme options

I have different .po and .mo file on theme's language folder, I want to give facility to the site admin to select language file which are on the language folder from theme options making drop down of ...
0
votes
1answer
24 views

Multi Site Translate Strings

I've finally made it to setup a multisite. http://www.jeroenbrugman.com/ Now. There are some things I need to change. Like the button on the contact page. It says "Stuur bericht" on both my sites. ...
0
votes
0answers
26 views

I18n l10n of plugin does not show the translation

I tried to Internationalize I18n one of free plug-ins (after 7 hours of trial I decided to ask for help). But I'm not able to get translations displayed. What I did: inserted the definition of text ...
1
vote
1answer
33 views

Load plugins'.mo and .po files from a directory

What I'm trying to do is simple: I have so much WordPress plugins, and 3/4 of them aren't translated in my language, so I want and can translate them all without problems, but I would insert ...
0
votes
1answer
18 views

Custom taxonomy name not being translated in post manager page

I'm having problems trying to display the proper translation for my taxonomy name, specifically in the post manager page. Where it should show the taxonomy's name translated to Spanish, it displays ...
0
votes
0answers
54 views

Poedit ASCII errors ( Wordpress )

I am trying to translate a wordpress theme to Arabic and I am totally new to the translation field. I followed the steps in this question and I added a new domain to my theme instead of hard coding ...
1
vote
2answers
27 views

Default string not appearing want to translate

I am trying to make my theme translatable so I am using the following command to output text. But its just returning an empty value some reason? No error is displayed <?php __('PLAYER POINTS AT A ...
0
votes
1answer
28 views

Force translated language on front

I'm facing a really simple issue : We made a theme for a multisite wordpress (see here : http://www.agence-malttt.fr/) and translated it with Loco Translate for French. It's still showing English ...
1
vote
1answer
44 views

How to translate a WordPress.org plugin?

WordPress.org launched recently a new translation mechanism via https://translate.wordpress.org/. What steps should I make to translate a plugin at wp.org plugin repository correctly? Can I remove ...
0
votes
0answers
17 views

Translation for child theme

I built a child theme for adding ar translation, but I can't get it translated to Arabic. My functions.php: /** * Setup My Child Theme’s textdomain. * * Declare textdomain for this child theme. * ...
0
votes
1answer
24 views

Plugin Translation project not found

Today I go to our plugin page in WordPress.org and see the translation part under the support forum part. However, when I click to translate this plugin, it displays "Not found". I joined the ...
0
votes
1answer
37 views

When translating not all string are present in POedit

I've bought a theme few days back, i switched to the Slovak localization. Some of the strings were incorrect so i decided to fix them in poedit (never done that before) Most of the strings were ...
0
votes
0answers
12 views

Widget Title Translation

How would you translate this line in a widget? I can't seem to find a way to make it pass the theme check plugin: parent::__construct('recent-posts', __('Recent Posts'), $widget_ops); I have tried: ...
1
vote
1answer
158 views

Easy export/import of data for Translation

We have several WordPress sites that we're going to get translated, however after some research this doesn't seem like an easy task. Preferred scenario 1) Ability to export all strings from themes, ...
0
votes
0answers
28 views

WPML custom lenguage slug in permalink

With WPML tranlation plugin is possible to change language slug in permalink for something like this: change "mysite.com/en/" to "mysite.com/my-site-in-english/" change "mysite.com/es/" to ...
0
votes
1answer
15 views

Plugin has no US english translation file

I'm trying to modify English translations for a The Events Calendar plugin but I'm not able to find the US English translation file. There is only British English. Please have a look: Can it be ...
0
votes
1answer
54 views

What would cause the gettext filter to not work for a given text domain?

Inside of a plugin, I'm using the gettext filter to alter strings of a theme so that I don't have to copy the template files over to a child theme and edit them. Also, this isn't always possible since ...
0
votes
0answers
22 views

Is it possible to override a parent theme's translatable strings from within a child theme using a .mo file?

I have a theme that's properly setup for internationalization. I would like to override strings from the parent theme from within my child theme via a .mo file rather than copying over the template ...
0
votes
1answer
30 views

How can I see my theme's text domain?

Where can I discover my current theme's text domain for use with translation (GetText)?
4
votes
1answer
60 views

Adding a text domain to every __(), _e() and __n() gettext call without a plan to create own translations

Is it good to add a text domain as an argument to every __(), _e() and __n() gettext call such like these, even though I'm not planing to create my own translations? __( 'Post', 'my-theme' ); _e( ...
0
votes
1answer
146 views

Use WordPress default text domain for translating labels

I am wondering if there is a way to use the "default" text domain ("WordPress" or "default") to translate labels. E.g I have following code: // Register Custom Taxonomy function custom_taxonomy() { ...
0
votes
0answers
50 views

Can't change the language of theme

So I got rid of those errors before, now the last thing was to translate that Marvel theme for my wordpress site. Did it with poedit, grabbing the en_US translation from ...
0
votes
0answers
13 views

Translating a specific part (form) of NUVO theme (possibly a plugin)

Friend of mine asked me to help with his website, he already bought nuvo theme. there is a form for placing reservations witch is in english (I think its a plugin or something). I found the strings ...
0
votes
0answers
16 views

How to use an existing localization in a new plugin?

Is there any possibility to use an existing localization? For example: My plugin adds ,,First name'' field to the registration form: <p> <label for="wp_first_name"><?php _e('First ...
0
votes
0answers
34 views

Forgot pasword: Where to translate landing page

On the process to get a new password you go like: 1- press "forgot password" 2- enter your username email 3- get an email in your inbox with a link to reset a pasword 4- the link goes to a page ...
0
votes
1answer
97 views

Wordpress Theme .mo-file won't load

I am developing a theme that implements multiple languages. I have a few strings that will have to be translated in the theme itself. I would like to use a .po and .mo file. For some reason, when I ...
0
votes
0answers
88 views

Localising AJAX strings: gettext fails to translate when called in admin-ajax

I'm trying to solve a problem very similar to this one on WPSE: gettext-does-not-translate-when-called-in-ajax but my functions are in custom a plugin, and the solution suggested there isn't working ...
3
votes
2answers
109 views

What are the most used WordPress localization?

I wonder, what languages are most used in WordPress? I want to translate my plugins to these languages and can't find what they are. Are there an official statistics somewhere? Thank you!
1
vote
1answer
42 views

Should shorcodes in i18n plugins be translated and if so, how?

Internationalizing a plugin with half a dozen shortcodes like: function plugin_show_schedule( $atts, ) { extract( shortcode_atts( array( 'type' => __('week', 'mz-mindbody-api') ...
0
votes
0answers
136 views

Polylang string translation

I have a problem with the string translation, using a custom theme. In functions.php I added this: $products='מוצרים'; pll_register_string('מוצרים', $products,'controtec'); When I put ...
0
votes
0answers
285 views

WordPress 4.2.2: WPLANG vs Locale?

I am about to create a second language for a WordPress theme, using external .po / .mo files for all small sentences like "read more", "category archive", etc. The structure with www.mysite.com/de/ ...
1
vote
1answer
68 views

WordPress po files

Hi all I have one problem. Po file doesn't work. I use qtransltae-x for translation. And I create custom pot file example # Copyright (C) 2015 Gawatt msgid "" msgstr "" "Project-Id-Version: Gawatt ...
0
votes
0answers
30 views

How to redirect to its default language when erasing the text after .com/de?

I have a wordpress site with Avada Theme installed 3.7.1 with qTranslate-X plugin. What I'm trying to achieve here is that I want to redirect the site once I erase the text 'de' after www.site.com/de ...
0
votes
0answers
125 views

Custom theme .mo translation file not working

I have a custom .mo file named ne_NP uploaded in the languages directory. Nepali language is enabled with qTranslate and define('WPLANG', 'ne_NP'); is in wp-config.php as well. Yet the theme ...
0
votes
0answers
23 views

Making a string translation ready (with some html in it) [duplicate]

A simple text string is made translation ready as: _e('Simple string','textdomain'); But how to make the string translation ready with some html in it, eg: simple string with a <a ...
0
votes
1answer
73 views

Return Value of load_plugin_textdomain

Good Day, I'm trying to translate my plugin but it doesn't seems to work. I read that I should check the return value of "load_plugin_textdomain" to see if it's false (meaning it doesn't find my ...
0
votes
0answers
41 views

Translation in Core , Plugin and Theme Update

I'm curious about translations in update transient for Core , Plugin and Theme updates. I got this from _site_transient_update_core in wp_option table in this why translations array is always empty? ...
0
votes
0answers
171 views

customize theme's iLightbox shortcode

I am using the Themeco X theme and it comes prepackaged with the iLightbox. I want to customize the X shortcode to utilize iLightbox variables that are not 'included'. Themeco says that "1. You can ...
1
vote
1answer
62 views

translating wordpress with poedit

im trying to translate twenty ten based child theme, I have modifided the single-loop.php with a custom snippet, that shows next and previous arrows... my issue is that this string (next and ...
4
votes
1answer
215 views

Override default WordPress core translation

WordPress is set to Dutch language. When I use get_the_archive_title() my theme correctly outputs "Categorie: Category-name" on a category archive page. However I'd like that to read "Sectie: ...