• Resolved adriana97

    (@adriana97)


    Hello, some time before translations stop working, they are shown in string translations in admin but are not translated in th frontend, I’ve updated the plugin to the latest version but didn’t help

    • This topic was modified 1 year, 10 months ago by adriana97.
Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Marcin Kazmierski

    (@marcinkazmierski)

    @adriana97 can you send a php+html code snippet?with translation problem?

    Thread Starter adriana97

    (@adriana97)

    <a href="<?= $lang; ?>/programs" class="see_more">
       <?php _e('?????? ??????', 'my_theme'); ?>
    </a>

    All translations are done with such way, and all stopped working

    Plugin Author Marcin Kazmierski

    (@marcinkazmierski)

    Please check if you have necessary themes and plugins selected in tab (In admin dashboard):
    Languages -> TTfP Settings.

    theme name and text domain in functions.php should be the same.

    or you can wirite own custom filter: ttfp_domains.
    This filter “ttfp_domains” allows plugins and themes (for example in functions.php) to modify list of text domains (unique identifier for retrieving translated strings).
    List of text domains is displayed on “TTfP Settings” page to select them for translation by polylang engine.

    Example:

    add_filter('ttfp_domains', 'custom_ttfp_domains', 10, 1);
    function custom_ttfp_domains(array $domains)
    {
    $domains[] = "my_theme";
    return $domains;
    }

    The plugin has also stopped working for me. Unfortunately, it no longer works on various websites, the plugin used to work.

    Thread Starter adriana97

    (@adriana97)

    It is all set and worked before, but some time before stop working, string translations are shown and translated in the admin bar but are not translated in the frontend.

    Plugin Author Marcin Kazmierski

    (@marcinkazmierski)

    how about my solution above:

    Please check if you have necessary themes and plugins selected in tab (In admin dashboard):
    Languages -> TTfP Settings.

    theme name and text domain in functions.php should be the same.

    or you can wirite own custom filter: ttfp_domains.
    This filter “ttfp_domains” allows plugins and themes (for example in functions.php) to modify list of text domains (unique identifier for retrieving translated strings).
    List of text domains is displayed on “TTfP Settings” page to select them for translation by polylang engine.

    Example:

    add_filter('ttfp_domains', 'custom_ttfp_domains', 10, 1);
    function custom_ttfp_domains(array $domains)
    {
    $domains[] = "my_theme";
    return $domains;
    }

    Thread Starter adriana97

    (@adriana97)

    It is all written and set to right theme, please suggest another solution

    Thread Starter adriana97

    (@adriana97)

    I still need help, please help!

    Plugin Author Marcin Kazmierski

    (@marcinkazmierski)

    please, share your screen from your dashboard with settings:

    Languages -> TTfP Settings.

    I’m experiencing this issue too.

    Polylang and The plugin are updated, but strings in the Front-end are not translating.

    Everything works post-related (Blog and WooCommerce products) are being translated, but the custom string are the same.

    I have checked the TTfP Settings and everything I need is checked. I’ve double-checked the translations themselves and they are there and are saved in the database.

    Here are three screenshots: https://imgur.com/a/QznRtfa
    The strings are translated, the setting for the theme is checked, the front-end shows the blog-post translated to English, but the Button (Which is translated using this plugin) is not being translated.

    Here are the versions for Polylang and this plugin: https://imgur.com/a/fcUOP7s

    I wanted to Rollback but it looks like you’re not using Tags for this plugin: https://imgur.com/a/KCKWWt6

    EDIT: I’ve reverted back to Version 3.2.13
    This fixed the issue for me, for now.
    Comparing the versions and skimming through the main file, I didn’t notice anything that could cause the issue, but still I’m not that familiar of Polylang core functions. One thing I noticed is that you removed all references to domains, could that cause an issue?

    • This reply was modified 1 year, 10 months ago by Henrijs.
    Plugin Author Marcin Kazmierski

    (@marcinkazmierski)

    @hekcis can you show me a code snippet where is “Read more” text displayed / rendered in your theme?

    • theme name and text domain in functions.php should be the same.

    Here: https://imgur.com/a/H28VP9y

    The theme name and text domain are defined in the style.css file as per all themes I’ve seen.

    And note that the previous versions were all working for years.

    • This reply was modified 1 year, 10 months ago by Henrijs.
    Plugin Author Marcin Kazmierski

    (@marcinkazmierski)

    @hekcis Your theme name is: “andriiart” but your text domain name is “andi” so there are different, two solutions to fix it:

    rename text domain in your __() function to “andriiart”

    or you can wirite own custom filter: ttfp_domains.
    This filter “ttfp_domains” allows plugins and themes (for example in functions.php) to modify list of text domains (unique identifier for retrieving translated strings).
    List of text domains is displayed on “TTfP Settings” page to select them for translation by polylang engine.

    Example:

    add_filter('ttfp_domains', 'custom_ttfp_domains', 10, 1);
    function custom_ttfp_domains(array $domains)
    {
    $domains[] = "andi";
    return $domains;
    }

    Plugin Author Marcin Kazmierski

    (@marcinkazmierski)

    @adriana97 @hekcis @gchris2 Do you still have a problem with translations after update to 3.3.3 version?

    Plugin Author Marcin Kazmierski

    (@marcinkazmierski)

    I hope everything is working properly ??

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘String translations stop working’ is closed to new replies.