Correct typo in tools/hacking.py l18n -> i18n
i18n stands for internationalization, while l10n stands for localization. l18n stands for nothing. Change-Id: Iebfe2dcbc12919875c0ecee8aa9223dc107239d7
This commit is contained in:
@@ -275,7 +275,7 @@ class LocalizationError(Exception):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
def check_l18n():
|
def check_i18n():
|
||||||
"""Generator that checks token stream for localization errors.
|
"""Generator that checks token stream for localization errors.
|
||||||
|
|
||||||
Expects tokens to be ``send``ed one by one.
|
Expects tokens to be ``send``ed one by one.
|
||||||
@@ -340,7 +340,7 @@ def nova_localization_strings(logical_line, tokens):
|
|||||||
N703: multiple positional placeholders
|
N703: multiple positional placeholders
|
||||||
"""
|
"""
|
||||||
|
|
||||||
gen = check_l18n()
|
gen = check_i18n()
|
||||||
next(gen)
|
next(gen)
|
||||||
try:
|
try:
|
||||||
map(gen.send, tokens)
|
map(gen.send, tokens)
|
||||||
|
|||||||
Reference in New Issue
Block a user