Bugzilla – Attachment 65006 Details for
Bug 18901
Sysprefs translation: translate only *.pref files (not *.pref*)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18901: [QA Follow-up] Do not translate zzpref either
Bug-18901-QA-Follow-up-Do-not-translate-zzpref-eit.patch (text/plain), 1.02 KB, created by
Marcel de Rooy
on 2017-07-12 11:47:04 UTC
(
hide
)
Description:
Bug 18901: [QA Follow-up] Do not translate zzpref either
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2017-07-12 11:47:04 UTC
Size:
1.02 KB
patch
obsolete
>From 663d237b33c11d15ef4bb2d97d1f3165c252fe84 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Wed, 12 Jul 2017 13:33:51 +0200 >Subject: [PATCH] Bug 18901: [QA Follow-up] Do not translate zzpref either >Content-Type: text/plain; charset=utf-8 > >Adding one backslash makes a difference :) >We need to escape the dot in the regex to exclude a file like zzpref >from translation too. Perfect_regexes++ > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > misc/translator/LangInstaller.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/misc/translator/LangInstaller.pm b/misc/translator/LangInstaller.pm >index feaeb7a..cd947fc 100644 >--- a/misc/translator/LangInstaller.pm >+++ b/misc/translator/LangInstaller.pm >@@ -82,7 +82,7 @@ sub new { > > # Get all .pref file names > opendir my $fh, $self->{path_pref_en}; >- my @pref_files = grep { /.pref$/ } readdir($fh); >+ my @pref_files = grep { /\.pref$/ } readdir($fh); > close $fh; > $self->{pref_files} = \@pref_files; > >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 18901
:
64846
|
64932
|
65005
| 65006