The tag has no wiki summary.

learn more… | top users | synonyms (1)

1
vote
2answers
494 views

variables in translatable text

I am adding a list of suggested plugins to my theme using TGM Plugin Activation - https://github.com/thomasgriffin/TGM-Plugin-Activation/ However, when I run theme check, about 40 or so ...
1
vote
2answers
72 views

Translating long texts with html formatting

I was wondering what is the best way to translate some longer texts with html formatting. There was a couple of solutions I came across, but did not know what would be the best one. Writing a couple ...
0
votes
1answer
118 views

How to call either page name as the nav link or navigation title?

I bascially need to just be able to show the polish translated menu or the english menu. The best way I can think of it is: if($languageCookie=='polish'){ wp_nav_menu(use the navigation label ...
0
votes
1answer
770 views

WP-e-commerce (getshopped) Hebrew language files - where can I get them? [closed]

I’m working on a dual language website (english+hebrew) the website uses wpml+wpec. I’m looking for the hebrew language files (mo/po) – where can i get them?
7
votes
1answer
4k views

What is a Theme textdomain?

I've found that any WordPress theme uses this functions, but I don't understand what is the purpose of it and what is it, in this case 'themify'? Here are some examples in Themify functions.php: 1). ...
0
votes
1answer
1k views

Translate custom template with WPML

I have custom template that is used by ClassiPress and it is working fine on default language, but when I enter the page language selector won't work since it's not translated. How can I translate ...
2
votes
1answer
609 views

How to use get_option() without any filter?

I'm using the newest WordPress 3.3.1 and newest qTranslate 2.5.27. I have made some an AJAX script which returns a value and message in the current language. Here I get my first problem, I solve it ...
1
vote
0answers
145 views

Partially translated dashboard in one of network's site

I have multisite WordPress installation with default language for all new sites set to English. For one of my sites I wanted to add support for different (Polish) language. I copied all Polish *.mo ...
0
votes
1answer
483 views

Problem with Language translation

I working with a theme that supports langauge settings. I've changed the setting in WP-Config to: define('WPLANG', 'es_ES'); The theme I'm using did not provide the es_ES.po or es_ES.mo files so I ...
1
vote
2answers
123 views

How to i18n text coming from the db or from an external source

I'm writing a plugin and i wanted to i18n correctly text which i'm storing in the db or in an external file. How should i do that?As of now we are generating pot files with wordpress and so all the ...
1
vote
1answer
167 views

How do I translate this string - PHP syntax question

I need some help on how to correctly format this code snippet for translation: <?php next_post_link( '%link', __( '<span class="meta-nav">←</span> Nästa nyhet') ); ?> I've used ...
3
votes
1answer
176 views

What is the purpose of an extra file for translation?

What code is required to put in functions.php in order to make the theme translation ready? The TwentyEleven theme has only following line: load_theme_textdomain( 'twentyeleven', ...
1
vote
1answer
71 views

How do I troubleshoot translation issues?

I am building a WP site using the Panoramica theme by CPOThemes, and so far most of it is working really well. However, not all translations work as they should (or at least not as I expect them to). ...
2
votes
1answer
53 views

Make changes to translation?

I'm using finnish translation of wordpress. I found the fi.po file which contains all the translations, but for some reason, editing the contents wont edit the contents of the page. Can I make ...
0
votes
0answers
15 views

replace plugin .po without modifying plugin core? [duplicate]

Possible Duplicate: Using customised language file for Event Organiser plugin? I'm using a wp plugin that includes an english .po file containing all the UI text strings. I'm not ...
1
vote
2answers
43 views

Internationalization and functions that use it

I'm building a new design into WP and so technically it is a theme, however it is only a design for one site and won't be a theme anyone can use and hence I don't want to bother with ...
2
votes
1answer
355 views

How do translated, escaped strings (esc_attr) in Themes work?

I was looking at the TwentyEleven code and found this: esc_attr__( 'Permalink to %s', 'twentyeleven' ) This is come code that came out of the title tag for a post; the full code within the title ...
1
vote
1answer
1k views

Internationalize / translate custom post types & taxonomies

I've created custom post type and taxonomy via generator, but not quite sure how to make it translatable. Google doesn't help in this. I have no idea where to put text-domain here and things what I've ...
5
votes
1answer
3k views

[Plugin WPML] : How to create a translation of a post using the WPML API?

I'm trying to figure out how to create a translation for a post using the internal WPML API (inc/wpml-api.php) I simply want to create a translation for post ID xx, set some content and publish it. ...
3
votes
3answers
2k views

Titles in my sidebar widget appear in all languages - with qtranslate

So here's my code, using the qTranslate plugin: query_posts(array('post_type' => 'uk_blog', 'numberposts' => 2)); $i = 0; while(have_posts()): the_post($post);?> <div ...
2
votes
1answer
1k views

Translate Navigation Menu & Sidebar Widget Titles

Is there any plugin to translate navigation menu & sidebar widget titles ?
6
votes
1answer
192 views

Gettext details

I've got a few gettext() questions that are not covered anywhere in WordPress Codex but I think they are important. __('string') in THEME should be used for strings that are likely to be present ...
2
votes
2answers
345 views

List of Default Translated Phrases

With <?php _e('Save Changes') ?>, I know the phrase, "Save Changes" can be translated automatically if the user's locale is set to a different language. I'd like to know if there is a list of ...
2
votes
2answers
5k views

Help with “text domain”, comments_form in WordPress theme

I've been plugging away at creating my own theme and am pretty much there, but ran the Theme Check plugin and had a few concerns/questions: Throughout the theme, wherever there is text, I've used ...
1
vote
0answers
45 views

Inconsistent translation on a WP site

I have a WP site that I installed with the French translation, as provided by Wordpress France, and which is quite accurate. I wanted to apply an English-only theme, which is not using the PO files, ...
0
votes
1answer
390 views

I'm looking for a visual composer / builder plugin that supports RTL

i'm looking for a plugin that enables building pages in a visual drag & rop interface, these plugins are getting better and gaining popularity - there's several plugins in this category such as ...
1
vote
1answer
2k views

Translating a custom taxonomy

How do I go about translating custom taxonomy terms? I am essentially trying to allow authors to see the terms in English and let the subscribers see the terms in Spanish. I am not running a ...
16
votes
3answers
5k views

Change language by clicking a button

The goal is to offer a button/select drop-down or similar to switch the public interface1) language on the fly. What I'm searching for Plugin or Theme Code... ... or Ideas Using a work-around with ...
4
votes
1answer
175 views

Obtain a list of available translations

In answering this question: Change language by clicking a button. It was necessary to obtain a list of languages for which translations were available (i.e. their po/mo files were present in ...
0
votes
2answers
503 views

Wordpress translator plugin: Google Webmaster's Tools shows hundreds of 404 not found errors. How to clean the mess?

I had Global Translator Wordpress plugin. It littered Google Search index with thousands of translated urls. Couple of months ago I removed the plugin and also the cached pages on the server. But ...
-1
votes
1answer
818 views

WPML - how to translate user profile fields with icl_t()? [closed]

Existing code somewhere in a template or shortcode handler, display user profile biography: <?php if ( $user ) : $bio = get_the_author_meta( 'description', $user->ID ); ?> <div ...
0
votes
1answer
254 views

WordPress For Urdu Language

Can I use WordPress for Urdu Language? I want entire site to be toggled-translated in Urdu Language with one click... Is it possible to do it with some plugin or do i have to write manual codes for ...
1
vote
1answer
475 views

Wordpress Multilingual Theme using Multisite

I have a site that needs to be billingual, English and French. I've created two sites in WPMU, and set the language settings of the second to fr_FR. Under the directory: /wp-content/languages/ I ...
0
votes
1answer
177 views

how to translate countries output from wp database?

i have a list of countries in french stored in my database (wp_country). i use the code above to retrieve all the countries witth this ecohing echo '"' . $country['name_country'] . '",'; it outputs ...
0
votes
3answers
1k views

Internationalize plugin so strings can be translated in WPML [closed]

A third party developer made a text widget with title, body and thumbnail. This accompany widget plugin has not been internationalized and therefore the strings do not appear in WPML's string ...
0
votes
1answer
156 views

How to translate “$before” with get text in get_the_term_list?

How can I make $before (Books:) a translateable string <?php echo get_the_term_list( $post->ID, 'book', 'Books: ',', ', ' ', '' ); ?> with this method?: <?php the_content(__('Read ...
6
votes
1answer
2k views

Setting WPLANG from a plugin

For a single site wordpress, the language must be set from wp-config.php's WPLANG, but is it possible to set from my plugin which override the default value?
3
votes
1answer
1k views

How to save a translation of a plugin in “CodeStyling Localization”?

Hi I was translating one of my plugins in "CodeStyling Localization". when I update my plugin my translation erased. Is there anyway to find it ? And How can I backup my translation (I don't want to ...
0
votes
2answers
281 views

Removing translation textdomain

I am working on a plugin for myself, so, it's totally useless to load textdomain. But most of codes I copied from others are using the __(' ','') I copied the codes from several plugins. So, even if I ...
0
votes
1answer
2k views

Translated my theme (translation not showing up)

I read a lot about what is the optimal to translate your website (french and english in my case) I set up a Multi site where I created two site one french mywebsite.com/fr and one in english ...
3
votes
2answers
305 views

How to concatenate inside the _e() function the right way?

I'm trying to create a function for the title inside my functions.php, I'm having a problem with the search title part where I have to concatenate here's the part with issues: elseif (is_search()) { ...
0
votes
1answer
3k views

qTranslate 2.5.28 and WordPress 3.3.1 issues [closed]

Anybody knows how to solve the issues in qTranslate 2.5.28 with WordPress 3.3.1? http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=3&t=3045 ...
0
votes
1answer
256 views

Why set a second parameter in the translate function?

The second parameter in the translate function is optional, but I always see people use it and some don't. So I want to know if I should use it or not and if yes, how I will use it later. I asking ...
0
votes
1answer
191 views

How to install a translation for a WP plugin?

So I installed this plugin http://wordpress.org/extend/plugins/wp-email/ I need a Spanish translation. There is a link that takes you to a list of translation files: ...
4
votes
1answer
292 views

How do I translate: “2 hours and 15 minutes”?

I want to translate the generic phrase "x hours and y mintues". Of course, if it's only one hour, it should say "1 hour and y mintutes". The same goes for minutes, "x hours and 1 minute." I know ...
0
votes
2answers
639 views

Dealing with variables with gettext function

I've found tweaking some of the text in WordPress to be pretty easy by adding in the following function (in lieu of using a separate plugin): add_filter( 'gettext', 'of_site_translations', 9999, 2 ); ...
1
vote
1answer
220 views

Widget translation on my plugin

I am adding i18n to the widget on List Category Posts. I've correctly created the pot file, and po and mo files for Spanish and English. All of the Strings are being displayed with _e() on the form ...
0
votes
2answers
201 views

localization of theme and plugins to English (originally in another language)

We're about to start localizing a wordpress installation with a highly customized theme and several custom plugins. Unfortunately it is not gettext-ready, and also the original theme is not in ...
0
votes
1answer
129 views

Easy way to update a single translation entry without having to translate

I'm using the "Featured Image" meta box which allows you to attach a secondary thumbail to a post. The title for this box is defined in the Wordpress codebase like so: __('Featured Image') Which ...
5
votes
4answers
5k views

Theme localization of “slugs” (custom post types, taxonomies)

in my theme I want to define a series of custom post types and custom taxonomies, each one having its own customized slug; the base language of my theme is english, therefore the slugs will be in ...