The l10n tag has no wiki summary.
0
votes
1answer
70 views
How to keep a variable in COOKIE or GET query string?
I'm working on adding a language variable (locale) in my custom WordPress theme. I made the translation working by adding ?l=en_US to the URL. I would like to add the parameter into COOKIE, such that ...
1
vote
2answers
99 views
How to prepare SimplePie_Item's get_date() for l10n?
I'm trying to improve the localization of the Bones theme. On the admin side it provides an RSS widget which uses the following code:
<?php
echo $item->get_date('j F Y @ g:i a');
?>
...
5
votes
1answer
128 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
0answers
57 views
Singular name Plugin localization
I'm trying to localize the singular name of a custom post type.
...
'singular_name' => __('key', 'plugindomain')
...
I created a .po and compiled it as .mo. I also loaded the translation using ...
1
vote
1answer
294 views
Multisite WPLANG won't save
I have a multisite workpress install (v 3.3.2). I'm trying to save the WPLANG field but nothing happens. I get the confirmation message "Site options updated", but the field is still blank. And ...
3
votes
1answer
167 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
1answer
118 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
2answers
159 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 ...
3
votes
1answer
66 views
WordPress localization
In WordPress localization files (.po), does php map files by the line number eg. comments.php:60 or msgid msgid "<span class=\"meta-nav\">←</span> Older Comments".
So basically, ...
2
votes
1answer
530 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
189 views
Localizing strings that come from outside of plugin?
Plugin queries remote API and under certain circumstances (mostly errors) displays textual messages from API responses. All messages in API responses are in English, but since they are more or less ...