Translation updates. Almost done I think.
This commit is contained in:
@@ -34,7 +34,13 @@ def parse_ini(path: Path) -> Dict[str, str]:
|
||||
if not key:
|
||||
continue
|
||||
|
||||
full_key = key if not section or "." in key else f"{section}.{key}"
|
||||
if not section:
|
||||
full_key = key
|
||||
elif section == "messages":
|
||||
full_key = key if "." in key else f"{section}.{key}"
|
||||
else:
|
||||
section_prefix = f"{section}."
|
||||
full_key = key if key.startswith(section_prefix) else f"{section_prefix}{key}"
|
||||
result[full_key] = unescape_ini_value(value)
|
||||
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user