Localization (commonly abbreviated as l10n) is a term used to describe the effort to make WordPress (and other such projects) available in languages other than English, for people from different locales, who use different dialects and local preferences.

learn more… | top users | synonyms (2)

0
votes
0answers
19 views

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

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 ...
1
vote
1answer
14 views

How to Internationalize Wordpress - Extract strings with textdomains, per textdomain individually

I spent several hours searching, and have not found a solution, how to extract Strings dedicated by Textdomain from a PHP File (in a wordpress plugin): In my plugin and theme I use for example ...
0
votes
0answers
11 views

load_plugin_textdomain doestn't work with add_action plugins_loaded

I am trying to load localization for my plugin. There is directory called languages in my plugin folder with .po and .mo files inside of it. I have the following code in the plugin main file: ...
0
votes
0answers
9 views

Blank strings in localization .po files?

I was looking through Jetpack, Nextgen, and Wordpress plugins to get some examples of using localization. Oddly enough it seems quite common to have blank strings in some cases. For example, in ...
3
votes
2answers
97 views

Can we use a variable hook for language string?

I am using this to localize strings in my theme __('Background image', 'themename'); there are plenty of strings that are localized but to make sure that the theme lang files and localization ...
0
votes
1answer
27 views

Plugin translation not displaying

I have written a plugin to be translation-ready, and I have written a translation. As far as I can tell, the .mo files for the translation are loading correctly, yet the plugin is still displaying ...
0
votes
1answer
25 views

Using esc_attr function

I want to translate some website to Spanish, and the default translation in 'Settings' doesn't translate everything. I notice in the code, that where the translation doesn't work there are functions ...
0
votes
1answer
20 views

Best location for theme translation files

I usually store language files in /languages folder that is located in theme folder and it's also recommended location by WordPress as well. However, it still doesn't look like the best solution ...
2
votes
0answers
28 views

Can I use the same textdomain in two separate plugins?

I have two plugins lets name them PluginA and PluginB. Both are part of the same project I want to internationalize the text. The question is if I use same textdomain 'myplugin' but make two files ...
0
votes
1answer
12 views

WordPress Translations

I've just recently learned about .po and .mo files in WordPress Themes. My question is, are these files supposed to be used to translate page and post content or just the WordPress backend along with ...
0
votes
1answer
28 views

Locale changed but plugin still showing default language

I'm changing the locale using the locale filter. I've tried various methods; creating a plugin and hooking into filter, declaring locale filter hook in the functions.php file, and even as simply as ...
0
votes
0answers
22 views

Extract all strings in web site to send to translator

I need to extract all translatable data from wordpress to PO files in order to send it to a translation agency. Of course, I also need a mechanism for putting the translated text back, and extracting ...
0
votes
0answers
16 views

How to translate default wordpress files?

On my website almost everything is translated as it should be. Only some items can't be translated inside the theme or plugins. For example: days, weeks, months is a part of a plugin which is not ...
5
votes
1answer
107 views

Where are the official i18n WordPress versions stored (SVN)?

I've already checked http://i18n.svn.wordpress.org/, but something seems off. I need official file checksums. I took /ar (Arabic) as an example, and compared all the files in the repository against ...
0
votes
0answers
38 views

How to get rid of unnecessary plugin localization files?

There are some plugins with so many translations (e.g. Slim Jetpack has 45 -- 10 MB!) that the .po and .mo files take more space than the plugin itself. And I know I will never use these translations, ...
6
votes
2answers
114 views

Caching and Versioning for rtl.css

I am using filemtime() to add a version number for different .css and .js files in a custom WordPress theme. I used the accepted answer described here as a guideline; however, I use the ...
1
vote
1answer
55 views

Local Wordpress installs don't verfiy against wp-cli checksum check and how to fix that issue.

i've installed wp-cli today, while testing i ran into one surprising issue. on `wp core verify-checksums' the following errors showed up: Warning: File doesn't verify against checksum: ...
1
vote
1answer
43 views

Change WordPress language based on user setting

I want to change the language of my WordPress installation based on a choice the user can make in his profile (dropdown menu). As I want to change frontend (prepared .mo files for the theme) and ...
1
vote
1answer
27 views

Change Wordpress Language

I am trying to change wordpress to Spanish. Including the admin. I went to my wp-config and defined the value i.e. define ('WPLANG', ‘es_MX’); I went to the settings -> general and set the language ...
0
votes
0answers
12 views

Whats a good strategy for localising WordPress post and page content?

I'm aware of the various functions for localising elements of themes and plugins - __(), x() and the textdomain concept but how does one go about providing localised versions of actual post and page ...
1
vote
0answers
18 views

localize elements in database

I want to localize my website with .mo files. Now, while it's pretty easy to scan existing php files and add the relative translation, it's not clear to me how to localize the elements in the db. I ...
0
votes
0answers
31 views

Internationalization of variable length lists (e.g. in title/salutation)

I am looking to internationalize a plugin and I'm running into some trouble with translating lists. Consider these examples: In English, a title could be something like Mr, Mrs or Ms but in Dutch ...
0
votes
0answers
59 views

What is best practice for setting up languages with child themes?

There are two main sources of relevant info in the Codex: http://codex.wordpress.org/Child_Themes & http://codex.wordpress.org/Function_Reference/load_child_theme_textdomain A parent theme will ...
1
vote
1answer
19 views

_e() function get text_string from function

Can I print the text sring to be translated from a function for example _e('echo text_function();', 'my_theme');
0
votes
0answers
12 views

Using a mixture of core and theme translations?

I'm pretty new to the ideal of localisation (bad, I know!). I'm got a .po and .mo setup for my theme, working ok. The theme switched between English and Russian using this hook/code; function ...
1
vote
2answers
56 views

Alphabetical sorting - local language

I want to sort posts by alphabet in local language (croatian language). So letter Đ should come after D but now it goes in the end, after Z. Some letters (like Č and Ć) should come after C, but ...
0
votes
1answer
58 views

How to translate Widget Description in constructor?

I'm building a localized widget and the translation works everywhere but in the language string in the constructor. I have read that the whole plugin initialisation has to be bound to the init ...
0
votes
1answer
20 views

mce_external_languages: how does it really work?

I have been reading very carefully and more than once the documentation, yet I don't understand how to provide a plugin with multiple languages. In the example there is an array, such as: $strings = ...
1
vote
0answers
41 views

Different Custom Post Types for each Network site

I have a WP Network of two sites to use the Multilingual Press plugin ("Site-A" and "Site-B"). They both have a Custom Post Type, say "CPT-A", which I registered manually in functions.php. How do I ...
0
votes
1answer
34 views

Wordpress translation

I'd like to translate one word in WP but I don't want to replace the whole translation files (.mo and .po) because of only one word (it will be overriden with the next WP version and I'll have to ...
4
votes
2answers
132 views

How to make a text with hyperlink translatable in WordPress?

I've seen different ways of doing making a text with a hyperlink translatable. However, I have been unable to find a single best practice. So, some of the solutions I found: // METHOD 1 sprintf( __( ...
0
votes
2answers
47 views

Where does the locale come from?

I have currently the problem that I don't understand where the locale that is set in the header of the rendered blog comes from. The header for each post (and all other pages) looks like: ...
1
vote
1answer
46 views

Usage of theme name in functions

I've been studying some functions.php files to get my head around theme development, and I keep stumbling upon a reference to the theme name inside functions. Something like this: <?php ...
0
votes
1answer
286 views

How do I translate string inside jQuery script with WPML?

I've made this script for changing some colors on a custom element. My problem is that I can't find a way to localize the links in the href attribute. Is there an easy way for me to do this? /* ...
2
votes
1answer
78 views

How to detect if text domain is already loaded?

Without going into a lot of details, I have a multiple custom plugins within a multisite that share files outside of its original plugin folders. These plugins all work in conjunction with each other ...
0
votes
0answers
20 views

Plugin not localized properly

I am calling the load_plugin_textdomain() function within the init action hook the following way : load_plugin_textdomain( 'my-plugin-domain', false, dirname( plugin_basename( __FILE__ ) ) . ...
0
votes
0answers
18 views

About updating and localisation

Data: WP MU, 3.9.2 Recently I discovered that my custom Akismet's localisation was replaced by default one - 2 questions about auto updates and languages: 1) Does WP updates smth in ...
3
votes
1answer
205 views

Translate third party plugin and save translation files in custom theme

I'm using Codestyling Localization and I want to translate a plugin and I want the translation files to be saved in the translation directory in the theme I'm building and not in the plugins ...
2
votes
1answer
67 views

Localized WordPress content for different sub-locales of same language?

I have a site which serves Ireland & England. I want to move it to Wordpress. Currently all the content is the same when you visit the site & it runs off two urls, the Irish one: mysite.ie ...
0
votes
0answers
344 views

How to dynamically change the locale?

Sorry about making this so lengthy. I just want to explain everything clearly and walk you through what I have tried so far to solve this problem. There is an English and a Spanish version of the ...
0
votes
1answer
42 views

Two text domains in one plugin

From start: A = main plugin(the library), B = child plugin I develop a plugin B that will depend on another plugin A in order to work properly. I do this because I'm one of the persons who don't ...
0
votes
1answer
28 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
22 views

Translation not working in sprinf variable

I have a function to get the taxonomy term name like this: function get_term_name($taxo){ $terms = get_terms($taxo); $html= ''; foreach($terms as $term ) { $html .= sprintf( __( '%s', ...
7
votes
2answers
144 views

After updating WP keeps nagging about a newer version. Why?

I updated WP to version 3.9.2 (currently the latest) via Git which works fine. However, in the admin it keeps on telling me “a newer version is available”. After some digging somehow it appears to be ...
1
vote
2answers
285 views

Making my plugin translation ready. Poedit not working

I'm building a plug-in which is going great so far. I want to start making it localization ready. I don't know what is going wrong, but it's bugging out on me when I try to load it in Poedit. So ...
0
votes
0answers
34 views

Tweak the loop for translation

I am building a custom solution that would be bilingual in English and French. I want to store the French content, title,... in custom metas by adding META BOXES to the edit screen. This part is fine, ...
0
votes
0answers
66 views

Wordpress Media Uploader error messages localization on frontend

I'm working with ru-RU wordpress vertion. I've faced with issue that I can not get russian error messages on custom media uploader on front end. This error strings media uploader get from ...
0
votes
1answer
97 views

tinymce modal and I18n strings methods

Im working on a plugin that loads a tinyMCE modal. As many who know this normally involves opening a static html or even php file. The problem I've run into, is that I would like to translate using ...
1
vote
1answer
77 views

How to translate get_intermediate_image_sizes?

I use the following code to get image sizes: public function getImageSizes(){ global $_wp_additional_image_sizes; $sizes = array(); foreach(get_intermediate_image_sizes() as ...
0
votes
1answer
110 views

Loading custom language file for plugin

I'm trying to load a custom language file for a plugins to avoid any changes for this file when updating the plugin. I tried several snippets in the functions.php of the theme, but none of them ...