From e5529e430f180cebfa992dff6ac8285870576051 Mon Sep 17 00:00:00 2001 From: Dave Arter Date: Thu, 16 Mar 2017 10:14:47 -0400 Subject: Improve translatability of various pages. This commit makes the following parts of the site translatable: - Social login buttons - Moderation UI - Offline glitch page & offline caching UI - Dashboard It also fixes a bug in the nget parser, stops some Oxfordshire bits being translated for the moment, and brings the translation file up to date. --- bin/gettext-nget-patch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/gettext-nget-patch b/bin/gettext-nget-patch index d058bc784..67f98e319 100755 --- a/bin/gettext-nget-patch +++ b/bin/gettext-nget-patch @@ -18,12 +18,12 @@ find( sub { do { $text .= ; } until $text =~ /\)/; - if ($text =~ /nget\(\s*"(.*?)"\s*,\s*"(.*?)"\s*,\s*(.*?)\s*\)/s) { - $out{$1} = { + if ($text =~ /nget\(\s*(['"])(.*?)\1\s*,\s*(['"])(.*?)\3\s*,\s*(.*?)\s*\)/s) { + $out{$2} = { file => $File::Find::name, line => $line, - s => $1, - p => $2, + s => $2, + p => $4, }; } } -- cgit v1.2.3