Reflect active locale in HTML lang attribute

Fixes #4660
This commit is contained in:
Francis Lachapelle committed 2019-01-28 10:04:55 -05:00
1 parent 35650227cf
commit e79494c43c
5 files changed
+20 -21

No files matched your search

-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;