Problems with translating "%1$s %2$s mine %3$s"

Bug #1310774 reported by wl-zocker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Fix Released
Low
Unassigned

Bug Description

While translating, I stumbled across the string
"%1$s %2$s mine %3$s"
with the note
"* TRANSLATORS: %1$s = production site name, %2$s = production program name, %3$s = resource".
The string can be found in src/logic/production_program.cc:1129.

When I try to insert the %s parts according to the annotations, I get something like "Iron mine mines iron mine iron", which makes no sense.
Can someone explain how I have to understand it (or fix the string if it is wrong)? And where can I see this string in-game?

Related branches

Revision history for this message
GunChleoc (gunchleoc) wrote :

If you hover with your mouse over building, you get status messages once in a while. These strings are assembled together from a bunch of strings and are quite tricky to get right. I might have to revisit these strings again sometime to make sure they all work.

I translated this particular string as "%1$s %2$s – mining %3$s" in my language - maybe this helps a bit.

Changed in widelands:
assignee: nobody → GunChleoc (gunchleoc)
Revision history for this message
wl-zocker (wl-zocker) wrote :

I only get the hover texts "Failed work because ...", "Produced ..." and "Skipped work because ...", so some more information would be welcome (what are the circumstances for this particular string to appear?).
From what I understand, %2$s and "mine %3$s" do basically contain the same information and are therefore redundant. Or can you give me some strings that can appear instead of the placeholders where this is not the case?

Revision history for this message
GunChleoc (gunchleoc) wrote :

I will have to research this. The code is quite complex.

Changed in widelands:
status: New → Confirmed
importance: Undecided → Low
tags: added: internationalization
GunChleoc (gunchleoc)
Changed in widelands:
status: Confirmed → In Progress
GunChleoc (gunchleoc)
Changed in widelands:
status: In Progress → Fix Committed
milestone: none → build19-rc1
GunChleoc (gunchleoc)
Changed in widelands:
assignee: GunChleoc (gunchleoc) → nobody
GunChleoc (gunchleoc)
Changed in widelands:
status: Fix Committed → Fix Released
Revision history for this message
GunChleoc (gunchleoc) wrote :

Fixed in build19-rc1.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.