Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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 <time>-element wasn't translated, I googled and downloaded fr_FR.mo and fr_FR.po and put them in wp-content/languages. Now everything I tested works, except that 'at' doesn't get translated to 'à' ( I get: 3. février 2013 at 17:00).

So I opened fr_FR.po to see whether there is a translation available. I found this:

#. translators: 1: date, 2: time
#: wp-includes/comment-template.php:1367
msgid "%1$s at %2$s"
msgstr "%1$s à %2$s"

Which seems alright to me. So to make sure, I replaced the existing mo file with this. Still it does not work.

How do I make it translate 'at' to 'à'?

I'm using WPML.

share|improve this question
    
How do you replaced the existing mo file? And why don't you use WPML's builtin string translation which is simpler than to dance with gettext? –  Max Yudin Feb 3 '13 at 19:05
    
Because those strings don't appear within WPML. They should, I guess? I replaced it by overwriting the old file. –  Mathias Feb 4 '13 at 6:34
    
I mean how do you created it. gettext or poEdit? And don't you make a muddle of .po and .mo? –  Max Yudin Feb 4 '13 at 7:51
add comment

1 Answer

up vote 1 down vote accepted

No matter what languages your site are in, when using WPML you should never install a localised WordPress version, instead you should just install the default one (i.e. US English).

Also make sure that you didn't change the LANG definition in your wp-config.php file, so that should read: define ('WPLANG', '');

Then you need to make sure that all the strings are in English (go to WPML->String Translation, scroll down to the bottom where you can set the language of the strings). After that rescan your theme for strings and you will be able to add translations for "at" in both German and French.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.