Author: locilka Date: Wed Jul 2 11:56:40 2008 New Revision: 48770 URL: http://svn.opensuse.org/viewcvs/yast?rev=48770&view=rev Log: More comments Comments for translators Modified: trunk/packager/src/modules/WebpinPackageSearch.ycp Modified: trunk/packager/src/modules/WebpinPackageSearch.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/src/modules/WebpinPackageSearch.ycp?rev=48770&r1=48769&r2=48770&view=diff ============================================================================== --- trunk/packager/src/modules/WebpinPackageSearch.ycp (original) +++ trunk/packager/src/modules/WebpinPackageSearch.ycp Wed Jul 2 11:56:40 2008 @@ -133,13 +133,21 @@ distro = one_package["distro"]:GuessCurrentDistribution(); repoURL = one_package["repoURL"]:""; + // all repositories repositories[distro] = add (repositories[distro]:[], repoURL); + // all packages packages[distro] = add (packages[distro]:[], $[ "item" : [$[ "name" : [$[ "content" : one_package["name"]:"" ]], "summary" : [$[ "content" : one_package["summary"]:"" ]], - "description" : [$[ "content" : one_package["description"]:one_package["summary"]:_("No further information available.") ]], + "description" : [ + $[ + "content" : + // TRANSLATORS: package description item + one_package["description"]:one_package["summary"]:_("No further information available.") + ] + ], ]] ]); }); @@ -152,7 +160,9 @@ return $[ "repository" : [$[ "name" : [$[ "content" : one_repo ]], "url" : [$[ "content" : one_repo ]], + // TRANSLATORS: repository summary "summary" : [$[ "content" : _("Unknown repository") ]], + // TRANSLATORS: repositry description "description" : [$[ "content" : _("No further information available, use at your own risk.") ]], ]]]; })), @@ -241,6 +251,7 @@ return []; } + // if distro string is nil, try to guess the current one if (distribution == nil) { distribution = GuessCurrentDistribution(); y2milestone ("Distribution not set, guessing '%1'", distribution); @@ -286,6 +297,14 @@ ret_list[counter] = one_entry; }); + integer nr_packages_found = size (ret_list); + + if (nr_packages_found == nil || nr_packages_found == 0) { + y2warning ("Nothing found"); + } else { + y2milestone ("%1 packages found", nr_packages_found); + } + return ret_list; } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org