Bugzilla – Attachment 6705 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]
Proposed patch
0001-Bug-7346-Prevent-installing-language-without-.po-fil.patch (text/plain), 931 bytes, created by
Frédéric Demians
on 2011-12-11 10:56:49 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Frédéric Demians
Created:
2011-12-11 10:56:49 UTC
Size:
931 bytes
patch
obsolete
>From 6486329662c54c1beab79d3f0b5bdd5485be4f99 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Demians?= <f.demians@tamil.fr> >Date: Sun, 11 Dec 2011 11:52:23 +0100 >Subject: [PATCH] Bug 7346 Prevent installing language without .po files > >--- > 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.8 >
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