• Resolved bmontgomery

    (@bmontgomery)


    Hello

    I have the translation po file for french, it’s fully translated.
    I was able to make some fixes – by the way I can send you the file if you want because there are some errors in it.
    But I have a problem with one string that’s not in this po file.
    The string is present in pot file, so I created a new po file from the pot file.
    My problem is:

    – I have a po file with 100% of the strings translated, but one string missing
    – I have another po file with this one string ok, but only 1% of the strings translated

    What can I do ? Isn’t it possible to add this string to the original po file ?

    Thanks for your help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi, if you could send me a link where i could download the updated translation file i would appreciate it.

    As for the translations, if you are using plugin like Loco Translate then you should be able to edit the file PO file, add there some new phrases, translate them and generate a MO file. If you will have 2 PO files for a single plugin then i cannot tell for sure but i am pretty sure it will not work.

    BTW. Your custom translation file you should save in wp-content/languages/plugins folder so it will not be overwritten on update.

    Thread Starter bmontgomery

    (@bmontgomery)

    Hello and thanks for your answer.
    Yes actually I know that I cannot use 2 po files (I was just explaining you that I didn’t know what file to use, or better, I wanted to use the more translated file, but in this file I had some missing translations).
    I will send you the fixed translated file once I complete it.
    In the meantime, I don’t understand what happened but the translation file doesn’t seem to be “working” anymore…
    I added some code in adverts_init, just to see if the translation file was correctly loaded, and it is.
    But for some reason, the strings are not translated, for example in manage.php.

    Any idea of what could be the problem ?

    Thanks

    Thread Starter bmontgomery

    (@bmontgomery)

    Actually I think I know what the problem is.
    The translation not “working” appears on the pages that I use with custom templates.
    For custome templates, I creted a plugin.
    It’s working fine and my pages appears the way I want, except translations.
    How can I do ?
    I tried to change _e(“View”, “adverts”) for _e(“View”, “my-plugin-name”) but it didn’t work…

    Could you please help me ?

    Thanks a lot.

    Thread Starter bmontgomery

    (@bmontgomery)

    Well, finally it seems my problem has nothing to see with overriding templates:
    – I use custom template for manage.php file and my page displays texte in english
    – I also use custom template for manage-edit.php, and this page correctly displays in french…
    So really, I don’t understand.

    Any idea of what could be wrong ?

    Plugin Author Greg Winiarski

    (@gwin)

    Hi, hmm i think it would be best to start with leaving just one translation file to make sure you know which file is being used, then if you use Loco Translate or some other plugin like that generate the .mo file.

    If this will not help i would appreciate if you would paste a link to your website here so i could take a look at the phrases on site.

    Thread Starter bmontgomery

    (@bmontgomery)

    I only have one translation file, located in wp-content/languages/pmpro

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Translation file issue’ is closed to new replies.