The tag has no wiki summary.

learn more… | top users | synonyms (1)

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" ...
-1
votes
1answer
293 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
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
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 ...
4
votes
3answers
885 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
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
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
122 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
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
878 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
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
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
0answers
203 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
302 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 ...
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
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
317 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
318 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, ...
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
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( ...
1
vote
1answer
292 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 ...
0
votes
2answers
219 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, ...
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 ...
2
votes
1answer
309 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, ...
0
votes
0answers
45 views

Wordpress NavXT plugin localization

My situation is as follows: 1) I am using wordpress 3.6.1, and I have the Breadcrumb NavXT plugin installed. 2) I have a custom theme, and the localization file is on the following path: ...
2
votes
2answers
355 views

Working with l10n contexts (_x etc)

Basic l10n from a .mo file generated out of PoEdit works fine. But as soon as I introduce _x, or variants, the link breaks, because as best as I can tell, PoEdit, completely ignores the context, and ...
0
votes
1answer
185 views

Using gettext to translate wp-login.php can't translate `Back to` into other language

I created a plugin to translate text of wp-login.php page into Arabic, every thing translated well except Back to which appear at the bottom of login form, I can't catch it to translate into Arabic ...
1
vote
2answers
758 views

Make theme translatable for WPML

I have been really hard time to get my site translated. I have MO and PO files, but my theme is not compatible with WPML and the developer team doesn't to change it. Therefore I may have to build a ...
0
votes
1answer
77 views

How to make the_tags title translatable?

How can I make the text in the_tags function translatable? Currently I'm using following: <?php the_tags('<div class="tags">Post Tags',' ','</div>'); ?> But I'd like to make ...
2
votes
2answers
91 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 ...
1
vote
1answer
20 views

Change / tweak existing wordpress translations

I have a WP that has a custom theme, and all the translations working fine. Now I (i.e. my client) would like to tweak some wordpress-provided translations that live in ...
6
votes
2answers
2k views

HTML inside __() or _e() language translation string

What is the proper approach to building translation strings? For example, echo __( 'Hello ' . $first . ' you owe me money.' ); echo __( '<div><p>Top: ' . $t_margin . '</p>' . ...
6
votes
2answers
1k views

Do Child-Themes automatically load the Translation from the Parent-Theme?

Is it enough to just create a child-theme - let's say technically without adding anything else but the bare minimum style.css - to have the translation of the parent-theme being used automatically for ...
0
votes
1answer
417 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 ...
0
votes
1answer
110 views

mo / po translation files does not seem to work

I have a theme that was bought from themefuse and they say it supports localisation using a plugin called CodeStyling Localization However even though I make the necessary steps to translate strings ...
0
votes
1answer
151 views

Set parent theme language with custom .mo files

I am using Buttercream as my parent theme. I have translated the .mo file located in themes\buttercream\languages and saved it as nl_NL.mo and nl_NL.po. Now I want to display the parent theme in Dutch ...
1
vote
1answer
44 views

Translating plugin or locale file

I need to have custom translation for a single country and give people the option to select between it and english... is there a plugin to provide a alternate set of text for pages and posts? thanks
0
votes
2answers
2k views

Where is the right .mo file inside the language repository?

I need to translate my Wordpress in Italian. Following the instruction written on WordPress in Your Language, I've searched my .mo file inside the Language Repository but I've some problems. The ...
0
votes
1answer
230 views

Can't manage to make translate_user_role() work

I've been looking into wpse archives to solve my problem but I can't manage to do such a thing. I built this code : $args = array('fields' => 'all_with_meta'); $users = get_users($args); foreach ...
0
votes
3answers
136 views

English version of my site show french strings [closed]

This is a weird one : http://www.famille-labruyere.com/ is the french version of the site http://www.famille-labruyere.com/en/ is the english one The problem is that the english version show theme ...
0
votes
1answer
79 views

Renaming/translating “your profile” page

I need to rename/translate the "Your Profile" page. I've used the function below function pietergoosen_hoofskerm_vertaling( $translated ) { $words = array( 'Name' => 'Naam', ...
0
votes
1answer
463 views

setlocale for date

So I purchased a premium wordpress theme, but I can't get through its Polish localization - the dates outside the_time or the_date are displaying in English (default server's language). I read that I ...
0
votes
0answers
161 views

Google Language Translator - Manage Translation

I installed Google Language Translator wordpress plugin. How can I manage it's translation (https://translate.google.com/manager/website). I can manage the translation if not using a plugin, but ...