The tag has no wiki summary.

learn more… | top users | synonyms (1)

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 ...
15
votes
3answers
4k 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
142 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
493 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 ...
0
votes
1answer
651 views

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

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
191 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
429 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
154 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
944 views

Internationalize plugin so strings can be translated in WPML

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
141 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 ...
5
votes
1answer
1k 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
242 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
1k 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
262 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
2k views

qTranslate 2.5.28 and WordPress 3.3.1 issues

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
206 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
182 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
276 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
559 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
212 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
194 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
4k 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 ...
0
votes
1answer
139 views

Wordpress localization - gettext and git

We're about to start working on localization of a highly customized wordpress theme with over 200 php files. We're using git for version control. Are there any particular hints or warnings we should ...
0
votes
1answer
109 views

Translation with wordpress what does the process involve?

What's the process involved with translating content into the language of your own? Or multiple languages? I'm looking to create a website that requires various different language translations.
1
vote
1answer
189 views

POMO_Reader->substr() call endless loop?

I'm experiencing a somewhat endless loop in the file mo.php /wp-includes/pomo/mo.php when loading the site's default text domain. The PHP error is: Fatal error: Maximum execution time of 30 ...
1
vote
1answer
47 views

The effect of x() family of functions

So I know that _x() and it's wrappers allow a developer to specify the context of a translated string. I'm pretty clear on "how" to use this function as well as "why" it should be used. I am wondering ...
2
votes
3answers
479 views

Suggestions for i18n plugin

Could you please suggest me good plugins (that you have used) for translating a WordPress website? It should be wonderful if you can add as well a pros and cons list with your suggestion. Thanks in ...
1
vote
1answer
150 views

Where do I find (free) fully-internationalized themes?

I'm trying to find a theme which is fully internationalized. I've perused the list of translation-ready themes in the theme gallery, but each one seems to be missing some little detail here and there. ...
10
votes
2answers
1k views

pass object/JSON to wp_localize_script

I've got a working piece of javascript that contains an object literal. But I need to localize it, and I'm ytrying to figure out how to rewrite it so that I can get wp_localize_script() to accet it, ...
2
votes
1answer
594 views

Plugin Localization

i've just built my first plugin for wp, and even if it's not a great "code poetry" ;) it works as it should. It's a plugin that transform the default wp gallery using the GalleryView 3.0 jquery plugin ...
3
votes
2answers
256 views

How to prevent text modified using gettext filter being stomped (presumably) by updateText() js function within a CPT's edit screen

First a teeny bit of background... I have a custom post type where I'd like to use custom post statuses. Since custom post statuses (stati/status/whatever), have not been fully implemented within the ...
0
votes
3answers
92 views

Should we localize custom-made themes / plugins?

Does anyone know how much do the localization functions from WordPress affect the speed of a website? Do you think it's worth replacing all strings with gettext inside a theme, even if it will only ...