mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-09-03 03:49:12 +00:00
(svn r17790) -Feature: translatable base sound/graphics set descriptions
This commit is contained in:
@@ -1486,6 +1486,15 @@ void InitializeLanguagePacks()
|
||||
if (!ReadLanguagePack(chosen_language)) usererror("Can't read language pack '%s'", dl->ent[chosen_language].file);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the ISO language code of the currently loaded language.
|
||||
* @return the ISO code.
|
||||
*/
|
||||
const char *GetCurrentLanguageIsoCode()
|
||||
{
|
||||
return _langpack->isocode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check whether the currently loaded language pack
|
||||
* uses characters that the currently loaded font
|
||||
|
Reference in New Issue
Block a user