• Hi,

    i partially translated the “wordpress-mobile-pack.pot” and would like to apply the translation. But unfortunately I don’t know how.

    No matter what I do, my mobile site stays untranslated. I tried the following:

    – read the readme
    – looked for hints in wordpress-mobile-pack.pot
    – google some gettext info

    – just translated and re-uploaded wordpress-mobile-pack.pot
    – renamed it to wordpress-mobile-pack.de_DE.po
    – renamed it to wordpress-mobile-pack.po
    – renamed it to wordpress-mobile-pack.mo

    – alternatively put those files into the active theme’s folder (mobile_pack_base).

    Maybe this is a more general lack of knowledge, concerning gettext. But nevertheless it would be nice if a how-to were included in the WordPress Mobile Pack’s readme file.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter Gwythyr

    (@gwythyr)

    Now I also tried

    wordpress-mobile-pack-de_DE.po

    To no avail.

    Plugin Contributor AndreaTrasatti

    (@andreatrasatti)

    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.

    Thread Starter Gwythyr

    (@gwythyr)

    Thank you. I’ll check it out.

    Thread Starter Gwythyr

    (@gwythyr)

    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

    Thread Starter Gwythyr

    (@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.

    Thread Starter Gwythyr

    (@gwythyr)

    Finally, could someone tell me how to change the date/time format for the plugin? Thanks in advance.

    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

    Thread Starter Gwythyr

    (@gwythyr)

    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

    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! πŸ˜€

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘[Plugin: WordPress Mobile Pack] How to apply Translation’ is closed to new replies.