Simplify Potlatch 2 locale lookup table
authorTom Hughes <tom@compton.nu>
Sun, 26 Feb 2012 16:22:50 +0000 (16:22 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 26 Feb 2012 16:22:50 +0000 (16:22 +0000)
lib/potlatch2.rb

index f967c03..1618b0c 100644 (file)
@@ -1,17 +1,11 @@
 module Potlatch2
   LOCALES = {
     "de" => "de_DE",
-    "de-DE" => "de_DE",
     "en" => "en_US",
     "en-GB" => "en_GB",
-    "en-US" => "en_US",
     "fr" => "fr_FR",
-    "fr-FR" => "fr_FR",
     "ja" => "ja_JP",
-    "ja-JP" => "ja_JP",
     "pl" => "pl_PL",
-    "pl-PL" => "pl_PL",
-    "vi" => "vi_VN",
-    "vi-VN" => "vi_VN"
+    "vi" => "vi_VN"
   }
 end