The tag has no wiki summary.

learn more… | top users | synonyms (1)

1
vote
5answers
3k views

Proper way to create / manage gettext (.po, .pot) files?

So I'm trying to figure out how .po and .pot files work, seeing as this is what Wordpress seems to use. But I can't wrap my head around it. I get that a .pot file is a template file that indicates ...
2
votes
1answer
85 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 ...
1
vote
1answer
127 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
4answers
4k views

How to translate month names in “Archives”

How can I modify month names in "Archives" in my blog? I would like to translate english month names into my mother tongue. I'm using the english version of wordpress 3.1.3
0
votes
0answers
96 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
74 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
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 ...
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.
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 ...
1
vote
0answers
116 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 ...
1
vote
2answers
761 views

WPML Translated Term

Since I posted on their forum and I didn't got any answer, here I am, asking the same question again. So: I made a script that add the posibility to add an image and change the order for the terms of ...
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
106 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
3answers
788 views

Localization: I want the backend: english and frontend in defined language

I'd like to have the backend of Wordpress in English and use a different locale for the frontend so far I figure out perhaps I could do it by setting in the wpconfig the locale I want to use in the ...
5
votes
2answers
1k views

How to provide translations for a WordPress TinyMCE plugin?

I know that I can get my translations into JavaScript doing: $MyTranslations = array( 'translation1' => __("Some String 1", "MyTranslations"), 'translation2' => __("Some ...
4
votes
3answers
882 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 ...
3
votes
1answer
2k views

How to Translate Contact Form 7 using qTranslate? [closed]

I'm using Contact Form 7 for my forms and also qTranslate to translate my website. I would like to translate all my fields and for that I used: <!--:en-->First Name ...
2
votes
2answers
258 views

How to use Yoast SEO backend in english even if WPLANG variable is not english?

I added this code to my functions.php file add_filter('locale', 'wpse27056_setLocale'); function wpse27056_setLocale($locale) { if ( is_admin() ) { return 'en_US'; } return ...
1
vote
2answers
323 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
48 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 ...
0
votes
1answer
70 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
1answer
315 views

WPML language tags (Qtranslate feature) [closed]

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 ...
5
votes
3answers
4k views

Open Source replacement for WPML? [closed]

Since WPML is not free anymore and still one of the most used Wordpress Translation Plugins, is there an open source project that keeps development going? Or something similar that replaces it? I ...
-1
votes
1answer
291 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
46 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" ...
0
votes
0answers
77 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 ...
0
votes
1answer
76 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
485 views

Redirecting home to /wp-login.php?action=register

As I'm currently using WordPress only as a registration platform for GlotPress I was wondering if it would be possible to somehow redirect users visiting http://translate.mydomain.tld/account/ to ...
2
votes
2answers
90 views

Compile errors during translation compile

I am trying to translate a theme using Poedit, every thing is alright except two strings which give me errors like this: Error: 'msgstr' is not a valid PHP format string, unlike 'msgid'. Reason: The ...
0
votes
1answer
117 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 ...
0
votes
1answer
86 views

Translate theme only

I think I'll lose my hair over this... Here's my situation: I have a WP MU running on my server I have several sites in english Now I want to add a blog in a different language under the same WP ...
0
votes
1answer
121 views

Translations not returning translated strings

I have the following function to display my comment form in my child theme function pietergoosen_comment_form_fields( $args = array(), $post_id = null ) { if ( null === $post_id ) ...
1
vote
2answers
73 views

Use translated taxonomy labels in plugin

I'm writing a plugin that works with taxonomy terms. It has, among other things, the capability to create new terms. I'm going to suppose that if users have custom taxonomies, they have taken care of ...
0
votes
3answers
80 views

__(): What if I have to pass in a variable?

In the docs for the translate function __( $text, $domain ), it states that you must put the string directly in place of $text, that you cannot do something clever such as __( $my_text, 'text-domain' ...
0
votes
0answers
202 views

translate iframe content- transposh filter

I am using transposh plugin to translate content. Its working fine but it is not able to translate iframe content. I want to show content of another site or remote url. I just want to translate these ...
0
votes
1answer
256 views

Transposh Japanese language transaltion not showing up

If you go to this site and click on japanese in the top left corner, it shows the japanese page with this showing up: <!--[if gt IE 8]><!--> <html class="no-js" lang="ja" dir="ltr"> ...
0
votes
1answer
299 views

Translation of theme using child theme

I have created a folder called “languages” in my child theme directory and added a: da_DK.po and a da_DK.mo file generated using POedit. I have created a functions.php file in my child theme ...
0
votes
0answers
62 views

Timestamp translation is not working with buddypress and wordpress

I would like to change the timestamp of activities to another language. Example : member joined group A since 2 hours the part that should be translated in my question is hours. I tried many ...
0
votes
0answers
40 views

Page template translation not working

I have a custom post type witch is kind of a general "under custruction" template for pages that are not released yet The problem is I done the po file like for any other page of the theme but it ...
1
vote
0answers
315 views

custom theme: english .mo file not working

I'm having an issue with a .mo file. I have a fully functioning localized custom theme that's running in four languages for the moment: Dutch, English, French and Spanish. There is one problem: the ...
0
votes
0answers
27 views

Language files in theme subfolder languages - translate files in theme subfolder js

How can I translate a string from a file in the theme subfolder "js" if the language files are in the theme subfolder "languages"? Regards, The_Hegemon
0
votes
1answer
317 views

Translate a theme with a PO file

I'm new to WordPress. two weeks ago I downloaded a theme for my Arabic language blog, and the theme is scripted in English but it contains a folder called languages/ and inside it has two files one is ...
0
votes
1answer
74 views

Translating form labels shortcode output

I'm using MyMail plugin to manage my newsletter. I'm also using WPML to manage translations, there is no compatibility between the two plugins. The subscription form, is placed in the footer area, ...
0
votes
1answer
159 views

load_textdomain won't load my .mo file

I am using Yoast'method to build an html site map. But it needs to be translated. It uses a page template page-sitemap.php that uses a template part <?php get_template_part('/partials/sitemap'); ...
0
votes
0answers
35 views

How to internationalize the sub menu name “categories” in Custom post type?

I'm trying for translation. I made a plugin with custom post type everything is okay. Only one thing i can't able to translate which is categories sub menu menu in custom post type. $args = array( ...
0
votes
2answers
218 views

Is it possible to check is loaded language files correctly with WordPress plugin?

I have a plugin to be translated. I have done following tasks: 1. Loaded the TextDomain $my_td = 'mysignup'; function my_signup_textdomain_init() { load_plugin_textdomain( $my_td, false, ...