mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-30 06:15:42 +00:00
fix(label): ensure the translation kept is not null
This commit is contained in:
1 parent
a7651e56c5
commit
0fb3db0608
2 files changed
+2
-1
No files matched your search
@@ -110,7 +110,7 @@ static NSMutableDictionary *translationCache = nil;
|
||||
|
||||
while (!label && (language = [languages nextObject]))
|
||||
{
|
||||
if (![translationCache objectForKey: language]) {
|
||||
if (![translationCache objectForKey: language] || [[translationCache objectForKey: language] objectForKey: key] != [NSNull null]) {
|
||||
paths = [bundle pathsForResourcesOfType: @"strings"
|
||||
inDirectory: [NSString stringWithFormat: @"%@.lproj",
|
||||
language]
|
||||
|
||||
Reference in new issue
Block a user