![]() ![]() If you need to translate views from the root, there is an APP_TD constant to use and translation files should be inside the resources/languages/$locale/$domain.mo where $locale is for example ru_RU and $domain is the APP_TD environment variable defined inside the. So in myplugin.php I load the following to tell WP where my language files are (after actually. Views stored inside the application root should only be used for shared views -> mainly for administration use for example. So lets do this step by step as multiple tutorials show me to. As your catalog path do not reference the views directory of the application root, I think it should not work. I'm not sure how gettext translations is working, but I think it uses the path defined with the catalogue to recognize strings in your files. Can you try inside a theme view instead ? ![]() Looking at the video, you defined your string to translate inside a view from the application root. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |