Author: jdsn Date: Tue Sep 23 19:24:21 2008 New Revision: 51433 URL: http://svn.opensuse.org/viewcvs/yast?rev=51433&view=rev Log: fixing the autoyast summary Modified: trunk/system-profile/VERSION trunk/system-profile/package/yast2-system-profile.changes trunk/system-profile/src/system-profile_auto.ycp trunk/system-profile/src/texts.ycp Modified: trunk/system-profile/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/system-profile/VERSION?rev=51433&r1=51432&r2=51433&view=diff ============================================================================== --- trunk/system-profile/VERSION (original) +++ trunk/system-profile/VERSION Tue Sep 23 19:24:21 2008 @@ -1 +1 @@ -2.17.0 +2.17.1 Modified: trunk/system-profile/package/yast2-system-profile.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/system-profile/package/yast2-system-profile.changes?rev=51433&r1=51432&r2=51433&view=diff ============================================================================== --- trunk/system-profile/package/yast2-system-profile.changes (original) +++ trunk/system-profile/package/yast2-system-profile.changes Tue Sep 23 19:24:21 2008 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Tue Sep 23 19:23:11 CEST 2008 - jdsn@suse.de + +- fixing the AutoYaST summary +- 2.17.1 + +------------------------------------------------------------------- Wed Sep 17 15:55:18 2008 - jdsn@suse.de - initial version Modified: trunk/system-profile/src/system-profile_auto.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/system-profile/src/system-profile_auto.ycp?rev=51433&r1=51432&r2=51433&view=diff ============================================================================== --- trunk/system-profile/src/system-profile_auto.ycp (original) +++ trunk/system-profile/src/system-profile_auto.ycp Tue Sep 23 19:24:21 2008 @@ -38,6 +38,7 @@ y2milestone("SystemProfile auto started"); import "SystemProfile"; +import "Summary"; include "system-profile/dialogs.ycp"; include "system-profile/texts.ycp"; textdomain "system-profile"; @@ -55,8 +56,32 @@ y2debug("func=%1", func); y2debug("param=%1", param); + + + + +/** + * Create a textual summary + * @return summary of the current configuration + */ +string Summary() +{ + string summary = ""; + summary = Summary::AddHeader (summary, TITLES["smoltProject"]:"" ); + summary = Summary::AddLine (summary, SystemProfile::smoltMonthlyEnabled ? UIELEM["sendProfileMonthly"]:"" : UIELEM["disbleSendingProfile"]:""); + return summary; +} + + + + + +/* Create a summary*/ +if(func == "Summary") { + ret = Summary(); +} /* Reset configuration */ -if (func == "Reset") { +else if (func == "Reset") { SystemProfile::Import($[]); ret = $[]; } Modified: trunk/system-profile/src/texts.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/system-profile/src/texts.ycp?rev=51433&r1=51432&r2=51433&view=diff ============================================================================== --- trunk/system-profile/src/texts.ycp (original) +++ trunk/system-profile/src/texts.ycp Tue Sep 23 19:24:21 2008 @@ -68,7 +68,9 @@ "send" : _("Send Profile"), "show" : _("Show Profile"), "sendNow" : _("Send Profile Now"), - "sendOnce" : _("Send Profile Once") + "sendOnce" : _("Send Profile Once"), + "sendProfileMonthly" : _("Send profile monthly."), + "disbleSendingProfile" : _("Do not send profile monthly.") ]; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org