<URL: http://bugs.freeciv.org/Ticket/Display.html?id=39693 >

On 10/09/2007, William Allen Simpson wrote:
>
> I used the existing infinity and existing "Turns to target: %d", just to
> avoid making new translations.  If that's not acceptable, and it's OK to
> add a new translation, then "Unreachable" would be fine there.

 - Above fixed
 - Made "Unreachable" qualified string since there is also unit class
flag "Unreachable"
 - S2_1 version fixes also separate gui-sdl implementation. For S2_2
and trunk #39694 will take care of this too


 - ML

diff -Nurd -X.diff_ignore freeciv/client/text.c freeciv/client/text.c
--- freeciv/client/text.c	2007-08-25 15:28:38.000000000 +0300
+++ freeciv/client/text.c	2007-09-14 21:10:39.000000000 +0300
@@ -700,7 +700,8 @@
     int min, max;
 
     if (!goto_get_turns(&min, &max)) {
-      astr_add_line(&str, _("Turns to target: %d"), min);
+      /* TRANS: Impossible to reach goto target tile */
+      astr_add_line(&str, Q_("?goto:Unreachable"));
     } else if (min == max) {
       astr_add_line(&str, _("Turns to target: %d"), max);
     } else {
diff -Nurd -X.diff_ignore freeciv/client/gui-sdl/mapview.c freeciv/client/gui-sdl/mapview.c
--- freeciv/client/gui-sdl/mapview.c	2007-08-25 15:16:07.000000000 +0300
+++ freeciv/client/gui-sdl/mapview.c	2007-09-14 21:09:49.000000000 +0300
@@ -554,7 +554,8 @@
     int min, max;
 
     if (!goto_get_turns(&min, &max)) {
-      astr_add_line(&str, _("Turns to target: %d"), min);
+      /* TRANS: Impossible to reach goto target tile */
+      astr_add_line(&str, Q_("?goto:Unreachable"), min);
     } else if (min == max) {
       astr_add_line(&str, _("Turns to target: %d"), max);
     } else {
diff -Nurd -X.diff_ignore freeciv/client/text.c freeciv/client/text.c
--- freeciv/client/text.c	2007-08-25 15:16:07.000000000 +0300
+++ freeciv/client/text.c	2007-09-14 21:10:06.000000000 +0300
@@ -686,7 +686,8 @@
     int min, max;
 
     if (!goto_get_turns(&min, &max)) {
-      astr_add_line(&str, _("Turns to target: %d"), min);
+      /* TRANS: Impossible to reach goto target tile */
+      astr_add_line(&str, Q_("?goto:Unreachable"));
     } else if (min == max) {
       astr_add_line(&str, _("Turns to target: %d"), max);
     } else {
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to