0
votes
0answers
14 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__ ) ) . ...
3
votes
1answer
37 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 ...
0
votes
1answer
23 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 ...
1
vote
2answers
56 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 ...
1
vote
1answer
38 views

How WordPress is able to change locale without using setlocale

In my plugin I print out the current locales via $originalLocales = explode(";", setlocale(LC_ALL, 0)); var_export($originalLocales);die; Obviously the result is same as the WPLANGdefined. ...
1
vote
1answer
24 views

Why is the generated POT file from WordPress.org not adding my plugin description to the POT file?

So I ran into this issue before and was able to get it fixed by using the get POT from the admin side of WordPress.org. However, with this plugin when I make the POT file it doesn't have the plugin ...
1
vote
1answer
64 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 ...
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 ...
1
vote
2answers
62 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 ...
1
vote
3answers
197 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
0answers
101 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
41 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 ...
1
vote
1answer
179 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 ...
-1
votes
1answer
1k views

Loading Canvas & WooCommerce translation file in child theme

I'm trying to localise a site (Canvas child theme). I already have the translated .po and .mo files. I uploaded the WooCommerce translation files to child-theme/woocommerce/i18n/languages/ in the ...
4
votes
1answer
206 views

Using plural-only translation of register_post_status() in plugin

tl;dr: My plugin wants to translate strings from core or other plugins that use _n_noop(). How? This question related to this plugin and is sort of a follow up to this question. My plugin adds ...
6
votes
2answers
184 views

Can I leave off plugin textdomain for terms used in core?

I've got a plugin that puts post statuses into post type admin menus. I'm in the middle of internationalizing it, and I'm wondering how to handle this situation. The plugin uses some unique strings ...
1
vote
4answers
129 views

Plugin for single language localisation [closed]

I have found dozens of plugins which helps you to translate a Wordpress website into different languages. However, I cannot find anything that would help me localise Wordpress for different regions, ...
0
votes
1answer
26 views

Localise settings section headline

Assuming i've got a bunch of setting sections. I add these sections to my plugin page in the following way. $sections = array('notifcations', 'updates'); foreach ($sections as $section) { ...
7
votes
5answers
9k views

How to translate a plugin via .po .mo?

I want to translate this plugin. This plugin already has translations to some languages, and it has .pot file for adding new languages (as far as I understood from description). Although I never had ...
1
vote
1answer
1k views

Why load_textdomain work but not load_plugin_textdomain?

In my plugin's init function load_textdomain( 'myplugin', ABS_PATH_TO_MO_FILE ); // OK load_plugin_textdomain( 'myplugin', false, ABS_PATH_TO_LANGS_DIR); // No effect echo( __('Test', ...
1
vote
2answers
266 views

Cart66 localization hardcode strings [closed]

I've read the documentation http://cart66.com/cart66lite-documentation.pdf and searched on google but i can't seem to find a location(s) to localize strings (hardcode) for Cart66. If someone can ...
1
vote
1answer
79 views

Localiztion in javascript

Wordpress currently uses the gettext feature which is available in php but unfortunately not in Javascript. I have searched this matter on the web and have come up with this trick. But there is a ...
0
votes
1answer
93 views

Is it necessary to translate WordPress key terms when localizing a plugin

In translating a plugin, how should "WordPress" key terms be handled? For instance, should the following need translations or should they be left as is: Taxonomy Custom Post Type Taxonomy Term ...