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
1=== modified file 'src/logic/production_program.cc'
2--- src/logic/production_program.cc 2015-10-02 07:02:00 +0000
3+++ src/logic/production_program.cc 2015-10-11 15:19:15 +0000
4@@ -814,7 +814,7 @@
5 if (game.map().allows_seafaring())
6 return ps.program_step(game, 0);
7 else {
8- ps.set_production_result("No use for ships on this map!");
9+ ps.set_production_result(_("No use for ships on this map!"));
10 return ps.program_end(game, None);
11 }
12 }

Subscribers

People subscribed via source and target branches

to status/vote changes: