https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112321
Revision: 112321
Author: jdlrobson
Date: 2012-02-24 14:27:22 +0000 (Fri, 24 Feb 2012)
Log Message:
-----------
i18n the clear search button
this references c31415 on r112213
Modified Paths:
--------------
trunk/extensions/MobileFrontend/MobileFrontend.body.php
trunk/extensions/MobileFrontend/MobileFrontend.i18n.php
trunk/extensions/MobileFrontend/templates/SearchTemplate.php
Modified: trunk/extensions/MobileFrontend/MobileFrontend.body.php
===================================================================
--- trunk/extensions/MobileFrontend/MobileFrontend.body.php 2012-02-24
14:23:58 UTC (rev 112320)
+++ trunk/extensions/MobileFrontend/MobileFrontend.body.php 2012-02-24
14:27:22 UTC (rev 112321)
@@ -95,6 +95,7 @@
'mobile-frontend-placeholder',
'mobile-frontend-dismiss-notification',
'mobile-frontend-sopa-notice',
+ 'mobile-frontend-clear-search',
);
public function __construct() {
Modified: trunk/extensions/MobileFrontend/MobileFrontend.i18n.php
===================================================================
--- trunk/extensions/MobileFrontend/MobileFrontend.i18n.php 2012-02-24
14:23:58 UTC (rev 112320)
+++ trunk/extensions/MobileFrontend/MobileFrontend.i18n.php 2012-02-24
14:27:22 UTC (rev 112321)
@@ -75,6 +75,7 @@
'mobile-frontend-placeholder' => 'Type your search here...',
'mobile-frontend-dismiss-notification' => 'dismiss this notification',
'mobile-frontend-sopa-notice' => '<h3 id="sopa-notice">Thank you for
protecting Wikipedia.</h3><br/><a
href="http://en.wikipedia.org/wiki/Wikipedia:SOPA_initiative/Mobile_Learn_more">(We’re
not done yet.)</a>',
+ 'mobile-frontend-clear-search' => 'Clear',
);
/** Message documentation (Message documentation)
@@ -110,6 +111,7 @@
{{Identical|Log in}}',
'mobile-frontend-placeholder' => 'Phrase used to prompt user to use
search interface for mobile full screen search',
'mobile-frontend-dismiss-notification' => 'Phrase used to dismiss the
top banner notification',
+ 'mobile-frontend-clear-search' => 'Tooltip for clear button that
appears when you type into search box',
);
/** Moroccan Spoken Arabic (Maġribi) */
Modified: trunk/extensions/MobileFrontend/templates/SearchTemplate.php
===================================================================
--- trunk/extensions/MobileFrontend/templates/SearchTemplate.php
2012-02-24 14:23:58 UTC (rev 112320)
+++ trunk/extensions/MobileFrontend/templates/SearchTemplate.php
2012-02-24 14:27:22 UTC (rev 112321)
@@ -13,6 +13,7 @@
$randomPageUrl = $this->data['randomPageUrl'];
$homeButton =
$this->data['messages']['mobile-frontend-home-button'];
$randomButton =
$this->data['messages']['mobile-frontend-random-button'];
+ $clearText =
$this->data['messages']['mobile-frontend-clear-search'];
$scriptUrl = wfScript();
$searchBoxDisplayNone = ( $this->data['hideSearchBox'] ) ? '
style="display: none;" ' : '';
@@ -34,7 +35,7 @@
<input type="hidden" value="Special:Search"
name="title" />
<div id="sq" class="divclearable">
<input type="search" name="search"
id="search" size="22" value="{$searchField}" autocorrect="off"
autocomplete="off" autocapitalize="off" maxlength="1024" />
- <div class="clearlink" id="clearsearch"
title="Clear"></div>
+ <div class="clearlink" id="clearsearch"
title="{$clearText}"></div>
</div>
<button id='goButton' type='submit'></button>
</form>
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs