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:
parent
37eb5b1c69
commit
1389719887
31 changed files with 34 additions and 34 deletions
|
@ -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]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#textdomain wesnoth-World_Conquest
|
||||
#textdomain wesnoth-wc
|
||||
|
||||
#define STR_HEROIC
|
||||
_ "heroic" #enddef
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#textdomain wesnoth-World_Conquest
|
||||
#textdomain wesnoth-wc
|
||||
|
||||
#define STR_ERA_ID_WC_II
|
||||
world_conquest_era#enddef
|
||||
|
|
|
@ -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>",
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local _ = wesnoth.textdomain 'wesnoth-World_Conquest'
|
||||
local _ = wesnoth.textdomain 'wesnoth-wc'
|
||||
local on_event = wesnoth.require("on_event")
|
||||
|
||||
local strings = {
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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 = {}
|
||||
|
|
|
@ -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 = {}
|
||||
|
|
|
@ -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")
|
||||
|
||||
|
|
|
@ -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" }
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local _ = wesnoth.textdomain 'wesnoth-World_Conquest'
|
||||
local _ = wesnoth.textdomain 'wesnoth-wc'
|
||||
local helper = wesnoth.require("helper")
|
||||
local T = wml.tag
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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 = {}
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local _ = wesnoth.textdomain 'wesnoth-World_Conquest'
|
||||
local _ = wesnoth.textdomain 'wesnoth-wc'
|
||||
|
||||
local dialog_wml = wc2_invest_dialog
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local _ = wesnoth.textdomain 'wesnoth-World_Conquest'
|
||||
local _ = wesnoth.textdomain 'wesnoth-wc'
|
||||
local T = wml.tag
|
||||
|
||||
local invest_tellunit = {}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local _ = wesnoth.textdomain 'wesnoth-World_Conquest'
|
||||
local _ = wesnoth.textdomain 'wesnoth-wc'
|
||||
local T = wml.tag
|
||||
|
||||
local pickup_confirmation_dialog = {}
|
||||
|
|
|
@ -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
|
@ -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")
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local _ = wesnoth.textdomain 'wesnoth-World_Conquest'
|
||||
local _ = wesnoth.textdomain 'wesnoth-wc'
|
||||
|
||||
type_infos = {
|
||||
["default"] = {
|
||||
|
|
|
@ -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, ...)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
---- scenario ----
|
||||
----------------------------------------------------------
|
||||
|
||||
local _ = wesnoth.textdomain "wesnoth-World_Conquest"
|
||||
local _ = wesnoth.textdomain "wesnoth-wc"
|
||||
|
||||
|
||||
-- speechs need be rewritten
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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 = {}
|
||||
|
||||
|
|
|
@ -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")
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#textdomain wesnoth-World_Conquest
|
||||
#textdomain wesnoth-wc
|
||||
|
||||
#define STR_ITEM_STEADFAST_NAME
|
||||
_ "Adamant armor" #enddef
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#textdomain wesnoth-World_Conquest
|
||||
#textdomain wesnoth-wc
|
||||
|
||||
#define STR_ART_ARCANE
|
||||
_ "staff of radiance" #enddef
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#textdomain wesnoth-World_Conquest
|
||||
#textdomain wesnoth-wc
|
||||
|
||||
#define STR_PER_LEVEL
|
||||
_ "per level" #enddef
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#textdomain wesnoth-World_Conquest
|
||||
#textdomain wesnoth-wc
|
||||
|
||||
#define STR_MELEE_NAME
|
||||
_ "Melee Combat" #enddef
|
||||
|
|
Loading…
Add table
Reference in a new issue