The tag has no usage guidance.

learn more… | top users | synonyms (1)

0
votes
1answer
839 views

How to load theme textdomain from plugin?

I built a simple localization plugin to suit some specifications needed by my orgnanization. For each language there is a single .mo file that contains both the theme translations as the page content ...
1
vote
1answer
493 views

Force Plugin to English Translation

Here's my thing: I'm using a plugin that has multilang capabilities. The point is that the language translation in my country lang is very bad and it makes more complex than simpler my work. :D. So ...
0
votes
1answer
23 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
17 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 ...
1
vote
1answer
397 views

Display 1 Post per taxonomy with polylang

I am trying to make a loop where I display all my taxonomies with the first post of every taxonomy. It's the taxonomy "customers" and I want to display every first portfolio-CPT of the customer. I ...
4
votes
1answer
209 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: ...
2
votes
1answer
28 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
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
1answer
905 views

How to change category translation in Polylang afterwards

If I translate Tag or Category with Polylang-plugin (http://wordpress.org/plugins/polylang/ ) in Wordpress, how can I change the translation afterwards or remove the translation without removing ...
0
votes
4answers
311 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
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 ...
1
vote
1answer
53 views

Fixed values for same post translations

I was recently implementing a custom post type in WordPress, and added WPML so I could translate it's title & content. This post type (city) also has some custom metaboxes (metabox.io) like: ...
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
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 . ...
2
votes
2answers
532 views

Transfer from English page to Arabic page

I have a button at the top of the website in header.php. That button should transfer me to the Arabic version of the page if I am on an English page. For example, on contact.html the button should ...
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
25 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
7 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 ...
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
53 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
27 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 ...
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. * ...
9
votes
1answer
6k views

How to make a WordPress plugin translation ready?

What is the best way create a plugin that is translation ready? It doesn't have to be translated from the beginning but it has to be easily translatable so fellow developers from different cultures ...
5
votes
2answers
2k views

Override parent theme translation on child theme

I have a parent theme that uses correctly load_theme_textdomain() to load all the translated strings in many languages. Then I created a child theme that uses load_child_theme_textdomain() to achieve ...
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
36 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
154 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
58 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
143 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() { ...
3
votes
2answers
454 views

What is the purpose of adding a .po file?

I added the below code to the function.php of a .po file and finished localization and edited the webconfig.php to add Arabic language but nothing happened. I want to know what should happen. Will the ...
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 ...
11
votes
5answers
10k views

How to create .pot files with POedit?

I've spent hours today on what seemed like something really simple, which is to create a .pot file for a Wordpress theme that I'm creating. I've read the Smashing Magazine article, the Tutsplus ...
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 ...
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!
0
votes
1answer
96 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
87 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 ...