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
1answer
19 views

what is the difference between .po .mo and .pot files in wordpress localization?

I'm translating a wordpress site and need more clarity around these terms. Can anyone land a hand with some definitions and differences between .po .mo and .pot files with wordpress localization?
1
vote
2answers
30 views

Localization / textdomain is slow and chaotic

My theme has a lot of templates. Most of them contain messages in the usual way: echo __('This is the message','mytextdomain') This has several disadvantages. For instance, if I want to change the ...
0
votes
0answers
29 views

Theme doesn't load localization files

I create translation into Czech but I have a problem with setting up this language with the theme Blogon: I created translation. Then I copied the cs_CZ.po and the cs_CZ.mo files into to ...
2
votes
1answer
33 views

Override plugin localization

Is it possible to override the localization files provided (or not provided) by a 3rd party plugin? A plugin that I'm using now doesn't have any language files but I want to avoid having a future ...
2
votes
2answers
323 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
1answer
23 views

How to translate a string that contains a WordPress sitename

currently I have this code: <?php _e( 'Follow ' . get_bloginfo( 'name' ) . ' on Facebook', 'yanse' ); ?> But I just get Follow to translate and it echoes "Seguir 'Site name' on Facebook"
0
votes
0answers
16 views

changing languages using locale

I am trying to build a plugin to make my website available in 2 languages. I found out about the 'locale' filter, but i had a lot of trouble trying to use it. Here is what I did. I know it might not ...
14
votes
6answers
13k 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 ...
1
vote
1answer
28 views

Possibility to use WordPress built-in localization

Is it possible to use WordPress default / built-in localization without text domain when creating localization for theme or plugin? for example word like __( 'Submit' ) or __( 'Publish' ) or any other ...
0
votes
0answers
13 views

translate_user_role doesn't work

I did dozens of tests, this is the code that I am tring to make work: $user = get_userdata($user_ID); /* WE NEED TO REMOVE BBP ROLES */ $roles = array(); global $wp_roles; foreach ...
5
votes
2answers
81 views

Who's job is it to load a plugin's translated strings?

I've internationalised my plugin and am now looking at how best to load the plugin's translated strings. I'm including myplugin/languages/myplugin.pot with my plugin but am not planning to distribute ...
0
votes
0answers
26 views

Localise theme does not work

I want to translate a wordpress theme (called Eventum) into Greek. I took the en_US.po file that exists in Eventum/languages and translated it using poedit. Therefore I now have el.po and el.mo as ...
0
votes
1answer
31 views

Change post date format to hebrew calendar

I've a wordpress site with Arabic language, it display the date of post using Gregorian calendar like this 24 فبراير 2016 in hebrew calendar it would be 24 شباط 2016 how can easily do this on any ...
0
votes
0answers
14 views

WPML doesn't recognize WordPress standard template

I am using the WPML translation tool which works for most of the sites of my theme with its page builder (theme "enfold"). However, I have some custom templates like date.php or category-$.php. These ...
3
votes
1answer
59 views

How to add i18n to a plugin's Twig template files?

A plugin I maintain uses Twig templates to produce HTML (and some other outputs). I've tried using __() within these (first adding the i18n functions with $twig->addFunction()) but it doesn't work. ...
0
votes
1answer
34 views

User specified Timezone

After a lengthy break from WP i'm getting my hands dirty with quite a complex plugin which is coming along nicely, but right now i am at the point of needing some advice on quite a complex issue: ...
1
vote
1answer
184 views

Do I need the .po file for my plugin?

I've a couple of language files in my plugin. Each language has a pair of files with extension .mo and .po. domain-de_DE.po domain-de_DE.mo When I remove the .po files the translation still works ...
1
vote
1answer
22 views

Some strings from a .mo file do not load

In a plugin I'm developing, most translations do work, but some strings refuse to work without an apparent reason. For a settings page, I'm using this pattern: $clgs_settings_descriptions = array( ...
0
votes
1answer
989 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
36 views

Shortcode returning localized HTML part

Here's my issue. I made a shortcode which makes a related article section in post content. Here's the content of this function: $a = shortcode_atts( array( 'id' => 0, ), $atts ); ...
1
vote
0answers
30 views

I want to add a localization feature (region-specific posts) to my site, but how?

All of my users register for the site and therefore have author pages. I have language settings that they can set from that page. I'd like to add an option for them to select which province they're ...
0
votes
1answer
49 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
0answers
20 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
27 views

Language selection don't show in Menu - WPGlobus

I'm using WordPress 4.4 and WPGlobus plugin in my testing site. But there's don't show language selection in Menu. Does someone know how to fix it?
0
votes
2answers
165 views

Changing interface language without multisite

I want to change the Theme's interface language without making multisite by passing langauage parameter into the URL. <a href="<?php echo home_url('/')?lang=bn ?>">Bengali</a> My ...
0
votes
0answers
37 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
33 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 ...
0
votes
2answers
1k 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) ...
0
votes
1answer
24 views

Change localization only for plugin

I have a wp plugin with the required .pot and .mo localization files. Everything works fine, if I change the wordpress language, the plugin language changes too. But some users has requested if I ...
0
votes
0answers
15 views

WP Localization error within return value

I have some code in my function panel and when I try to make it localized, I always get it wrong. Here is the code and I just want to localize the "Read More" words: return '<a href="'. ...
0
votes
1answer
38 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 ...
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 ...
1
vote
1answer
59 views

Setting frontend locale based on postmeta not loading translation

I'm trying to show different language on front end based on page post meta setting. Mine problem is that I can see that locale is changed, but text still stays in English. Only if I change locale ...
0
votes
1answer
27 views

using Options Framework - can “theme-textdomain” domain be changed?

I'm using the Options Framework in a new theme. I would like to use the theme name as the domain for the localization functions such as __() and esc_attr(). But the localisation functions in the ...
-1
votes
1answer
595 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 ...
0
votes
1answer
113 views

failed to open stream: Permission denied warning while load_textdomain

While achieving localization of my theme, I am getting a warning: Warning: fopen(C:\xampp\htdocs/wp-content/themes/themename/languages): failed to open stream: Permission denied in ...
1
vote
1answer
49 views

Localized version offers upgrade to en-us version

My Dutch 4.2.5 version offers to update to WordPress 4.3.1–en_US when I visit the dashboard. I'm surprised that it does not offer an upgrade to something like WordPress 4.3.1–nl_NL Will this work ...
1
vote
1answer
53 views

Using WordPress gettext functions in a library outside plugin or theme scope

If I have a library available through packagist that could be used in WordPress plugin or theme development, how should I address multilanguage support if I have a few strings that could be localized? ...
1
vote
1answer
372 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, ...
3
votes
1answer
2k 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 ...
2
votes
1answer
2k 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 ...
2
votes
2answers
528 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 ...
0
votes
1answer
55 views

Requiring Once into plugin PHP File not working

I am trying to get a php file to input content into the wordpress database under a specific table. I have set up the table and have verified that the information is passed into the insert.php file. ...
0
votes
0answers
52 views

Wordpress i18n functions only works if language is set int wp-config?

Basically all the functions listed here: https://developer.wordpress.org/themes/functionality/internationalization depends on the wp-config? The locale is the language code and/or country code you ...
0
votes
1answer
36 views

Warning: The actual loaded translation content contains mixed textdomains and is not pure translateable within one textdomain

We're using the CodeStyling Localization plugin and getting this warning: Warning: The actual loaded translation content contains mixed textdomains and is not pure translateable within one ...
0
votes
1answer
86 views

load language file

I want to load my French language file into my Arcade Basic theme. There is a language file, arcade.pot, and I translated it using PoEdit. I don't know how to add it, there is a function, in ...
5
votes
2answers
70 views

Use __($str) and _e($str) to translate strings with HTML

I'm currently developing a non-trivial theme right now, most of the time I'm not using a __($str) translate function when there's an HTML tag therein the text. Is it good to always use the translate ...
0
votes
0answers
66 views

How to build a multiple country WordPress site - pages, posts, and categories for each country?

Is there a best practice in building a multi-lingual wordpress site? There will be multiple content types and taxonomies that will need to be filtered by country. By default the site will display ...
0
votes
0answers
37 views

GUID to related post not in current language

I'm having problems with related posts and the link to them. I'm using the plugin Posts 2 Posts to create connections between posts. I also have three languages in wordpress website (french, ...
0
votes
0answers
18 views

What is the best way to localizing plug-ins stylesheet

I need to localize some WP plug-ins and like to know if there was a method to make a rtl.css for plug-ins like the way WP handles RTL theme by reading rtl.css. What should I do to prevent my changes ...