Want to update translation – where is the .pot-file?

Solved12 replies4 participantsUpdated by Eva Kemp

Full guideHow to translate a WooCommerce store
  • Avatar: Royalty
    Royalty
    Participant

    Hello,
    in your documentation, you write: “The translation file default.pot you can find in Languages_PO_files folder in theme package”. But it isn’t there. Can I somewhere download it? Because search says that there is no .pot file in the whole theme package at all…?

    12 Answers

    Avatar: Brian Johnson
    Brian Johnson
    Member

    Hello

    We have sent you this folder via e-mail.
    Please check it.

    With best regards
    Brian Johnson

    Avatar: Royalty
    Royalty
    Participant

    Dear Brian,
    thank you, but the problem is that in this folder there are only the .po and the .mo file. But I read everywhere that I need the default.pot to update the translation and this file is missing.

    Avatar: Robert Hall
    Robert Hall
    Participant

    Hello,

    As it should be. You need translate theme with default.po file.

    Regards,
    Robert Hall.

    Avatar: Royalty
    Royalty
    Participant

    Hello,
    and how can I update the theme without losing my translation and at the same time updating the strings? In your documentation you write that you need the .pot file and you link to this page (http://betterwp.net/wordpress-tips/create-pot-file-using-poedit./) where is written:
    “Another task of a translator is to update a .po file whenever a particular project has just been updated with more strings to translate, or even obsolete ones. To update your .po file, again navigate to Catalog, but this time choose ‘Update from POT file’, and then choose the .pot file from which you would like to get updated contents. Next, translate the project as you would normally do and save all changes.

    Avatar: Eva
    Eva Kemp
    Participant

    Hello,

    Have you already translated some part of the content?
    You need translate the theme as described in our documentation:
    https://www.8theme.com/demo/docs/royal/#!/1_how_to_translate
    Edit default.po file and then save it as “es_ES.po”, so with the prefix of your language.

    Regards,
    Eva Kemp.

    Avatar: Royalty
    Royalty
    Participant

    I quote your documentation:

    The translation file default.pot you can find in Languages_PO_files folder in theme package

    -> it is NOT there

    Read here how to do it right.

    –> refers to a page that says:

    Updating a .po (and .mo) file

    Another task of a translator is to update a .po file whenever a particular project has just been updated with more strings to translate, or even obsolete ones. To update your .po file, again navigate to Catalog, but this time choose ‘Update from POT file’, and then choose the .pot file from which you would like to get updated contents. Next, translate the project as you would normally do and save all changes.

    Of course, I know how to edit the .po file but I definitely need the POT file to update the strings after a theme update!

    Avatar: Eva
    Eva Kemp
    Participant

    Hello,

    Please provide us with FTP and wp-admin panel credentials in Private Content.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: Royalty
    Royalty
    Participant

    My site is not yet online, but whatever you would like to know, I can tell you or send screenshots. I know, that I have to edit the .po file. But when you add new strings, I need the .pot file to use poedit’s function “Update from .pot-fil”…So, what would you like to check?

    Avatar: Eva
    Eva Kemp
    Participant

    Hello,

    You need edit default.po file in wp-content/themes/royal/languages directory. It can be named default.po or default.pot, there is no difference.

    Regards,
    Eva Kemp.

    Avatar: Royalty
    Royalty
    Participant

    Yes, as mentioned a serveral times: I know that I have to edit the .po file and not the .pot. But for updating the strings after an update (there may be new strings), I need the .pot file. That is what is written on this page (http://betterwp.net/wordpress-tips/create-pot-file-using-poedit./), that you refer to in your documentation.

    But if you say that it is the same, maybe I could rename the .po to .pot and then use the “update from .pot-file” in poedit (this works only with .pot files!).

    Or what way would you suggest to keep my translations up to date, means to scan for new strings after an update?

    Avatar: Royalty
    Royalty
    Participant

    I could solve this by my own and with the help of google. You can close this topic.

    Avatar: Eva
    Eva Kemp
    Participant

    Hello,

    We’re glad you managed to find the solution.

    Have a nice day.

    Regards,
    Eva Kemp.

The issue related to '‘Want to update translation – where is the .pot-file?’' has been successfully resolved, and the topic is now closed for further responses