The tag has no wiki summary.

learn more… | top users | synonyms (1)

0
votes
0answers
16 views

Translation file .po [on hold]

I have a problem translating the bulletin board of WordPress. The theme is Amplius (as you can see from the 3 paths below). I installed the plugin "CodeStyling Localization" and by that I ...
0
votes
1answer
16 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
22 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
22 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
17 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
19 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/. ...
-1
votes
0answers
12 views

Plugin Translation

I translated my plugin with poedit, and it works fine on localhost, on new fresh wordpress instalation, but when i uploaded my plugin on server, on exsisting site, some russian charachters missing. I ...
0
votes
0answers
11 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
19 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
16 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
28 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
18 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
125 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
26 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
80 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
11 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
16 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
36 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
28 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
88 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
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
20 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
25 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
64 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
19 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
108 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
31 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 ...
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
0answers
50 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
29 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
45 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
28 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 ...
0
votes
0answers
16 views

Translating images in Wordpress

I am new to Wordpress but am curious about the translation options. I know there are quite a few translation plugins that can convert the text of a blog to various languages. However, I would like to ...
2
votes
2answers
56 views

Translation-readiness of Koi theme

I am migrating a (non-English-language) blog using the Koi theme on WordPress.com to a self-hosted environment, but see that certain strings are no longer being translated. For example, if my ...
2
votes
1answer
91 views

How to extract translatable (double underscores and _e) strings?

I made a custom theme and wonder how could I extract all translatable strings to a .po file so I can translate it. Do I need WPML plugin? Ex: I have a string "soccer" which is written as ...
1
vote
1answer
28 views

Read text defined under __()

I am new to WP Plugin development. I have a theme where texts are included inside __() function for translations, like: __('This is text to be translated'); I want to create a plugin which would ...
0
votes
2answers
16 views

Using wordpress translations strings in plugin

right now I'm building a helper plugin to make it easier for me to do simple tasks, such as registering post types. When doing this, i'd like to use some of wordpress base translations. Wordpress has ...
4
votes
5answers
1k 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
137 views

When to use _e and __ for the translation?

What is difference between _e() and __() functions for the translation? In what cases e() and __ ()should be used?
0
votes
0answers
101 views

Translate custom taxonomy terms

I got one problem about translating taxonomy terms. Situation: I have multisite instalation with many sites in different languages. I am using broadcast plugin that broadcast some post types and ...
0
votes
0answers
76 views

Translating a theme without POT files

I am currently working on a Wordpress project that requires translations into multiple languages. I won't be doing the translations, the client will when I hand it over to them. I want it to be as ...
0
votes
0answers
35 views

Localize tinymce in WordPress 3.9?

Still stucked with this localization of tinymce. Find this resource here : codex. Does not seem to work anymore. How do you do this? Any help would be much appreciated.
1
vote
0answers
118 views

How can I manually upgrade translations?

I've recently upgraded a Wordpress site to the latest WP version (3.9). I also upgraded the themes and plug-ins that needed it. Unfortunately, WP's automatic upgrade features are not compatible with ...
2
votes
1answer
58 views

Where the WordPress Core Translation is “actually” taking place?

I'm a WordPress Core Bengali translator, currently translating and/or fixing existing translations of WordPress 3.8x Bengali in Translate.WordPress.org. Suddenly, yesterday I got an update ...
1
vote
0answers
107 views

Translating dynamic strings

In my form I have a dropdown. I'm getting the values and labels of the dropdown dynamically from SugarCRM via it's rest API. I would need to translate these strings. I tried to pass the dynamic ...
5
votes
1answer
180 views

How to auto-translate custom user roles?

I developed a small plugin that adds (or to be more precise: first deletes then adds again) some custom user roles. Each of these roles is set up in a way like this: function ...
0
votes
1answer
34 views

Localization, escape html elements mid-sentence

I am trying to translate a few strings inside of a new plugin I'm about to release. I have a string set up like : <?php _e('The image <em>MUST</em> be less than <strong>500 ...
1
vote
2answers
331 views

How to tell a theme to use different .mo and .po files?

I have a theme which loads .po and .mo files to display strings in English. I want to have only one language (Polish), but those two files are en_US. I tried replacing content in the en_US.po file but ...
0
votes
1answer
49 views

Translate arguments of a user added custom code [closed]

I needed to hardcode some extra code to a existing portfolio-template. Now there are two arguments which values need to be translated: <a href="/news/" class="hover-on"> <div ...