mirror of
https://github.com/aseprite/aseprite.git
synced 2024-10-06 06:50:07 +00:00
Fix Weblate parsing error with strings outside any section
Given error: Could not parse translation base file: File contains no section headers. file: '<???>', line: 10 'display_name = English\n' It looks like a known issue: https://github.com/WeblateOrg/weblate/issues/9702
This commit is contained in:
parent
d5a54d8de7
commit
609aedee12
@ -7,6 +7,7 @@
|
|||||||
#
|
#
|
||||||
# https://aseprite.org/docs/extensions/languages/
|
# https://aseprite.org/docs/extensions/languages/
|
||||||
#
|
#
|
||||||
|
[_]
|
||||||
display_name = English
|
display_name = English
|
||||||
|
|
||||||
[advanced_mode]
|
[advanced_mode]
|
||||||
|
@ -69,7 +69,7 @@ std::set<LangInfo> Strings::availableLanguages() const
|
|||||||
// Load display name
|
// Load display name
|
||||||
cfg::CfgFile cfg;
|
cfg::CfgFile cfg;
|
||||||
if (cfg.load(path))
|
if (cfg.load(path))
|
||||||
displayName = cfg.getValue("", "display_name", displayName.c_str());
|
displayName = cfg.getValue("_", "display_name", displayName.c_str());
|
||||||
|
|
||||||
result.insert(LangInfo(langId, path, displayName));
|
result.insert(LangInfo(langId, path, displayName));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user