This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Focus Premium language files

Resolved 7 replies premiumthemetheme-focus
11 years ago · Last reply by Andrew Misplon 11 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

7
  1. Andrew Misplon Staff 11 years, 1 month ago

    Hi Slobodan

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

  2. Andrew Misplon Staff 11 years, 1 month ago

    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.

  3. Slobodan 11 years, 1 month ago

    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.

  4. Andrew Misplon Staff 11 years, 1 month ago

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

  5. Slobodan 11 years, 1 month ago

    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.

  6. Andrew Misplon Staff 11 years, 1 month ago

    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.

Have a different question or issue?

Start New Thread