diff options
author | filip <filip.komar@gmail.com> | 2016-07-13 22:52:36 +0200 |
---|---|---|
committer | filip <filip.komar@gmail.com> | 2016-07-13 22:52:36 +0200 |
commit | 0146cb9737b023ebe4b297dc700ede667772e9be (patch) | |
tree | 541a62a9af66fd5a91b57df461051e9e080ce4b4 /langs/report_tx_git.php | |
parent | 90681b3d19b5edd57a0bb41b1146ce7c13f6f176 (diff) | |
download | www-0146cb9737b023ebe4b297dc700ede667772e9be.tar www-0146cb9737b023ebe4b297dc700ede667772e9be.tar.gz www-0146cb9737b023ebe4b297dc700ede667772e9be.tar.bz2 www-0146cb9737b023ebe4b297dc700ede667772e9be.tar.xz www-0146cb9737b023ebe4b297dc700ede667772e9be.zip |
fix regex for language names with numbers like es_418
Diffstat (limited to 'langs/report_tx_git.php')
-rw-r--r-- | langs/report_tx_git.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/langs/report_tx_git.php b/langs/report_tx_git.php index 12ebe7f24..2baf6bda0 100644 --- a/langs/report_tx_git.php +++ b/langs/report_tx_git.php @@ -515,9 +515,9 @@ if ('Webpages' == $resource_type) { // list all po files from links within $raw_html_dump if (false !== strpos($pot_name, '_en.ts')) { // treat TS files differently $first_part_pot_name = substr($pot_name, 0, -5); // cuts 'en.ts' from mageiaSync_en.ts - preg_match_all("/('>$first_part_pot_name)([a-z_A-Z@-]+)(\.ts<)/", $raw_html_dump, $language_codes); + preg_match_all("/('>$first_part_pot_name)([a-z_A-Z0-9@-]+)(\.ts<)/", $raw_html_dump, $language_codes); } else { - preg_match_all("/('>)([a-z_A-Z@-]+)(\.po<)/", $raw_html_dump, $language_codes); + preg_match_all("/('>)([a-z_A-Z0-9@-]+)(\.po<)/", $raw_html_dump, $language_codes); } $git_language_codes = $language_codes[2]; if (empty($wanted_language)) { |