Tag Info

New answers tagged

1

I have to admit that I didb't understand the setup ;), but it doesn't matter as the lower level functions (load_textdomain IIRC) will check if a translation file is already loaded and will not load it again, therefor you can use the same file to include many translations, and call the loading function as many times as you wish.


-1

I was getting the same error within my class. When I used class myClass { public $data_array = array( 'name' => __( 'Document category', 'opd2-document'), 'singular_name' => __( 'Document category', 'opd2-document' ), 'menu_name' => __( 'Document categories', 'opd2-document' ), ); public function ...


0

Go to http://pcentral.io/internationalization/and find the official website of the desired language Click the More link to open the official website related to that particular translation. For example, for Russian it is currently: http://wpcentral.io/internationalization/ru/ Find a Download Language Pack button and copy the url. E.g.: ...


2

First of all, I'd strongly recommend against storing translations for a plug-in in your theme. It has no reason to be there, and you'll loose the translations when you change/update the theme. The correct place to store translations is wp-content/languages/plugins/. This code does that, and targets the domain 'other_plugin': function ...


0

Well, actually, you should view your site as requiring "multilingual" capabilities, even if the base language for both countries is identical, because the actual locale for each is nevertheless different. More specifically, you can create variant "translations" for your British ('en_GB') and Irish ('en_IE') localizations. A plugin such WPML (WordPress ...



Top 50 recent answers are included