From bc0b45633e2cbfb7e41b191b790a0af508ad0fa5 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 13 Oct 2010 03:09:37 +0200 Subject: [PATCH] Fix commiting without specific language. --- horde/bin/translation | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 && -- 2.11.0