Re: Theme language

#1774
milos
Moderator

Hi Giona,

I finally found the problem(s). First of all, replace file contact.php with the attached file. Unzip it and upload to /wp-content/themes/wp_hot_wine (overwrite old). Here’s what else you should do:

1. Edit functions.php file and comment/uncomment some lines at the top of the file, to look like this:

Code:
load_theme_textdomain(“hot_wine”, get_template_directory() . ‘/languages’);
// $locale = get_locale();
// $locale_file = get_template_directory_uri() . “/languages/$locale.php”;
// if ( is_readable( $locale_file ) )
// require_once( $locale_file );

2. Our English .po file rename to wp_hot_wine.po and upload to folder /wp-content/themes/wp_hot_wine/languages (create this folder first).

3. Create folder /wp-content/languages and create folder /wp-content/languages/themes. Your Italian language files rename to hot_wine-it_IT.po and hot_wine-it_IT.mo. Upload them both to the folder /wp-content/languages/themes

4. Edit file wp-config.php and change line

Code:
define(‘WPLANG’, ”);

to

Code:
define(‘WPLANG’, ‘it_IT’);

Your translation should work after that.

Thanks,
Milos

[attachment=3479]contact_2014-04-19.zip[/attachment]