Bugzilla – Attachment 13918 Details for
Bug 5709
Adding the ability to translate HTML5 placeholder text in an input field
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Adding the ability to translate HTML5 placeholder text in an input field
Adding-the-ability-to-translate-HTML5-placeholder-.patch (text/plain), 1.76 KB, created by
Kyle M Hall (khall)
on 2012-12-07 13:35:58 UTC
(
hide
)
Description:
[SIGNED-OFF] Adding the ability to translate HTML5 placeholder text in an input field
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2012-12-07 13:35:58 UTC
Size:
1.76 KB
patch
obsolete
>From 7cbedcd7ff28e2bda3df6c607ff6d4287ae0daeb Mon Sep 17 00:00:00 2001 >From: koha-preprod <koha-preprod@sys-tech.net> >Date: Mon, 7 Feb 2011 15:59:18 -0500 >Subject: [PATCH] Adding the ability to translate HTML5 placeholder text in an input field > >http://bugs.koha-community.org/show_bug.cgi?id=5709 >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > misc/translator/tmpl_process3.pl | 2 +- > misc/translator/xgettext.pl | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/misc/translator/tmpl_process3.pl b/misc/translator/tmpl_process3.pl >index 89c993f..cd46997 100755 >--- a/misc/translator/tmpl_process3.pl >+++ b/misc/translator/tmpl_process3.pl >@@ -59,7 +59,7 @@ sub text_replace_tag ($$) { > # value [tag=input], meta > my $tag = lc($1) if $t =~ /^<(\S+)/s; > my $translated_p = 0; >- for my $a ('alt', 'content', 'title', 'value','label') { >+ for my $a ('alt', 'content', 'title', 'value', 'label', 'placeholder') { > if ($attr->{$a}) { > next if $a eq 'label' && $tag ne 'optgroup'; > next if $a eq 'content' && $tag ne 'meta'; >diff --git a/misc/translator/xgettext.pl b/misc/translator/xgettext.pl >index 99a75bf..032117d 100755 >--- a/misc/translator/xgettext.pl >+++ b/misc/translator/xgettext.pl >@@ -102,7 +102,7 @@ sub text_extract (*) { > } elsif ($kind eq C4::TmplTokenType::TAG && %$attr) { > # value [tag=input], meta > my $tag = lc($1) if $t =~ /^<(\S+)/s; >- for my $a ('alt', 'content', 'title', 'value','label') { >+ for my $a ('alt', 'content', 'title', 'value', 'label', 'placeholder') { > if ($attr->{$a}) { > next if $a eq 'label' && $tag ne 'optgroup'; > next if $a eq 'content' && $tag ne 'meta'; >-- >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 5709
:
3089
|
12771
|
13918
|
14028