WordPress.org

Forums

Spacious
Can not connect translation files (4 posts)

  1. KushnerukAndriy
    Member
    Posted 1 year ago #

    Hi, I can not connect the file transfer.
    Files are:
    ../www/wp-content/themes/spacious/languages/uk_UK.mo
    ../www/wp-content/themes/spacious/languages/uk_UK.po
    In wp-config.php:
    define ('WPLANG', 'uk_UK');.
    Translation of the site is working properly.
    Plugin "CodeStyling Localization" cant finds no translation for the theme.

  2. ThemeGrill
    Member
    Theme Author

    Posted 1 year ago #

    Hmm.. Looks like we missed to load the theme text domain. What you can do for now is you can go to functions.php file inside the theme folder. And add the following line of code inside spacious_setup function.
    load_theme_textdomain( 'spacious', get_template_directory() . '/languages' );
    We will be adding this in our next version update. Thanks.

  3. KushnerukAndriy
    Member
    Posted 1 year ago #

    Thanks, it works

  4. ThemeGrill
    Member
    Theme Author

    Posted 1 year ago #

    Welcome! We would really appreciate if you could rate our theme. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic