WC: Use a mainline-style textdomain

This changes the campaign's textdomain from wesnoth-World_Conquest to
wesnoth-wc in WML and Lua code files.

[ci skip]
This commit is contained in:
Iris Morelle 2020-08-25 19:46:40 -04:00
parent 37eb5b1c69
commit 1389719887
31 changed files with 34 additions and 34 deletions

View file

@ -1,13 +1,13 @@
## MP Campaign (Scenarios in Multiplayer >> Random Maps)
#textdomain wesnoth-World_Conquest
{./config.cfg}
#textdomain wesnoth-wc
[textdomain]
name="wesnoth-World_Conquest"
name="wesnoth-wc"
[/textdomain]
{./config.cfg}
#ifdef LOAD_WC2
[binary_path]

View file

@ -1,4 +1,4 @@
#textdomain wesnoth-World_Conquest
#textdomain wesnoth-wc
#define STR_HEROIC
_ "heroic" #enddef

View file

@ -1,4 +1,4 @@
#textdomain wesnoth-World_Conquest
#textdomain wesnoth-wc
#define STR_ERA_ID_WC_II
world_conquest_era#enddef

View file

@ -1,7 +1,7 @@
-- The difficulty dialog. unlike other files this does not 'export' functions,
-- just run this file to show the diffculty dialog.
local _ = wesnoth.textdomain 'wesnoth-World_Conquest'
local _ = wesnoth.textdomain 'wesnoth-wc'
local strings = {
chose_difficulty = "<span size='large'>" .. _"Choose difficulty level:" .. "</span>",
}

View file

@ -1,4 +1,4 @@
local _ = wesnoth.textdomain 'wesnoth-World_Conquest'
local _ = wesnoth.textdomain 'wesnoth-wc'
local on_event = wesnoth.require("on_event")
local strings = {

View file

@ -1,6 +1,6 @@
--creates the objectives of the wc2 scenarios.
local _ = wesnoth.textdomain 'wesnoth-World_Conquest'
local _ = wesnoth.textdomain 'wesnoth-wc'
local strings = {
wct_victory_condition = _"Defeat all enemy leaders and commanders",
turns = _"Turns run out",

View file

@ -1,6 +1,6 @@
local helper = wesnoth.require("helper")
local on_event = wesnoth.require("on_event")
local _ = wesnoth.textdomain 'wesnoth-World_Conquest'
local _ = wesnoth.textdomain 'wesnoth-wc'
local wc2_era = {}
wc2_era.factions_wml = {}

View file

@ -1,7 +1,7 @@
local on_event = wesnoth.require("on_event")
local helper = wesnoth.require("helper")
local _ = wesnoth.textdomain 'wesnoth-World_Conquest'
local _ = wesnoth.textdomain 'wesnoth-wc'
local artifacts = {}
artifacts.list = {}

View file

@ -1,4 +1,4 @@
local _ = wesnoth.textdomain 'wesnoth-World_Conquest'
local _ = wesnoth.textdomain 'wesnoth-wc'
local on_event = wesnoth.require("on_event")
local helper = wesnoth.require("helper")

View file

@ -1,4 +1,4 @@
local _ = wesnoth.textdomain 'wesnoth-World_Conquest'
local _ = wesnoth.textdomain 'wesnoth-wc'
local STR_BONUS_SHIP_NAMES = { _"Point", _"Rest", _"Ruin", _"Rocks", _"Bane", _"Waters", _"Route", _"Vestige", _"Disaster", _"Massacre", _"Expedition", _"Cargo" }

View file

@ -1,4 +1,4 @@
local _ = wesnoth.textdomain 'wesnoth-World_Conquest'
local _ = wesnoth.textdomain 'wesnoth-wc'
local helper = wesnoth.require("helper")
local T = wml.tag

View file

@ -1,6 +1,6 @@
local helper = wesnoth.require("helper")
local T = wml.tag
local _ = wesnoth.textdomain 'wesnoth-World_Conquest'
local _ = wesnoth.textdomain 'wesnoth-wc'
local wc2_heroes = {}
-- an array of wml tables, usually containing type,

View file

@ -1,5 +1,5 @@
local on_event = wesnoth.require("on_event")
local _ = wesnoth.textdomain 'wesnoth-World_Conquest'
local _ = wesnoth.textdomain 'wesnoth-wc'
local wc2_invest = {}

View file

@ -1,4 +1,4 @@
local _ = wesnoth.textdomain 'wesnoth-World_Conquest'
local _ = wesnoth.textdomain 'wesnoth-wc'
local T = wml.tag
local function GUI_FORCE_WIDGET_MINIMUM_SIZE(w,h, content)

View file

@ -1,4 +1,4 @@
local _ = wesnoth.textdomain 'wesnoth-World_Conquest'
local _ = wesnoth.textdomain 'wesnoth-wc'
local dialog_wml = wc2_invest_dialog

View file

@ -1,4 +1,4 @@
local _ = wesnoth.textdomain 'wesnoth-World_Conquest'
local _ = wesnoth.textdomain 'wesnoth-wc'
local T = wml.tag
local invest_tellunit = {}

View file

@ -1,4 +1,4 @@
local _ = wesnoth.textdomain 'wesnoth-World_Conquest'
local _ = wesnoth.textdomain 'wesnoth-wc'
local T = wml.tag
local pickup_confirmation_dialog = {}

View file

@ -1,4 +1,4 @@
local _ = wesnoth.textdomain 'wesnoth-World_Conquest'
local _ = wesnoth.textdomain 'wesnoth-wc'
local on_event = wesnoth.require("on_event")
local strings = {

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
local _ = wesnoth.textdomain 'wesnoth-World_Conquest'
local _ = wesnoth.textdomain 'wesnoth-wc'
local on_event = wesnoth.require("on_event")
local helper = wesnoth.require("helper")

View file

@ -1,4 +1,4 @@
local _ = wesnoth.textdomain 'wesnoth-World_Conquest'
local _ = wesnoth.textdomain 'wesnoth-wc'
type_infos = {
["default"] = {

View file

@ -1,4 +1,4 @@
local _ = wesnoth.textdomain 'wesnoth-World_Conquest'
local _ = wesnoth.textdomain 'wesnoth-wc'
local dialog = wc2_wiki_dialog
function wesnoth.set_dialog_text(text, ...)

View file

@ -1,4 +1,4 @@
local _ = wesnoth.textdomain 'wesnoth-World_Conquest'
local _ = wesnoth.textdomain 'wesnoth-wc'
local T = wml.tag
local function GUI_FORCE_WIDGET_MINIMUM_SIZE(w,h, content)

View file

@ -5,7 +5,7 @@
---- scenario ----
----------------------------------------------------------
local _ = wesnoth.textdomain "wesnoth-World_Conquest"
local _ = wesnoth.textdomain "wesnoth-wc"
-- speechs need be rewritten

View file

@ -1,7 +1,7 @@
-- the Dialog we show in the generate map tool in wesnoths own map editor.
-- in case that someone wants to create a map based on a random wcii map in his campaign.
local T = wml.tag
local _ = wesnoth.textdomain 'wesnoth-World_Conquest'
local _ = wesnoth.textdomain 'wesnoth-wc'
function get_defaults(nplayer, nscenario)

View file

@ -2,7 +2,7 @@
-- Works independed from the reset of the wc2 code (but needs wc2_utils.lua)
local on_event = wesnoth.require("on_event")
local wc2_utils = wesnoth.require("./../game_mechanics/utils.lua")
local _ = wesnoth.textdomain 'wesnoth-World_Conquest'
local _ = wesnoth.textdomain 'wesnoth-wc'
local pick_advance = {}

View file

@ -1,5 +1,5 @@
local on_event = wesnoth.require("on_event")
local _ = wesnoth.textdomain 'wesnoth-World_Conquest'
local _ = wesnoth.textdomain 'wesnoth-wc'
local wc2_utils = wesnoth.require("./../game_mechanics/utils.lua")

View file

@ -1,4 +1,4 @@
#textdomain wesnoth-World_Conquest
#textdomain wesnoth-wc
#define STR_ITEM_STEADFAST_NAME
_ "Adamant armor" #enddef

View file

@ -1,4 +1,4 @@
#textdomain wesnoth-World_Conquest
#textdomain wesnoth-wc
#define STR_ART_ARCANE
_ "staff of radiance" #enddef

View file

@ -1,4 +1,4 @@
#textdomain wesnoth-World_Conquest
#textdomain wesnoth-wc
#define STR_PER_LEVEL
_ "per level" #enddef

View file

@ -1,4 +1,4 @@
#textdomain wesnoth-World_Conquest
#textdomain wesnoth-wc
#define STR_MELEE_NAME
_ "Melee Combat" #enddef