Skip to content

Commit

Permalink
Fixed the fallback logic
Browse files Browse the repository at this point in the history
  • Loading branch information
rubo committed Oct 20, 2017
1 parent a6020ca commit 5d787fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyInformationalVersion("1.5.0-beta1")]
[assembly: AssemblyInformationalVersion("1.5.0-beta2")]
[assembly: AssemblyVersion("1.5.0.*")]
3 changes: 2 additions & 1 deletion Utilities/L10n.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ public static void OverrideCurrentLocale(string localeId)

_locale = NSLocale.FromLocaleIdentifier(localeId);

var path = NSBundle.MainBundle.PathForResource(_locale.LanguageCode, "lproj");
var path = NSBundle.MainBundle.PathForResource(_locale.LanguageCode, "lproj")
?? NSBundle.MainBundle.PathForResource("Base", "lproj");

BundleForCurrentLocale = string.IsNullOrEmpty(path) ? NSBundle.MainBundle : NSBundle.FromPath(path);

Expand Down

0 comments on commit 5d787fe

Please sign in to comment.