Identifier for translatable strings.

learn more… | top users | synonyms

7
votes
1answer
4k views

What is a Theme textdomain?

I've found that any WordPress theme uses this functions, but I don't understand what is the purpose of it and what is it, in this case 'themify'? Here are some examples in Themify functions.php: 1). ...
3
votes
1answer
3k views

Warning/Notice about functions.php

I have trouble about the notice shows on the top of the home page as: Notice: load_plugin_textdomain was called with an argument that is deprecated since version 2.7 with no alternative available. ...
3
votes
1answer
606 views

Overwrite textdomain of plugins by default - Lost Translation

Wordpress is awesome, but there is something that is driving me crazy. Whenever a plugin or a theme is updated, all files are deleted and replaced. So if I have custom code or a translation in one ...
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 ...
1
vote
1answer
870 views

Why is “plugins_loaded” not called/fired?

I am trying call load_plugin_textdomain once the plugins are loaded, however this does not happen. I do have a plugin activated, so shouldn't this fire? add_action("plugins_loaded", "test_override"); ...
1
vote
1answer
245 views

Action hook load_textdomain $domain variable

I use the load_textdomain action hook to list all active localization text domains with corresponding path to translation files. function mo_location( $domain, $mofile ) { if ( ...
0
votes
1answer
97 views

Does the textdomain have to be the theme's name?

Does a theme's text domain have to be the actual theme name? If you develop WP themes, couldn't you just use the same name (perhaps your business name) for all the theme's you develop, making it ...
0
votes
2answers
122 views

Should all references to a text domain be to my current theme?

I'm running Theme Check on a theme I've inherited and I've come across lots of recommendations like this one: RECOMMENDED: Text domain problems in loop.php. The twentyten text domain is being used! ...
0
votes
1answer
87 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
28 views

How to translate Widget Description in constructor?

I'm building a localized widget and the translation works everywhere but in the language string in the constructor. I have read that the whole plugin initialisation has to be bound to the init ...
0
votes
1answer
65 views

Loading plugin text domain before registering post type

I'm building a wordpress plugin, that will register a post type. Im trying to set up a simple test case where all it does is registering a post type with get text functions and translating it with ...
0
votes
1answer
92 views

Theme Checker Text Domain

$output .= '<li class="recentcomments">' . sprintf(_x('%1$s %2$s - %3$s %4$s', 'thst'), get_avatar( $comment, 48 ), (...); This is my line of code and Wordpress Theme Checker tells me "Text ...
0
votes
1answer
286 views

How to keep a variable in COOKIE or GET query string?

I'm working on adding a language variable (locale) in my custom WordPress theme. I made the translation working by adding ?l=en_US to the URL. I would like to add the parameter into COOKIE, such that ...
0
votes
0answers
15 views

How to switch a translation after user switched the language?

I have theme prepared to be translated with __() and _e() functions, they were used without domain, just __( 'TEKST' ), not __( 'TEKST', 'domainhere' ). Next, my theme has .po and .mo files in ...
0
votes
0answers
16 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__ ) ) . ...
0
votes
1answer
31 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 ...
0
votes
0answers
26 views

How to get menu strings, categories and tags into po file for translation

I'm prepping my theme for translation. I've added the following line to my functions.php, and added the text domain within my theme files. <?php /*** LOAD THEME TEXTDOMAIN ***/ ...
0
votes
1answer
168 views

Notice: Use of undefined constant Redux_TEXT_DOMAIN - assumed 'Redux_TEXT_DOMAIN'

I am building my first Wordpress site, I just downloaded and installed v3.9.1. I bought a theme (rustik3) and I am trying to install it, but I am running into these errors produced by WP_DEBUG: ...
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 ...
0
votes
1answer
112 views

Translation of this theme not showing up in the real host. why?

i translate many wp themes until now and i don't see this problem yet. I make mo and po files for this theme and in the function i put this code load_theme_textdomain( 'rokesh', ...
-1
votes
1answer
330 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() { ...