mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 03:44:13 +08:00
(Localization.Plural): tweaked fallback lookups.
This commit is contained in:
parent
314c804d54
commit
945571600d
@ -123,10 +123,14 @@ namespace GARbro.GUI
|
||||
try
|
||||
{
|
||||
var res = guiStrings.ResourceManager.GetString (msg_id+suffix);
|
||||
if (null == res && suffix != "1")
|
||||
res = guiStrings.ResourceManager.GetString (msg_id+"1");
|
||||
if (null == res)
|
||||
{
|
||||
Trace.WriteLine (string.Format ("Missing string resource for '{0}' token", msg_id+suffix));
|
||||
if (suffix != "1")
|
||||
res = guiStrings.ResourceManager.GetString (msg_id+"1");
|
||||
if (null == res)
|
||||
res = guiStrings.ResourceManager.GetString (msg_id);
|
||||
}
|
||||
return res ?? msg_id;
|
||||
}
|
||||
catch (Exception X)
|
||||
|
Loading…
x
Reference in New Issue
Block a user