The tag has no wiki summary.

learn more… | top users | synonyms (1)

0
votes
0answers
12 views

How can I force-load a plugin's translation files from wp-content/languages?

I'm trying to change instances of the word "blog" to "site" for the plugin bp-groupblog. I've copied the .pot file to a .po file, successfully translated all the necessary strings, and successfully ...
0
votes
1answer
18 views

Adding theme strings to .PO file

I'm trying to translate some strings in a WP theme I'm using, but apparently there are some differences in the PHP code. Here's an example: <?php echo apply_filters( 'jobboard_job_posted_text', ...
0
votes
1answer
10 views

WordPress Translations

I've just recently learned about .po and .mo files in WordPress Themes. My question is, are these files supposed to be used to translate page and post content or just the WordPress backend along with ...
0
votes
0answers
9 views

Fixed values for same post translations

I was recently implementing a custom post type in WordPress, and added WPML so I could translate it's title & content. This post type (city) also has some custom metaboxes (metabox.io) like: ...
0
votes
0answers
13 views

Extract all strings in web site to send to translator

I need to extract all translatable data from wordpress to PO files in order to send it to a translation agency. Of course, I also need a mechanism for putting the translated text back, and extracting ...
0
votes
0answers
18 views

WP internationalization not loaded

I have problem with loading internationalization in my admin page. For generating .po and .mo files I use Poedit. My plugin structure is simple: ├───plugins │ └───radni │ └───radni.php │ ...
1
vote
1answer
24 views

Translating publish dates to Arabic

I need to translate post publish dates from English to Arabic. I uploaded the po file from this link, using WPML string translation: http://wpcentral.io/internationalization/ar/ The .po file has ...
0
votes
0answers
32 views

Translate in wp-login.php page

I'm trying to add a form for the user to register, to choose a role that can edit pages. The code I used is as follows: <?php function my_register_form() { global $wp_roles; ?> <p> ...
0
votes
2answers
47 views

Override translation of 1 word

A few words in the WP Job Manager weren't translated yet. I edited most of them in de po file now but for the sentence "posted 5 hours ago" I can't find where to translate the "Hours" It's declared ...
0
votes
2answers
47 views

Adding a translation phrase to Wordpress Theme

I'm creating a custom Wordpress theme and I'm using exactly 3 phrases that I need to be translated according to the site language selected. I've digged a little bit through the Internet, but couldn't ...
1
vote
0answers
32 views

Theme elements not translating

Ive got a theme that is set-up for translating but didn't come with any translations. I used poedit to automatically detect the strings, and subsequently translated it in full. However certain ...
1
vote
1answer
21 views

Prepare plugin options for multi-lingual support

I'm looking for a way to make my plugin's options available/translatable across a multi-lingual site. For example, several of my options are text strings that are then used on the front end. echo ...
0
votes
1answer
45 views

How can I translate a plugin's text?

I'd like to change some translatable text of a plugin I'm using, Buddypress Group Email Subscription. The text is: No Email (users will read this group on the web - good for any group - the default), ...
0
votes
1answer
18 views

How to translate menu items?

is there i way for menu to be translated when i choose website language? Can it be done without using a plugin? Does anyone have a solution to do it withot using the plugin? Thanks in advance
2
votes
2answers
113 views

Filter translations (gettext strings) on specific admin pages

I'm trying to do a string replacement using gettext filter (source): function theme_change_comments_label( $translated_text, $untranslated_text, $domain ) { if( stripos( $untranslated_text, ...
0
votes
2answers
83 views

WordPress not loading .mo via load_plugin_textdomain (Wordpress 3.9.3 and qtranslate Plus2.7.2)

Not sure why I have .mo installed it to wp-content/plugins/si-contact-form/si-contact-form-zh_TW.mo (Fast Secure Contact plugin) but load_plugin_textdomain('si-contact-form', false, ...
6
votes
1answer
50 views

How to handle text with function __(?

At the moment i am translating a WP theme with the __( and _e( functions and poedit. Now for words and sentences it works ok, but i don't know what to do with 'hardcoded' body text in the theme? Can ...
0
votes
1answer
44 views

Trying to localize a Underscores starter theme [duplicate]

I finished translating the .pot file(larehev.pot) and created a .mo file(larehev_he.mo) with my translation and i can't make it to work on my theme. in functions.php there is a setup function and i ...
0
votes
2answers
36 views

How to use esc_attr__ with custom translation function?

I just made a built-in translation function to help users to translate their theme from theme options. Usually my functions works great as follow: <?php _e( 'No Comments', 'mytextdomain' ); ?> ...
0
votes
1answer
42 views

Translations does not work with .pot file

I've created a theme at underscores.me and it seems it is multi-language ready. There is a .pot file in the language folder, so I downloaded POEdit and translated the things in there (like Posted on, ...
0
votes
1answer
56 views

Programmatically choose language for translation

I have a multilanguage website (to do it I use both Polylang and Loco Translate). My problem is that I want to send an email to our users, but I don't know in which language to send it until I ...
0
votes
1answer
53 views

How to translate wordpress backend to another language

Is there any way to translate wordpress entire backend to another language that is not supported yet. ? I mean, my language is Sinhala (Sri Lanka) and sinhala is not yet included by default on ...
1
vote
1answer
19 views

_e() function get text_string from function

Can I print the text sring to be translated from a function for example _e('echo text_function();', 'my_theme');
0
votes
0answers
62 views

Creating a custom theme; translate doesn't work?

I am creating a simple theme based on bootstrap. Now i am having a problem with the translation. I initially setup WP non english and i have put a en_US.pot and en_US.mo fils in wp-content/languages/. ...
0
votes
0answers
12 views

Plugins translation

I am trying to translate plugin which I made. The thing is, I don't want to translate other plugins, when language in my plugin is changed. I used add_filter('plugin_locale', 'switch_language', 10, ...
0
votes
1answer
38 views

Does WPML translate numbers automatically, or do I have to do the string translation? [closed]

I'm developing my site in English, and when I'm done, I'll be turning it into Arabic. I'm using a function and wondering whether I should wrap it into a gettext call for WPML to get or just leave it ...
0
votes
1answer
19 views

Translate Plugin with french as base language

I have a plugin with french strings, e.g: __('Ordinateur', $this->plugin_slug), Is there a way to let WordPress know that the base language is french?
1
vote
1answer
43 views

How to add extra language packs to WordPress

I've got a multisite which I installed in Dutch. Therefore English and Dutch are available in the general settings tab. But I need to add German and French. I can't select any other language from the ...
0
votes
1answer
28 views

Wordpress translation

I'd like to translate one word in WP but I don't want to replace the whole translation files (.mo and .po) because of only one word (it will be overriden with the next WP version and I'll have to ...
0
votes
0answers
14 views

Support for new language packs in WordPress 4.0

WordPress 4.0 added a new language pack system. Is there a guide or api documentation or an article about this that you are suggesting to read? I only found translations_api in codex.
0
votes
1answer
156 views

Error on update translation

I installed a fresh version of WordPress in my current language (pt_BR) on localhost (WAMP). After log in, WordPress told me that exist an translation update. I clicked to update and the following ...
0
votes
2answers
42 views

Translating my custom theme, always translated version?

I have a custom theme which is in Dutch and now i am trying to translate the theme into english. For this i am using poedit, and converted some theme strings into _e('string-is-here') I save both ...
0
votes
2answers
85 views

WordPress Translation Issue

I tried to change text using the below code function ctxtlearn_gettext( $ctxttranslation, $ctxttext ) { $ctxttrans = array_values(changeTxt_setting('trans',true)); $ctxtdirty = false; ...
0
votes
0answers
12 views

Translation of theme using PO files [duplicate]

We are currently building a site that needs to handle multiple languages. We are doing this using PO files. My question is, for the front-end user we will provide a language change facility. How do I ...
0
votes
0answers
23 views

Poedit not able to create a catalogue

I'm trying to translate my plugin using poedit. I have following code in main plugin file: <?php /* Plugin Name: FixFormData Description: If you want to autocomplete a form with ...
1
vote
0answers
49 views

Translation update successful but apparently not

I was updating my multi site installation just minutes ago to WordPress 4.0. The dashboard keeps notifying me, of an available translation update. I updated it as well and it gave me a success ...
0
votes
1answer
38 views

translate the_title() with .po & .mo

i need to translate the_title(). I am using code: <?php _e(the_title()); ?> but not working ... any ideas ?
1
vote
1answer
176 views

Display 1 Post per taxonomy with polylang

I am trying to make a loop where I display all my taxonomies with the first post of every taxonomy. It's the taxonomy "customers" and I want to display every first portfolio-CPT of the customer. I ...
0
votes
1answer
40 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
27 views

How can I stop wordpress translating my page template names

I am using wordpress multisite to manage different language versions of my site. This is the code I am using to achieve this /** * Language Support */ add_filter( 'locale', 'my_theme_localized' ); ...
0
votes
1answer
26 views

Post types translation

I try to translate post types names (Post, Page and Attachment). I have the following code: function create_skip_post_types_box () { $post_types = get_post_types(array('public'=>true), ...
2
votes
1answer
81 views

Prevent WordPress updates from overriding custom language translations?

my site's language is persian and persian is a right-to-left language. Wordpress has a default installation package for this lang but for some cases like very bad translation for dashboard or default ...
0
votes
1answer
21 views

Translation not working in sprinf variable

I have a function to get the taxonomy term name like this: function get_term_name($taxo){ $terms = get_terms($taxo); $html= ''; foreach($terms as $term ) { $html .= sprintf( __( '%s', ...
1
vote
2answers
223 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 ...
0
votes
1answer
41 views

Replacing strings within posts with the translatable string

I am working on a multi language website. Some posts have external resources for download. 'Download' string which is wrapped in a tag for download is in english across all languages. How can I wrap ...
1
vote
0answers
43 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
0answers
52 views

Language & translation

I have purchased the SoCute WP theme and as default it's in English. I want it to be in Swedish, so I have made updates to the wp-config.php file: define('WPLANG', ’sv_SE’); and I have uploaded ...
0
votes
0answers
33 views

Tweak the loop for translation

I am building a custom solution that would be bilingual in English and French. I want to store the French content, title,... in custom metas by adding META BOXES to the edit screen. This part is fine, ...
1
vote
1answer
71 views

How to translate get_intermediate_image_sizes?

I use the following code to get image sizes: public function getImageSizes(){ global $_wp_additional_image_sizes; $sizes = array(); foreach(get_intermediate_image_sizes() as ...
0
votes
1answer
40 views

Making a string translation ready with html in it

I can make a simple translation string like this: <?php _e('Hello world','text-domain'); ?> But how to make a translation string if there is a markup in it? For example this: <?php ...