Skip to content

Commit

Permalink
Cleanup wmllint: display on/off
Browse files Browse the repository at this point in the history
#5481 removed the check that made
wmllint: display on and wmllint: display off necessary.
This PR removes now redundant wmllint comments.

find ./data/ -name '*.cfg' -exec sed -ri '/^ *# *wmllint *:? *display *(on|off) *$/d; s/ *# *wmllint *:? *display *(on|off) *$//' '{}' ';'
  • Loading branch information
hexagonrecursion committed Feb 2, 2021
1 parent 5826262 commit 5cb1790
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 38 deletions.
Expand Up @@ -716,11 +716,9 @@
[/filter]
[message]
speaker=narrator
#wmllint: display on
message= _ "<i>Mirrors of shallow blue, cold and opaque, they stare,
Piercing, unblinking, a pitiless reflection,
Shattering our brittle, fancied reality.</i>"
#wmllint: display off
[/message]
[allow_undo][/allow_undo]
[/event]
Expand All @@ -732,11 +730,9 @@ Shattering our brittle, fancied reality.</i>"
[/filter]
[message]
speaker=narrator
#wmllint: display on
message= _ "<i>Emerald, verdant green gives way,
Touched by shadow, dark dye of black,
An abhorrent stain of pestilence.</i>"
#wmllint: display off
[/message]
[allow_undo][/allow_undo]
[/event]
Expand All @@ -748,11 +744,9 @@ An abhorrent stain of pestilence.</i>"
[/filter]
[message]
speaker=narrator
#wmllint: display on
message= _ "<i>Crimson pool, essence of life,
Flesh and blood flow away to rot,
Leaving only bones to remain.</i>"
#wmllint: display off
[/message]
[allow_undo][/allow_undo]
[/event]
Expand Down
Expand Up @@ -813,11 +813,9 @@
[/filter]
[message]
speaker=narrator
#wmllint: display on
message= _ "<i>Death is the twilight that follows the light of day.
Life fades with the setting sun into darkness.
Existence churns and the soul is reborn into endless night.</i>"
#wmllint: display off
[/message]
[allow_undo][/allow_undo]
[/event]
Expand Down
Expand Up @@ -1966,10 +1966,8 @@
[message]
speaker=narrator
# wmllint: local spelling Zephryn
# wmllint: display on
message= _ "<s><i>Welcome to Zephryn’s laboratory. Please be mindful of ongoing experiments during your visit.</i></s>
<big><i><b>This territory is the domain of the mighty Xanthric. All unwelcome intruders shall die.</b></i></big>"
# wmllint: display off
image=wesnoth-icon.png
[/message]

Expand Down Expand Up @@ -2600,12 +2598,10 @@

[message]
speaker=narrator
# wmllint: display on
message= _ "<i>Dark water beneath crystal ice,
Unmasked by a lick of flame,
Transmuted by the altar of darkness
Into pitch black shadow.</i>"
# wmllint: display off
[/message]
[fire_event]
name=potion text
Expand Down Expand Up @@ -2909,14 +2905,12 @@ Into pitch black shadow.</i>"

[message]
speaker=narrator
# wmllint: display on
message= _ "<i>Bones, scattered carelessly onto the floor,
Remains laid without rest,
Reside outside their coffin, locked away,
In eternal wakefulness.
Then, the key is found and the lid opened,
And the tongue of fire begets ashen repose.</i>"
# wmllint: display off
[/message]
[/event]

Expand Down
2 changes: 0 additions & 2 deletions data/campaigns/Eastern_Invasion/scenarios/17a_The_Duel.cfg
Expand Up @@ -98,11 +98,9 @@

[message]
speaker=narrator
#wmllint: display on
message= _ "The rules of the duel are these:
You may recruit or recall up to 5 units.
At the end of your first turn, your keep will disappear, and you must battle with whatever troops you have at that time."
#wmllint: display off
image=wesnoth-icon.png
[/message]
[message]
Expand Down
2 changes: 0 additions & 2 deletions data/campaigns/Heir_To_The_Throne/scenarios/07_Crossroads.cfg
Expand Up @@ -495,10 +495,8 @@
[message]
speaker=narrator
image="scenery/signpost.png"
#wmllint: display on
message= _ "NE — Dan’Tonk
SE — Fort Tahn"
#wmllint: display off
[/message]
[message]
speaker=Konrad
Expand Down
Expand Up @@ -355,11 +355,9 @@
[/message]
[message]
speaker=Keh Ohn
# wmllint: display on
# wmllint: local spelling Soooo
message= _ "(releasing a torrent of fire towards Konrad and Li’sar)
Soooo... It is you who sent your subordinates to attack us. Now when we’ve destroyed them, you come to do the job yourselves."
# wmllint: display off
[/message]
[message]
speaker=Konrad
Expand Down
Expand Up @@ -235,10 +235,8 @@
speaker=narrator
image=scenery/signpost.png
# wmllint: local spelling SE SW
#wmllint: display on
message= _ "SE — The River Road.
SW — The Midlands."
#wmllint: display off
image=wesnoth-icon.png
[/message]
[allow_undo]
Expand Down
Expand Up @@ -476,10 +476,8 @@

[message]
speaker=narrator
#wmllint: display on
message= _ "East — The Oldwood Forest.
Enter at Your Own Risk!"
#wmllint: display off
image=scenery/signpost.png
[/message]
[allow_undo]
Expand Down
2 changes: 0 additions & 2 deletions data/core/help.cfg
Expand Up @@ -662,7 +662,6 @@ It is not possible to remove add-ons for which there is publishing information (
[topic]
id=general_commands
title= _ "General Commands"
# wmllint: display on
text= _ "These commands can either be issued via the command line by prefixing them with ':' (as shown here) or via the chat by prefixing them with '/' (press 'm' first to open the chat line).
" + "<header>text=':clear'</header>" + _ "
Expand Down Expand Up @@ -698,7 +697,6 @@ Save the game (without prompting).
" + "<header>text=':wq'</header>" + _ "
Save the game and quit the scenario (without prompting)."
# wmllint: display off
[/topic]
# wmllint: markcheck on

Expand Down
2 changes: 0 additions & 2 deletions data/core/macros/ai_controller.cfg
Expand Up @@ -760,13 +760,11 @@
[/else]
[/if]

# wmllint: display on
{VARIABLE ai_controller_{AFFIX}.main_menu_message.message "$ai_controller_{AFFIX}.main_menu_message.message"+"
<span color='black'>-</span>"+"
"+_"Objective: $ai_controller.side_$ally_side|_current_settings.currently_doing_objective_description
Behavior: $ai_controller.side_$ally_side|_current_settings.currently_doing_behavior_description"+"
<span color='black'>-</span>"}
# wmllint: display off

[set_variables]
name=header_message
Expand Down
2 changes: 0 additions & 2 deletions data/multiplayer/scenarios/2p_Dark_Forecast.cfg
Expand Up @@ -161,7 +161,6 @@ Note: You need to use the default map settings for the scenario to work right."
speaker=narrator
image=misc/time-schedules/default/schedule-dawn.png
#wmllint: local spellings jb Rhuvaen
#wmllint: display on
message= _ "Your aim is to survive the spawning waves of units and defeat the final archenemies.
The spawning waves are randomly generated and will be different each time Dark Forecast is played.
Expand All @@ -178,7 +177,6 @@ The weather will also change randomly, affecting the layout of the map.
<span color='green'>Rhuvaen:</span>
• WML implementation"
#wmllint: display off
[/message]
[message]
side=3
Expand Down
6 changes: 0 additions & 6 deletions data/multiplayer/scenarios/ANL_utils/ANL_leader_options.cfg
Expand Up @@ -309,9 +309,7 @@ Share knowledge of warfare"
[message]
caption= _ "Diplomatic Options"
speaker=unit
# wmllint: display on
message= _ "What shall I do?"
# wmllint: display off

# Nothing

Expand Down Expand Up @@ -558,9 +556,7 @@ Negotiation Progress: $player_$side_number|.leader_option_2.progress|/$player_$s
speaker=narrator
caption=_ "Negotiation Complete"
image=portraits/dwarves/lord.png
# wmllint: display on
message= _ "Our talks are complete — the Dwarves will gladly fight by your side. Which of our brethren do you want to recruit?"
# wmllint: display off

#textdomain wesnoth-units
{PICK_RECRUIT_OPTION ("units/dwarves/fighter.png~TC($side_number|,magenta)") "Dwarvish Fighter" _"Dwarvish Fighter" ally_1}
Expand Down Expand Up @@ -590,9 +586,7 @@ Negotiation Progress: $player_$side_number|.leader_option_2.progress|/$player_$s
speaker=narrator
caption=_ "Negotiation Complete"
image=portraits/elves/high-lord.png
# wmllint: display on
message= _ "Our talks are complete — the Elves shall aid you in this battle. Which our of kin do you wish to recruit?"
# wmllint: display off

#textdomain wesnoth-units
{PICK_RECRUIT_OPTION ("units/elves-wood/archer.png~TC($side_number|,magenta)") "Elvish Archer" _"Elvish Archer" ally_5}
Expand Down
2 changes: 0 additions & 2 deletions data/multiplayer/scenarios/ANL_utils/ANL_research_options.cfg
Expand Up @@ -122,13 +122,11 @@
[message]
speaker=unit
caption=_ "Research"
# wmllint: display on
message= _ "We are currently studying $player_$side_number|.research.target_language_name|. To which end would you have our scholars devote their minds?
Our farms produce $player_$side_number|.farming.gold|g
Our mines produce $player_$side_number|.mining.gold|g
"
# wmllint: display off

[option]
label= _ "Continue as before"
Expand Down

0 comments on commit 5cb1790

Please sign in to comment.