Home Forums WoodMart support forum Admin Translations

Admin Translations

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #466402

    dido76bg
    Participant

    Admin panel Theme Settings section translations are not working after update!

    Attachments:
    You must be logged in to view attached files.
    #466404

    Luke Nielsen
    Keymaster

    Hello,

    I would like to request temporary admin access to the website to take a better look at the issue there.

    Looking forward to collaborating with you!

    Kind Regards

    #466405

    dido76bg
    Participant

    Hi!

    I am testing on localhost.
    The problem is in – inc\theme-setup.php.
    If I subtract the following lines:
    $lang_dir = WOODMART_THEMEROOT . ‘/languages’;
    load_theme_textdomain( ‘woodmart’, $lang_dir );
    from that function:
    if( ! function_exists( ‘woodmart_theme_setup’ ) ) { …
    and put them on the top of it (as in previous theme versions), than everything works fine.

    #466410

    Luke Nielsen
    Keymaster

    Can you let me know which plugin you used to translate the Theme settings?

    Kind Regards

    #466413

    dido76bg
    Participant

    No plugins in admin for string translations!

    I use only Poedit!

    The language file is in theme language dir. (woodmart\languages\bg_BG).

    The file is updated to the latest theme version 7.2.4.

    Regards

    #466421

    Luke Nielsen
    Keymaster

    Hello,

    The thing is that after updating the translation in the themes\woodmart\languages path can be lost. I suggest you save your translations in the website_root/wp-content/languages/themes/ path, so after the update, they will be active and the update will not affect them.

    Kind Regards

    #466461

    dido76bg
    Participant

    I know all that!

    All the files are at the place they should be.

    I will make an update to the latest versions of everything at an online site and I will give you access so you can see it all by yourself.

    #466956

    Luke Nielsen
    Keymaster

    Hello,

    Ok, but I don’t see that the “Poedit” plugin installed on your website so how the translation should work without it?

    Looking forward to hearing back from you!

    Kind Regards

    #466979

    dido76bg
    Participant

    Hi!

    Why “Poedit” should be installed on the website?
    It has nothing to do with it.
    The BG language is installed (see woodmart\languages dir).
    You should switch to “Site default language” to see what I am trying to explain.
    Also look at woodmart\inc\theme-setup.php file in version 7.2.3 and in v. 7.2.4 (I have wrote it above).
    A have made the changes on my local host and it works perfect.

    #467074

    Luke Nielsen
    Keymaster

    Hello,

    Previously this function was called incorrectly, but now we have moved it to the correct place recommended by WordPress developers: https://developer.wordpress.org/reference/functions/load_theme_textdomain/

    I don’t see that there are any other translations in the admin panel:

    https://monosnap.com/file/JV0N90IF4SkSAd4acfhvtibMCZQLR9

    https://monosnap.com/file/YzQeMkcKYfODxSNiPMDdjcYtiimguL

    For example, the default WordPress settings that must be translated or, for example, the translation of the WooCommerce plugin, also do not work or are disabled somewhere.

    You can check with the default themes (Storefront, Twenty Twenty-one) and there this function is called in the same way as in our theme. Therefore, let the default translations from WordPress work first, and then check whether ours will work or not.

    Kind Regards

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