Merge lp:~widelands-dev/widelands/string-fixes into lp:widelands

Proposed by GunChleoc
Status: Merged
Merged at revision: 8683
Proposed branch: lp:~widelands-dev/widelands/string-fixes
Merge into: lp:widelands
Diff against target: 291 lines (+40/-34)
17 files modified
data/tribes/buildings/productionsites/frisians/blacksmithy/init.lua (+2/-2)
data/tribes/buildings/productionsites/frisians/ironmine/helptexts.lua (+8/-5)
data/tribes/buildings/productionsites/frisians/reed_farm/init.lua (+1/-1)
data/tribes/buildings/productionsites/frisians/rockmine/helptexts.lua (+7/-4)
data/tribes/buildings/productionsites/frisians/tavern/helptexts.lua (+1/-1)
data/tribes/buildings/productionsites/frisians/weaving_mill/helptexts.lua (+1/-1)
data/tribes/immovables/berry_bushes/strawberry/init.lua (+4/-4)
data/tribes/wares/fur/helptexts.lua (+1/-1)
data/tribes/wares/granite/helptexts.lua (+1/-1)
data/tribes/wares/kitchen_tools/helptexts.lua (+5/-5)
data/tribes/wares/ration/helptexts.lua (+1/-1)
data/tribes/wares/shovel/helptexts.lua (+1/-1)
data/tribes/wares/smoked_fish/helptexts.lua (+1/-1)
data/tribes/wares/smoked_meat/helptexts.lua (+1/-1)
data/tribes/workers/barbarians/baker/helptexts.lua (+1/-1)
data/tribes/workers/frisians/landlady/helptexts.lua (+1/-1)
data/txts/developers.json (+3/-3)
To merge this branch: bzr merge lp:~widelands-dev/widelands/string-fixes
Reviewer Review Type Date Requested Status
hessenfarmer Approve
Review via email: mp+345000@code.launchpad.net

Commit message

Various string fixes for tribes

To post a comment you must log in.
Revision history for this message
hessenfarmer (stephan-lutz) wrote :

1. see inline comment
2. I did a spotcheck of the helptexts and found multiple issues with the # sign in TRANSLATORS remarks not correctly implemented. Just checked a couple of frisian buildings where the ' is used in defined performance helptexts and not used in other buildings where undefined messages are in place. Found issues in the barbarians helptexts as well

review: Needs Fixing
Revision history for this message
bunnybot (widelandsofficial) wrote :

Continuous integration builds have changed state:

Travis build 3444. State: passed. Details: https://travis-ci.org/widelands/widelands/builds/374263196.
Appveyor build 3249. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_string_fixes-3249.

Revision history for this message
GunChleoc (gunchleoc) wrote :

1. I have answered inline
2. Agreed, but not in this merge request. I have created a new bug for it: https://bugs.launchpad.net/widelands/+bug/1768859

Revision history for this message
hessenfarmer (stephan-lutz) wrote :

1. as far as I read the function in the helptexts.lua of the shovel the text will be either the default or the tribe Version not both.
2. Ok. Perhaps I'll take the bug this evening. Is there any rule of format where the # needs to be in the TRANSLATORS line?

Revision history for this message
GunChleoc (gunchleoc) wrote :

1. You can't see it locally. They are concatenated later in data/tribes/scripting/help. Just look at the shovel in-game, and you'll see it.

2. It needs to be there if there is no translatable string below it (no _, ngettext or pgettext).

Revision history for this message
hessenfarmer (stephan-lutz) wrote :

1. have checked that sorry for the trouble.

2. What I meant should it be #TRANSLATORS or is it TRANSLATORS#

review: Approve
Revision history for this message
GunChleoc (gunchleoc) wrote :

2. Doesn't matter - you'll only need to remove the extra # where they are not wanted to activate the comments for translators. It should be

  -- TRANSLATORS:

Thanks for the review!

@bunnybot merge

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'data/tribes/buildings/productionsites/frisians/blacksmithy/init.lua'
2--- data/tribes/buildings/productionsites/frisians/blacksmithy/init.lua 2018-04-05 05:58:29 +0000
3+++ data/tribes/buildings/productionsites/frisians/blacksmithy/init.lua 2018-05-03 05:43:13 +0000
4@@ -211,8 +211,8 @@
5 },
6 },
7 produce_12 = {
8- -- TRANSLATORS: Completed/Skipped/Did not start forging needles because ...
9- descname = _"forging needles",
10+ -- TRANSLATORS: Completed/Skipped/Did not start making needles because ...
11+ descname = _"making needles",
12 actions = {
13 "return=skipped unless economy needs needles",
14 "sleep=32000",
15
16=== modified file 'data/tribes/buildings/productionsites/frisians/ironmine/helptexts.lua'
17--- data/tribes/buildings/productionsites/frisians/ironmine/helptexts.lua 2018-04-25 07:55:28 +0000
18+++ data/tribes/buildings/productionsites/frisians/ironmine/helptexts.lua 2018-05-03 05:43:13 +0000
19@@ -1,15 +1,18 @@
20+-- This include can be removed when all help texts have been defined.
21+include "tribes/scripting/help/global_helptexts.lua"
22+
23 function building_helptext_lore ()
24- -- TRANSLATORS: Lore helptext for a building
25- return pgettext ("frisians_building", "")
26+ -- TRANSLATORS#: Lore helptext for a building
27+ return no_lore_text_yet()
28 end
29
30 function building_helptext_lore_author ()
31- -- TRANSLATORS: Lore author helptext for a building
32- return pgettext ("frisians_building", "")
33+ -- TRANSLATORS#: Lore author helptext for a building
34+ return no_lore_author_text_yet()
35 end
36
37 function building_helptext_purpose()
38- -- TRANSLATORS#: Purpose helptext for a building
39+ -- TRANSLATORS: Purpose helptext for a building
40 return pgettext("building", "Digs iron ore out of the ground in mountain terrain.")
41 end
42
43
44=== modified file 'data/tribes/buildings/productionsites/frisians/reed_farm/init.lua'
45--- data/tribes/buildings/productionsites/frisians/reed_farm/init.lua 2018-02-23 07:18:54 +0000
46+++ data/tribes/buildings/productionsites/frisians/reed_farm/init.lua 2018-05-03 05:43:13 +0000
47@@ -79,7 +79,7 @@
48 -- Translators: Short for "Out of ..." for a resource
49 title = _"No Fields",
50 heading = _"Out of Fields",
51- message = pgettext("frisians_building", "The farmer working at this reed farm has no cleared soil to plant his seeds."),
52+ message = pgettext("frisians_building", "The reed farmer working at this reed farm has no cleared soil to plant his seeds."),
53 productivity_threshold = 20
54 },
55 }
56
57=== modified file 'data/tribes/buildings/productionsites/frisians/rockmine/helptexts.lua'
58--- data/tribes/buildings/productionsites/frisians/rockmine/helptexts.lua 2018-04-25 07:55:28 +0000
59+++ data/tribes/buildings/productionsites/frisians/rockmine/helptexts.lua 2018-05-03 05:43:13 +0000
60@@ -1,11 +1,14 @@
61+-- This include can be removed when all help texts have been defined.
62+include "tribes/scripting/help/global_helptexts.lua"
63+
64 function building_helptext_lore ()
65- -- TRANSLATORS: Lore helptext for a building
66- return pgettext ("frisians_building", "")
67+ -- TRANSLATORS#: Lore helptext for a building
68+ return no_lore_text_yet()
69 end
70
71 function building_helptext_lore_author ()
72- -- TRANSLATORS: Lore author helptext for a building
73- return pgettext ("frisians_building", "")
74+ -- TRANSLATORS#: Lore author helptext for a building
75+ return no_lore_author_text_yet()
76 end
77
78 function building_helptext_purpose()
79
80=== modified file 'data/tribes/buildings/productionsites/frisians/tavern/helptexts.lua'
81--- data/tribes/buildings/productionsites/frisians/tavern/helptexts.lua 2018-02-17 15:41:29 +0000
82+++ data/tribes/buildings/productionsites/frisians/tavern/helptexts.lua 2018-05-03 05:43:13 +0000
83@@ -20,5 +20,5 @@
84
85 function building_helptext_performance()
86 -- TRANSLATORS#: Performance helptext for a building
87- return pgettext("frisians_building", "The tavern can produce one ration in %s on average if the supply is steady; otherwise, it will take 50 percent longer."):bformat(ngettext("%d second", "%d seconds", 33):bformat(33))
88+ return pgettext("frisians_building", "The tavern can produce one ration in %s on average if the supply is steady; otherwise, it will take 50%% longer."):bformat(ngettext("%d second", "%d seconds", 33):bformat(33))
89 end
90
91=== modified file 'data/tribes/buildings/productionsites/frisians/weaving_mill/helptexts.lua'
92--- data/tribes/buildings/productionsites/frisians/weaving_mill/helptexts.lua 2018-04-25 07:55:28 +0000
93+++ data/tribes/buildings/productionsites/frisians/weaving_mill/helptexts.lua 2018-05-03 05:43:13 +0000
94@@ -5,7 +5,7 @@
95
96 function building_helptext_lore_author()
97 -- TRANSLATORS: Lore author helptext for a building
98- return pgettext("frisians_building", "A seamstress’s work song")
99+ return pgettext("frisians_building", "A seamstress’ work song")
100 end
101
102 function building_helptext_purpose()
103
104=== modified file 'data/tribes/immovables/berry_bushes/strawberry/init.lua'
105--- data/tribes/immovables/berry_bushes/strawberry/init.lua 2018-02-17 15:41:29 +0000
106+++ data/tribes/immovables/berry_bushes/strawberry/init.lua 2018-05-03 05:43:13 +0000
107@@ -10,7 +10,7 @@
108 tribes:new_immovable_type {
109 msgctxt = "immovable",
110 name = "berry_bush_strawberry_tiny",
111- descname = _ "Strawberry Bush (tiny)",
112+ descname = _ "Strawberries (tiny)",
113 size = "small",
114 helptext_script = dirname .. "helptexts.lua",
115 attributes = { "seed_berrybush" },
116@@ -34,7 +34,7 @@
117 tribes:new_immovable_type {
118 msgctxt = "immovable",
119 name = "berry_bush_strawberry_small",
120- descname = _ "Strawberry Bush (small)",
121+ descname = _ "Strawberries (small)",
122 size = "small",
123 helptext_script = dirname .. "helptexts.lua",
124 attributes = {},
125@@ -58,7 +58,7 @@
126 tribes:new_immovable_type {
127 msgctxt = "immovable",
128 name = "berry_bush_strawberry_medium",
129- descname = _ "Strawberry Bush (medium)",
130+ descname = _ "Strawberries (medium)",
131 size = "small",
132 helptext_script = dirname .. "helptexts.lua",
133 attributes = { "flowering" },
134@@ -82,7 +82,7 @@
135 tribes:new_immovable_type {
136 msgctxt = "immovable",
137 name = "berry_bush_strawberry_ripe",
138- descname = _ "Strawberry Bush (ripe)",
139+ descname = _ "Strawberries (ripe)",
140 size = "small",
141 helptext_script = dirname .. "helptexts.lua",
142 attributes = { "ripe_bush" },
143
144=== modified file 'data/tribes/wares/fur/helptexts.lua'
145--- data/tribes/wares/fur/helptexts.lua 2017-08-19 16:02:04 +0000
146+++ data/tribes/wares/fur/helptexts.lua 2018-05-03 05:43:13 +0000
147@@ -1,7 +1,7 @@
148 function ware_helptext(tribe)
149 local helptext = {
150 -- TRANSLATORS: Helptext for a ware: Fur
151- frisians = pgettext("frisians_ware", "Fur is won from reindeer in a reindeer farm. It is spun into cloth or turned into fur garments for soldiers."),
152+ frisians = pgettext("frisians_ware", "Fur is won from reindeer in a reindeer farm. It is woven into cloth or turned into fur garments for soldiers."),
153 }
154 local result = ""
155 if tribe then
156
157=== modified file 'data/tribes/wares/granite/helptexts.lua'
158--- data/tribes/wares/granite/helptexts.lua 2017-06-27 16:18:40 +0000
159+++ data/tribes/wares/granite/helptexts.lua 2018-05-03 05:43:13 +0000
160@@ -7,7 +7,7 @@
161 -- TRANSLATORS: Helptext for a ware: Granite
162 barbarians = pgettext("barbarians_ware", "The Barbarians produce granite blocks in quarries and granite mines."),
163 -- TRANSLATORS: Helptext for a ware: Granite
164- frisians = pgettext("frisians_ware", "The Frisians produce granite blocks in quarries and granite mines. They can be refined by a brick burner."),
165+ frisians = pgettext("frisians_ware", "The Frisians produce granite blocks in quarries and rock mines. They can be refined by a brick burner."),
166 -- TRANSLATORS: Helptext for a ware: Granite
167 empire = pgettext("empire_ware", "The Empire produces granite blocks in quarries and marble mines.")
168 }
169
170=== modified file 'data/tribes/wares/kitchen_tools/helptexts.lua'
171--- data/tribes/wares/kitchen_tools/helptexts.lua 2018-02-17 15:48:54 +0000
172+++ data/tribes/wares/kitchen_tools/helptexts.lua 2018-05-03 05:43:13 +0000
173@@ -1,11 +1,11 @@
174 function ware_helptext(tribe)
175 local helptext = {
176 -- TRANSLATORS: Helptext for a ware: Kitchen Tools
177- barbarians = pgettext("barbarians_ware", "How can one create a meal, snack or ration, if there are no kitchen tools? Be sure to have a metal workshop to produce this basic tool (but it ceases to be produced by the building if it is enhanced to an ax workshop and war mill)."),
178- -- TRANSLATORS: Helptext for a ware: Kitchen Tools
179- frisians = pgettext("frisians_ware", "How can one create a meal or ration, if there are no kitchen tools? The smoker also needs them."),
180- -- TRANSLATORS: Helptext for a ware: Kitchen Tools
181- empire = pgettext("empire_ware", "How can one create a ration or meal if there are no kitchen tools? They are produced in a toolsmithy and used in taverns and inns.")
182+ barbarians = pgettext("barbarians_ware", "Kitchen tools are needed for preparing rations, snacks and meals. Be sure to have a metal workshop to produce this basic tool (but it ceases to be produced by the building if it is enhanced to an ax workshop and war mill)."),
183+ -- TRANSLATORS: Helptext for a ware: Kitchen Tools
184+ frisians = pgettext("frisians_ware", "Kitchen tools are needed for preparing rations and meals. The smoker also needs them."),
185+ -- TRANSLATORS: Helptext for a ware: Kitchen Tools
186+ empire = pgettext("empire_ware", "Kitchen tools are needed for preparing rations and meals. They are produced in a toolsmithy and used in taverns and inns.")
187 }
188 local result = ""
189 if tribe then
190
191=== modified file 'data/tribes/wares/ration/helptexts.lua'
192--- data/tribes/wares/ration/helptexts.lua 2017-07-07 16:51:39 +0000
193+++ data/tribes/wares/ration/helptexts.lua 2018-05-03 05:43:13 +0000
194@@ -7,7 +7,7 @@
195 -- TRANSLATORS: Helptext for a ware: Ration
196 empire = pgettext("empire_ware", "Rations are produced in a tavern out of fish or meat or bread."),
197 -- TRANSLATORS: Helptext for a ware: Ration
198- frisians = pgettext("frisians_ware", "They are produced in taverns and drinking halls out of beer and something to eat: Fruit, smoked meat or fish or bread.")
199+ frisians = pgettext("frisians_ware", "Rations are produced in taverns and drinking halls out of beer and something to eat: Fruit, smoked meat or fish or bread.")
200 }
201 local result = ""
202 if tribe then
203
204=== modified file 'data/tribes/wares/shovel/helptexts.lua'
205--- data/tribes/wares/shovel/helptexts.lua 2017-07-07 16:51:39 +0000
206+++ data/tribes/wares/shovel/helptexts.lua 2018-05-03 05:43:13 +0000
207@@ -9,7 +9,7 @@
208 -- TRANSLATORS: Helptext for a ware: Shovel
209 empire = pgettext("empire_ware", "Therefore the forester and the vine farmer use them. They are produced by the toolsmith."),
210 -- TRANSLATORS: Helptext for a ware: Shovel
211- frisians = pgettext("frisians_ware", "They are used by berry and reed farmers as well as foresters. Diggers also need them to dig mud out of hard soil.")
212+ frisians = pgettext("frisians_ware", "They are used by berry and reed farmers as well as foresters. Brickmakers also need them to dig mud out of hard soil.")
213 }
214 local result = ""
215 if tribe then
216
217=== modified file 'data/tribes/wares/smoked_fish/helptexts.lua'
218--- data/tribes/wares/smoked_fish/helptexts.lua 2017-07-23 10:20:05 +0000
219+++ data/tribes/wares/smoked_fish/helptexts.lua 2018-05-03 05:43:13 +0000
220@@ -3,7 +3,7 @@
221 -- TRANSLATORS: Helptext for a ware: Smoked Fish
222 atlanteans = pgettext("atlanteans_ware", "As no Atlantean likes raw fish, smoking it in a smokery is the most common way to make it edible."),
223 -- TRANSLATORS: Helptext for a ware: Smoked Fish
224- frisians = pgettext("frisians_ware", "Fish is smoked in a smokery. Smoked fish is then consumed by soldiers in training or turned into rations and meals for miners.")
225+ frisians = pgettext("frisians_ware", "Fish is smoked in a smokery. Smoked fish is then consumed by soldiers in training or turned into rations and meals for miners and scouts.")
226 }
227 local result = ""
228 if tribe then
229
230=== modified file 'data/tribes/wares/smoked_meat/helptexts.lua'
231--- data/tribes/wares/smoked_meat/helptexts.lua 2017-07-23 10:20:05 +0000
232+++ data/tribes/wares/smoked_meat/helptexts.lua 2018-05-03 05:43:13 +0000
233@@ -3,7 +3,7 @@
234 -- TRANSLATORS: Helptext for a ware: Smoked Meat
235 atlanteans = pgettext("atlanteans_ware", "Smoked meat is made out of meat in a smokery. It is delivered to the mines and training sites (labyrinth and dungeon) where the miners and soldiers prepare a nutritious lunch for themselves."),
236 -- TRANSLATORS: Helptext for a ware: Smoked Meat
237- frisians = pgettext("frisians_ware", "Meat is smoked in a smokery. Smoked meat is then consumed by soldiers in training or turned into rations and meals for miners.")
238+ frisians = pgettext("frisians_ware", "Meat is smoked in a smokery. Smoked meat is then consumed by soldiers in training or turned into rations and meals for miners and scouts.")
239 }
240 local result = ""
241 if tribe then
242
243=== modified file 'data/tribes/workers/barbarians/baker/helptexts.lua'
244--- data/tribes/workers/barbarians/baker/helptexts.lua 2015-10-31 12:11:44 +0000
245+++ data/tribes/workers/barbarians/baker/helptexts.lua 2018-05-03 05:43:13 +0000
246@@ -1,4 +1,4 @@
247 function worker_helptext()
248 -- TRANSLATORS: Helptext for a worker: Baker
249- return pgettext("barbarians_worker", "Bakes pitta bread for the miners.")
250+ return pgettext("barbarians_worker", "Bakes pitta bread for the miners, soldiers and scouts.")
251 end
252
253=== modified file 'data/tribes/workers/frisians/landlady/helptexts.lua'
254--- data/tribes/workers/frisians/landlady/helptexts.lua 2017-07-07 16:51:39 +0000
255+++ data/tribes/workers/frisians/landlady/helptexts.lua 2018-05-03 05:43:13 +0000
256@@ -1,4 +1,4 @@
257 function worker_helptext()
258 -- TRANSLATORS: Helptext for a worker: Landlady
259- return pgettext("frisians_worker", "Prepares rations and meals for miners.")
260+ return pgettext("frisians_worker", "Prepares rations and meals for miners and scouts.")
261 end
262
263=== modified file 'data/txts/developers.json'
264--- data/txts/developers.json 2018-03-26 19:24:21 +0000
265+++ data/txts/developers.json 2018-05-03 05:43:13 +0000
266@@ -222,7 +222,7 @@
267 "image": "images/ui_basic/ls_wlmap.png",
268 "entries":[
269 {
270- "subheading": "Barbarian",
271+ "subheading": "Barbarians",
272 "members":[
273 "Bastian Rapp",
274 "Alexander Kahl (wolfpac)",
275@@ -237,14 +237,14 @@
276 ]
277 },
278 {
279- "subheading": "Atlantean",
280+ "subheading": "Atlanteans",
281 "members":[
282 "Holger Rapp (SirVer)",
283 "Peter Schwanemann (Nasenbaer)"
284 ]
285 },
286 {
287- "subheading": "Frisian",
288+ "subheading": "Frisians",
289 "members":[
290 "Benedikt Straub (Nordfriese)"
291 ]

Subscribers

People subscribed via source and target branches

to status/vote changes: