summaryrefslogtreecommitdiffstats
path: root/perl-install/share
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-10-03 22:08:31 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-10-03 22:08:31 +0000
commit4be61f0927cebf3788ac619794c804fd1c926866 (patch)
tree4cc39534990e6cf7b7af55bed0fd594a14f11319 /perl-install/share
parentf5e47bfe1e7777fec98fd44395be350e8da6070d (diff)
downloaddrakx-4be61f0927cebf3788ac619794c804fd1c926866.tar
drakx-4be61f0927cebf3788ac619794c804fd1c926866.tar.gz
drakx-4be61f0927cebf3788ac619794c804fd1c926866.tar.bz2
drakx-4be61f0927cebf3788ac619794c804fd1c926866.tar.xz
drakx-4be61f0927cebf3788ac619794c804fd1c926866.zip
no_comment
Diffstat (limited to 'perl-install/share')
-rw-r--r--perl-install/share/po/Makefile1
-rw-r--r--perl-install/share/po/i18n_compssUsers25
2 files changed, 26 insertions, 0 deletions
diff --git a/perl-install/share/po/Makefile b/perl-install/share/po/Makefile
index 0466e88ed..7e8d1bcfa 100644
--- a/perl-install/share/po/Makefile
+++ b/perl-install/share/po/Makefile
@@ -22,6 +22,7 @@ DrakX.pot: $(PMSFILES)
$(MAKE) $(PMSCFILES);
xgettext -F -n --add-comments='-PO' --keyword=_ --keyword=__ -o $@ $(PMSCFILES)
rm $(PMSCFILES)
+ ./i18n_compssUsers 2>/dev/null >> $@
$(PMSCFILES): %_.c: %
perl -pe 's|^(__?\()| $$1|; s,(^|[^\$$])#([^+].*),\1/*\2*\/,; s|$$|\\n\\|' $< > $@
diff --git a/perl-install/share/po/i18n_compssUsers b/perl-install/share/po/i18n_compssUsers
new file mode 100644
index 000000000..d37fdf3fd
--- /dev/null
+++ b/perl-install/share/po/i18n_compssUsers
@@ -0,0 +1,25 @@
+#!/usr/bin/perl
+
+use lib "../..";
+use pkgs;
+use common ":common";
+
+
+sub get {
+ my ($meta_class) = @_;
+ local *install_any::getFile = sub {
+ open GETFILE, "../compssUsers$meta_class" and *GETFILE;
+ };
+ my (undef, undef, undef, $descr) = pkgs::readCompssUsers([{}], [], $meta_class);
+ %$descr;
+}
+
+foreach (uniq(get(''), get('.desktop'))) {
+ s/"/\"/g;
+ print qq(
+#: ../../share/compssUsers
+msgid "$_"
+msgstr ""
+);
+}
+