mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-27 07:34:00 +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")
|
||||
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)
|
||||
Trace.WriteLine (string.Format ("Missing string resource for '{0}' token", msg_id+suffix));
|
||||
res = guiStrings.ResourceManager.GetString (msg_id);
|
||||
}
|
||||
return res ?? msg_id;
|
||||
}
|
||||
catch (Exception X)
|
||||
|
Loading…
Reference in New Issue
Block a user