|
@@ -43,19 +43,18 @@ namespace Shadowsocks.Controller |
|
|
for (int i = 0; i < localeNames.Length; i++)
|
|
|
for (int i = 0; i < localeNames.Length; i++)
|
|
|
{
|
|
|
{
|
|
|
if (localeNames[i].Split('-')[0] == localeNoRegion)
|
|
|
if (localeNames[i].Split('-')[0] == localeNoRegion)
|
|
|
{
|
|
|
|
|
|
targetIndex = i;
|
|
|
targetIndex = i;
|
|
|
}
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
Logging.Info($"Using {localeNames[targetIndex]} translation for {locale}");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
// Still not found, exit
|
|
|
// Still not found, exit
|
|
|
if (targetIndex == -1)
|
|
|
|
|
|
|
|
|
if (targetIndex == -1 || enIndex == targetIndex)
|
|
|
{
|
|
|
{
|
|
|
Logging.Info($"Translation for {locale} not found");
|
|
|
Logging.Info($"Translation for {locale} not found");
|
|
|
return;
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// read translation lines
|
|
|
// read translation lines
|
|
|
while (!csvParser.EndOfData)
|
|
|
while (!csvParser.EndOfData)
|
|
|
{
|
|
|
{
|
|
|