Jeremy Newman : add placeholder text for search input
Jeremy Newman
jnewman at wine.codeweavers.com
Wed Jan 20 13:49:20 CST 2016
Module: website
Branch: master
Commit: c2de76f7f20eb7313e36966ba39c546875766c47
URL: http://source.winehq.org/git/website.git/?a=commit;h=c2de76f7f20eb7313e36966ba39c546875766c47
Author: Jeremy Newman <jnewman at codeweavers.com>
Date: Wed Jan 20 13:48:53 2016 -0600
add placeholder text for search input
---
templates/de/global/xml/trans/global.xml | 3 +++
templates/en/global/layout/content.template | 2 +-
templates/en/global/xml/trans/global.xml | 3 +++
templates/fr/global/xml/trans/global.xml | 3 +++
4 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/templates/de/global/xml/trans/global.xml b/templates/de/global/xml/trans/global.xml
index 3008dac..659a55c 100644
--- a/templates/de/global/xml/trans/global.xml
+++ b/templates/de/global/xml/trans/global.xml
@@ -8,6 +8,9 @@
<str name="tab_bugs">Bugzilla</str>
<str name="tab_forums">Forums</str>
+ <!-- SEARCH PLACEHOLDER -->
+ <str name="search_placeholder">Suche</str>
+
<!-- HOSTED BY LINK -->
<str name="hosted_by">Hosted By</str>
<str name="hosted_by_alt">CodeWeavers - Führt Windows-Anwendungen und -Spiele unter Linux und Mac aus</str>
diff --git a/templates/en/global/layout/content.template b/templates/en/global/layout/content.template
index 4c90957..3f42092 100644
--- a/templates/en/global/layout/content.template
+++ b/templates/en/global/layout/content.template
@@ -55,7 +55,7 @@
<form action="{$root}/search" id="cse-search-box">
<div class="input-group input-group-sm">
<span class="input-group-addon"><span class="glyphicon glyphicon-search"></span></span>
- <input type="text" name="q" value="" class="form-control">
+ <input type="text" name="q" value="" class="form-control" placeholder="{trans($search_placeholder)}">
</div>
</form>
</div>
diff --git a/templates/en/global/xml/trans/global.xml b/templates/en/global/xml/trans/global.xml
index 42c0496..e6b3495 100644
--- a/templates/en/global/xml/trans/global.xml
+++ b/templates/en/global/xml/trans/global.xml
@@ -8,6 +8,9 @@
<str name="tab_bugs">Bugzilla</str>
<str name="tab_forums">Forums</str>
+ <!-- SEARCH PLACEHOLDER -->
+ <str name="search_placeholder">Search</str>
+
<!-- HOSTED BY LINK -->
<str name="hosted_by">Hosted By</str>
<str name="hosted_by_alt">CodeWeavers - Run Windows applications and games on Mac and Linux</str>
diff --git a/templates/fr/global/xml/trans/global.xml b/templates/fr/global/xml/trans/global.xml
index e3c51a9..a9c537a 100644
--- a/templates/fr/global/xml/trans/global.xml
+++ b/templates/fr/global/xml/trans/global.xml
@@ -8,6 +8,9 @@
<str name="tab_bugs">Bugzilla</str>
<str name="tab_forums">Forums</str>
+ <!-- SEARCH PLACEHOLDER -->
+ <str name="search_placeholder">Recherche</str>
+
<!-- HOSTED BY LINK -->
<str name="hosted_by">Hébergé par</str>
<str name="hosted_by_alt">CodeWeavers - Exécuter des applications et jeux Windows sur Mac et Linux</str>
More information about the wine-cvs
mailing list