Author: benjimanw Date: Sun Apr 20 21:59:11 2008 New Revision: 46877 URL: http://svn.opensuse.org/viewcvs/yast?rev=46877&view=rev Log: Allow translatable repository names, as people are using this, despite not being in the spec. Modified: trunk/metapackage/src/OneClickInstall.ycp Modified: trunk/metapackage/src/OneClickInstall.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/metapackage/src/OneClickInstall.ycp?rev=46877&r1=46876&r2=46877&view=diff ============================================================================== --- trunk/metapackage/src/OneClickInstall.ycp (original) +++ trunk/metapackage/src/OneClickInstall.ycp Sun Apr 20 21:59:11 2008 @@ -151,8 +151,14 @@ if (recommended != "false") recommended = "true"; - //Find the name of this repository - string name = YPX::SelectValue(xml,THIS_REPO_XPATH + "name"); + + //Get the name in our language + string name = YPX::SelectValue(xml,THIS_REPO_XPATH + "name[@lang='" + Language::language + "']"); + //If that failed, try without a language + if (name == "") + name = YPX::SelectValue(xml,THIS_REPO_XPATH + "name[not(@lang)]"); + + //Find the summary of this repository, in our language. string summary = YPX::SelectValue(xml,THIS_REPO_XPATH + "summary[@lang='"+ Language::language +"']"); //If that failed, try without a language. -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org