diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2000-10-03 22:08:31 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2000-10-03 22:08:31 +0000 |
commit | 4be61f0927cebf3788ac619794c804fd1c926866 (patch) | |
tree | 4cc39534990e6cf7b7af55bed0fd594a14f11319 /perl-install/share | |
parent | f5e47bfe1e7777fec98fd44395be350e8da6070d (diff) | |
download | drakx-backup-do-not-use-4be61f0927cebf3788ac619794c804fd1c926866.tar drakx-backup-do-not-use-4be61f0927cebf3788ac619794c804fd1c926866.tar.gz drakx-backup-do-not-use-4be61f0927cebf3788ac619794c804fd1c926866.tar.bz2 drakx-backup-do-not-use-4be61f0927cebf3788ac619794c804fd1c926866.tar.xz drakx-backup-do-not-use-4be61f0927cebf3788ac619794c804fd1c926866.zip |
no_comment
Diffstat (limited to 'perl-install/share')
-rw-r--r-- | perl-install/share/po/Makefile | 1 | ||||
-rw-r--r-- | perl-install/share/po/i18n_compssUsers | 25 |
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 "" +); +} + |