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
2answers
54 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
96 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
93 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
202 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
904 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
18 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
94 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
123 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
74 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
177 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
55 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
45 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 ...
2
votes
2answers
428 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
301 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
321 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
74 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
17 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
297 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
27 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
262 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
215 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
59 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
45 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: ...
4
votes
3answers
2k 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
361 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
186 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
475 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
382 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
39 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
31 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 ...
1
vote
0answers
122 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
1answer
107 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
42 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
53 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 ?
1
vote
2answers
1k views

How to use is_rtl with my main style.css?

Sorry if this is an ignorant question. I'm a first timer on working with rtl languages. Say we have a theme with standard style.css for English languages. so I use is_rtl() and this returns TRUE, we ...
1
vote
1answer
73 views

Multisite Network Localisation

The problem seems easy to solve - I have installed multisite network, each new page have Polish language set as default, polish localisation files are in right directory, in wp_config there is line: ...
1
vote
0answers
30 views

Site does not display translations

I installed clean wordpress multisite. Bought a theme, installed woocommerce. Activated stuff, translated some and voila - everything is working. Translations and all. i then uplodaded all the same ...
1
vote
3answers
1k views

Find proper “text domain” within theme

I have a client with a wordpress theme, Nevada, and we are having trouble making the built in translations work for it. The theme contains .mo files for English, German, and Slovenian, and appear to ...
0
votes
1answer
319 views

Localize URL bases

I run a non-English blog. I love that WordPress has been translated to Spanish and currently I use the Spanish translated version of WordPress. One thing that I'd really like to change is the URL ...
0
votes
1answer
90 views

Theme doesn't want to load localization files

Here is my functions.php excerpt: function get_theme_text_domain() { //Same behavior if I return the string as 'return 'whatever' $theme = wp_get_theme(); return ...
0
votes
1answer
157 views

Multi language site using only .mo and WPLANG

Hello world/ Bonjour le monde, What technical limitations exist that would prevent the following from working (assume all static content with translations made in .mo file) Pseudo code: For every ...
1
vote
1answer
242 views

Replace woocommerce | (pipe) separator in product variation to , or another character?

How to replace Woocommerce | (pipe) separator in product variation to , or another character? I use Cyrillic keyboard layout and there is no pipe symbol. To enter that symbol I have to switch to ...
9
votes
3answers
598 views

How to get a localized version of WordPress from a repository?

I'm setting up my basic skeleton / boilerplate I want to use for all wordpress projects. I follow Mark Jaquiths approach and include WP as a submodule. He gets it from ...
0
votes
1answer
133 views

Multiple textdomains

I have a bunch of plugins. Obviously, they all have their own unique textdomains for internationalization (i18n). I also have a bunch of files that I include in all my plugins - I throw them all in a ...
7
votes
1answer
1k views

How to integrate get_post_time with date_i18n function?

I have date format and would like to translate to another language with date_i18n function how can I integrate with get_post_time here is my code : $time = get_post_time('F j, Y', ...
1
vote
1answer
129 views

Text Domains Across Multiple Plugins & Themes

A common situation: a developer builds an entire site, based on WordPress, of course, for a client. This site includes many custom plugins as well as a custom theme -- maybe another theme or a child ...
3
votes
2answers
311 views

Localized WordPress is much slower?

I'm using xdebug and webgrind to profile my WordPress installation because it's a bit slow. As there are some 20 plugins activated, I figured xdebug will be able to find the bottleneck. However, to ...
1
vote
0answers
1k views

How do I override a parent theme's language files with a child theme?

I have a parent theme and a child theme, I would like to override the spanish .mo and .po files in the parent theme (or add them if they are not present in the parent theme) with the es_ES ones in my ...
1
vote
0answers
50 views

Wordpress Localization and Templating

I'm using Smarty Templates for the back-end and Handlebars for the front-end for the plugin that I'm building. It's only now that I discovered that the localization doesn't work when I declare my ...
4
votes
1answer
98 views

How to i18n slugs for templates?

some templates are chosen from WordPress based on slugs (e.g. category-{slug}.php). Problem: How can I use the same template for an i18n'ed slug? Example: I have a category-news.php and an english ...