The tag has no wiki summary.

learn more… | top users | synonyms (1)

0
votes
1answer
13 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
20 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
0answers
15 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
18 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
10 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 ...
1
vote
2answers
344 views

Transfer from English page to Arabic page

I have a button at the top of the website in header.php. That button should transfer me to the Arabic version of the page if I am on an English page. For example, on contact.html the button should ...
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
415 views

How can I change the prev / next buttons text to Dutch?

If you look to this page everything is alright except the previous and next buttons text are in English. Does anyone know how I can make them display in Dutch? I already tried to change them but no ...
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 ...
2
votes
1answer
308 views

gettext does not translate when called in ajax

When loading content in gettext calls (__(), _e(), etc.) they translate fine when I render the page in the browser normally (PHP delivers the content to the browser), however when I make AJAX calls, ...
1
vote
2answers
1k views

How to add qtranslate multi language support for media?

The multi language plugin qtranslate works for custom post types but there is no capability to translate media information like title, description, captions for images. I am using the following code ...
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 ...
3
votes
3answers
3k views

Best way to filter featured image text for a custom post type?

I am trying to change the "Set featured image", "Remove featured image", and "Use as featured image" text links of a custom post type for my plugin Meteor Slides. I found the ...
1
vote
1answer
270 views

Force Plugin to English Translation

Here's my thing: I'm using a plugin that has multilang capabilities. The point is that the language translation in my country lang is very bad and it makes more complex than simpler my work. :D. So ...
0
votes
1answer
15 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 ...
1
vote
2answers
252 views

Translation not working after editing plugin template

I'm building a website with Wordpress and I'm using the plugin Event Organiser. I changed the config file of Wordpress to use the nl_NL (Dutch) language. This all works fine, even for the plugin, ...
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 ...
1
vote
1answer
291 views

Activate Child Theme .mo and .po files

I am experiencing some problems while trying to use my dutch .mo and .po files for my child theme. I have added the following line to wp-config.php: define ('WPLANG', 'nl_NL'); After that I have ...
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
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
121 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 ...
5
votes
1answer
10k views

Translate widget titles using qTranslate plugin

I'm actually using the qTranslate plugin to translate my website. It works really well with everything except one thing. the titles of my sidebar widgets. Actually, to translate some words we need to ...
9
votes
3answers
594 views

How to get a localized version of WordPress from a repository?

I'm setting up my basic skeleton / boilerplate I want to use for all wordpress projects. I follow Mark Jaquiths approach and include WP as a submodule. He gets it from ...
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
3answers
1k views

WooCommerce: Translation lost on AJAX call in Checkout page [closed]

I'm using WooCommerce for a site that I'm currently working on. And I'm creating it for a language other than English. I do the translations by means of the .po file. The issue that I'm encountering ...
0
votes
1answer
873 views

Translate placeholder text in search field

I want to translate the placeholder attribute in my search box. I am using the WPML-plugin to translate all text. How can I accomplish this? My code: <input type="search" class="search-field" ...
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
1answer
208 views

How to change category translation in Polylang afterwards

If I translate Tag or Category with Polylang-plugin (http://wordpress.org/plugins/polylang/ ) in Wordpress, how can I change the translation afterwards or remove the translation without removing ...
0
votes
0answers
14 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 ...
0
votes
1answer
27 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 ?
2
votes
1answer
63 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 ...
1
vote
1answer
82 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), ...
3
votes
1answer
2k views

generating po mo translating files from scratch in a wordpress theme

Maybe I'm missing something here but I really can't find any answer to my question around the web. I am creating a new wordpress theme from scratch (literally from scratch) and would like to create ...
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
107 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
44 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 ...
8
votes
5answers
12k views

How to translate a plugin via .po .mo?

I want to translate this plugin. This plugin already has translations to some languages, and it has .pot file for adding new languages (as far as I understood from description). Although I never had ...
2
votes
2answers
55 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 ...