summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2017-08-29 14:43:59 -0400
committerChristopher Burger <burgerc@freeside.biz>2017-08-29 14:43:59 -0400
commitf8bd3dcd0423013c16ebe1c60b400a260a9a97fe (patch)
treec3b81e324329c6da54f840574635de7d8b94ec2e
parent9078bd09a65d17e07cffe0c13e1b0d32c367be42 (diff)
parent72ad2f16955e4593891bb851243f8a6de9c3fb80 (diff)
Merge branch 'FREESIDE_3_BRANCH' of freeside.biz:/home/git/freeside into FREESIDE_3_BRANCH
-rwxr-xr-xbin/add-usps-af29
1 files changed, 29 insertions, 0 deletions
diff --git a/bin/add-usps-af b/bin/add-usps-af
new file mode 100755
index 000000000..5aec110b7
--- /dev/null
+++ b/bin/add-usps-af
@@ -0,0 +1,29 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+use FS::UID qw( adminsuidsetup );
+use FS::Setup;
+
+adminsuidsetup(shift) or die "usage: add-usps-af username\n";
+
+ my %addl = (
+ 'US' => {
+# 'FM' => 'Federated States of Micronesia',
+# 'MH' => 'Marshall Islands',
+# 'PW' => 'Palau',
+ 'AA' => "Armed Forces Americas (except Canada)",
+ 'AE' => "Armed Forces Europe / Canada / Middle East / Africa",
+ 'AP' => "Armed Forces Pacific",
+ },
+ );
+
+ foreach my $country ( keys %addl ) {
+ foreach my $state ( keys %{ $addl{$country} } ) {
+ # $longname = $addl{$country}{$state};
+ FS::Setup::_add_locale( 'country'=>$country, 'state'=>$state);
+ }
+ }
+
+1;
+