mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
I18N
- 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:
parent
ab6150c298
commit
24d7411aa8
11 changed files with 119 additions and 118 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue