diff options
author | Gervase Markham <gerv@gerv.net> | 2015-09-30 10:03:22 +0200 |
---|---|---|
committer | Gervase Markham <gerv@gerv.net> | 2015-09-30 10:05:22 +0200 |
commit | 7321534b42aab3ab2064c73b6326d52f395f023c (patch) | |
tree | 4db6d7422ac22c7917d00ac16b109dbac9637f3c /contrib | |
parent | b8a1ef47857a0217ab92ac1d4206f48383f08f55 (diff) | |
download | bugzilla-7321534b42aab3ab2064c73b6326d52f395f023c.tar.gz bugzilla-7321534b42aab3ab2064c73b6326d52f395f023c.tar.xz |
Bug 1156785 - add new Localization Guide for in-place review.
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/new-locale.pl | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/contrib/new-locale.pl b/contrib/new-locale.pl new file mode 100755 index 000000000..a2feb3dda --- /dev/null +++ b/contrib/new-locale.pl @@ -0,0 +1,19 @@ +#!/usr/bin/perl -w + +use File::Find; +use File::Copy::Recursive qw(dircopy); + +($ARGV[0] && $ARGV[0] =~ /\w\w(-\w\w)?/) || usage(); + +sub process { + if ($_ eq 'en' && $File::Find::name !~ /\/data\//) { + dircopy($_, $ARGV[0]); + } +} + +find(\&process, "."); + +sub usage { + print "Usage: new-locale.pl <lang code>\n"; + print " e.g.: new-locale.pl fr\n"; +} |