Skip to content

Commit

Permalink
While this is far from the only place where variables are used in tra…
Browse files Browse the repository at this point in the history
…nslated text, the use of variables adds challenges to some translations.

The particular discussion which led to this reversion relates to the Czech translation.

Revert "Refactor handling of allies in UtBS. Resolves wesnoth#6158."
Revert "Add po hints where self-referential troll names have been replaced with variables."

This reverts commit 541f0a1.
This reverts commit 4a3ddfb.
  • Loading branch information
Wedge009 committed Mar 14, 2022
1 parent 9282828 commit d5b95e6
Show file tree
Hide file tree
Showing 9 changed files with 758 additions and 450 deletions.
Expand Up @@ -144,14 +144,14 @@

[then]
[set_variable]
name=ally_id
name=ally_name
value=Rogrimir
[/set_variable]
[/then]

[else]
[set_variable]
name=ally_id
name=ally_name
value=Jarl
[/set_variable]

Expand Down Expand Up @@ -363,11 +363,26 @@
message= _ "That I may be able to help you with. We haven’t sent anyone to the surface in years, but we do know of a passage that leads to the ancient northern gate. Several generations ago we used to trade heavily with humans that lived north of the mountains, but then some new human came to power and decreed that all contact with us should be cut off. We sent messengers to find out why, but they never returned."
[/message]

{SET_ALLY_UNIT}
[message]
speaker=King Thurongar
message= _ "But dwarves are excellent delvers, and we keep meticulous maps of all the tunnels we have explored. We should still have maps of the tunnels leading back to the surface. Of course I doubt you would be able to understand them, so, $ally_unit.name here has volunteered to lead you to the surface."
[/message]
[if]
[variable]
name=ally_name
equals=Rogrimir
[/variable]

[then]
[message]
speaker=King Thurongar
message= _ "But dwarves are excellent delvers, and we keep meticulous maps of all the tunnels we have explored. We should still have maps of the tunnels leading back to the surface. Of course I doubt you would be able to understand them, so, Rogrimir here has volunteered to lead you to the surface."
[/message]
[/then]

[else]
[message]
speaker=King Thurongar
message= _ "But dwarves are excellent delvers, and we keep meticulous maps of all the tunnels we have explored. We should still have maps of the tunnels leading back to the surface. Of course I doubt you would be able to understand them, so, Jarl here has volunteered to lead you to the surface."
[/message]
[/else]
[/if]

[if]
[variable]
Expand All @@ -389,18 +404,33 @@

[else]
[message]
speaker=$ally_id
speaker=$ally_name
message= _ "You did a great service for my brothers. In exchange, as much as I hate the light, I am the one who knows the upper tunnels the best, so I’ll be your guide."
[/message]
[/else]
[/if]
{CLEAR_VARIABLE saved_rogrimir}

[message]
speaker=Kaleh
message= _ "Thank you very much for your help. We were worried about getting lost in all these twisting tunnels. And we would be honored to have you come with us, $ally_unit.name."
[/message]
{CLEAR_VARIABLE ally_unit}
[if]
[variable]
name=ally_name
equals=Rogrimir
[/variable]

[then]
[message]
speaker=Kaleh
message= _ "Thank you very much for your help. We were worried about getting lost in all these twisting tunnels. And we would be honored to have you come with us, Rogrimir."
[/message]
[/then]

[else]
[message]
speaker=Kaleh
message= _ "Thank you very much for your help. We were worried about getting lost in all these twisting tunnels. And we would be honored to have you come with us, Jarl."
[/message]
[/else]
[/if]

[if]
[have_unit]
Expand Down
Expand Up @@ -142,14 +142,14 @@

[then]
[set_variable]
name=ally_id
name=ally_name
value=Grog
[/set_variable]
[/then]

[else]
[set_variable]
name=ally_id
name=ally_name
value=Nog
[/set_variable]

Expand Down Expand Up @@ -356,11 +356,26 @@
message= _ "Darmog has never been above ground, but Darmog understand your story. A leader must protect and care for his people. Every people deserve to find their own home. If we can help you we will."
[/message]

{SET_ALLY_UNIT}
[message]
speaker=Spiritual Advisor
message= _ "We may be able to help you find a way back to the sunlit lands. In our temples we do keep records of the past. We have not walked above the earth for many many generations, not since the darkness drove us underground. But we are masters of the underground lands, and we have explored many tunnels. Recently one of our scouts found a path that leads north back to the sunlit lands, I think it may be the way you are trying to go. In reward for your achievements, we will help you. $ally_unit.name has volunteered to protect you and lead you back to the sunlight lands."
[/message]
[if]
[variable]
name=ally_name
equals=Grog
[/variable]

[then]
[message]
speaker=Spiritual Advisor
message= _ "We may be able to help you find a way back to the sunlit lands. In our temples we do keep records of the past. We have not walked above the earth for many many generations, not since the darkness drove us underground. But we are masters of the underground lands, and we have explored many tunnels. Recently one of our scouts found a path that leads north back to the sunlit lands, I think it may be the way you are trying to go. In reward for your achievements, we will help you. Grog has volunteered to protect you and lead you back to the sunlight lands."
[/message]
[/then]

[else]
[message]
speaker=Spiritual Advisor
message= _ "We may be able to help you find a way back to the sunlit lands. In our temples we do keep records of the past. We have not walked above the earth for many many generations, not since the darkness drove us underground. But we are masters of the underground lands, and we have explored many tunnels. Recently one of our scouts found a path that leads north back to the sunlit lands, I think it may be the way you are trying to go. In reward for your achievements, we will help you. Nog has volunteered to protect you and lead you back to the sunlight lands."
[/message]
[/else]
[/if]

[if]
[variable]
Expand Down Expand Up @@ -389,11 +404,26 @@
[/if]
{CLEAR_VARIABLE saved_grog}

[message]
speaker=Kaleh
message= _ "Thank you very much for your help. We were worried about getting lost in all these twisting tunnels. And we would be honored to have you come with us, $ally_unit.name."
[/message]
{CLEAR_VARIABLE ally_unit}
[if]
[variable]
name=ally_name
equals=Grog
[/variable]

[then]
[message]
speaker=Kaleh
message= _ "Thank you very much for your help. We were worried about getting lost in all these twisting tunnels. And we would be honored to have you come with us, Grog."
[/message]
[/then]

[else]
[message]
speaker=Kaleh
message= _ "Thank you very much for your help. We were worried about getting lost in all these twisting tunnels. And we would be honored to have you come with us, Nog."
[/message]
[/else]
[/if]

[if]
[have_unit]
Expand Down

0 comments on commit d5b95e6

Please sign in to comment.