Commit aec8e800 authored by Claes Sjofors's avatar Claes Sjofors

Bugfix in set language

parent fb1fe519
...@@ -537,6 +537,7 @@ bool Lng::is_installed( lng_eLanguage language) ...@@ -537,6 +537,7 @@ bool Lng::is_installed( lng_eLanguage language)
pwr_tFileName found_file; pwr_tFileName found_file;
pwr_tStatus sts; pwr_tStatus sts;
strcpy( fname, "$pwr_exe/"); strcpy( fname, "$pwr_exe/");
strcat( fname, lang_to_str( language)); strcat( fname, lang_to_str( language));
strcat( fname, "/xtt_lng.dat"); strcat( fname, "/xtt_lng.dat");
...@@ -546,6 +547,18 @@ bool Lng::is_installed( lng_eLanguage language) ...@@ -546,6 +547,18 @@ bool Lng::is_installed( lng_eLanguage language)
sts = dcli_search_file( fname, found_file, DCLI_DIR_SEARCH_INIT); sts = dcli_search_file( fname, found_file, DCLI_DIR_SEARCH_INIT);
dcli_search_file( fname, found_file, DCLI_DIR_SEARCH_END); dcli_search_file( fname, found_file, DCLI_DIR_SEARCH_END);
if ( ODD(sts)) return true; if ( ODD(sts)) return true;
// Try $pwr_eexe also
strcpy( fname, "$pwr_eexe/");
strcat( fname, lang_to_str( language));
strcat( fname, "/xtt_lng.dat");
dcli_translate_filename( fname, fname);
sts = dcli_search_file( fname, found_file, DCLI_DIR_SEARCH_INIT);
dcli_search_file( fname, found_file, DCLI_DIR_SEARCH_END);
if ( ODD(sts)) return true;
return false; return false;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment