Home › Forums › WoodMart support forum › Admin Translations
Admin Translations
- This topic has 9 replies, 2 voices, and was last updated 1 year, 7 months ago by Luke Nielsen.
-
AuthorPosts
-
May 12, 2023 at 11:26 am #466402
dido76bgParticipantAdmin panel Theme Settings section translations are not working after update!
Attachments:
You must be logged in to view attached files.May 12, 2023 at 11:31 am #466404
Luke NielsenKeymasterHello,
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
May 12, 2023 at 11:44 am #466405
dido76bgParticipantHi!
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.May 12, 2023 at 12:05 pm #466410
Luke NielsenKeymasterCan you let me know which plugin you used to translate the Theme settings?
Kind Regards
May 12, 2023 at 12:13 pm #466413
dido76bgParticipantNo 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
May 12, 2023 at 12:33 pm #466421
Luke NielsenKeymasterHello,
The thing is that after updating the translation in the
themes\woodmart\languages
path can be lost. I suggest you save your translations in thewebsite_root/wp-content/languages/themes/
path, so after the update, they will be active and the update will not affect them.Kind Regards
May 12, 2023 at 2:17 pm #466461
dido76bgParticipantI 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.
May 15, 2023 at 12:13 pm #466956
Luke NielsenKeymasterHello,
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
May 15, 2023 at 1:24 pm #466979
dido76bgParticipantHi!
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.May 15, 2023 at 5:31 pm #467074
Luke NielsenKeymasterHello,
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
-
AuthorPosts
- You must be logged in to create new topics. Login / Register