Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. *Read more...*

Bug #739976 ยป 0037-Add-ui_name-support-for-Transform_Terrain-action.patch

Marko Lindqvist, 2018-03-15 02:09 PM

View differences:

data/alien/game.ruleset
; /* TRANS: _Conquer City (100% chance of success). */
ui_name_conquer_city = _("%sConquer City%s")
; /* TRANS: _Transform Terrain (3% chance of success). */
ui_name_transform_terrain = _("%sTransform Terrain%s")
; Suppress automatic help text generation about what enables and/or
; disables the following actions.
;
data/civ1/game.ruleset
; /* TRANS: _Conquer City (100% chance of success). */
ui_name_conquer_city = _("%sConquer City%s")
; /* TRANS: _Transform Terrain (3% chance of success). */
ui_name_transform_terrain = _("%sTransform Terrain%s")
; Suppress automatic help text generation about what enables and/or
; disables the following actions.
;
data/civ2/game.ruleset
; /* TRANS: _Conquer City (100% chance of success). */
ui_name_conquer_city = _("%sConquer City%s")
; /* TRANS: _Transform Terrain (3% chance of success). */
ui_name_transform_terrain = _("%sTransform Terrain%s")
; Suppress automatic help text generation about what enables and/or
; disables the following actions.
;
data/civ2civ3/game.ruleset
; /* TRANS: _Conquer City (100% chance of success). */
ui_name_conquer_city = _("%sConquer City%s")
; /* TRANS: _Transform Terrain (3% chance of success). */
ui_name_transform_terrain = _("%sTransform Terrain%s")
; Suppress automatic help text generation about what enables and/or
; disables the following actions.
;
data/classic/game.ruleset
; /* TRANS: _Conquer City (100% chance of success). */
ui_name_conquer_city = _("%sConquer City%s")
; /* TRANS: _Transform Terrain (3% chance of success). */
ui_name_transform_terrain = _("%sTransform Terrain%s")
; Suppress automatic help text generation about what enables and/or
; disables the following actions.
;
data/experimental/game.ruleset
; /* TRANS: _Conquer City (100% chance of success). */
ui_name_conquer_city = _("%sConquer City%s")
; /* TRANS: _Transform Terrain (3% chance of success). */
ui_name_transform_terrain = _("%sTransform Terrain%s")
; Suppress automatic help text generation about what enables and/or
; disables the following actions.
;
data/multiplayer/game.ruleset
; /* TRANS: _Conquer City (100% chance of success). */
ui_name_conquer_city = _("%sConquer City%s")
; /* TRANS: _Transform Terrain (3% chance of success). */
ui_name_transform_terrain = _("%sTransform Terrain%s")
; Suppress automatic help text generation about what enables and/or
; disables the following actions.
;
data/sandbox/game.ruleset
; /* TRANS: _Conquer City (100% chance of success). */
ui_name_conquer_city = _("%sConquer City%s")
; /* TRANS: _Transform Terrain (3% chance of success). */
ui_name_transform_terrain = _("%sTransform Terrain%s")
; Suppress automatic help text generation about what enables and/or
; disables the following actions.
;
data/webperimental/game.ruleset
; /* TRANS: _Conquer City (100% chance of success). */
ui_name_conquer_city = _("%sConquer City%s")
; /* TRANS: _Transform Terrain (3% chance of success). */
ui_name_transform_terrain = _("%sTransform Terrain%s")
; Suppress automatic help text generation about what enables and/or
; disables the following actions.
;
doc/README.actions
* the target tile is known (doesn't have to be seen) by the actor
"Transform Terrain" - Transform tile terrain type.
* UI name can be set using ui_name_transform_terrain
* the actor unit has "Settlers" flag
* terrain type must be one that can be transformed
server/ruleset.c
sz_strlcpy(action_by_number(ACTION_HEAL_UNIT)->ui_name,
text);
text = secfile_lookup_str_default(file,
/* TRANS: _Transform Terrain (3% chance of success). */
N_("%sTransform Terrain%s"),
"actions.ui_name_transform_terrain");
sz_strlcpy(action_by_number(ACTION_TRANSFORM_TERRAIN)->ui_name,
text);
/* The quiet (don't auto generate help for) property of all actions
* live in a single enum vector. This avoids generic action
* expectations. */
tools/ruleutil/rulesave.c
secfile_insert_str(sfile,
action_by_number(ACTION_HEAL_UNIT)->ui_name,
"actions.ui_name_heal_unit");
secfile_insert_str(sfile,
action_by_number(ACTION_TRANSFORM_TERRAIN)->ui_name,
"actions.ui_name_transform_terrain");
i = 0;
action_iterate(act) {
    (1-1/1)