Support » Theme: veryplaintxt » [Theme: veryplaintxt] Translation

  • I can see that the theme is prepared for translation when looking in to the .php files.

    I have now made a Danish translation for my webpage using poEdit, but now I need to install my translation.

    1) what name shall I give the .mo file?
    2) where shall I place the .mo file?
    3) is there other things I shall be aware of?

Viewing 1 replies (of 1 total)
  • The key is the function: load_theme_textdomain. This function is placed last in functions.php of the Theme.

    The .mo files must use language-only filenames, like languages/ in your theme directory.

    Unlike plugin language files, a name like will NOT work. Although plugin language files allow you to specify the text-domain in the filename, this will NOT work with themes. Language files for themes should include the language shortcut ONLY.

    I have changed a little in functions.php of the theme, so load_theme_textdomain now says:
    load_theme_textdomain ('veryplaintxt' get_template_directory().'/lang');
    Because then I can place my language file in the folder: themes/veryplaintxt/lang – I like to keep order

Viewing 1 replies (of 1 total)
  • The topic ‘[Theme: veryplaintxt] Translation’ is closed to new replies.