From: Jan Schneider Date: Wed, 13 Oct 2010 01:09:37 +0000 (+0200) Subject: Fix commiting without specific language. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=bc0b45633e2cbfb7e41b191b790a0af508ad0fa5;p=horde.git Fix commiting without specific language. --- diff --git a/horde/bin/translation b/horde/bin/translation index ec83a04a2..32385f7ba 100755 --- a/horde/bin/translation +++ b/horde/bin/translation @@ -1011,7 +1011,7 @@ function commit($help_only = false) $files = array_merge($files, strip_horde(search_ext('xml', $dirs[$i] . DS . 'locale'))); } else { $files = array_merge($files, strip_horde(get_po_files($dirs[$i] . DS . 'po'))); - $files = array_merge($files, strip_horde(search_file('^[a-z]{2}_[A-Z]{2}', $dirs[$i] . DS . 'locale', true))); + $files = array_merge($files, strip_horde(search_file('^[a-z]{2}(_[A-Z]{2})?', $dirs[$i] . DS . 'locale', true))); } } else { if ($help_only &&