Author: aschnell Date: Thu Apr 17 20:46:12 2008 New Revision: 46807 URL: http://svn.opensuse.org/viewcvs/yast?rev=46807&view=rev Log: - mark for translation Modified: branches/tmp/aschnell/part-redesign/storage/src/modules/DualMultiSelectionBox.ycp Modified: branches/tmp/aschnell/part-redesign/storage/src/modules/DualMultiSelectionBox.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/part-redesign/storage/src/modules/DualMultiSelectionBox.ycp?rev=46807&r1=46806&r2=46807&view=diff ============================================================================== --- branches/tmp/aschnell/part-redesign/storage/src/modules/DualMultiSelectionBox.ycp (original) +++ branches/tmp/aschnell/part-redesign/storage/src/modules/DualMultiSelectionBox.ycp Thu Apr 17 20:46:12 2008 @@ -39,18 +39,18 @@ return `HBox( `VBox( - `MultiSelectionBox(`id(`unsel), "Available Physical Volumes:", MakeUnselContents()), + `MultiSelectionBox(`id(`unsel), _("Available Physical Volumes:"), MakeUnselContents()), `ReplacePoint(`id(`unsel_rp), `Empty()) ), `VBox( - `PushButton(`id(`add), "Add" + " " + UI::Glyph(`ArrowRight)), - `PushButton(`id(`add_all), "Add All" + " " + UI::Glyph(`ArrowRight)), + `PushButton(`id(`add), _("Add") + " " + UI::Glyph(`ArrowRight)), + `PushButton(`id(`add_all), _("Add All") + " " + UI::Glyph(`ArrowRight)), `VSpacing(1), - `PushButton(`id(`remove), UI::Glyph(`ArrowLeft) + " " + "Remove"), - `PushButton(`id(`remove_all), UI::Glyph(`ArrowLeft) + " " + "Remove All") + `PushButton(`id(`remove), UI::Glyph(`ArrowLeft) + " " + _("Remove")), + `PushButton(`id(`remove_all), UI::Glyph(`ArrowLeft) + " " + _("Remove All")) ), `VBox( - `MultiSelectionBox(`id(`sel), "Selected Physical Volumes:", MakeSelContents()), + `MultiSelectionBox(`id(`sel), _("Selected Physical Volumes:"), MakeSelContents()), `ReplacePoint(`id(`sel_rp), `Empty()) ) ); @@ -87,6 +87,12 @@ } + global list<term> GetUnselectedItems() + { + return filter(term item, GetItems(), { return item[2]:false == false; }); + } + + global void Handle(any widget) { if (widget == `add) -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org