Rename the localexml module to qlocalexml

It implements interaction with the QLocaleXML file format type, so
rename it to match.

Task-number: QTBUG-81344
Change-Id: I46302d4ac1038cdfc5929e73b554b6d793814c56
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
Edward Welbourne 2020-02-19 14:13:27 +01:00
parent 54413653d5
commit 84382bde5c
3 changed files with 4 additions and 4 deletions

View File

@ -61,7 +61,7 @@ import enumdata
import xpathlite
from xpathlite import DraftResolution, findAlias, findEntry, findTagsInFile
from dateconverter import convert_date
from localexml import Locale
from qlocalexml import Locale
# TODO: make calendars a command-line option
calendars = ['gregorian', 'persian', 'islamic'] # 'hebrew'

View File

@ -40,7 +40,7 @@ import datetime
import xml.dom.minidom
from enumdata import language_aliases, country_aliases, script_aliases
from localexml import Locale
from qlocalexml import Locale
# TODO: Make calendars a command-line parameter
# map { CLDR name: Qt file name }
@ -353,7 +353,7 @@ def main():
if len(sys.argv) != 3:
usage()
localexml = sys.argv[1]
qlocalexml = sys.argv[1]
qtsrcdir = sys.argv[2]
if not (os.path.isdir(qtsrcdir)
@ -370,7 +370,7 @@ def main():
s = qlocaledata_file.readline()
data_temp_file.write(GENERATED_BLOCK_START)
doc = xml.dom.minidom.parse(localexml)
doc = xml.dom.minidom.parse(qlocalexml)
language_map = loadMap(doc, 'language')
script_map = loadMap(doc, 'script')
country_map = loadMap(doc, 'country')