Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #14010 from EverythingMe/940949-eme-placeholder
Browse files Browse the repository at this point in the history
Bug 940949 - [e.me] Change placeholder in search field [r=ranbena]
  • Loading branch information
amirnissim committed Nov 26, 2013
2 parents d3a0e45 + 1517065 commit 4f5ae34
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/homescreen/elements/search_page.html
Expand Up @@ -53,7 +53,7 @@ <h2 class="title"></h2>
<fieldset>
<div id="search-q-bg">
<input type="text" id="search-q" name="search-q" maxlength="128" autocorrect="off" x-inputmode="verbatim"
data-l10n-id="evme-searchbar-default2"/>
data-l10n-id="evme-searchbar-default3"/>
</div>
<div id="helper-tip"><b></b></div>
</fieldset>
Expand Down
4 changes: 2 additions & 2 deletions apps/homescreen/everything.me/js/everything.me.js
Expand Up @@ -18,15 +18,15 @@ var EverythingME = {
activationIcon.id = 'evme-activation-icon';
activationIcon.innerHTML =
'<input type="text" x-inputmode="verbatim"' +
' data-l10n-id="evme-searchbar-default2" />';
' data-l10n-id="evme-searchbar-default3" />';

// insert into first page
gridPage.insertBefore(activationIcon, gridPage.firstChild);

// Append appropriate placeholder translation to pseudo searchbar
navigator.mozL10n.ready(function loadSearchbarValue() {
var input = activationIcon.querySelector('input'),
defaultText = navigator.mozL10n.get('evme-searchbar-default2') || '';
defaultText = navigator.mozL10n.get('evme-searchbar-default3') || '';

input.setAttribute('placeholder', defaultText);
});
Expand Down
2 changes: 2 additions & 0 deletions apps/homescreen/locales/homescreen.en-US.properties
Expand Up @@ -38,6 +38,8 @@ loadingEvme2=Loading…
evme-searchbar-default=Everything…
evme-searchbar-default2=I'm thinking of…
evme-searchbar-default2.placeholder=I'm thinking of…
evme-searchbar-default3=Find…
evme-searchbar-default3.placeholder=Find…
evme-searchbar-clear=Back

evme-collections=Collections
Expand Down
2 changes: 2 additions & 0 deletions apps/homescreen/locales/homescreen.fr.properties
Expand Up @@ -36,6 +36,8 @@ loadingEvme2=Chargement…
#See bug 838634 for why those keys are still here
evme-searchbar-default=Everything…
evme-searchbar-default2=Je pense à…
evme-searchbar-default3=Je recherche…
evme-searchbar-default3.placeholder=Je recherche…
evme-searchbar-clear=Retour

evme-collections=Collections
Expand Down

0 comments on commit 4f5ae34

Please sign in to comment.