Author: sveinung
Date: Fri May  5 00:26:49 2017
New Revision: 35390

URL: http://svn.gna.org/viewcvs/freeciv?rev=35390&view=rev
Log:
Explain why the probability is an interval.

Explain that the action probability is a wide interval because the player
don't have access to needed information in the action selection dialog
button tool tip.

See hrm Feature #657217

Modified:
    trunk/common/actions.c

Modified: trunk/common/actions.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/actions.c?rev=35390&r1=35389&r2=35390&view=diff
==============================================================================
--- trunk/common/actions.c      (original)
+++ trunk/common/actions.c      Fri May  5 00:26:49 2017
@@ -985,12 +985,21 @@
              (double)prob.max / ACTPROB_VAL_1_PCT);
   } else {
     astr_set(&tool_tip,
-             /* TRANS: action probability range (min to max). Given in
-              * percentage. Resolution is 0.5%. */
+             /* TRANS: action probability interval (min to max). Given in
+              * percentage. Resolution is 0.5%. The string at the end is
+              * shown when the interval is wide enough to not be caused by
+              * rounding. It explains that the interval in imprecise because
+              * the player doesn't have enough information. */
              _("The probability of success is %.1f%%, %.1f%% or somewhere"
-               " in between."),
+               " in between.%s"),
              (double)prob.min / ACTPROB_VAL_1_PCT,
-             (double)prob.max / ACTPROB_VAL_1_PCT);
+             (double)prob.max / ACTPROB_VAL_1_PCT,
+             prob.max - prob.min > 1 ?
+               /* TRANS: explanation used in the action probability tooltip
+                * above. */
+               _(" (This is the most precise interval I can calculate "
+                 "given the information our nation has access to.)") :
+               "");
   }
 
   return astr_str(&tool_tip);


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

Reply via email to