jsnaxx
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Kadence] Translating into PolishHi,
I don’t have any code. It’s nor working. These are languages files (.mo and .po). The kadence theme supports some languages like German or French but not Polish. In case of German there are de_DE.mo and de_DE.po files in the folder wp-content->theme->kadence>lanugages. So every theme update doesn’t affect these languages files for German.
I created pl_PL.mo and pl_PL.po files in the same folder for languages and it works great but only till the next update. Once updated these pl_PL files disappear as they are not “permanent” part of the theme (as this is the case with the German language for example).
So I have created a child theme (in child theme there are only two files: functions. php ans styles.css. I added there a folder: languages with translated pl-PL.mo and .po files. But the theme is not reading it. I think I should add a snippet of code to functions.php which will basically tell the theme to load these language files from the child theme but I can’t code. Is there anybody on your site who knows how to integrate these language files into the child theme?
Thanks!
- This reply was modified 2 years, 5 months ago by jsnaxx.
Forum: Themes and Templates
In reply to: [Kadence] Translating into PolishHey Hannah,
Thanks for your feedback. I just recently uploaded your child theme.
Now the theme folder contains two folders: kadence child and kadence.The kadence child folder contains only functions.php and style.css files. So in order to add my translated .mo and .po files to my child theme I copied the languages folder from the main theme kadence wp-content->themes->kadence->languages (with added pl_Pl.po and pl_PL.mo files) into the child theme.
The child theme folder has now functions.php, style.css and “languages” folder copied from the above path. But this is not working. When I saw a new theme update message in the dashborad and updated the theme I lost my translation again.
Do I need to modify the functions.php file to make this change (adding languages folder to the child theme) effective or did I something wrong?
Many thanks!