jenkins-bot has submitted this change and it was merged.

Change subject: Add rtl icon for the beta feature preference
......................................................................


Add rtl icon for the beta feature preference

Change-Id: Ib3671a7a47cd36f6a68e7399388bf29ebfb485fc
---
R cirrus-beta-ltr.svg
A cirrus-beta-rtl.svg
M includes/Hooks.php
3 files changed, 256 insertions(+), 2 deletions(-)

Approvals:
  Manybubbles: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/cirrus-beta.svg b/cirrus-beta-ltr.svg
similarity index 100%
rename from cirrus-beta.svg
rename to cirrus-beta-ltr.svg
diff --git a/cirrus-beta-rtl.svg b/cirrus-beta-rtl.svg
new file mode 100644
index 0000000..02bad52
--- /dev/null
+++ b/cirrus-beta-rtl.svg
@@ -0,0 +1,252 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/";
+   xmlns:cc="http://creativecommons.org/ns#";
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
+   xmlns:svg="http://www.w3.org/2000/svg";
+   xmlns="http://www.w3.org/2000/svg";
+   version="1.1"
+   width="263"
+   height="161"
+   viewBox="0 0 263 161"
+   id="svg2">
+  <title
+     id="title4">CirrusBeta</title>
+  <metadata
+     id="metadata70">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage"; />
+        <dc:title>CirrusBeta</dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <description
+     id="description6">Created with Sketch 
(http://www.bohemiancoding.com/sketch)</description>
+  <defs
+     id="defs8" />
+  <g
+     transform="matrix(-1,0,0,1,262.4388,0)"
+     id="Page-1"
+     style="fill:none;stroke:none">
+    <path
+       d="M -0.04296875,0 262.8138,0 l 0,152.13929 -12.11328,9.81253 
-13.90365,-10.48307 -13.91536,9.71745 -12.60677,-9.87761 -13.52083,10.22396 
-13.38282,-10.08724 -12.84244,9.75391 -14.65756,-9.55729 -12.9401,10.05078 
-12.35938,-10.22396 -13.43359,9.97656 -13.07682,-10.05078 -12.865888,10.05078 
-14.582031,-9.47005 -13.509114,9.64323 -13.014323,-10.17318 -11.68099,9.71745 
-14.149739,-9.71745 -11.21224,9.65495 L -0.375,151.44531 -0.04296875,0 z"
+       id="Path-17"
+       style="fill:#ffffff;stroke:#e5e5e5" />
+    <rect
+       width="16"
+       height="16"
+       rx="1"
+       x="55"
+       y="26"
+       id="Rectangle-16"
+       style="fill:#0e73fc" />
+    <rect
+       width="32"
+       height="6"
+       x="8"
+       y="5"
+       id="Rectangle-8"
+       style="fill:#d8d8d8" />
+    <rect
+       width="53"
+       height="7"
+       rx="1"
+       x="75"
+       y="26"
+       id="Rectangle-8-copy"
+       style="fill:#0e73fc" />
+    <rect
+       width="73"
+       height="1"
+       rx="1"
+       x="75"
+       y="41"
+       id="rect15"
+       style="fill:#0e73fc" />
+    <rect
+       width="94"
+       height="1"
+       rx="1"
+       x="75"
+       y="38"
+       id="rect17"
+       style="fill:#0e73fc" />
+    <rect
+       width="94"
+       height="1"
+       rx="1"
+       x="75"
+       y="35"
+       id="rect19"
+       style="fill:#0e73fc" />
+    <rect
+       width="63"
+       height="3"
+       rx="1"
+       x="55"
+       y="48"
+       id="rect21"
+       style="fill:#0e73fc" />
+    <rect
+       width="114"
+       height="1"
+       rx="1"
+       x="55"
+       y="53"
+       id="rect23"
+       style="fill:#0e73fc" />
+    <rect
+       width="25"
+       height="3"
+       rx="1"
+       x="55"
+       y="61"
+       id="rect25"
+       style="fill:#0e73fc" />
+    <rect
+       width="114"
+       height="1"
+       rx="1"
+       x="55"
+       y="66"
+       id="rect27"
+       style="fill:#0e73fc" />
+    <rect
+       width="36"
+       height="3"
+       rx="1"
+       x="55"
+       y="74"
+       id="rect29"
+       style="fill:#4a4a4a" />
+    <rect
+       width="114"
+       height="1"
+       rx="1"
+       x="55"
+       y="79"
+       id="rect31"
+       style="fill:#4a4a4a" />
+    <rect
+       width="42"
+       height="3"
+       rx="1"
+       x="55"
+       y="88"
+       id="rect33"
+       style="fill:#d0d0d0" />
+    <rect
+       width="114"
+       height="1"
+       rx="1"
+       x="55"
+       y="93"
+       id="rect35"
+       style="fill:#d0d0d0" />
+    <rect
+       width="20"
+       height="3"
+       rx="1"
+       x="55"
+       y="102"
+       id="rect37"
+       style="fill:#d0d0d0" />
+    <rect
+       width="114"
+       height="1"
+       rx="1"
+       x="55"
+       y="107"
+       id="rect39"
+       style="fill:#d0d0d0" />
+    <rect
+       width="25"
+       height="3"
+       rx="1"
+       x="55"
+       y="117"
+       id="rect41"
+       style="fill:#d4d4d4;fill-opacity:0.5" />
+    <rect
+       width="114"
+       height="1"
+       rx="1"
+       x="55"
+       y="122"
+       id="rect43"
+       style="fill:#d4d4d4;fill-opacity:0.5" />
+    <rect
+       width="56"
+       height="3"
+       rx="1"
+       x="55"
+       y="131"
+       id="rect45"
+       style="fill:#d4d4d4;fill-opacity:0.5" />
+    <rect
+       width="114"
+       height="1"
+       rx="1"
+       x="55"
+       y="136"
+       id="rect47"
+       style="fill:#d4d4d4;fill-opacity:0.5" />
+    <path
+       d="m 10,36 c 0,-7.732 6.268,-14 14,-14 7.732,0 14,6.268 14,14 0,7.732 
-6.268,14 -14,14 -7.732,0 -14,-6.268 -14,-14 l 0,0 z"
+       id="Ellipse"
+       style="fill:#e5e5e5" />
+    <path
+       d="m 37,59 0,-5 -25,0 0,5 25,0 0,0 z"
+       id="Shape"
+       style="fill:#e5e5e5" />
+    <path
+       d="m 37,107 0,-35 -25,0 0,35 25,0 0,0 z"
+       id="path51"
+       style="fill:#e5e5e5" />
+    <path
+       d="m 250,5 7.51,0 0,6 -7.51,0 0,-6 0,0 z"
+       id="path53"
+       style="fill:#e5e5e5" />
+    <path
+       d="m 235,5 12.51,0 0,6 -12.51,0 0,-6 0,0 z m 0,0 12.51,0 0,6 -12.51,0 
0,-6 0,0 z"
+       id="path55"
+       style="fill:#e5e5e5" />
+    <path
+       d="m 1,14.5 260,0"
+       id="path57"
+       style="fill:#e5e5e5;stroke:#e5e5e5" />
+    <path
+       d="m 147,6 0,4 -92,0 0,-4 92,0 0,0 z m 1,-1 -94,0 0,6 94,0 0,-6 0,0 z"
+       id="path59"
+       style="fill:#e5e5e5" />
+    <path
+       d="m 247.51,5 0,6 -12.51,0 0,-6 12.51,0 z"
+       id="Path"
+       style="fill:#d8d8d8" />
+    <path
+       d="m 231.51,5 0,6 -12.51,0 0,-6 12.51,0 z"
+       id="path62"
+       style="fill:#d8d8d8" />
+    <path
+       d="m 58,7 0,2 -2,0 0,-2 2,0 z"
+       id="Path-copy"
+       style="fill:#d8d8d8" />
+    <g
+       transform="translate(59,30)"
+       id="Oval-1-+-Path-13"
+       style="stroke:#ffffff;stroke-width:2">
+      <path
+         d="m 2.6666667,5.3333333 c 1.4727594,0 2.6666666,-1.1939072 
2.6666666,-2.6666666 C 5.3333333,1.1939073 4.1394261,0 2.6666667,0 1.1939073,0 
0,1.1939073 0,2.6666667 0,4.1394261 1.1939073,5.3333333 2.6666667,5.3333333 z"
+         id="Oval-1" />
+      <path
+         d="M 4.5572444,4.5156097 7.988078,7.9464434"
+         id="Path-13" />
+    </g>
+  </g>
+</svg>
diff --git a/includes/Hooks.php b/includes/Hooks.php
index f79c6cc..b18c28c 100644
--- a/includes/Hooks.php
+++ b/includes/Hooks.php
@@ -147,15 +147,17 @@
         * @return bool
         */
        public static function getPreferencesHook( $user, &$prefs ) {
-               global $wgCirrusSearchEnablePref, $wgExtensionAssetsPath;
+               global $wgCirrusSearchEnablePref, $wgExtensionAssetsPath, 
$wgLang;
 
                if ( $wgCirrusSearchEnablePref ) {
+                       $dir = $wgLang->getDir();
+
                        $prefs['cirrussearch-default'] = array(
                                'label-message' => 'cirrussearch-pref-label',
                                'desc-message' => 'cirrussearch-pref-desc',
                                'info-link' => 
'https://www.mediawiki.org/wiki/Search',
                                'discussion-link' => 
'https://www.mediawiki.org/wiki/Talk:Search',
-                               'screenshot' => 
"$wgExtensionAssetsPath/CirrusSearch/cirrus-beta.svg",
+                               'screenshot' => 
"$wgExtensionAssetsPath/CirrusSearch/cirrus-beta-$dir.svg",
                        );
                }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/113796
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib3671a7a47cd36f6a68e7399388bf29ebfb485fc
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: Amire80 <amir.ahar...@mail.huji.ac.il>
Gerrit-Reviewer: Amire80 <amir.ahar...@mail.huji.ac.il>
Gerrit-Reviewer: Manybubbles <never...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to