Reflect active locale in HTML lang attribute

Fixes #4660
This commit is contained in:
Francis Lachapelle
2019-01-28 10:04:55 -05:00
parent 35650227cf
commit e79494c43c
5 changed files with 20 additions and 21 deletions
-14
View File
@@ -79,20 +79,6 @@
}
}
- (NSString *) localeCode
{
// WARNING : NSLocaleCode is not defined in <Foundation/NSUserDefaults.h>
// Region subtag must be separated by a dash
NSMutableString *s = [NSMutableString stringWithString: [locale objectForKey: @"NSLocaleCode"]];
[s replaceOccurrencesOfString: @"_"
withString: @"-"
options: 0
range: NSMakeRange(0, [s length])];
return s;
}
- (NSArray *) monthMenuItems
{
static NSMutableArray *monthMenuItems = nil;