The tag has no wiki summary.

learn more… | top users | synonyms (1)

0
votes
2answers
293 views

How to define theme translation file?

If I have WordPress installation in English, then I can define my theme translation file in the wp-config.php file with following: define('WPLANG', 'sv_SE'); But if I have WordPress installed in ...
2
votes
2answers
92 views

Should i use _n for pronouns in translation?

I use _x() now! I accepted the answer just because he understood right and was first. So don't get confused! $like_me_on = __('Like me on %s', 'my-plugin'); $like_us_on = __('Like us on %s', ...
3
votes
1answer
490 views

Overwrite textdomain of plugins by default - Lost Translation

Wordpress is awesome, but there is something that is driving me crazy. Whenever a plugin or a theme is updated, all files are deleted and replaced. So if I have custom code or a translation in one ...
0
votes
2answers
287 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
1answer
275 views

WPML icl_register_string() throws fatal error but works

I'm helping someone with a custom plugin and they need it to be WPML compatible. Using the method from WPML I was able to register a string in WPML and output it on the other end. However, when the ...
1
vote
0answers
150 views

Wordpress translation loading english file

I am trying to translate a wordpress site but whatever I do the english file is always loaded. In functions.php I've set load_theme_textdomain('twentyeleven', get_template_directory() . ...
0
votes
1answer
68 views

Display Today's date outside the loop?

Is there any way to display the Today's date outside any loop/post using WordPress date/time function instead of using the PHP date() function? I'm using the PHP date() function but it does not ...
3
votes
2answers
345 views

What is the purpose of adding a .po file?

I added the below code to the function.php of a .po file and finished localization and edited the webconfig.php to add Arabic language but nothing happened. I want to know what should happen. Will the ...
0
votes
1answer
400 views

Using Variable in WordPress Translate Functions

From everything I've read, you should only translate text strings via the WP translation functions like _e() or __(). However, I need a way to translate content submitted via a form. Is there some ...
2
votes
1answer
98 views

Making a configurable field translatable

I'm working on a theme right now that gives the admin the possibility to set different texts that are used within the theme, by configuring them in the admin panel (e.g. the text that is displayed, ...
0
votes
1answer
3k views

Custom strings for translation using Polylang plugin

I'm using WP 3.5 and Polylang 0.9.8 plugin to make translations to different languages. All is good, and the plugin works fine, but now I'm facing a problem -- I need to translate custom strings, for ...
0
votes
2answers
371 views

wp_paginate not working in combination with WPML plugin?

I have installed the wp_paginate plugin and the WPML plugin. Now I have set 'Dutch' to the basic language and added 'English' as the second language. I set the Blog posts to display to: All posts ...
1
vote
2answers
443 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 ...
5
votes
1answer
3k views

How to make a WordPress plugin translation ready?

What is the best way create a plugin that is translation ready? It doesn't have to be translated from the beginning but it has to be easily translatable so fellow developers from different cultures ...
1
vote
2answers
62 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
115 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 ...
7
votes
1answer
3k 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). ...
1
vote
0answers
129 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 ...
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 ...
5
votes
1answer
9k 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 ...
1
vote
2answers
103 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
145 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 ...
1
vote
1answer
65 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). ...
1
vote
1answer
217 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 ...
2
votes
1answer
52 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 ...
1
vote
2answers
218 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
0answers
14 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
42 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
278 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 ...
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 ...
0
votes
1answer
236 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"> ...
6
votes
1answer
178 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
276 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 ...
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
325 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 ...
3
votes
1answer
168 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', ...
4
votes
1answer
144 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 ...
7
votes
5answers
8k 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 ...
0
votes
1answer
669 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
199 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
439 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
143 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
1answer
159 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
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 ...
0
votes
1answer
461 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 ...
3
votes
2answers
277 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
216 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 ...