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've changed a file wp-content/languages/pl_PL.po

#: bfa_header.php
msgid "notice"
msgstr "napis"

msgid "Online Information Website"
msgstr "Internetowy Portal Informacyjny"

msgid "something"
msgstr "coś"

I've added the second pair. It works for another language, but doesn't work for this one. All other messages are working. What might be the problem?

share|improve this question
    
When you say 'it works for another language', what do you mean, specifically? –  tnorthcutt Aug 26 '10 at 13:22
    
It means that i have .po files for multiple languages and translation doesn't show up only for one of them. –  naugtur Aug 27 '10 at 9:31

1 Answer 1

up vote 2 down vote accepted

Looks like you may not be able to just add a pair to your .po file, without first adding it to the wordpress.pot file: http://codex.wordpress.org/Translating_WordPress#gettext_files. You'll also need to compile your .po file into a .mo (Machine Object) file in order for your changes to take effect.

I'm not certain that will work, but it should be a good start.

share|improve this answer
    
Your post helped me find the problem. I didn't recompile the .mo file :) Your link covers that too. Expand the answer a bit please. I'll mark it accepted already –  naugtur Aug 27 '10 at 9:50
    
Great, glad it helped. I edited accordingly. –  tnorthcutt Aug 27 '10 at 13:26
1  
without first adding it to the wordpress.pot --- is wrong. Just you need a .po file and then have it compiled to .mo. Though its a very old question but I am leaving the comment so that viewers can be helped who dont have a POT file but have a PO of another language can still move on. And also, you'd need a language switcher to trigger showing this new language (qTranslate plugin can be used for this too). –  Lenin Jan 19 '13 at 16:05

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.