Bugzilla – Attachment 6708 Details for
Bug 7346
'perl translate install' creates template directories for invalid languages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
signed off patch
0002-Bail-out-early-if-an-invalid-language-is-used.patch (text/plain), 950 bytes, created by
Marc Balmer
on 2011-12-11 16:02:01 UTC
(
hide
)
Description:
signed off patch
Filename:
MIME Type:
Creator:
Marc Balmer
Created:
2011-12-11 16:02:01 UTC
Size:
950 bytes
patch
obsolete
>From d892ebc64ac5bc4bf0bbee4417447539672f1399 Mon Sep 17 00:00:00 2001 >From: Marc Balmer <marc@msys.ch> >Date: Sun, 11 Dec 2011 15:40:55 +0100 >Subject: [PATCH] [SIGNED OFF 2/2] Bail out early if an invalid language is used. > > >Signed-off-by: Marc Balmer <marc@msys.ch> >--- > misc/translator/translate | 4 ++++ > 1 files changed, 4 insertions(+), 0 deletions(-) > >diff --git a/misc/translator/translate b/misc/translator/translate >index ebd5ce5..90f2950 100755 >--- a/misc/translator/translate >+++ b/misc/translator/translate >@@ -49,6 +49,10 @@ my ($cmd, $lang) = @ARGV; > $cmd = lc $cmd; > if ( $cmd =~ /create|install|update/ ) { > my $installer = LangInstaller->new( $lang, $pref ); >+ if ( $cmd !~ /create/ && $lang && not $lang ~~ $installer->{langs} ) { >+ print "Unsupported language: $lang\n"; >+ exit; >+ } > if ( $all ) { > usage() if $cmd eq 'create'; > for my $lang ( @{$installer->{langs}} ) { >-- >1.7.2.5 >
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 7346
:
6705
| 6708