aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-07-02 11:51:08 +0000
committerThierry Vignaud <tv@mandriva.org>2008-07-02 11:51:08 +0000
commitfe826088bf36e26eb160a5030c5e5ac4c6f52e24 (patch)
tree53a2acc1a6cac6cb959d0e5bc030003c555ead59
parent8818a5b45f4a9f084347e2730b57987b3bb9c187 (diff)
downloadrpmdrake-fe826088bf36e26eb160a5030c5e5ac4c6f52e24.tar
rpmdrake-fe826088bf36e26eb160a5030c5e5ac4c6f52e24.tar.gz
rpmdrake-fe826088bf36e26eb160a5030c5e5ac4c6f52e24.tar.bz2
rpmdrake-fe826088bf36e26eb160a5030c5e5ac4c6f52e24.tar.xz
rpmdrake-fe826088bf36e26eb160a5030c5e5ac4c6f52e24.zip
(translate_group) introduce it in order to be able to translate
"foo|bar" like group names (loosely based on ctreefy()
-rw-r--r--Rpmdrake/gui.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index e5b944e7..fb42f75d 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -800,6 +800,9 @@ sub do_action {
$res;
}
+sub translate_group {
+ join('/', map { translate($_) } split m|/|, $_[0]);
+}
sub ctreefy {
join('|', map { translate($_) } split m|/|, $_[0]);