mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-15 07:44:10 +00:00
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:
parent
48d8ebcc47
commit
c27ddb9066
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue