summaryrefslogtreecommitdiffstats
path: root/tools/langs-expand.pl
diff options
context:
space:
mode:
Diffstat (limited to 'tools/langs-expand.pl')
-rwxr-xr-xtools/langs-expand.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/langs-expand.pl b/tools/langs-expand.pl
new file mode 100755
index 0000000..2d0797b
--- /dev/null
+++ b/tools/langs-expand.pl
@@ -0,0 +1,6 @@
+#!/usr/bin/perl -l
+use lib qw(/usr/lib/libDrakX);
+use lang;
+use MDK::Common;
+my @langs = grep { member(lang::locale_to_main_locale($_), @ARGV) } lang::list_langs();
+print join("\n", map { lang::l2name($_) . " (" . $_ . ")" } sort(@langs));