The tag has no wiki summary.

learn more… | top users | synonyms (1)

0
votes
1answer
81 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
41 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
0answers
105 views

WordPress translate text in array, on theme options page

I have create an options page for my theme and it works great. I have also setup the localization for my theme and that also works on the whole theme and on the options page, except for the options ...
0
votes
2answers
388 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
86 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
94 views

English version of my site show french strings

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
50 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
193 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
129 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 ...
0
votes
1answer
208 views

How to translate placeholder?

I don't know how to translate text that I use as placeholder for my comment form. I have a function in my function.php file where is defined how comment form should look like. Here is example of that ...
1
vote
1answer
80 views

How to create a theme specific translation of buddypress?

Originally asked on the BuddyPress forums: For distribution purposes I would like to include my customized buddypress language files in my theme alongside my other language files. No matter what I ...
0
votes
1answer
126 views

Website in multiple Language

I want to make Sit in Wordpress in which I want to make content in ENglish and Gujrati Language . WHen Admin create a Page in English at that time Admin want to create content with Gujarati Language. ...
8
votes
2answers
361 views

How to get a localized version of WordPress from a repository?

I'm setting up my basic skeleton / boilerplate I want to use for all wordpress projects. I follow Mark Jaquiths approach and include WP as a submodule. He gets it from ...
7
votes
1answer
639 views

How to integrate get_post_time with date_i18n function?

I have date format and would like to translate to another language with date_i18n function how can I integrate with get_post_time here is my code : $time = get_post_time('F j, Y', ...
0
votes
2answers
74 views

Borrowing of Previously Translated Strings by Child Plugin

Gist: When writing an extension of a plugin, can the extension "borrow" the translations of the req'd parent plugin by using it's textdomain? Scenario: Let's say that there's a parent plugin, whose ...
1
vote
1answer
359 views

Creating a custom multilingual form

I need to create a special form for my website where users cand specify a series of data including some textfields, combo boxes and sliders (from 0 to 100). Also I need this form to be qTranslate ...
2
votes
2answers
131 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
0answers
44 views

translation does not work for 'Home'

Using the birdtips theme, translation of messages generally works, with some minor omissions. When I click on a page, a new line appears below the header image saying Home >> MyPage Now, ...
0
votes
1answer
913 views

month name translation

I use the birdtips theme and it formats the post date as $birdtips_posted = date(__('Y. F j.', 'birdtips'), strtotime(get_the_time("Y-m-d"))); where Y. F j. is already rewritten to reflect my ...
0
votes
1answer
476 views

Theme localization in WPML - .mo file error

We are creating a multi-lingual multi-site (on sub-domains/domain mapping) on Wordpress. We recently bought WPML Wordpress plugin and installed it on the basic language (English) version. Now we are ...
0
votes
1answer
55 views

Archive widget numbers translation?

I've translated my theme successfully. Yet, there are some part that I couldn't find out how to translate them. I've done a tutorial to Translate or convert WordPress date/time/comment number into my ...
0
votes
1answer
77 views

Theme Translation?

I've download a theme called Contango from Wordpress Themes Repository. The theme have a folder called "languagues" and have a file called "contango.po". I could open that file and do translation, but ...
0
votes
1answer
65 views

Does the textdomain have to be the theme's name?

Does a theme's text domain have to be the actual theme name? If you develop WP themes, couldn't you just use the same name (perhaps your business name) for all the theme's you develop, making it ...
0
votes
2answers
291 views

Translate wordpress plugin

Below is a small tutorial of translation from English To German. (You can change the it as your needs). in any plugin file, it has unique name in its header. /* Plugin Name: SampleTut ....... */ ...
0
votes
2answers
60 views

Translate Woosidebars plugin strings

I'm trying to translate Woosidebars strings in french using PoEdit but my french strings are never shown on the front-end. English strings are always displayed, even when I change the language (And I ...
0
votes
2answers
191 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
89 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
357 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
1answer
226 views

transfer from english page to arabic page

i have a button at the top of the website in header.php and that button should transfer me to the arabic version of the page if i am in english page and if i am in english page it should transfer me ...
0
votes
1answer
208 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
132 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
64 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
303 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
289 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
81 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
2k 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
310 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
364 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 ...
4
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
57 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
106 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
2k 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
120 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?

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
7k 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
89 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
126 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
60 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
173 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
49 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 ...