The translation tag has no wiki summary.
4
votes
1answer
45 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
57 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
42 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 ...
1
vote
1answer
23 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
24 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
62 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
47 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
27 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
42 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
24 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
1answer
77 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
0answers
31 views
Backend in English and Frontend in Defined Language
I need to translate just dates and days of the week to the custom language in the frontend, but keep the backend admin panel in English. Can I simply remove all unnecessary strings from the default ...
0
votes
2answers
26 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
0answers
24 views
Looking for a translation plugin for WordPress (see requirements inside) [closed]
Generally, I want a plugin, that satisfies the following criteria:
It allows to have translated versions of a post or a page, but the one is not required.
It allows to translate category names.
It ...
0
votes
0answers
24 views
Using _e() function and file.po
I want to translate some phrases in my wordpress template, and I use es_ES.po to translate from english to spanish with _e() function. Works fine but the question I have is:
Is there any way to ...
0
votes
0answers
38 views
Change language using “if” and “else”
I'm new with WP. I did a site and I translated it in two languages.
How can I change a specific word like this:
<?php esc_html_e( 'I nostri corsi', '' ); ?>
This is correct in Italian, but ...
0
votes
2answers
68 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
71 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
117 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
80 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
63 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
53 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
44 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
114 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
96 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 ...
0
votes
0answers
43 views
Persistently change/replace texts/strings in a theme/plugin
right now, I am using a plugin that gets updated frequently. I don't like some of the wording that comes with some of the plugins featues (messages that are displayed to the users). So I am trying to ...
2
votes
1answer
32 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
258 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
122 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
123 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 ...
3
votes
1answer
567 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
37 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
54 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 ...
4
votes
1answer
166 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
70 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 ...
2
votes
1answer
550 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 ...
0
votes
1answer
1k 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 ...
0
votes
2answers
56 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
64 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
36 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
83 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
45 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
103 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
13 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
36 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 ...
1
vote
1answer
113 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 ...
0
votes
1answer
277 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
756 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 ...
-1
votes
2answers
138 views
How to make other language version of WP site [closed]
I've seen various automatic translate plugins for Wordpress site, Google also provides good translate mechanism for any page of your site, but what I need is my site (non-English, 13 static pages) - ...
0
votes
1answer
139 views
Transposh Japanese language transaltion not showing up
If you go to http://bit.ly/QdBvJ9 (link obscured so this isnt the first thing to show up when the new site is searched for) and click on japanese in the top left corner, it shows the japanese page ...
