Subversion Repositories Games.Chess Giants

Rev

Rev 21 | Rev 41 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 21 Rev 30
Line 133... Line 133...
133
   GetLocaleInfo (LOCALE_SYSTEM_DEFAULT, LOCALE_SENGLANGUAGE, os_language, WCHAR_SIZEOF (os_language));
133
   GetLocaleInfo (LOCALE_SYSTEM_DEFAULT, LOCALE_SENGLANGUAGE, os_language, WCHAR_SIZEOF (os_language));
134
   is_success = LocalizedTexts_Init (L"%s/data/languages/%s.ini", app_path, os_language);
134
   is_success = LocalizedTexts_Init (L"%s/data/languages/%s.ini", app_path, os_language);
135
 
135
 
136
   // fallback to English if language not found
136
   // fallback to English if language not found
137
   if (!is_success)
137
   if (!is_success)
-
 
138
   {
-
 
139
      wcscpy_s (os_language, WCHAR_SIZEOF (os_language), L"English");
138
      is_success = LocalizedTexts_Init (L"%s/data/languages/English.ini", app_path);
140
      is_success = LocalizedTexts_Init (L"%s/data/languages/%s.ini", app_path, os_language);
-
 
141
   }
139
 
142
 
140
   // consistency check: don't go further if texts aren't available
143
   // consistency check: don't go further if texts aren't available
141
   if (!is_success)
144
   if (!is_success)
142
      return (-1); // bomb out on error
145
      return (-1); // bomb out on error
143
 
146