Building names in help headlines create duplicate translations of building names
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Medium
|
Unassigned |
Bug Description
First of all, I'd like to say the in-game help is really great and I'm really happy to see something like it finally in the game! :)
That said, I have one main complaint, and that is the headlines for the buildings. These headlines use the form "The barbarian building name", and comes in addition to "Building name". This has a couple of problems:
1. In effect, all building names need to be translated twice, once for the name on its own and one time for the headlines, which means additional work for translators.
2. It also means there might be different people at different times doing these translations, which means they might not be consistent. (I suspect this is only a question of time)
I think it would be better to split it up to something like "Barbarians: %s", building_name like has been done it other places. This way, the existing translations for building names can be reused and we only need to translate one extra string. This reduce the workload for translators and eliminate the possibility for the buildings to get different translations in different places.
At the same time, I wonder if something like "Barbarians: " or "Barbarians > " could be an alternative to "The barbarian". (This is less important though)
I also find it odd that these strings seem to be commented out (for some reason, is this intentional?), but they still appear in the pot-files?
I've skimmed most of bug 676955, and this was discussed a bit in comment #108 (and later posts) but I didn't notice any conclusions.
Related branches
- SirVer: Approve
-
Diff: 10406 lines (+6402/-1471)216 files modifiedcampaigns/atl01.wmf/scripting/init.lua (+2/-2)
campaigns/tutorial01.wmf/scripting/init.lua (+2/-1)
scripting/format_help.lua (+726/-49)
scripting/infrastructure.lua (+17/-0)
src/CMakeLists.txt (+3/-0)
src/ai/defaultai.cc (+5/-5)
src/economy/flag.cc (+0/-5)
src/economy/flag.h (+0/-1)
src/economy/portdock.cc (+0/-6)
src/economy/portdock.h (+0/-1)
src/economy/road.cc (+0/-4)
src/economy/road.h (+0/-1)
src/economy/ware_instance.cc (+2/-2)
src/logic/bob.h (+2/-1)
src/logic/building.cc (+3/-7)
src/logic/building.h (+7/-2)
src/logic/carrier.h (+2/-0)
src/logic/cmd_luacoroutine.cc (+2/-2)
src/logic/constructionsite.cc (+1/-1)
src/logic/constructionsite.h (+1/-0)
src/logic/critter_bob.h (+2/-1)
src/logic/dismantlesite.h (+1/-0)
src/logic/game.cc (+2/-1)
src/logic/immovable.cc (+2/-8)
src/logic/immovable.h (+3/-2)
src/logic/instances.h (+4/-0)
src/logic/militarysite.h (+5/-0)
src/logic/player.cc (+1/-1)
src/logic/productionsite.cc (+1/-1)
src/logic/productionsite.h (+5/-0)
src/logic/ship.h (+6/-1)
src/logic/soldier.h (+2/-2)
src/logic/trainingsite.h (+3/-0)
src/logic/tribe.cc (+3/-6)
src/logic/ware_descr.cc (+1/-1)
src/logic/ware_descr.h (+2/-0)
src/logic/warehouse.cc (+2/-1)
src/logic/warehouse.h (+3/-0)
src/logic/worker.cc (+3/-3)
src/logic/worker_descr.h (+2/-0)
src/map_io/widelands_map_buildingdata_data_packet.cc (+3/-3)
src/scripting/lua_bases.cc (+92/-0)
src/scripting/lua_bases.h (+3/-0)
src/scripting/lua_coroutine.cc (+46/-21)
src/scripting/lua_coroutine.h (+11/-4)
src/scripting/lua_map.cc (+948/-19)
src/scripting/lua_map.h (+310/-1)
src/scripting/luna_impl.h (+1/-0)
src/scripting/scripting.h (+0/-2)
src/ui_basic/CMakeLists.txt (+2/-0)
src/ui_basic/helpwindow.cc (+18/-14)
src/ui_basic/helpwindow.h (+9/-3)
src/wui/buildingwindow.cc (+2/-2)
src/wui/game_debug_ui.cc (+2/-2)
test/maps/lua_persistence.wmf/scripting/test_persistence.lua (+8/-0)
test/maps/lua_testsuite.wmf/scripting/cplayer.lua (+8/-10)
test/maps/lua_testsuite.wmf/scripting/immovables_descriptions.lua (+379/-0)
test/maps/lua_testsuite.wmf/scripting/init.lua (+1/-0)
tribes/atlanteans/armorsmithy/conf (+2/-2)
tribes/atlanteans/armorsmithy/help.lua (+31/-0)
tribes/atlanteans/bakery/help.lua (+32/-0)
tribes/atlanteans/blackroot_farm/help.lua (+31/-0)
tribes/atlanteans/burners_house/help.lua (+31/-0)
tribes/atlanteans/castle/help.lua (+22/-0)
tribes/atlanteans/coalmine/help.lua (+31/-0)
tribes/atlanteans/crystalmine/help.lua (+31/-0)
tribes/atlanteans/dungeon/help.lua (+40/-0)
tribes/atlanteans/farm/help.lua (+31/-0)
tribes/atlanteans/fish_breeders_house/conf (+1/-1)
tribes/atlanteans/fish_breeders_house/help.lua (+31/-0)
tribes/atlanteans/fishers_house/conf (+1/-1)
tribes/atlanteans/fishers_house/help.lua (+32/-0)
tribes/atlanteans/foresters_house/conf (+1/-1)
tribes/atlanteans/foresters_house/help.lua (+32/-0)
tribes/atlanteans/gold-spinning-mill/help.lua (+31/-0)
tribes/atlanteans/goldmine/help.lua (+31/-0)
tribes/atlanteans/guardhall/help.lua (+22/-0)
tribes/atlanteans/guardhouse/help.lua (+22/-0)
tribes/atlanteans/headquarters/help.lua (+22/-0)
tribes/atlanteans/high_tower/help.lua (+22/-0)
tribes/atlanteans/horsefarm/help.lua (+32/-0)
tribes/atlanteans/hunters_house/conf (+1/-1)
tribes/atlanteans/hunters_house/help.lua (+32/-0)
tribes/atlanteans/ironmine/help.lua (+31/-0)
tribes/atlanteans/labyrinth/help.lua (+48/-0)
tribes/atlanteans/mill/help.lua (+32/-0)
tribes/atlanteans/port/help.lua (+29/-0)
tribes/atlanteans/quarry/help.lua (+31/-0)
tribes/atlanteans/sawmill/help.lua (+31/-0)
tribes/atlanteans/scouts_house/help.lua (+31/-0)
tribes/atlanteans/shipyard/help.lua (+31/-0)
tribes/atlanteans/small_tower/help.lua (+22/-0)
tribes/atlanteans/smelting_works/help.lua (+31/-0)
tribes/atlanteans/smokery/help.lua (+31/-0)
tribes/atlanteans/spiderfarm/help.lua (+31/-0)
tribes/atlanteans/toolsmithy/conf (+2/-2)
tribes/atlanteans/toolsmithy/help.lua (+31/-0)
tribes/atlanteans/tower/help.lua (+22/-0)
tribes/atlanteans/warehouse/help.lua (+21/-0)
tribes/atlanteans/weaponsmithy/conf (+2/-2)
tribes/atlanteans/weaponsmithy/help.lua (+31/-0)
tribes/atlanteans/weaving-mill/help.lua (+31/-0)
tribes/atlanteans/well/help.lua (+32/-0)
tribes/atlanteans/woodcutters_house/conf (+1/-1)
tribes/atlanteans/woodcutters_house/help.lua (+31/-0)
tribes/barbarians/axfactory/help.lua (+24/-53)
tribes/barbarians/bakery/help.lua (+22/-44)
tribes/barbarians/barrier/help.lua (+15/-2)
tribes/barbarians/battlearena/help.lua (+29/-44)
tribes/barbarians/big_inn/help.lua (+24/-2)
tribes/barbarians/brewery/help.lua (+24/-2)
tribes/barbarians/burners_house/conf (+2/-2)
tribes/barbarians/burners_house/help.lua (+24/-2)
tribes/barbarians/cattlefarm/help.lua (+22/-36)
tribes/barbarians/citadel/help.lua (+15/-2)
tribes/barbarians/coalmine/help.lua (+23/-46)
tribes/barbarians/deep_coalmine/help.lua (+25/-49)
tribes/barbarians/deep_goldmine/help.lua (+23/-44)
tribes/barbarians/deep_oremine/help.lua (+23/-44)
tribes/barbarians/deeper_coalmine/help.lua (+24/-49)
tribes/barbarians/deeper_goldmine/help.lua (+23/-44)
tribes/barbarians/deeper_oremine/help.lua (+23/-44)
tribes/barbarians/donjon/help.lua (+15/-2)
tribes/barbarians/farm/help.lua (+19/-39)
tribes/barbarians/fishers_hut/conf (+1/-1)
tribes/barbarians/fishers_hut/help.lua (+22/-38)
tribes/barbarians/fortress/help.lua (+15/-2)
tribes/barbarians/gamekeepers_hut/help.lua (+22/-32)
tribes/barbarians/goldmine/help.lua (+22/-41)
tribes/barbarians/granitemine/help.lua (+22/-41)
tribes/barbarians/hardener/help.lua (+24/-2)
tribes/barbarians/headquarters/help.lua (+15/-2)
tribes/barbarians/headquarters_interim/help.lua (+15/-2)
tribes/barbarians/helmsmithy/help.lua (+24/-2)
tribes/barbarians/hunters_hut/conf (+1/-1)
tribes/barbarians/hunters_hut/help.lua (+22/-40)
tribes/barbarians/inn/help.lua (+24/-2)
tribes/barbarians/lime_kiln/conf (+2/-2)
tribes/barbarians/lime_kiln/help.lua (+22/-43)
tribes/barbarians/lumberjacks_hut/help.lua (+21/-37)
tribes/barbarians/metalworks/help.lua (+22/-59)
tribes/barbarians/micro-brewery/help.lua (+21/-42)
tribes/barbarians/oremine/help.lua (+22/-41)
tribes/barbarians/port/help.lua (+22/-2)
tribes/barbarians/quarry/conf (+2/-2)
tribes/barbarians/quarry/help.lua (+21/-35)
tribes/barbarians/rangers_hut/conf (+2/-2)
tribes/barbarians/rangers_hut/help.lua (+23/-32)
tribes/barbarians/reed_yard/help.lua (+22/-36)
tribes/barbarians/scouts_hut/help.lua (+24/-2)
tribes/barbarians/sentry/help.lua (+15/-2)
tribes/barbarians/shipyard/help.lua (+25/-2)
tribes/barbarians/smelting_works/help.lua (+24/-2)
tribes/barbarians/tavern/help.lua (+24/-2)
tribes/barbarians/trainingcamp/help.lua (+37/-52)
tribes/barbarians/warehouse/help.lua (+14/-2)
tribes/barbarians/warmill/help.lua (+24/-55)
tribes/barbarians/weaving-mill/conf (+3/-3)
tribes/barbarians/weaving-mill/help.lua (+24/-2)
tribes/barbarians/well/help.lua (+22/-37)
tribes/empire/arena/help.lua (+39/-0)
tribes/empire/armorsmithy/help.lua (+31/-0)
tribes/empire/bakery/help.lua (+32/-0)
tribes/empire/barracks/help.lua (+22/-0)
tribes/empire/barrier/help.lua (+26/-0)
tribes/empire/brewery/help.lua (+31/-0)
tribes/empire/burners_house/conf (+2/-2)
tribes/empire/burners_house/help.lua (+31/-0)
tribes/empire/castle/help.lua (+22/-0)
tribes/empire/coalmine/help.lua (+32/-0)
tribes/empire/colosseum/help.lua (+39/-0)
tribes/empire/deep_coalmine/help.lua (+32/-0)
tribes/empire/deep_goldmine/help.lua (+31/-0)
tribes/empire/deep_marblemine/help.lua (+31/-0)
tribes/empire/deep_oremine/help.lua (+31/-0)
tribes/empire/donkeyfarm/help.lua (+32/-0)
tribes/empire/farm/help.lua (+31/-0)
tribes/empire/fishers_house/conf (+1/-1)
tribes/empire/fishers_house/help.lua (+32/-0)
tribes/empire/foresters_house/help.lua (+32/-0)
tribes/empire/fortress/help.lua (+22/-0)
tribes/empire/goldmine/help.lua (+32/-0)
tribes/empire/headquarters/help.lua (+22/-0)
tribes/empire/headquarters_shipwreck/help.lua (+22/-0)
tribes/empire/hunters_house/conf (+1/-1)
tribes/empire/hunters_house/help.lua (+32/-0)
tribes/empire/inn/help.lua (+31/-0)
tribes/empire/lumberjacks_house/conf (+1/-1)
tribes/empire/lumberjacks_house/help.lua (+31/-0)
tribes/empire/marblemine/help.lua (+31/-0)
tribes/empire/mill/help.lua (+32/-0)
tribes/empire/oremine/help.lua (+32/-0)
tribes/empire/outpost/help.lua (+22/-0)
tribes/empire/piggery/help.lua (+31/-0)
tribes/empire/port/help.lua (+29/-0)
tribes/empire/quarry/help.lua (+31/-0)
tribes/empire/sawmill/help.lua (+31/-0)
tribes/empire/scouts_house/help.lua (+31/-0)
tribes/empire/sentry/help.lua (+25/-0)
tribes/empire/sheepfarm/help.lua (+31/-0)
tribes/empire/shipyard/help.lua (+32/-0)
tribes/empire/smelting_works/help.lua (+31/-0)
tribes/empire/stonemasons_house/conf (+2/-2)
tribes/empire/stonemasons_house/help.lua (+31/-0)
tribes/empire/tavern/help.lua (+31/-0)
tribes/empire/toolsmithy/conf (+2/-2)
tribes/empire/toolsmithy/help.lua (+31/-0)
tribes/empire/tower/help.lua (+22/-0)
tribes/empire/trainingcamp/help.lua (+46/-0)
tribes/empire/vineyard/help.lua (+31/-0)
tribes/empire/warehouse/help.lua (+21/-0)
tribes/empire/weaponsmithy/help.lua (+31/-0)
tribes/empire/weaving-mill/help.lua (+31/-0)
tribes/empire/well/help.lua (+32/-0)
tribes/empire/winery/conf (+2/-2)
tribes/empire/winery/help.lua (+31/-0)
Changed in widelands: | |
milestone: | none → build18-rc1 |
Changed in widelands: | |
status: | New → Triaged |
Changed in widelands: | |
milestone: | build18-rc1 → build19-rc1 |
Changed in widelands: | |
status: | In Progress → Fix Committed |
Changed in widelands: | |
assignee: | GunChleoc (gunchleoc) → nobody |
tags: |
added: internationalization removed: i18n |
Changed in widelands: | |
status: | Fix Committed → Fix Released |
The suggestions of Astuur had these headlines, so I put them in. Because of the window names that already contain the building’s name I commented them out (still let them in to know which building I’m working on). Unfortunately I don’t know how the .pot files are built so I wouldn’t have expected to see the comments in there.
So just ignore them at the moments…