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 import xpathlite
from xpathlite import DraftResolution, findAlias, findEntry, findTagsInFile from xpathlite import DraftResolution, findAlias, findEntry, findTagsInFile
from dateconverter import convert_date from dateconverter import convert_date
from localexml import Locale from qlocalexml import Locale
# TODO: make calendars a command-line option # TODO: make calendars a command-line option
calendars = ['gregorian', 'persian', 'islamic'] # 'hebrew' calendars = ['gregorian', 'persian', 'islamic'] # 'hebrew'

View File

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