Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms (1)

1
vote
1answer
15 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
14 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
10 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
99 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
21 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
76 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
10 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
34 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
24 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
51 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
26 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
14 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
24 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
50 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
18 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
77 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
24 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
23 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
44 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
26 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
36 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
21 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
15 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
52 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
61 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
25 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 ...
3
votes
3answers
633 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
88 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
86 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
62 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
34 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
99 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
57 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
94 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
153 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
33 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
202 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
43 views

Translate arguments of a user added custom code

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 ...
0
votes
1answer
264 views

WPML language tags (Qtranslate feature)

I for many years used qtranslate plugin for translating my wordpress websites, but for now I decided to use other plugin, called WPML. And now I'm struggled with one problem: I am missing one ...
0
votes
1answer
40 views

Using _e() on text inside video tags prints that text, instead of only showing when html5 <video> element is not supported

I'm creating a wordpress theme in which I'm creating a shortcode for a video. Part of the output of this shortcode is something like this: $result .= '<video class="fullWidth" width="auto" ...
-1
votes
1answer
215 views

How to load theme textdomain from plugin?

I built a simple localization plugin to suit some specifications needed by my orgnanization. For each language there is a single .mo file that contains both the theme translations as the page content ...
0
votes
1answer
67 views

GlotPress - WordPress integration

http://translate.wordpress.org/projects using same header & footer with wordpress.org main site and their login system works together too.. How can i do that? (P.S: Any other GlotPress & ...
0
votes
0answers
66 views

Best practice to separate translate Backend and Frontend

I currently building wordpress themes, using customizer for almost all part of themes it self. also bundling it with own themes option. i wonder how the best practice to translating backend but ...
0
votes
1answer
32 views

White Space on translated strings lost

This is really crazy – I've done it before but now the whitespaces in placeholders in my translation strings are lost. For example this is translation of my pot: This entry was posted in %1$s and ...
4
votes
3answers
671 views

Best pratice to make taxonomy terms translatable without changing slugs?

I have one custom taxonomy with countries and states. I'd like to make these terms translatable but I'm not sure what would be the best way to achieve this. First of all, I don't want the slugs to ...
0
votes
1answer
69 views

Change language for each website using multisite

I am using wordpress multisite and have three different sites setup; Default (English) German Japanese I've got all the sites working seperately which is fine. My theme has the .mo and .po files for ...
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 ...
0
votes
1answer
108 views

Updating WordPress Theme/Plugin POT file without losing line numbers consistency

This is a recurrent problem I have when building WordPress Theme or Plugin: each new feature added to the code breaks the i18n files consistency. POT/PO files store the line number of the translated ...