Author: sveinung Date: Fri May 5 00:29:24 2017 New Revision: 35392 URL: http://svn.gna.org/viewcvs/freeciv?rev=35392&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: branches/S2_6/common/actions.c Modified: branches/S2_6/common/actions.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_6/common/actions.c?rev=35392&r1=35391&r2=35392&view=diff ============================================================================== --- branches/S2_6/common/actions.c (original) +++ branches/S2_6/common/actions.c Fri May 5 00:29:24 2017 @@ -423,12 +423,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