Home>Support>Focus Premium language files

Focus Premium language files

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.

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 8 months ago Andrew Misplon
    Hi, I Work Here

    Hi Slobodan

    Focus is unfortunately without the necessary files at the moment. Let me create a .pot file for you quickly.

  2. 9 years, 8 months ago Andrew Misplon
    Hi, I Work Here

    Here we go:

    https://siteorigin.com/wp-content/uploads/2015/01/focus.pot

  3. 9 years, 8 months ago Andrew Misplon
    Hi, I Work Here

    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:

    <?php
    
    function focus_child_set_text_domain(){
    load_theme_textdomain( 'focus', get_stylesheet_directory() . '/languages' );
    }
    add_action('after_setup_theme', 'focus_child_set_text_domain', 15);
    

    Let me know if you need any help here.

  4. 9 years, 8 months ago Slobodan

    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.

  5. 9 years, 8 months ago Andrew Misplon
    Hi, I Work Here

    For sure. I’ve made a note of that on my side. Definitely a solid request.

  6. 9 years, 8 months ago Slobodan

    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.

  7. 9 years, 8 months ago Andrew Misplon
    Hi, I Work Here

    That would be most appreciated. If possible, please email them to us at [email protected].

    Thanks :)

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More