Hi,
the .po file is a text file, but in order to make the plugin apply the translation you have to generate the .mo file which is a binary file. I used poedit for some testing I did in the past: http://codex.wordpress.org/Translating_WordPress#Translating_With_Poedit
If you want you can send me your .mo file and I will generate the .po for you.
Thank you. I’ll check it out.
Okay, I used Poedit to translate the whole file. Got a .mo-file and put it into the plugin’s direcotory:
wp-content/plugins/wordpress-mobile-pack/
wordpress-mobile-pack-de_DE.mo
wordpress-mobile-pack-de_DE.po
In wordpress-mobile-pack.php I set define ('WPLANG', 'de_DE');
Nothing happens. But I have to admit, Poedit spat out a lot of nplurals errors, so I commented out the references:
#"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
and
#msgid "You have one post"
#msgid_plural "You have %d posts"
#msgid "and one page"
#msgid_plural "and %d pages"
etc.
Here are my source files:
http://www.mediafire.com/?s354r4tdtocsy3h
The translations are far from perfect but I’d like to publish them as soon as the problems are resolved.
Any help is appreciated,
Gwythyr
Solved
Since the .pot file was called wordpress-mobile-pack, I assumed the .mo file was to be named accordingly.
Instead I had to use wpmp-de_DE.mo, the $domain beeing wpmp. So wpmp-de_DE.mo does the trick.
Plurals are still buggy.
Finally, could someone tell me how to change the date/time format for the plugin? Thanks in advance.
Tom
(@earthoria)
Hi,
I’ve been having all sorts of problems trying to incorporate some Spanish language translation I’ve done into this plugin. I have read the above post, but I’m still unclear about the following:
1. What to name the .mo file
2. Whether I need a new .po file as well, and what I should name that
2. Where I define the language for the plugin – and add define ('WPLANG', 'es_ES');
Andrea, could you please just add these few instructions to this thread?
Thank you very much,
Tom
Hi,
my guesswork led me to the following:
1.
/wp-content/plugins/wordpress-mobile-pack/wpmp-es_ES.mo
2. still unsure. i just put it in the plugin’s root folder as well:
/wp-content/plugins/wordpress-mobile-pack/wpmp-es_ES.po
3. as far as i can tell ('WPLANG', 'es_ES'); does not need to be defined, because it’s already done in the wordpress base config.
hope, that helps,
Gwythyr
Tom
(@earthoria)
Thanks Gwythyr…I have been through every step much like you did I think!
In the end it seems you’re right, I didn’t actually need to define the language, and although I can’t see any language defined in the source of my mobile site’s code, it seems to just pick up the language files that are in /plugins/wordpress-mobile-pack/
Thanks for the help π
Hello,
Does anyone know how to remove the “Previous Post” and “Next Post” links
on my WordPress Mobile Pack site?
Thanks for your help,
Kathy π
@earthoria
Hey can I have your translation files? I was to start translating into spanish until I found this thread, so figured that I didn’t need to reinvent the wheel.
can you upload them somewhere?, and also, are these files up to date? I’m willing to help to bring them up to date to the last release.
Gracias! π