Fix fluent plural forms.

This commit is contained in:
Matthias Mailänder
2023-05-22 21:44:46 +02:00
committed by abcdefg30
parent 8a9426a0d4
commit 5bcb1a678c
2 changed files with 4 additions and 4 deletions

View File

@@ -56,7 +56,7 @@ namespace OpenRA
return;
bundle = LinguiniBuilder.Builder()
.CultureInfo(CultureInfo.InvariantCulture)
.CultureInfo(new CultureInfo(language))
.SkipResources()
.SetUseIsolating(false)
.UseConcurrent()
@@ -65,7 +65,7 @@ namespace OpenRA
ParseTranslations(language, translations, fileSystem, onError);
}
public Translation(string text, Action<ParseError> onError)
public Translation(string language, string text, Action<ParseError> onError)
{
var parser = new LinguiniParser(text);
var resource = parser.Parse();
@@ -73,7 +73,7 @@ namespace OpenRA
onError(error);
bundle = LinguiniBuilder.Builder()
.CultureInfo(CultureInfo.InvariantCulture)
.CultureInfo(new CultureInfo(language))
.SkipResources()
.SetUseIsolating(false)
.UseConcurrent()