Rename locale extensions from .txt to .ini

Because we're using .ini format, the translation servies spit out files
with .ini extensions, so this makes it so we don't necessarily have to
rename those files from .ini to .txt before merging.
This commit is contained in:
jp9000 2014-07-07 21:49:36 -07:00
parent 48d8ebcc47
commit c27ddb9066
9 changed files with 3 additions and 3 deletions

View file

@ -166,11 +166,11 @@ bool OBSApp::InitLocale()
locale = lang;
stringstream file;
file << "locale/" << lang << ".txt";
file << "locale/" << lang << ".ini";
string englishPath;
if (!GetDataFilePath("locale/" DEFAULT_LANG ".txt", englishPath)) {
OBSErrorBox(NULL, "Failed to find locale/" DEFAULT_LANG ".txt");
if (!GetDataFilePath("locale/" DEFAULT_LANG ".ini", englishPath)) {
OBSErrorBox(NULL, "Failed to find locale/" DEFAULT_LANG ".ini");
return false;
}