Amire80 has uploaded a new change for review.
https://gerrit.wikimedia.org/r/94269
Change subject: Fix images and related CSS for RTL wikis
......................................................................
Fix images and related CSS for RTL wikis
Change-Id: I18ca1003a317f12ec658aef5ecd4779325407eae
---
M MultimediaViewerHooks.php
M css/ext.multimediaViewer.css
M css/multilightbox.css
R img/defullscreen-ltr.svg
A img/defullscreen-rtl.svg
R img/fullscreen-ltr.svg
A img/fullscreen-rtl.svg
R img/mw-defullscreen-ltr.svg
A img/mw-defullscreen-rtl.svg
R img/mw-fullscreen-ltr.svg
A img/mw-fullscreen-rtl.svg
R img/use-ltr.svg
A img/use-rtl.svg
R img/user-ltr.svg
A img/user-rtl.svg
R img/viewer-ltr.svg
A img/viewer-rtl.svg
M importml.sh
18 files changed, 689 insertions(+), 8 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MultimediaViewer
refs/changes/69/94269/1
diff --git a/MultimediaViewerHooks.php b/MultimediaViewerHooks.php
index 3429489..a803fde 100644
--- a/MultimediaViewerHooks.php
+++ b/MultimediaViewerHooks.php
@@ -82,12 +82,14 @@
public static function getBetaPreferences( $user, &$prefs ) {
global $wgExtensionAssetsPath;
+ $dir = RequestContext::getMain()->getLanguage()->getDir();
+
$prefs['multimedia-viewer'] = array(
'label-message' => 'multimediaviewer-pref',
'desc-message' => 'multimediaviewer-pref-desc',
'info-link' => self::$infoLink,
'discussion-link' => self::$discussionLink,
- 'screenshot' => $wgExtensionAssetsPath .
'/MultimediaViewer/img/viewer.svg',
+ 'screenshot' =>
"$wgExtensionAssetsPath/MultimediaViewer/img/viewer-$dir.svg",
);
return true;
diff --git a/css/ext.multimediaViewer.css b/css/ext.multimediaViewer.css
index 3c36d3e..66c14f1 100644
--- a/css/ext.multimediaViewer.css
+++ b/css/ext.multimediaViewer.css
@@ -71,11 +71,11 @@
}
.mlb-fullscreen-div .mlb-fullscreen {
- background-image: url( '../img/mw-defullscreen.svg' );
+ background-image: url( '../img/mw-defullscreen-ltr.svg' );
}
.mlb-fullscreen {
- background-image: url( '../img/mw-fullscreen.svg' );
+ background-image: url( '../img/mw-fullscreen-ltr.svg' );
}
.mw-mlb-license,
@@ -139,7 +139,7 @@
}
.mw-mlb-image-links li.mw-mlb-username-li:before {
- background-image: url( '../img/user.svg' );
+ background-image: url( '../img/user-ltr.svg' );
}
.mw-mlb-image-links li.mw-mlb-datetime-li:before {
@@ -147,7 +147,7 @@
}
.mw-mlb-image-links li.mw-mlb-usefile-li:before {
- background-image: url( '../img/use.svg' );
+ background-image: url( '../img/use-ltr.svg' );
}
.mw-mlb-image-links li.empty:before {
diff --git a/css/multilightbox.css b/css/multilightbox.css
index 8b3f073..45c0f3b 100644
--- a/css/multilightbox.css
+++ b/css/multilightbox.css
@@ -59,7 +59,7 @@
.mlb-fullscreen {
cursor: pointer;
- background-image: url("../img/fullscreen.svg");
+ background-image: url("../img/fullscreen-ltr.svg");
width: 32px;
height: 32px;
border-left: 1px solid #7d7c81;
@@ -84,5 +84,5 @@
}
.mlb-fullscreen-div .mlb-fullscreen {
- background-image: url("../img/defullscreen.svg");
+ background-image: url("../img/defullscreen-ltr.svg");
}
diff --git a/img/defullscreen.svg b/img/defullscreen-ltr.svg
similarity index 100%
rename from img/defullscreen.svg
rename to img/defullscreen-ltr.svg
diff --git a/img/defullscreen-rtl.svg b/img/defullscreen-rtl.svg
new file mode 100644
index 0000000..ab58824
--- /dev/null
+++ b/img/defullscreen-rtl.svg
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<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"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ version="1.1"
+ id="Layer_1"
+ width="32px"
+ height="32px"
+ inkscape:version="0.48.4 r9939"
+ sodipodi:docname="defullscreen-ltr.svg">
+ <metadata
+ id="metadata19">
+ <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></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <defs
+ id="defs17" />
+ <sodipodi:namedview
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1"
+ objecttolerance="10"
+ gridtolerance="10"
+ guidetolerance="10"
+ inkscape:pageopacity="0"
+ inkscape:pageshadow="2"
+ inkscape:window-width="640"
+ inkscape:window-height="480"
+ id="namedview15"
+ showgrid="false"
+ inkscape:zoom="7.375"
+ inkscape:cx="16"
+ inkscape:cy="16"
+ inkscape:window-x="520"
+ inkscape:window-y="264"
+ inkscape:window-maximized="0"
+ inkscape:current-layer="Layer_1" />
+ <path
+
style="fill:none;stroke:#ffffff;stroke-width:3px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 18,18 6,6"
+ id="path3"
+ inkscape:connector-curvature="0" />
+ <path
+
style="fill:none;stroke:#ffffff;stroke-width:3px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 14,14 8,8"
+ id="path5"
+ inkscape:connector-curvature="0" />
+ <path
+
style="fill:none;stroke:#ffffff;stroke-width:3px;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 22,18 -4,0"
+ id="path7"
+ inkscape:connector-curvature="0" />
+ <path
+
style="fill:none;stroke:#ffffff;stroke-width:3px;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 18,22 0,-4"
+ id="path9"
+ inkscape:connector-curvature="0" />
+ <path
+
style="fill:none;stroke:#ffffff;stroke-width:3px;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 14,10 0,4"
+ id="path11"
+ inkscape:connector-curvature="0" />
+ <path
+
style="fill:none;stroke:#ffffff;stroke-width:3px;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 10,14 4,0"
+ id="path13"
+ inkscape:connector-curvature="0" />
+</svg>
diff --git a/img/fullscreen.svg b/img/fullscreen-ltr.svg
similarity index 100%
rename from img/fullscreen.svg
rename to img/fullscreen-ltr.svg
diff --git a/img/fullscreen-rtl.svg b/img/fullscreen-rtl.svg
new file mode 100644
index 0000000..f1adb8c
--- /dev/null
+++ b/img/fullscreen-rtl.svg
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<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"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ version="1.1"
+ id="Layer_1"
+ width="32px"
+ height="32px"
+ inkscape:version="0.48.4 r9939"
+ sodipodi:docname="fullscreen-ltr.svg">
+ <metadata
+ id="metadata19">
+ <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></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <defs
+ id="defs17" />
+ <sodipodi:namedview
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1"
+ objecttolerance="10"
+ gridtolerance="10"
+ guidetolerance="10"
+ inkscape:pageopacity="0"
+ inkscape:pageshadow="2"
+ inkscape:window-width="640"
+ inkscape:window-height="480"
+ id="namedview15"
+ showgrid="false"
+ inkscape:zoom="7.375"
+ inkscape:cx="16"
+ inkscape:cy="16"
+ inkscape:window-x="0"
+ inkscape:window-y="27"
+ inkscape:window-maximized="0"
+ inkscape:current-layer="Layer_1" />
+ <path
+
style="fill:none;stroke:#ffffff;stroke-width:3px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 18,18 6,6"
+ id="path3"
+ inkscape:connector-curvature="0" />
+ <path
+
style="fill:none;stroke:#ffffff;stroke-width:3px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 14,14 8,8"
+ id="path5"
+ inkscape:connector-curvature="0" />
+ <path
+
style="fill:none;stroke:#ffffff;stroke-width:3px;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 24,20 0,4"
+ id="path7"
+ inkscape:connector-curvature="0" />
+ <path
+
style="fill:none;stroke:#ffffff;stroke-width:3px;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 20,24 4,0"
+ id="path9"
+ inkscape:connector-curvature="0" />
+ <path
+
style="fill:none;stroke:#ffffff;stroke-width:3px;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 12,8 8,8"
+ id="path11"
+ inkscape:connector-curvature="0" />
+ <path
+
style="fill:none;stroke:#ffffff;stroke-width:3px;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 8,12 8,8"
+ id="path13"
+ inkscape:connector-curvature="0" />
+</svg>
diff --git a/img/mw-defullscreen.svg b/img/mw-defullscreen-ltr.svg
similarity index 100%
rename from img/mw-defullscreen.svg
rename to img/mw-defullscreen-ltr.svg
diff --git a/img/mw-defullscreen-rtl.svg b/img/mw-defullscreen-rtl.svg
new file mode 100644
index 0000000..2fe39c5
--- /dev/null
+++ b/img/mw-defullscreen-rtl.svg
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<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"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ version="1.1"
+ id="Layer_1"
+ width="32px"
+ height="32px"
+ inkscape:version="0.48.4 r9939"
+ sodipodi:docname="mw-defullscreen-ltr.svg">
+ <metadata
+ id="metadata19">
+ <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></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <defs
+ id="defs17" />
+ <sodipodi:namedview
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1"
+ objecttolerance="10"
+ gridtolerance="10"
+ guidetolerance="10"
+ inkscape:pageopacity="0"
+ inkscape:pageshadow="2"
+ inkscape:window-width="640"
+ inkscape:window-height="480"
+ id="namedview15"
+ showgrid="false"
+ inkscape:zoom="7.375"
+ inkscape:cx="16"
+ inkscape:cy="16"
+ inkscape:window-x="0"
+ inkscape:window-y="27"
+ inkscape:window-maximized="0"
+ inkscape:current-layer="Layer_1" />
+ <path
+
style="fill:none;stroke:#000000;stroke-width:3px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 18,18 6,6"
+ id="path3"
+ inkscape:connector-curvature="0" />
+ <path
+
style="fill:none;stroke:#000000;stroke-width:3px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 14,14 8,8"
+ id="path5"
+ inkscape:connector-curvature="0" />
+ <path
+
style="fill:none;stroke:#000000;stroke-width:3px;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 22,18 -4,0"
+ id="path7"
+ inkscape:connector-curvature="0" />
+ <path
+
style="fill:none;stroke:#000000;stroke-width:3px;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 18,22 0,-4"
+ id="path9"
+ inkscape:connector-curvature="0" />
+ <path
+
style="fill:none;stroke:#000000;stroke-width:3px;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 14,10 0,4"
+ id="path11"
+ inkscape:connector-curvature="0" />
+ <path
+
style="fill:none;stroke:#000000;stroke-width:3px;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 10,14 4,0"
+ id="path13"
+ inkscape:connector-curvature="0" />
+</svg>
diff --git a/img/mw-fullscreen.svg b/img/mw-fullscreen-ltr.svg
similarity index 100%
rename from img/mw-fullscreen.svg
rename to img/mw-fullscreen-ltr.svg
diff --git a/img/mw-fullscreen-rtl.svg b/img/mw-fullscreen-rtl.svg
new file mode 100644
index 0000000..370e1cd
--- /dev/null
+++ b/img/mw-fullscreen-rtl.svg
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<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"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ version="1.1"
+ id="Layer_1"
+ width="32px"
+ height="32px"
+ inkscape:version="0.48.4 r9939"
+ sodipodi:docname="mw-fullscreen-ltr.svg">
+ <metadata
+ id="metadata19">
+ <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></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <defs
+ id="defs17" />
+ <sodipodi:namedview
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1"
+ objecttolerance="10"
+ gridtolerance="10"
+ guidetolerance="10"
+ inkscape:pageopacity="0"
+ inkscape:pageshadow="2"
+ inkscape:window-width="640"
+ inkscape:window-height="480"
+ id="namedview15"
+ showgrid="false"
+ inkscape:zoom="7.375"
+ inkscape:cx="16"
+ inkscape:cy="16"
+ inkscape:window-x="0"
+ inkscape:window-y="27"
+ inkscape:window-maximized="0"
+ inkscape:current-layer="Layer_1" />
+ <path
+
style="fill:none;stroke:#000000;stroke-width:3px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 18,18 6,6"
+ id="path3"
+ inkscape:connector-curvature="0" />
+ <path
+
style="fill:none;stroke:#000000;stroke-width:3px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 14,14 8,8"
+ id="path5"
+ inkscape:connector-curvature="0" />
+ <path
+
style="fill:none;stroke:#000000;stroke-width:3px;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 24,20 0,4"
+ id="path7"
+ inkscape:connector-curvature="0" />
+ <path
+
style="fill:none;stroke:#000000;stroke-width:3px;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 20,24 4,0"
+ id="path9"
+ inkscape:connector-curvature="0" />
+ <path
+
style="fill:none;stroke:#000000;stroke-width:3px;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 12,8 8,8"
+ id="path11"
+ inkscape:connector-curvature="0" />
+ <path
+
style="fill:none;stroke:#000000;stroke-width:3px;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 8,12 8,8"
+ id="path13"
+ inkscape:connector-curvature="0" />
+</svg>
diff --git a/img/use.svg b/img/use-ltr.svg
similarity index 100%
rename from img/use.svg
rename to img/use-ltr.svg
diff --git a/img/use-rtl.svg b/img/use-rtl.svg
new file mode 100644
index 0000000..50dd4bb
--- /dev/null
+++ b/img/use-rtl.svg
@@ -0,0 +1,52 @@
+<?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"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ version="1.1"
+ width="64"
+ height="64"
+ viewBox="0 0 64 55.069767"
+ id="Untitled-Page%201"
+ xml:space="preserve"
+ inkscape:version="0.48.4 r9939"
+ sodipodi:docname="use-ltr.svg"><sodipodi:namedview
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1"
+ objecttolerance="10"
+ gridtolerance="10"
+ guidetolerance="10"
+ inkscape:pageopacity="0"
+ inkscape:pageshadow="2"
+ inkscape:window-width="640"
+ inkscape:window-height="480"
+ id="namedview8"
+ showgrid="false"
+ inkscape:zoom="4.285473"
+ inkscape:cx="32"
+ inkscape:cy="27.534883"
+ inkscape:window-x="0"
+ inkscape:window-y="27"
+ inkscape:window-maximized="0"
+ inkscape:current-layer="Untitled-Page%201" /><metadata
+ id="metadata13"><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></dc:title></cc:Work></rdf:RDF></metadata><defs
+ id="defs11" /><g
+ transform="matrix(-1.4883721,0,0,1.4883721,64,0)"
+ id="g3794"><path
+ d="m 31.3284,31.6165 -25.8488,0 0,-23.2165 9.6181,0 L 23.071,3.1055
0,3.1055 0,37 l 36.71,0 0,-14.6324 -5.3816,5.2664 0,3.9825 z"
+ id="path5"
+ style="fill:#929497;fill-opacity:1"
+ inkscape:connector-curvature="0" /><path
+ d="m 31.2556,16.2772 0,6.9754 L 43,11.6255 31.2556,0 l 0,5.8172 C
13.2909,5.9335 13.6449,23.2526 13.6449,23.2526 c 0,0 6.3986,-8.7048
17.6107,-6.9754 l 0,0 z"
+ id="path7"
+ style="fill:#929497;fill-opacity:1"
+ inkscape:connector-curvature="0" /></g></svg>
\ No newline at end of file
diff --git a/img/user.svg b/img/user-ltr.svg
similarity index 100%
rename from img/user.svg
rename to img/user-ltr.svg
diff --git a/img/user-rtl.svg b/img/user-rtl.svg
new file mode 100644
index 0000000..27a6020
--- /dev/null
+++ b/img/user-rtl.svg
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Generator: Adobe Illustrator 16.0.4, SVG Export Plug-In . SVG Version:
6.00 Build 0) -->
+
+<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"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ version="1.1"
+ id="Layer_1"
+ x="0px"
+ y="0px"
+ width="80px"
+ height="80px"
+ viewBox="0 0 80 80"
+ enable-background="new 0 0 80 80"
+ xml:space="preserve"
+ inkscape:version="0.48.4 r9939"
+ sodipodi:docname="user-ltr.svg"><metadata
+ id="metadata51"><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></dc:title></cc:Work></rdf:RDF></metadata><defs
+ id="defs49" /><sodipodi:namedview
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1"
+ objecttolerance="10"
+ gridtolerance="10"
+ guidetolerance="10"
+ inkscape:pageopacity="0"
+ inkscape:pageshadow="2"
+ inkscape:window-width="640"
+ inkscape:window-height="480"
+ id="namedview47"
+ showgrid="false"
+ inkscape:zoom="2.95"
+ inkscape:cx="40"
+ inkscape:cy="40"
+ inkscape:window-x="0"
+ inkscape:window-y="27"
+ inkscape:window-maximized="0"
+ inkscape:current-layer="Layer_1" /><g
+ id="g3"
+ transform="matrix(-1,0,0,1,80,0)"><g
+ id="g5"><g
+ id="g7"><defs
+ id="defs9"><rect
+ id="SVGID_1_"
+ width="80"
+ height="80"
+ x="0"
+ y="0" /></defs><clipPath
+ id="SVGID_2_"><use
+ xlink:href="#SVGID_1_"
+ overflow="visible"
+ id="use13"
+ style="overflow:visible"
+ x="0"
+ y="0"
+ width="80"
+ height="80" /></clipPath><rect
+ clip-path="url(#SVGID_2_)"
+ width="80"
+ height="7.0739999"
+ id="rect15"
+ x="0"
+ y="0"
+ style="fill:#ffffff" /><rect
+ y="7.0739999"
+ clip-path="url(#SVGID_2_)"
+ width="80"
+ height="22.601999"
+ id="rect17"
+ x="0"
+ style="fill:#ffffff" /><rect
+ y="29.676001"
+ clip-path="url(#SVGID_2_)"
+ width="80"
+ height="50.324001"
+ id="rect19"
+ x="0"
+ style="fill:#ffffff" /></g></g><g
+ id="g21"><g
+ id="g23"><path
+ d="M 16.436,8 C 8.396,8 8.014,15.667 8,16.049 V 72 c 28.596,0
50.623,0 55.562,0 8.039,0 8.422,-7.667 8.438,-8.049 V 8 H 16.436 z"
+ id="path25"
+ inkscape:connector-curvature="0"
+ style="fill:#929497" /></g><g
+ id="g27"><g
+ id="g29"><g
+ id="g31"><path
+ d="m 31.202,26.303 c 2.565,0 4.649,2.086 4.649,4.655 0,2.573
-2.084,4.653 -4.649,4.653 -2.573,0 -4.659,-2.08 -4.659,-4.653 -10e-4,-2.569
2.086,-4.655 4.659,-4.655 z"
+ id="path33"
+ inkscape:connector-curvature="0"
+ style="fill:#ffffff" /></g></g><g
+ id="g35"><g
+ id="g37"><circle
+ cx="50.476002"
+ cy="30.957001"
+ r="4.6539998"
+ id="circle39"
+ sodipodi:cx="50.476002"
+ sodipodi:cy="30.957001"
+ sodipodi:rx="4.6539998"
+ sodipodi:ry="4.6539998"
+ style="fill:#ffffff"
+ d="m 55.130002,30.957001 c 0,2.570333 -2.083667,4.654
-4.654,4.654 -2.570333,0 -4.654,-2.083667 -4.654,-4.654 0,-2.570333
2.083667,-4.654 4.654,-4.654 2.570333,0 4.654,2.083667 4.654,4.654 z"
/></g></g></g><g
+ id="g41"><g
+ id="g43"><path
+ d="m 40.835,57.729 c -7.189,0 -13.987,-2.433 -18.186,-6.508
-1.057,-1.025 -1.082,-2.714 -0.056,-3.771 1.025,-1.056 2.714,-1.082
3.771,-0.056 3.226,3.131 8.636,5 14.471,5 5.749,0 11.117,-1.83 14.359,-4.896
1.068,-1.011 2.756,-0.966 3.77,0.105 1.012,1.07 0.965,2.758 -0.105,3.77
-4.271,4.04 -10.84,6.356 -18.024,6.356 z"
+ id="path45"
+ inkscape:connector-curvature="0"
+ style="fill:#ffffff" /></g></g></g></g></svg>
\ No newline at end of file
diff --git a/img/viewer.svg b/img/viewer-ltr.svg
similarity index 100%
rename from img/viewer.svg
rename to img/viewer-ltr.svg
diff --git a/img/viewer-rtl.svg b/img/viewer-rtl.svg
new file mode 100644
index 0000000..a974780
--- /dev/null
+++ b/img/viewer-rtl.svg
@@ -0,0 +1,190 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<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"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ version="1.2"
+ id="Layer_1"
+ width="264px"
+ height="162px"
+ viewBox="0 0 264 162"
+ inkscape:version="0.48.4 r9939"
+ sodipodi:docname="viewer-ltr.svg">
+ <metadata
+ id="metadata52">
+ <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></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <sodipodi:namedview
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1"
+ objecttolerance="10"
+ gridtolerance="10"
+ guidetolerance="10"
+ inkscape:pageopacity="0"
+ inkscape:pageshadow="2"
+ inkscape:window-width="640"
+ inkscape:window-height="480"
+ id="namedview50"
+ showgrid="false"
+ inkscape:zoom="1.1022727"
+ inkscape:cx="132"
+ inkscape:cy="81"
+ inkscape:window-x="63"
+ inkscape:window-y="267"
+ inkscape:window-maximized="0"
+ inkscape:current-layer="Layer_1" />
+ <defs
+ id="defs3">
+ <rect
+ id="r"
+ x="0"
+ y="5"
+ fill="#E5E5E5"
+ width="22"
+ height="6" />
+ </defs>
+ <polygon
+ points="13.366,161.357 0.5,151.749 0.5,0.5 263.5,0.5 263.5,152.249
254.5,158.954 254.5,42.5 215.5,42.5 215.5,155.1 211.107,151.369 203.5,156.699
203.5,42.5 48.5,42.5 48.5,153.349 38.749,161.38 24.833,151.362 "
+ id="polygon6"
+ transform="matrix(-1,0,0,1,264,0)"
+ style="fill:#ffffff" />
+ <path
+ d="m 1,1 v 150.998 l 8,5.96 V 43 42 h 1 38 1 v 1 111.019 l 3.274,-2.779
0.589,-0.499 0.633,0.44 6.504,4.557 V 43 42 h 1 154 1 v 1 110.099 l 9.257,7.661
13.295,-9.569 0.644,-0.465 0.598,0.521 10.864,9.47 L 263,151.499 V 1 H 1 M 0,0
H 264 V 152 L 250.609,162 239.136,152 225.245,162 215,153.6 V 43 H 61 V 157.66
L 52.922,152 48,156.18 V 43 H 10 V 159.95 L 0,152.5 V 0 l 0,0 z"
+ id="path8"
+ inkscape:connector-curvature="0"
+ style="fill:#e5e5e5" />
+ <path
+ d="M 61,157.66 V 43 H 215 V 153.6 L 212.855,152 200.3,162 186.491,152
172.262,162 159.29,152 146.317,162 132.506,152 120.37,162 106.979,152 92.75,162
79.778,152 66.804,162 61,157.66 z"
+ id="path10"
+ inkscape:connector-curvature="0"
+ style="fill:#e5e5e5" />
+ <path
+ d="m 253,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 z"
+ id="path12"
+ inkscape:connector-curvature="0"
+ style="fill:#e5e5e5" />
+ <path
+ d="M 10,159.95 V 43 H 48 V 156.18 L 40.449,162 26.638,152 12.747,162
10,159.95 z"
+ id="path14"
+ inkscape:connector-curvature="0"
+ style="fill:#e5e5e5" />
+ <path
+ d="M 226,107 V 72 h 25 v 35 h -25 z"
+ id="path16"
+ inkscape:connector-curvature="0"
+ style="fill:#e5e5e5" />
+ <path
+ d="m 31.49,5 h -26 v 6 h 26 V 5 z"
+ id="path18"
+ inkscape:connector-curvature="0"
+ style="fill:#e5e5e5" />
+ <use
+ xlink:href="#r"
+ x="208.50999"
+ id="use20"
+ transform="matrix(-1,0,0,1,264,0)"
+ y="0"
+ width="264"
+ height="162" />
+ <path
+ d="m 122,6 v 4 h 92 V 6 h -92 m -1,-1 h 94 v 6 H 121 V 5 l 0,0 z"
+ id="path22"
+ inkscape:connector-curvature="0"
+ style="fill:#e5e5e5" />
+ <use
+ xlink:href="#r"
+ x="184.50999"
+ id="use24"
+ transform="matrix(-1,0,0,1,264,0)"
+ y="0"
+ width="264"
+ height="162" />
+ <use
+ xlink:href="#r"
+ x="161.50999"
+ width="13"
+ id="use26"
+ transform="matrix(-1,0,0,1,264,0)"
+ y="0"
+ height="162" />
+ <use
+ xlink:href="#r"
+ x="176.50999"
+ width="6"
+ id="use28"
+ transform="matrix(-1,0,0,1,264,0)"
+ y="0"
+ height="162" />
+ <use
+ xlink:href="#r"
+ x="153.50999"
+ width="6"
+ id="use30"
+ transform="matrix(-1,0,0,1,264,0)"
+ y="0"
+ height="162" />
+ <use
+ xlink:href="#r"
+ x="9"
+ width="32"
+ id="use32"
+ transform="matrix(-1,0,0,1,264,0)"
+ y="0"
+ height="162" />
+ <path
+ d="M 262,14.5 H 2"
+ id="path34"
+ inkscape:connector-curvature="0"
+ style="fill:#e5e5e5;stroke:#e5e5e5" />
+ <path
+ d="M 43,73 H 19 v 1 h 24 v -1 z"
+ id="path36"
+ inkscape:connector-curvature="0"
+ style="fill:#a3a3a3" />
+ <use
+ x="52"
+ y="2"
+ width="2"
+ height="2"
+ id="use38"
+ transform="matrix(-1,0,0,1,264,0)" />
+ <path
+ d="m 226,59 v -5 h 25 v 5 h -25 z"
+ id="path40"
+ inkscape:connector-curvature="0"
+ style="fill:#e5e5e5" />
+ <path
+ d="M 14,47 H 44 V 71 H 14 V 47 z m 20.268,11 h -1.08 l -6.69,6.596
-3.634,-2.172 -5.477,4.557 V 67 h 23.959 l -7.078,-9 z"
+ id="path42"
+ inkscape:connector-curvature="0"
+ style="fill:#8acdff" />
+ <path
+ d="M 210,15 H 55 V 143 H 210 V 15 z"
+ id="path44"
+ inkscape:connector-curvature="0"
+ style="fill:#ffffff" />
+ <path
+ d="M 60,24 H 204 V 136 H 60 V 24 z m 97.679,50 h -5.184 L 120.366,108.005
102.92,97.585 76.64,118.902 V 119 H 191.657 L 157.679,74 z"
+ id="path46"
+ inkscape:connector-curvature="0"
+ style="fill:#2693ff" />
+ <path
+ d="M 72.205,34.937 76.045,31 H 66 V 41.067 L 69.948,36.846 76.426,43.34
72.79,47 H 82 V 36.933 l -3.637,4.046 -6.158,-6.042 z"
+ id="path48"
+ inkscape:connector-curvature="0"
+ style="fill:#ffffff" />
+</svg>
diff --git a/importml.sh b/importml.sh
index 245d78b..265b431 100755
--- a/importml.sh
+++ b/importml.sh
@@ -13,7 +13,7 @@
if [ $1 = "--reverse" ]; then
cp js/multilightbox/* $JSDIR
cp css/multilightbox.css $CSSDIR
- cp img/close.svg img/fullscreen.svg img/defullscreen.svg $IMGDIR
+ cp img/close.svg img/fullscreen*.svg img/defullscreen*.svg $IMGDIR
cp js/multilightbox/hooks.txt $MLDIR
else
cp $JSDIR/* js/multilightbox/
--
To view, visit https://gerrit.wikimedia.org/r/94269
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I18ca1003a317f12ec658aef5ecd4779325407eae
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MultimediaViewer
Gerrit-Branch: master
Gerrit-Owner: Amire80 <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits