The localization tag has no wiki summary.
0
votes
1answer
18 views
Multiple textdomains
I have a bunch of plugins. Obviously, they all have their own unique textdomains for internationalization (i18n).
I also have a bunch of files that I include in all my plugins - I throw them all in a ...
5
votes
1answer
51 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', ...
1
vote
1answer
30 views
Text Domains Across Multiple Plugins & Themes
A common situation: a developer builds an entire site, based on WordPress, of course, for a client.
This site includes many custom plugins as well as a custom theme -- maybe another theme or a child ...
3
votes
2answers
111 views
Running WP Cron on specific local time
The scenario is to run insert_post function every midnight (00:00) of local time. Must run daily on weekday.
function add_daily_task(){
if((date('l', time()) != 'Saturday') || (date('l', time()) ...
2
votes
1answer
244 views
Adding another arg to comments_popup_link
what WordPress core functions do I have to modify to change
comments_popup_link('Ni komentarjev', '1 komentar','% komentarjev')
to
comments_popup_link('Ni komentarjev', '1 komentar', **'2 ...
3
votes
1answer
97 views
Localized WordPress is much slower?
I'm using xdebug and webgrind to profile my WordPress installation because it's a bit slow. As there are some 20 plugins activated, I figured xdebug will be able to find the bottleneck.
However, to ...
0
votes
0answers
39 views
I cannot move that sidebar hover to the right [closed]
I've been customizing this theme called WowWay and have tried to mirror it the RTL way, just as my language and custom design would be right-to-left. My problem is with the left sidebar you can see in ...
0
votes
0answers
28 views
How do I override a parent theme's language files with a child theme?
I have a parent theme and a child theme, I would like to override the spanish .mo and .po files in the parent theme (or add them if they are not present in the parent theme) with the es_ES ones in my ...
1
vote
0answers
37 views
Wordpress Localization and Templating
I'm using Smarty Templates for the back-end and Handlebars for the front-end for the plugin that I'm building.
It's only now that I discovered that the localization doesn't work when I declare my ...
4
votes
1answer
42 views
How to i18n slugs for templates?
some templates are chosen from WordPress based on slugs (e.g. category-{slug}.php).
Problem:
How can I use the same template for an i18n'ed slug?
Example:
I have a category-news.php and an english ...
3
votes
1answer
583 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
votes
1answer
159 views
Loading Canvas & WooCommerce translation file in child theme
I'm trying to localise a site (Canvas child theme). I already have the translated .po and .mo files.
I uploaded the WooCommerce translation files to child-theme/woocommerce/i18n/languages/ in the ...
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 ...
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
80 views
Shortcodes, output buffering, and WordPress functions
I have a couple of long forms which I want to output as shortcodes. Shortcode API indicates that
If the shortcode produces a lot of HTML then ob_start can be used to
capture output and convert ...
0
votes
0answers
33 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
0answers
11 views
Customizing existing translation
We'd like to customize some language strings for our Wordpress installation.
The goal is not one of translation but of customization; we want to use vocabulary which is already in use within the ...
1
vote
2answers
955 views
Change locale at runtime?
I wonder, is there a way to change the locale at runtime using WordPress ?
What I mean, is, I have create a custom URL in order to create an XML file with data for integration with another web ...
1
vote
2answers
135 views
Mapping Subdomains in Wordpress to give the appearance of a localised site, best approach?
I am building a classifieds website and am using Wordpress for the functionality of user accounts, Paypal integration, custom taxonomies and of course super flexible custom post types for the ...
0
votes
1answer
134 views
Redirect user on first visit based on geographical location
My project has two versions of the website - American and International. This is not localization, language is same, only content changes. I have created subdomain for the US version and kept ...
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', ...
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 ...
0
votes
1answer
53 views
Do I need to include a textdomain if my theme doesn't support translation?
According to the codex
Themes are required to use theme-slug (or a reasonable facsimile) as textdomain for translation
Does this mean that my theme needs to include a textdomain even if my ...
0
votes
2answers
57 views
How to update the language used by wordpress from a plugin
I'm trying to create a plugin that will be able to translate language used in wordpress.
Here's my current code:
add_action('plugins_loaded', function(){
load_plugin_textdomain('ecom', false, ...
1
vote
1answer
59 views
Strings including html for localisation
How to localise this string (including html) ?
echo "<div class='updated'><p>All options are restored successfully.</p></div>" ;
Is this correct?
echo '<div ...
1
vote
0answers
42 views
What would be the correct way to manage a multiple locale site with Wordpress [closed]
We are a professional company with lots of big clients and have adopted Wordpress 2 years ago to build professionnal grade websites. Being locate in a multiple language country, we have to make our ...
0
votes
1answer
79 views
WordPress Translation to french, at -> à not working
I have a german / french blog. I installed the german WordPress version, so I already had de_DE.mo and de_DE.po in wp-content/languages.
After I realized that the content of a comment's ...
3
votes
4answers
1k 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 ...
3
votes
1answer
71 views
localize inline css
I'm providing a theme setting to define a group of images for the frontpage background. On page load, I want to pick an image at random from this pool.
My approach is to add a line of inline CSS ...
2
votes
1answer
380 views
Change language of comments template
I have a Wordpress installation in italian, I need to keep italian for the admin section but the frontend needs to be in english. The theme is custom so that's ok, but in single posts I'm using ...
4
votes
1answer
140 views
Using plural-only translation of register_post_status() in plugin
tl;dr: My plugin wants to translate strings from core or other plugins that use _n_noop(). How?
This question related to this plugin and is sort of a follow up to this question.
My plugin adds ...
1
vote
2answers
124 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 ...
1
vote
1answer
124 views
Action hook load_textdomain $domain variable
I use the load_textdomain action hook to list all active localization text domains with corresponding path to translation files.
function mo_location( $domain, $mofile ) {
if ( ...
5
votes
2answers
110 views
Can I leave off plugin textdomain for terms used in core?
I've got a plugin that puts post statuses into post type admin menus. I'm in the middle of internationalizing it, and I'm wondering how to handle this situation.
The plugin uses some unique strings ...
1
vote
2answers
522 views
How to set up Wordpress in the intranet?
I have been looking for an answer for long time now and have tried on a few alternatives too, but still I am unable to do it.
What? : I want to set up Wordpress on the intranet in my workplace most ...
-1
votes
1answer
1k views
WPML - How to get posts from category according to language?
My client uses WPML to translate their content posts. I am finalizing the adaptation of their WordPress project, and I am faced with an issue where I can only retrieve posts in the base language, ...
1
vote
3answers
66 views
Plugin for single language localisation
I have found dozens of plugins which helps you to translate a Wordpress website into different languages. However, I cannot find anything that would help me localise Wordpress for different regions, ...
1
vote
2answers
67 views
Two language versions for each article
I have a Wordpress website that needs to be available in two different languages. We have the articles written in both languages already.
I've seen a lot of solutions providing automatic ...
0
votes
1answer
33 views
How to create some sort of word mapping?
I would like to know how I could create a file in which I could associate a word in multiple languages. Let's make an example in XML:
<item key="goodMorning>
<copy lang="en">Good ...
0
votes
1answer
22 views
Localise settings section headline
Assuming i've got a bunch of setting sections. I add these sections to my plugin page in the following way.
$sections = array('notifcations', 'updates');
foreach ($sections as $section)
{
...
0
votes
2answers
108 views
Where to modify translation files by _e()
I am in a rush right now and can't seem to find the answer i"m looking for.
I have a wordpress website that has english and french versions. I see it is using Multi site language switcher to flip ...
0
votes
2answers
57 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 ...
3
votes
1answer
112 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', ...
1
vote
2answers
204 views
Cart66 localization hardcode strings [closed]
I've read the documentation http://cart66.com/cart66lite-documentation.pdf and searched on google but i can't seem to find a location(s) to localize strings (hardcode) for Cart66.
If someone can ...
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
120 views
How-to Change Content with location change?
I have to develop a site using wordpress having thousands of pages. Pages will have the same content but there will be change in the location of the content. For example location will be Sydney, ...
1
vote
2answers
93 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');
?>
...
0
votes
1answer
567 views
Localization: Textdomain of Child teme
I am creating a series of WP child themes which are dependent of a parent theme which I will be using as a framework.
I need to have these themes (both parent and children) localized.
from ...
0
votes
4answers
959 views
Proper way to create / manage gettext (.po, .pot) files?
So I'm trying to figure out how .po and .pot files work, seeing as this is what Wordpress seems to use. But I can't wrap my head around it.
I get that a .pot file is a template file that indicates ...

