Merge lp:~widelands-dev/widelands/bug1504952 into lp:widelands

Proposed by Jens Beyer
Status: Merged
Merged at revision: 7552
Proposed branch: lp:~widelands-dev/widelands/bug1504952
Merge into: lp:widelands
Diff against target: 12 lines (+1/-1)
1 file modified
src/logic/production_program.cc (+1/-1)
To merge this branch: bzr merge lp:~widelands-dev/widelands/bug1504952
Reviewer Review Type Date Requested Status
GunChleoc Approve
Review via email: mp+274080@code.launchpad.net

Description of the change

Merge request since I don't know if simply adding _ macro is enough nowadays, and if it is necessary to do something else because of the new translation stuff :-)

To post a comment you must log in.
Revision history for this message
wl-zocker (wl-zocker) wrote :

You could have done that in the other branch, too.

And I think that is all you need to do, but I am not definitely sure.

Revision history for this message
Jens Beyer (qcumber-some) wrote :

I could have done that, but after my being too eager with the other merge request, I am now pushing everything separately :-)

Regarding the new push... yes, I am really good at that "push first, compile later" game... but I usually stop before the "go on vacation" part ;-)

Revision history for this message
GunChleoc (gunchleoc) wrote :

Yes, the _ macro is perfectly fine.

We only need the fancy stuff if the string contains a number placeholder, or if we have a string that comes up multiple times, but we want to translate it separately ("None", "Unknown", "Yes", "No" and "Other" are prime candidates for those).

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/logic/production_program.cc'
--- src/logic/production_program.cc 2015-10-02 07:02:00 +0000
+++ src/logic/production_program.cc 2015-10-11 15:19:15 +0000
@@ -814,7 +814,7 @@
814 if (game.map().allows_seafaring())814 if (game.map().allows_seafaring())
815 return ps.program_step(game, 0);815 return ps.program_step(game, 0);
816 else {816 else {
817 ps.set_production_result("No use for ships on this map!");817 ps.set_production_result(_("No use for ships on this map!"));
818 return ps.program_end(game, None);818 return ps.program_end(game, None);
819 }819 }
820 }820 }

Subscribers

People subscribed via source and target branches

to status/vote changes: