Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1190486

    Hi,
    how can I translate the ‘Reloading the page’ message once the user clicks to save cookie settings?
    Thanks,
    Andrius

    #1190488

    Sveikas Andriu!

    Please use this plugin to translate untranslated strings – https://wordpress.org/plugins/loco-translate/ :)

    Cheers!
    Yigit

    #1190491

    Hi @yigit,
    thanks for the suggestion. However, I’m trying to minimize the number of plugins on the site and instead of Loco Translate I’ve opted for editing the .po files with POedit. Why are these strings not to be found either in .po or .pot files of Enfold? Is this something that’s going to be fixed soon?
    Thanks,
    Andrius

    #1190494

    Hi,

    Please make sure to click “update” button in Poedit software. That should update the file and add missing strings. You should be able to find it after updating the file :)

    Best regards,
    Yigit

    #1190497

    @yigit,
    I’ve just downloaded the enfold.pot file from /themes/enfold/lang/ and used it to update the .po file I was editing. The strings are still not found in the .po file. I’m using Enfold version 4.7.3

    A.

    #1191751

    Hi,

    Thank you for the update.

    Looks like the theme has no translations for the Lithuanian (Lithuania) language yet. There’s no lt_LT.po file in the lang folder. Did you create one yourself? If you did, you can drop the following snippet anywhere in the .po file.

    #: includes/helper-privacy.php:1686
    msgid "To reflect your cookie selections we need to reload the page."
    msgstr "ADD TRANSLATIONS HERE"
    

    Afterwards, open the lang file in the PoEdit software, add the translations if you haven’t already, then update it to generate the .mo file with the new translations.

    You can also load the language file from the child theme to avoid losing the translations during a theme update.

    // https://kriesi.at/documentation/enfold/translation/#child-theme-translations

    Best regards,
    Ismael

    #1191763

    Hi @ismael,
    yes, I have set up the lt_LT files myself using a child theme solution.

    There’s one more string that needs to be translated as well ‘Reloading the page’. Please see attached screenshot. Can you please send me the corresponding code snippet to be added to the .po file?

    #1192086

    Hi!

    Thank you for following up.

    You can add this code anywhere in the .po file.

    #: includes/helper-privacy.php:1691
    msgid "Reloading the page"
    msgstr "Puslapio perkrovimas"
    

    Adjust the translations if necessary.

    Best regards,
    Ismael

    #1194748

    Thanks guys. It works now. Related to this, I can’t find the Share on WhatsApp string anywhere in the .PO(T) files. Could you please share the .po code for this string as well?

    #1195914

    Hi,

    Have you tried looking for “Share on” string or text in the language file? The social app name will just be appended to it.

    Best regards,
    Ismael

    #1198003

    Hi @ismael, yes I’ve tried it. I have the ‘Share on’ string translated and it shows correctly for all services except WhatsApp. ‘Share on WhatsApp’ seems to be a separate string that’s not in the .po file.

    #1198227

    Hi,

    Ah yes, you’re right. Looks like it has its own label specified in the includes > helper-social-media.php file.

    'label'			=> __( 'Share on WhatsApp', 'avia_framework' ) 
    

    Try to add this in the .po file.

    #: includes/helper-social-media.php:292
    msgid "Share on WhatsApp"
    msgstr "Dalintis per WhatsApp"
    

    Best regards,
    Ismael

Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.