- Updated all L10N language/country references to use ISO 639-3 (language)
  and ISO 3166-1 alpha 3 (country) codes.
- Note that holiday files are not updated.
This commit is contained in:
Paul Beckingham 2014-04-19 09:26:22 -04:00
parent ab6150c298
commit 24d7411aa8
11 changed files with 119 additions and 118 deletions

View file

@ -34,7 +34,7 @@ import argparse
import re
import fnmatch
REFERENCE = 'en-US.h'
REFERENCE = 'eng-USA.h'
def find_localizations(source, single=''):
'''Finds all [a-z][a-z]-[A-Z][A-Z].h files in the source tree.'''
@ -42,8 +42,6 @@ def find_localizations(source, single=''):
for path, dirs, files in os.walk(source, topdown=True, onerror=None, followlinks=False):
matches = map(lambda x: os.path.join(path, x),
fnmatch.filter(files, '[a-z][a-z][a-z]-[A-Z][A-Z][A-Z].h'))
matches.extend(map(lambda x: os.path.join(path, x),
fnmatch.filter(files, '[a-z][a-z]-[A-Z][A-Z].h')))
if single:
# Accept both cases - if user specified es-ES.h or only es-ES