Author: cazfi
Date: Wed Apr  1 05:44:50 2015
New Revision: 28678

URL: http://svn.gna.org/viewcvs/freeciv?rev=28678&view=rev
Log:
Fixed Qt-client compilation with --disable-nls

Patch by Alexey Novikov <alekswn>

See bug #23415

Modified:
    branches/S2_6/client/gui-qt/helpdlg.cpp

Modified: branches/S2_6/client/gui-qt/helpdlg.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-qt/helpdlg.cpp?rev=28678&r1=28677&r2=28678&view=diff
==============================================================================
--- branches/S2_6/client/gui-qt/helpdlg.cpp     (original)
+++ branches/S2_6/client/gui-qt/helpdlg.cpp     Wed Apr  1 05:44:50 2015
@@ -847,10 +847,10 @@
         add_info_label(
           // TRANS: When irrigated, terrain gets a bonus of %1 food;
           //        irrigating takes %2 turns
-          QString(_(ngettext(
+          QString(PL_(
             "Irrigation: +%1 food in %2 turn",
             "Irrigation: +%1 food in %2 turns",
-            pterrain->irrigation_time)))
+            pterrain->irrigation_time))
           .arg(pterrain->irrigation_food_incr)
           .arg(pterrain->irrigation_time));
       }
@@ -859,10 +859,10 @@
         add_info_label(
           // TRANS: When irrigated, terrain gets changed to other terrain %1
           //        in %2 turns
-          QString(_(ngettext(
+          QString(PL_(
             "Irrigation: %1 in %2 turn",
             "Irrigation: %1 in %2 turns",
-            pterrain->irrigation_time)))
+            pterrain->irrigation_time))
           .arg(terrain_name_translation(pterrain->irrigation_result))
           .arg(pterrain->irrigation_time));
       }
@@ -873,10 +873,10 @@
         add_info_label(
           // TRANS: When mined, terrain gets a bonus of %1 food; mining takes
           //        %2 turns
-          QString(_(ngettext(
+          QString(PL_(
             "Mining: +%1 food in %2 turn",
             "Mining: +%1 food in %2 turns",
-            pterrain->mining_time)))
+            pterrain->mining_time))
           .arg(pterrain->mining_shield_incr)
           .arg(pterrain->mining_time));
       }
@@ -885,10 +885,10 @@
         add_info_label(
           // TRANS: When mined, terrain gets changed to other terrain %1
           //        in %2 turns
-          QString(_(ngettext(
+          QString(PL_(
             "Mining: %1 in %2 turn",
             "Mining: %1 in %2 turns",
-            pterrain->mining_time)))
+            pterrain->mining_time))
           .arg(terrain_name_translation(pterrain->mining_result))
           .arg(pterrain->mining_time));
       }
@@ -900,10 +900,10 @@
         add_info_label(
           // TRANS: When transformed, terrain gets changed to other terrain %1
           //        in %2 turns
-          QString(_(ngettext(
+          QString(PL_(
             "Transform: %1 in %2 turn",
             "Transform: %1 in %2 turns",
-            pterrain->transform_time)))
+            pterrain->transform_time))
           .arg(terrain_name_translation(pterrain->transform_result))
           .arg(pterrain->transform_time));
       }


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to