[geany/geany-osx] a9b5e5: Make sure we use the right case when looking for locale
Jiří Techet
git-noreply at xxxxx
Tue Oct 22 17:24:44 UTC 2019
Branch: refs/heads/master
Author: Jiří Techet <techet at gmail.com>
Committer: Jiří Techet <techet at gmail.com>
Date: Tue, 22 Oct 2019 17:24:44 UTC
Commit: a9b5e5a91e0b66dee7edac956b5edd6a9b4c5951
https://github.com/geany/geany-osx/commit/a9b5e5a91e0b66dee7edac956b5edd6a9b4c5951
Log Message:
-----------
Make sure we use the right case when looking for locale
Modified Paths:
--------------
LauncherGtk3/geany/geany/main.m
Modified: LauncherGtk3/geany/geany/main.m
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -22,12 +22,12 @@
NSString *lang;
NSArray<NSString *> *comps = [lng componentsSeparatedByString:@"-"];
if (comps.count > 1) {
- lang = [NSString stringWithFormat:@"%@_%@", comps[0], comps[1]];
+ lang = [NSString stringWithFormat:@"%@_%@", [comps[0] lowercaseString], [comps[1] uppercaseString]];
NSString *path = [NSString stringWithFormat:@"%@/locale/%@", bundle_data, lang];
found = [[NSFileManager defaultManager] fileExistsAtPath:path];
}
if (!found && comps.count > 0) {
- NSString *lng = comps[0];
+ NSString *lng = [comps[0] lowercaseString];
NSString *path = [NSString stringWithFormat:@"%@/locale/%@", bundle_data, lng];
found = [[NSFileManager defaultManager] fileExistsAtPath:path];
if (found && comps.count == 1) {
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list