Hello.
I want to translate (localize) Focus theme, but I don’t have any language files in /languages folder.
Just a readme.txt file with a couple of links:
Place your theme language files in this directory. Please visit the following links to learn more about translating WordPress themes: http://codex.wordpress.org/Translating_WordPress http://codex.wordpress.org/Function_Reference/load_theme_textdomain
Where can I get English .pot or .po files?
(I am familiar with poedit etc, I just need a language file to start with.)
Thanks.
Hi Slobodan
Focus is unfortunately without the necessary files at the moment. Let me create a .pot file for you quickly.
Here we go:
https://siteorigin.com/wp-content/uploads/2015/01/focus.pot
The safe place to put your translated files would be a child theme. Here is a vanilla Focus child theme you can start with:
https://siteorigin.com/wp-content/uploads/2015/01/focus-child-vanilla.zip
In addition you’ll need to create a languages folder in the child theme and put your .mo and .po files there. Finally you’ll need to create a functions.php file int the child theme and insert the following into that file:
Let me know if you need any help here.
Great, thank you for fast response!
I have already setup child theme, but thank you for thinking about that also!
For now, I will be translating only the basic strings used in the generated pages, and not theme’s own UI strings.
And if I may add something to my wishlist for Focus theme:
It would be GREAT if you could implement font selection for your theme through user interface, including support for webfont sets…
Many thanks.
For sure. I’ve made a note of that on my side. Definitely a solid request.
Thank you.
1st Draft of Serbian translation for Focus theme is up and running… :)
If you want, I can submit the files here when I complete the translation.
Have a nice day.
That would be most appreciated. If possible, please email them to us at [email protected].
Thanks :)