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)

1
vote
0answers
16 views

Translating dynamic strings

In my form I have a dropdown. I'm getting the values and labels of the dropdown dynamically from SugarCRM via it's rest API. I would need to translate these strings. I tried to pass the dynamic ...
2
votes
0answers
61 views

get_locale() behaving strange in same functions.php file

I'm developing a multi-language web portal for my client - in English and Bengali. Instead of using multisite, I installed Polylang plugin. It's working fine through the website. For different CSS ...
0
votes
1answer
11 views

Localization, escape html elements mid-sentance

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
0answers
38 views

Load a form via jquery/ajax that contains strings for translation (WPML)

I have three forms that I'm loading dynamically via jQuery/ajax into my theme file as follows (code below from javascript file that gets enqueued to the footer): var root = location.protocol + '//' + ...
-1
votes
1answer
25 views

load_child_theme_textdomain doesn't work in function.php

I have a child theme which is not localized. So I added this in function.php add_action( 'after_setup_theme', 'my_child_theme_setup' ); function my_child_theme_setup() { ...
0
votes
2answers
34 views

I18n not working in plugin

I'm sure I'm making a dumb mistake, but I don't for the life of me know what it might be. I recently converted one of my larger plugins to utilize I18n (my first time doing so for any of my plugins). ...
1
vote
1answer
22 views

Define locale WordPress uses with gettext functions?

I'm trying to localize my plugin. I have two .mo files: /lang/myplugin-es_ES.mo /lang/myplugin-en_US.mo The translation works but I don't understand how to change the language to use the en_US file ...
0
votes
2answers
27 views

After adding mo localization files to WP 3.8.1 install backend shows new update to 3.8.1

I am running a standard WP install at version 3.8.1. I am at the finishing touches of the project and wanted to switch languages from english to german. I've downloaded the localization files from ...
0
votes
1answer
23 views

Secure my “add_settings_field” translation?

I am using "add_settings_field" and want to provide translation for it , but my problem is security. So is __('My Checbox:' , 'domain') secure enough for translation? If not what can I do about it? I ...
0
votes
1answer
25 views

Translate arguments of a user added custom code

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
23 views

how to have __() translating in languages different from admin?

I use native wordpress multisite for languages (it, en, fr, de, es). I need not to use a plugin. Still, all the admin dashboards will be in italian, because editors are all italian people. I know ...
1
vote
2answers
29 views

does a translation (i18n) have to start from an english PO?

i was wondering: it seems a translation must be a translation from english. I mean, the starting file is in english, then you do translations from that. But what if say, I'm Italian? So the base ...
-1
votes
1answer
39 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 ...
0
votes
1answer
17 views

Hack nav menu to add gettext() to menu items?

I'm translating my whole site with gettext and I'm using shortcodes for the content in my pages that in turn call gettext. However shortcodes don't seem to work for menu items I need to figure out a ...
0
votes
2answers
27 views

Create a category in different language?

Let's say my website in English, and I created a Spanish category which I want it to be Spanish language, it and it's child posts. How can I achieve this?
1
vote
1answer
31 views

Internationalization and the plugin description

SO I am trying to do some i18n on a plugin I am working on and having some troubles. I wanted to see if anyone else has encountered these or possibly has a solution. Basically, I have received the ...
0
votes
0answers
34 views

mini loops and qtranslate (localization mini loop url)

I have both mini loops and qtranslate, everything works fine but i have some problems with urls. I mean, let's say i have an article, in 2 languages, IT and EN. so, for this article there are two ...
0
votes
0answers
33 views

Gettext for custom field checkbox values

I have a custom field (created with ACF) that allows the author to choose from several options (in admin) and where these choices are displayed on the front-end. The code producing the custom field is ...
1
vote
4answers
61 views

Localizing a string with html tag with word inside that tag

I have translated many string successfully previously, but this one gives me a headache. This part is used inside my content-related.php file which I use to display related posts Here is the current ...
4
votes
3answers
203 views

Best pratice to make taxonomy terms translatable without changing slugs?

I have one custom taxonomy with countries and states. I'd like to make these terms translatable but I'm not sure what would be the best way to achieve this. First of all, I don't want the slugs to ...
2
votes
0answers
16 views

Plugin translations files outside plugin directory? [duplicate]

I'm using the excellent Codestyling Localization plugin to translate themes and plugins. But there's a problem when translating plugins, namely that the translated strings are saved to ...
0
votes
1answer
27 views

Localize script not working

I am testing ajax in wordpress, and it basically works but I do not want the url to be hardcoded, so I tried using wp_localize_script to get an object to use, but I get an error saying: ...
0
votes
1answer
43 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 ) ...
1
vote
2answers
35 views

Use translated taxonomy labels in plugin

I'm writing a plugin that works with taxonomy terms. It has, among other things, the capability to create new terms. I'm going to suppose that if users have custom taxonomies, they have taken care of ...
0
votes
1answer
30 views

Translated words not showing child theme

I created a child theme for the twentyfourteen theme which I'm also busy translating into Afrikaans. I've named the file pietergoosen-af_AF.po and placed it into the languages file and I've ...
0
votes
0answers
33 views

language theme and multisite

i have a problem i can't solve, i made a theme with two languages support, italian as standard and english using the .po and .mo files (located in the /lang/ folder inside the theme), everything works ...
1
vote
1answer
27 views

Localize strings for translation

I'm rebuilding my website from a child theme of twentytwelve to child theme of twentyfourteen. Most of the functions I'm using comes from tutorials, so most of the string aren't localized. With this ...
0
votes
2answers
267 views

WordPress 3.8 keeps asking me to upgrade to 3.8

It began with version 3.7.1: You are using WordPress 3.7.1. Update to 3.7.1 I've installed and usually update WP with git from https://github.com/wordpress/wordpress: cd wordpress git fetch ...
1
vote
1answer
110 views

Multiple Permalinks for Same Post

I'd like to be able to have multiple permalinks for the same underlying post (for i18n reasons) - eg http://www.example.com/my-custom-post-type/this-is-a-cool-article ...
0
votes
1answer
87 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
1answer
33 views

Translating form labels shortcode output

I'm using MyMail plugin to manage my newsletter. I'm also using WPML to manage translations, there is no compatibility between the two plugins. The subscription form, is placed in the footer area, ...
0
votes
2answers
15 views

Prevent Company Name From Translating

How do you prevent WordPress from localizing a company name when using the localization functions? In the following snippet will "Company Name" be translated? <?php printf(__('Here is some text ...
1
vote
1answer
141 views

Activate Child Theme .mo and .po files

I am experiencing some problems while trying to use my dutch .mo and .po files for my child theme. I have added the following line to wp-config.php: define ('WPLANG', 'nl_NL'); After that I have ...
0
votes
1answer
19 views

When localizing a theme do I create the .mo and .po

I'm creating a theme and I want to add internationalization. I have the theme itself set up with the appropriate functions and and textdomain. What I'm curious about is the creation of .pot, .po and ...
1
vote
3answers
126 views

Possible to add a language file to a plugin without adding .po/.mo files to plugin directory?

I need to add a language file to an existing plugin. Not for translation reasons, but because I'd like to change all occurrences of a certain word to something else. While I could just drop another ...
1
vote
2answers
92 views

How to trigger the core WPLANG to make automatically set a language when the theme is activated? [duplicate]

I'm developing a theme especially for Bānglā blog posting, and it'd be under GNU license. I questioned about a Calendar Widget translation with some problems today, and got a comment saying: I'm ...
1
vote
1answer
46 views

A better way to include localized labels in Wordpress plugins

is there a better way to include labels to be localized in Wordpress plugins and themes? My current setup involves calling the method below to get the labels: public function plug_get_labels(){ ...
0
votes
0answers
29 views

Wordpress NavXT plugin localization

My situation is as follows: 1) I am using wordpress 3.6.1, and I have the Breadcrumb NavXT plugin installed. 2) I have a custom theme, and the localization file is on the following path: ...
3
votes
3answers
649 views

Can we load “load_theme_textdomain” multiple times with different domains?

Supposing that I have two domains in my theme named "basic" and "advance". Is it possible to load two different domains in my theme? load_theme_textdomain( 'basic', TEMPLATEPATH.'/languages' ); ...
2
votes
2answers
102 views

Working with l10n contexts (_x etc)

Basic l10n from a .mo file generated out of PoEdit works fine. But as soon as I introduce _x, or variants, the link breaks, because as best as I can tell, PoEdit, completely ignores the context, and ...
5
votes
1answer
172 views

What is meant by __('page','twentytwelve')

I'm using twentytwelve theme with 1.0 version. I saw many codes like following, 'name' = __('page','twentytwelve'); If I give, 'name' = 'page'; It's also working fine. Then why using __()? What ...
0
votes
1answer
139 views

Why is setlocale() returning false on WPEngine?

It appears that WPEngine does not have support for different locale strings, rendering setlocale() useless. setlocale(LC_ALL, "es_ES"); returns false and immediately after that, setlocale(LC_ALL, 0) ...
1
vote
1answer
177 views

WordPress AJAX calls not detecting language properly?

I have a WordPress multisite, which is in both english and french. On the french site, localization is working great (using date_l18n() for dates, and __(), etc. for the rest). When an AJAX call ...
-1
votes
1answer
31 views

WordPress and Localization

I know that WordPress supports multiple languages - You can read more details here http://codex.wordpress.org/WordPress_in_Your_Language My question is, what is the difference in a localized version ...
0
votes
1answer
29 views

WordPress emails translate to French

My client's site is in French and we want to translate the canned emails (such as user registration and password lost) to French. What are the hooks/filters for these? The default language is ...
0
votes
0answers
72 views

How I can internationalize variables within the function _e () __ (), etc?

I have intro function variables and i wish internationalize dynamic. I have the follow code: _e($widget['description'], MyStaticClass::$i18n_prefix); When I run the poedit this ...
0
votes
0answers
28 views

Theme localization directory

I'm using the CodeStyling Localization plugin which allows to manage .po files easily. However I'm having trouble understanding where these files should be. This plugin updates theme's .po files in ...
0
votes
1answer
72 views

Having problem in using wordpress with an other language

I am using Persian Wordpress but I have a problem. when I want to publish a new post in Persian , I get all Persian letters alternated with question mark -"?" -. My wp-config.php file set the ...
0
votes
0answers
38 views

Internationalization of Blog Posts

I have 4 domains all pointing to the same server with a server alias. They are like australia.com, america.com, china.com etc. So i have a domain for a couple of countries. I run a WordPress blog, but ...
0
votes
1answer
37 views

localization for Permalink

Originally, wordpress creates permalink like /2013/07/ , /archives/123 here I want to localize with my native numeric numbers . is it possible to do like that ?