summaryrefslogtreecommitdiffstats
path: root/kabc/scripts/createisomap.pl
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2013-03-02 15:57:34 -0600
committerDarrell Anderson <humanreadable@yahoo.com>2013-03-02 15:57:34 -0600
commit7c0b0c9dc9fcbe9c198925bdc7ee18ac6be49f4f (patch)
treec76702a7f6310fbe9d437e347535422e836e94e9 /kabc/scripts/createisomap.pl
parenta2a38be7600e2a2c2b49c66902d912ca036a2c0f (diff)
parent27bbee9a5f9dcda53d8eb23863ee670ad1360e41 (diff)
downloadtdelibs-7c0b0c9dc9fcbe9c198925bdc7ee18ac6be49f4f.tar.gz
tdelibs-7c0b0c9dc9fcbe9c198925bdc7ee18ac6be49f4f.zip
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tdelibs
Diffstat (limited to 'kabc/scripts/createisomap.pl')
-rwxr-xr-xkabc/scripts/createisomap.pl35
1 files changed, 0 insertions, 35 deletions
diff --git a/kabc/scripts/createisomap.pl b/kabc/scripts/createisomap.pl
deleted file mode 100755
index 897cd4896..000000000
--- a/kabc/scripts/createisomap.pl
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/usr/bin/perl
-#
-# Create a translation table countryname->iso-code from the entry.desktop
-# files in tdebase/l10n/*/
-#
-# USAGE EXAMPLE:
-# ./createisomap.pl $TDEDIR/share/locale/l10n > countrytransl.map
-#
-# Don't laugh at me. I put this together with an old perl book, perl
-# being a language I've never used before.
-
-@entries = <$ARGV[0]/*/entry.desktop>;
-chomp @entries;
-foreach $entry (@entries) {
- local ( $entryiso, @entryfile, @mappings );
- # print "--> $entry\n";
- $entryiso = $entry;
- $entryiso =~ s/$ARGV[0]\///;
- $entryiso =~ s/\/entry\.desktop//;
- # print " $entryiso\n";
- open (IN, $entry);
- @entryfile = <IN>;
- close IN;
- chomp @entryfile;
- foreach $entryfileline (@entryfile) {
- if ( $entryfileline =~ /^Name.*=(.*)$/ ) {
- # push (@mappings, $1 . "\t" . $entryiso );
- print "$1\t$entryiso\n";
- }
- }
-}
-
-# add some convenience entries which aren't part of the entry.desktop files
-
-print "Czech Republic\tcz\n";