Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author iova.mihai

    (@iovamihai)

    Hey @villdaniel,

    I have just checked our base translation file and the word “Inherit” is present.

    I don’t have much experience with how Loco Translate works, but if it’s similar to how Poedit works, you would just need to update the strings from the base translation file from the plugin.

    You can find this file in the root folder of the plugin > translations > slicewp.po.

    I hope this helps! Please let me know how it goes.

    Thank you and best wishes,

    Mihai

    Thread Starter villdaniel

    (@villdaniel)

    Hi Mihai,

    This is very odd because “inherit” cannot be found in the .po file. https://www.dropbox.com/s/lbsprqnitoarl4n/inherit-hu-missing.PNG?dl=0

    But I can find the word in other language files that are provided by default.

    What am I doing wrong?

    Unfortunately changing to Poedit is not an ideal solution because other plugins are translated with Loco Translate.

    Plugin Author iova.mihai

    (@iovamihai)

    Hey @villdaniel,

    Tough one to figure out I’m afraid. As I don’t have much experience with Loco Translate, I can’t say for sure what is happening behind the scenes.

    However, I do have a hunch that the source translation file is not the one provided by us, but one that was created with Loco Translate, which could be incomplete.

    What I recommend is checking the “Template file” value from Loco Translate > Plugins > SliceWP > Advanced. I believe on your site this value is linked to a translation source file created by Loco Translate (can’t be sure though).

    I recommend setting the “Template file” to “translations/slicewp.po”. This way, Loco Translate will use the .po file from our plugin, which contains all strings.

    Once you do this and save the setting, go to the Hungarian translation and click the Sync button to sync the translations with the template file. Theoretically, this should import all strings into the Hungarian translation file.

    Important disclaimer: before doing all of these, please check your current settings and remember them. Also do a back-up of the current translation files. As I mentioned previously, I don’t have much experience with Loco Translate and the above recommendations are based on Loco Translate’s documentation and what I understood from them.

    Thank you and best wishes,

    Mihai

    Thread Starter villdaniel

    (@villdaniel)

    Hi Mihai,

    I think I found what can be the problem but I don’t know the solution.

    In the default .po file “inherit” is under the Multi-level affiliates add-on. But add-ons are gone as separate plugins.

    PHP link in the original slicewp.po file:

    #: slicewp-add-on-multi-level-affiliates/includes/base/functions.php:18

    msgid “Inherit”

    msgstr “”

    Without the add-ons there is no “slicewp-add-on-multi-level-affiliates” folder.

    I tried to modify the SliceWP Pro PO file with the following:

    #: add-ons/multi-level-affiliates/includes/base/functions.php:18

    msgid “Inherit”

    msgstr “Másodvonal”

    Unfortunately it is not working even though the php link seems good.

    Do you have any idea from here?

    Daniel

    • This reply was modified 1 year, 10 months ago by villdaniel.
    Thread Starter villdaniel

    (@villdaniel)

    Hi Mihai,

    Just want to let you know that it works now.

    As you wrote, Loco Translate generated a custom po file and didn’t used the default from the plugin’s folder.

    The solution if someone has the same problem with Loco Translate:

    1. Generate the template file first
    2. Download the template file
    3. Upload the template file as a {locale} file
    4. Start to translate the uploaded {locale} file
    • This reply was modified 1 year, 10 months ago by villdaniel.
    Plugin Author iova.mihai

    (@iovamihai)

    Hey @villdaniel,

    Awesome! I’m happy to hear that it’s working. ??

    Also, thank you for showcasing the step-by-step solution for this particular topic!

    Best wishes,

    Mihai

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Translation missing “inherit” purchase type’ is closed to new replies.