Author: cazfi Date: Sat Feb 21 11:05:40 2015 New Revision: 28251 URL: http://svn.gna.org/viewcvs/freeciv?rev=28251&view=rev Log: Start TRANS: comments with simple "//" instead of "///" so they get correctly collected for translation.
Reported by Jacob Nevins <jtn> Patch by Louis Moureaux <louis94> See bug #23274 Modified: trunk/client/gui-qt/helpdlg.cpp Modified: trunk/client/gui-qt/helpdlg.cpp URL: http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-qt/helpdlg.cpp?rev=28251&r1=28250&r2=28251&view=diff ============================================================================== --- trunk/client/gui-qt/helpdlg.cpp (original) +++ trunk/client/gui-qt/helpdlg.cpp Sat Feb 21 11:05:40 2015 @@ -633,7 +633,7 @@ // Tech requirement tech = utype->require_advance; if (tech && tech != advance_by_number(0)) { - /// TRANS: Unit requires technology + // TRANS: Unit requires technology add_info_label(QString(_("Requires %1.")) .arg(advance_name_translation(tech))); } else { @@ -645,14 +645,14 @@ if (obsolete) { tech = obsolete->require_advance; if (tech && tech != advance_by_number(0)) { - /// TRANS: Current unit obsoleted by other unit (technology - /// required to build other unit) + // TRANS: Current unit obsoleted by other unit (technology + // required to build other unit) add_info_label(QString(_("Obsoleted by %1 (%2).")) .arg(utype_name_translation(obsolete)) .arg(advance_name_translation(tech))); } else { add_info_label( - /// TRANS: Current unit obsoleted by other unit + // TRANS: Current unit obsoleted by other unit QString(_("Obsoleted by %1.")) .arg(utype_name_translation(obsolete))); } @@ -831,15 +831,15 @@ 0, max->movement_cost); add_info_progress(_("Defense bonus:"), MIN(100, pterrain->defense_bonus), 0, 100, - /// TRANS: Display a percentage, eg "50%". + // TRANS: Display a percentage, eg "50%". QString(_("%1%")).arg(pterrain->defense_bonus)); add_info_separator(); if (pterrain->irrigation_result == pterrain) { add_info_label( - /// TRANS: When irrigated, terrain gets a bonus of %1 food; - /// irrigating takes %2 turns + // TRANS: When irrigated, terrain gets a bonus of %1 food; + // irrigating takes %2 turns QString(_(ngettext( "Irrigation: +%1 food in %2 turn", "Irrigation: +%1 food in %2 turns", @@ -848,8 +848,8 @@ .arg(pterrain->irrigation_time)); } else if (pterrain->irrigation_result) { add_info_label( - /// TRANS: When irrigated, terrain gets changed to other terrain %1 - /// in %2 turns + // TRANS: When irrigated, terrain gets changed to other terrain %1 + // in %2 turns QString(_(ngettext( "Irrigation: %1 in %2 turn", "Irrigation: %1 in %2 turns", @@ -860,8 +860,8 @@ if (pterrain->mining_result == pterrain) { add_info_label( - /// TRANS: When mined, terrain gets a bonus of %1 food; mining takes - /// %2 turns + // TRANS: When mined, terrain gets a bonus of %1 food; mining takes + // %2 turns QString(_(ngettext( "Mining: +%1 food in %2 turn", "Mining: +%1 food in %2 turns", @@ -870,8 +870,8 @@ .arg(pterrain->mining_time)); } else if (pterrain->mining_result) { add_info_label( - /// TRANS: When mined, terrain gets changed to other terrain %1 - /// in %2 turns + // TRANS: When mined, terrain gets changed to other terrain %1 + // in %2 turns QString(_(ngettext( "Mining: %1 in %2 turn", "Mining: %1 in %2 turns", @@ -883,8 +883,8 @@ if (pterrain->transform_result && pterrain->transform_result != pterrain) { add_info_label( - /// TRANS: When transformed, terrain gets changed to other terrain %1 - /// in %2 turns + // TRANS: When transformed, terrain gets changed to other terrain %1 + // in %2 turns QString(_(ngettext( "Transform: %1 in %2 turn", "Transform: %1 in %2 turns", @@ -906,12 +906,12 @@ vbox->addLayout(create_terrain_widget( resource_name_translation(*r), canvas, - /// TRANS: %1 food, %2 shields, %3 trade + // TRANS: %1 food, %2 shields, %3 trade QString(_("Tile output becomes %1, %2, %3.")) .arg(pterrain->output[O_FOOD] + (*r)->output[O_FOOD]) .arg(pterrain->output[O_SHIELD] + (*r)->output[O_SHIELD]) .arg(pterrain->output[O_TRADE] + (*r)->output[O_TRADE]), - /// TRANS: Tooltip decorating strings like "1, 2, 3". + // TRANS: Tooltip decorating strings like "1, 2, 3". _("Output (Food, Shields, Trade) of a tile where the resource is " "present."))); qtg_canvas_free(canvas); _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits