wmllint cleanup.
This commit is contained in:
parent
fad9403931
commit
a1fdc572ce
6 changed files with 17 additions and 5 deletions
|
@ -215,7 +215,7 @@
|
|||
[/message]
|
||||
[message]
|
||||
speaker=Gerrick
|
||||
# wmllint: local spelling Ssso humansss usss Morogor
|
||||
# wmllint: local spelling Ssso humansss usss
|
||||
message= _ "Ssso humansss, you’ve come to trouble usss again. Prepare to die! For the glory of the Lords of Morogor!"
|
||||
[/message]
|
||||
[message]
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#textdomain wesnoth-help
|
||||
|
||||
# wmllint: local spelling Malthusian
|
||||
|
||||
[topic]
|
||||
id=caste
|
||||
title= _ "Caste"
|
||||
|
@ -28,7 +30,7 @@
|
|||
[topic]
|
||||
id=world-ocean
|
||||
title= _ " "
|
||||
text= _ "The Great Ocean is the name of the open seas that sourround the archipelago of <ref>dst='morogor' text='Morogor'</ref>. The drakes believe it to end at the <ref>dst='abyss' text='Abyss'</ref>, a vast and deadly waterfall."
|
||||
text= _ "The Great Ocean is the name of the open seas that surround the archipelago of <ref>dst='morogor' text='Morogor'</ref>. The drakes believe it to end at the <ref>dst='abyss' text='Abyss'</ref>, a vast and deadly waterfall."
|
||||
[/topic]
|
||||
|
||||
[topic]
|
||||
|
@ -89,7 +91,7 @@
|
|||
[topic]
|
||||
id=hatchling
|
||||
title= _ "Hatchling"
|
||||
text= _ "A young drake that hasn't seen another generation hatch. The younger of the current generation of hatchlings are the most aggressive is the behaviour of the <ref>dst='flight' text='flight'</ref>."
|
||||
text= _ "A young drake that hasn't seen another generation hatch. The younger of the current generation of hatchlings are the most aggressive is the behavior of the <ref>dst='flight' text='flight'</ref>."
|
||||
[/topic]
|
||||
|
||||
[topic]
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
#textdomain wesnoth-help
|
||||
|
||||
# wmllint: general spellings Aethen Glamdrol Romyr Heartfangs
|
||||
# wmllint: general spellings Barag Gor Bitok Castelfrang Farzi Festog Memog
|
||||
# wmllint: general spellings Tirigaz Dorth Oumph Bork Borstep Grisbi Lmarig
|
||||
# wmllint: general spellings Melmog Prestim Thelien
|
||||
# wmllint: local spellings Clannate Grey
|
||||
|
||||
[section]
|
||||
id=geography
|
||||
title= _ "Geography"
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
[/race]
|
||||
|
||||
# wmllint: general spellings drake drakes hatchling hatchlings nestlings
|
||||
# wmllint: general spellings drakish scrollkeeper Morogor
|
||||
[race]
|
||||
id=drake
|
||||
male_name= _ "race^Drake"
|
||||
|
|
|
@ -574,7 +574,7 @@ usage=mask
|
|||
[event]
|
||||
name=turn 32
|
||||
|
||||
# wmllint: local spellings Faery roze@roze.mine.nu
|
||||
# wmllint: local spellings Faery roze roze.mine.nu
|
||||
[message]
|
||||
speaker=narrator
|
||||
caption= _ "Faery"
|
||||
|
|
|
@ -1930,11 +1930,12 @@ def inner_spellcheck(nav, value, spelldict):
|
|||
value = value[:-1].rstrip()
|
||||
# Strip off string quotes
|
||||
value = string_strip(value)
|
||||
# Discard extraneous stuff
|
||||
# Discard extraneous stuff
|
||||
value = value.replace("...", " ")
|
||||
value = value.replace("\"", " ")
|
||||
value = value.replace("\\n", " ")
|
||||
value = value.replace("/", " ")
|
||||
value = value.replace("@", " ")
|
||||
value = value.replace(")", " ")
|
||||
value = value.replace("(", " ")
|
||||
value = value.replace("\xe2\x80\xa6", " ") # UTF-8 ellipsis
|
||||
|
@ -1945,6 +1946,7 @@ def inner_spellcheck(nav, value, spelldict):
|
|||
value = value.replace("\xe2\x80\x98", "'") # UTF-8 left single quote
|
||||
value = value.replace("\xe2\x80\x9d", " ") # UTF-8 right double quote
|
||||
value = value.replace("\xe2\x80\x9c", " ") # UTF-8 left double quote
|
||||
value = value.replace("\xe2\x80\xa2", " ") # UTF-8 bullet
|
||||
value = value.replace("''", "")
|
||||
value = value.replace("female^", " ")
|
||||
value = value.replace("male^", " ")
|
||||
|
@ -1953,6 +1955,7 @@ def inner_spellcheck(nav, value, spelldict):
|
|||
value = value.replace("weapon^", " ")
|
||||
value = value.replace("UI^", " ")
|
||||
if '<' in value:
|
||||
value = re.sub("<ref>.*< ref>", "", value)
|
||||
value = re.sub("<[^>]+>text='([^']*)'<[^>]+>", r"\1", value)
|
||||
value = re.sub("<[0-9,]+>", "", value)
|
||||
# Fold continued lines
|
||||
|
|
Loading…
Add table
Reference in a new issue