diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-04-23 20:32:10 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-04-24 16:17:43 -0700 |
commit | f1200d47db78b036e8b7eef2c224c5878c1c3a01 (patch) | |
tree | 3a4c0ca3c444d1e7724c00c9a30c8bb91be49bad /platform/darwin/src/MGLClockDirectionFormatter.m | |
parent | e4752912dad7dcedfb5853e5773b2194980e07e1 (diff) | |
download | qtlocation-mapboxgl-f1200d47db78b036e8b7eef2c224c5878c1c3a01.tar.gz |
[ios, osx] Made localizable strings unique; unlocalized iosapp
Assigned unique IDs to localizable English strings in code.
Made iosapp non-localizable. For the time being, it isn’t worth the trouble to localize more strings for this demo application than for the SDK itself.
Diffstat (limited to 'platform/darwin/src/MGLClockDirectionFormatter.m')
-rw-r--r-- | platform/darwin/src/MGLClockDirectionFormatter.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/darwin/src/MGLClockDirectionFormatter.m b/platform/darwin/src/MGLClockDirectionFormatter.m index 51a37d3674..c8c07487ba 100644 --- a/platform/darwin/src/MGLClockDirectionFormatter.m +++ b/platform/darwin/src/MGLClockDirectionFormatter.m @@ -23,16 +23,16 @@ NSString *format; switch (self.unitStyle) { case NSFormattingUnitStyleShort: - format = NSLocalizedStringFromTable(@"%@:00", @"Foundation", @"Clock position format, short style"); + format = NSLocalizedStringWithDefaultValue(@"CLOCK_FMT_SHORT", @"Foundation", nil, @"%@:00", @"Clock position format, short: {hours}:00"); break; case NSFormattingUnitStyleMedium: - format = NSLocalizedStringFromTable(@"%@ o’clock", @"Foundation", @"Clock position format, medium style"); + format = NSLocalizedStringWithDefaultValue(@"CLOCK_FMT_MEDIUM", @"Foundation", nil, @"%@ o’clock", @"Clock position format, medium: {hours} o’clock"); break; case NSFormattingUnitStyleLong: - format = NSLocalizedStringFromTable(@"%@ o’clock", @"Foundation", @"Clock position format, long style"); + format = NSLocalizedStringWithDefaultValue(@"CLOCK_FMT_LONG", @"Foundation", nil, @"%@ o’clock", @"Clock position format, long: {hours} o’clock"); break; default: |