diff options
author | Brian Evans <grknight@gentoo.org> | 2018-11-20 15:38:03 -0500 |
---|---|---|
committer | Brian Evans <grknight@gentoo.org> | 2018-11-20 15:38:03 -0500 |
commit | 77b59da595871ed637a7bba740a3754c3dbdbcd9 (patch) | |
tree | 44a441e636290a108de50bf7c4d2075fb2bc77ef /MLEB/Translate/resources | |
parent | UserMerge: Update to REL_1_30 (diff) | |
download | extensions-77b59da595871ed637a7bba740a3754c3dbdbcd9.tar.gz extensions-77b59da595871ed637a7bba740a3754c3dbdbcd9.tar.bz2 extensions-77b59da595871ed637a7bba740a3754c3dbdbcd9.zip |
Add missing files from the Language Pack
Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to 'MLEB/Translate/resources')
7 files changed, 644 insertions, 0 deletions
diff --git a/MLEB/Translate/resources/css/ext.translate.groupselector.less b/MLEB/Translate/resources/css/ext.translate.groupselector.less new file mode 100644 index 00000000..f1d6764e --- /dev/null +++ b/MLEB/Translate/resources/css/ext.translate.groupselector.less @@ -0,0 +1,142 @@ +@import 'mediawiki.mixins'; + +/** + * Group selector + */ +.tux-groupselector { + position: absolute; + top: 14px; + right: 0; + z-index: 1000; + display: none; + margin-top: 13px; + width: 600px; + padding: 0; + border: 1px solid #a2a9b1; + background-color: #f0f0f0; + border-radius: 5px; + box-shadow: 0 5px 10px rgba( 0, 0, 0, 0.2 ); +} + +/* The triangle shaped callout */ +.tux-groupselector:before { + border-bottom: 7px solid #a2a9b1; + border-left: 7px solid transparent; + border-right: 7px solid transparent; + content: ''; + display: inline-block; + left: 99px; + position: absolute; + top: -7px; +} + +.tux-groupselector:after { + border-bottom: 6px solid #f0f0f0; + border-left: 6px solid transparent; + border-right: 6px solid transparent; + content: ''; + display: inline-block; + left: 100px; + position: absolute; + top: -6px; +} + +/* Remove the triangle shaped callout */ +.tux-groupselector.removecallout:before, +.tux-groupselector.removecallout:after { + content: none; +} + +.tux-groupselector__filter { + padding-top: 10px; +} + +.tux-groupselector__filter__search__input { + font-size: 14px; + width: 100%; + height: 28px; + border: 1px solid #c9c9c9; + padding: 2px; +} + +.tux-groupselector__filter__search__icon { + .background-image( '../images/search.svg' ); + background-repeat: no-repeat; + background-position: right center; + background-size: 25px; + height: 28px; +} + +/* + * Group tab + */ +.tux-grouptab { + color: #222; + line-height: 30px; + height: 30px; + cursor: pointer; + padding: 2px 5px; + margin: 0 4px; + display: inline-block; +} + +.tux-grouptab--selected { + border-bottom: 2px solid #0645ad; +} + +/* + * Group list + */ +.tux-grouplist { + max-height: 400px; + overflow-y: auto; + overflow-x: hidden; + background-color: #fff; + min-height: 200px; + border-radius: 0 0 5px 5px; +} + +.tux-grouplist__item { + position: relative; + border-bottom: 1px solid #eee; + height: 50px; + cursor: pointer; + + &:hover { + background-color: #f8f8f8; + } +} + +.grid .tux-grouplist__item__label { + padding-bottom: 0; /* grid override */ + padding-left: 15px; /* grid override */ + line-height: 32px; + cursor: pointer; + white-space: nowrap; +} + +.tux-grouplist__item__label .tux-statsbar { + position: absolute; + bottom: 0; + width: 150px; +} + +.tux-grouplist__item__icon { + .background-image( '../images/project.svg' ); + background-repeat: no-repeat; + background-position: right center; + /* Keep this in sync with js! */ + background-size: 32px; + height: 50px; +} + +.grid .row .tux-grouplist__item__subgroups { + color: #72777d; + position: absolute; /* grid override */ + padding: 0 15px 2px 0; /* grid override */ + line-height: 1.25em; + bottom: 0; + right: 0; + text-align: right; + font-size: 10pt; +} diff --git a/MLEB/Translate/resources/css/ext.translate.legacy.css b/MLEB/Translate/resources/css/ext.translate.legacy.css new file mode 100644 index 00000000..62353931 --- /dev/null +++ b/MLEB/Translate/resources/css/ext.translate.legacy.css @@ -0,0 +1,65 @@ +/* Form at Special:Translate */ +.mw-sp-translate-error { + font-style: italic; + background-color: #ff0; +} + +/* This gets pretty far on wide screens... */ +.mw-sp-translate-settings input[ type='submit' ] { + float: right; +} + +/* For some reason a non-breaking space is not enough to keep the label + * with the dropdown. */ +.mw-sp-translate-settings label { + white-space: nowrap; +} + +.mw-sp-translate-table { + width: 100%; + border-width: 1px; + border-collapse: collapse; +} + +.mw-sp-translate-table th { + background-color: #b2b2ff; + border: 1px solid; +} + +.mw-sp-translate-table tr.orig { + background-color: #ffe2e2; +} + +.mw-sp-translate-table tr.new { + background-color: #e2ffe2; +} + +.mw-sp-translate-table tr.def { + background-color: #f0f0ff; +} + +.mw-sp-translate-table tr.ign { + background-color: #202020; +} + +.mw-sp-translate-table tr.opt { + background-color: #f2f200; +} + +.mw-sp-translate-table .untranslated { + background-color: #a2f290; +} + +.mw-sp-translate-table > tbody > tr > * { + vertical-align: top; + border: 1px solid #909090; +} + +.mw-translate-messagereviewbutton { + float: right; +} + +.mw-translate-messagereviewstatus { + clear: right; + text-align: right; +} diff --git a/MLEB/Translate/resources/css/ext.translate.messagetable.less b/MLEB/Translate/resources/css/ext.translate.messagetable.less new file mode 100644 index 00000000..2a2e10a7 --- /dev/null +++ b/MLEB/Translate/resources/css/ext.translate.messagetable.less @@ -0,0 +1,283 @@ +@import 'mediawiki.mixins'; + +/* Default colors */ +.tux-messagelist { + background-color: #f8f8f8; + color: #222; + max-width: 800px; +} + +.grid.ext-translate-container .row { + min-width: 300px !important; +} + +@media screen and ( max-width: 600px ) { + .grid.ext-translate-container .tux-messagelist .tux-list-message { + width: 100%; + } + + .tux-list-status, + .tux-list-edit { + display: none; + } +} + +.tux-message { + height: auto; + cursor: pointer; +} + +/* The "block" views of page mode and proofreading mode have 0 margin on + * .tux-message. To make the actual editor be of same width, set 0 margin on + * the open editor (overriding the -5px set by the grid) */ +.grid .tux-message.open { + margin: 0 auto; +} + +.tux-message-item { + line-height: 50px; + height: 50px; + overflow: hidden; + margin-right: 5px !important; + margin-left: 5px !important; + vertical-align: middle; + border-bottom: 1px solid #c9c9c9; + background: #fff; +} + +.tux-message-item.translated, +.tux-message-item.translated:hover, +.tux-message-item.proofread, +.tux-message-item.proofread:hover { + background-color: #f0f0f0; +} + +.tux-message-item:hover { + background-color: #f8f8f8; +} + +.tux-list-status span, +.tux-list-edit { + padding: 5px; + /* 15px space for icon */ + padding-left: 20px; + /* Do not combine these two, unless you also fix the + * tux-status-* styles below. That includes you, Siebrand ;) + */ + background-position: left; + background-repeat: no-repeat; +} + +.tux-info { + background-color: #f0f0f0; +} + +.tux-list-source { + white-space: nowrap; + text-overflow: ellipsis; + unicode-bidi: -webkit-isolate; + unicode-bidi: -moz-isolate; + unicode-bidi: isolate; +} + +.tux-list-translation { + color: #54595d; + white-space: nowrap; + padding-left: 5px; + text-overflow: ellipsis; + unicode-bidi: -webkit-isolate; + unicode-bidi: -moz-isolate; + unicode-bidi: isolate; +} + +.tux-list-message { + overflow: hidden; + text-overflow: ellipsis; +} + +.tux-status-unsaved { + .background-image( '../images/label-pen.svg' ); +} + +.tux-status-translated, +.tux-status-proofread { + .background-image( '../images/label-tick.svg' ); +} + +.tux-status-fuzzy { + .background-image( '../images/label-clock.svg' ); +} + +.tux-list-edit a { + .background-image( '../images/action-edit.svg' ); + background-position: left center; + background-repeat: no-repeat; + background-size: 18px 18px; + padding-left: 19px; +} + +.tux-messagetable-loader { + color: #54595d; + padding: 15px; + top: 0; + background: #f0f0f0 16px 50%; + box-shadow: 0 1px 4px rgba( 0, 0, 0, 0.3 ), 0 0 20px rgba( 0, 0, 0, 0.1 ) inset; +} + +.tux-messagetable-loader-info { + padding-left: 46px; + font-size: 25px; +} + +.tux-action-bar { + background-color: #f0f0f0; + color: #222; + box-shadow: 0 2px 6px rgba( 0, 0, 0, 0.3 ); + transition: width 250ms; +} + +@media screen and ( min-height: 500px ) { + .tux-action-bar.floating { + border-top: 1px solid #ddd; + position: fixed; + bottom: 0; + z-index: 200; + } +} + +.tux-action-bar .tux-statsbar { + position: relative; + top: 30px; +} + +.tux-action-bar .tux-view-switcher { + padding: 0 5px; +} + +.tux-action-bar button { + min-height: 40px; + font-size: 14px; + margin: 5px 0; + cursor: pointer; + background-color: #e6e6e6; + font-weight: bold; + line-height: 1; + background-image: linear-gradient( #f0f0f0, #e6e6e6 ); + border: 1px #c9c9c9 solid; +} + +.tux-action-bar button:hover { + background-color: #f0f0f0; + background-image: linear-gradient( #f8f8f8, #f0f0f0 ); +} + +.tux-action-bar button:active, +.tux-action-bar button.down { + background: #222; + color: #fff; +} + +.tux-action-bar button.disabled, +.tux-action-bar button.disabled:hover { + color: #c9c9c9; + cursor: default; + background-color: #f0f0f0; + border-color: #e3e3e3; +} + +.tux-view-switcher button { + padding: 0 2px 0 0; +} + +.tux-view-switcher button:first-child { + border-radius: 3px 0 0 3px; + border-right: 0; +} + +.tux-view-switcher button:last-child { + border-radius: 0 3px 3px 0; + border-left: 0; +} + +.tux-view-switcher button:before { + content: ''; + height: 15px; + width: 25px; + display: inline-block; + vertical-align: bottom; +} + +.tux-action-bar .translate-mode-button { + width: 30%; +} + +.tux-action-bar .translate-mode-button:before { + .background-image( '../images/view-list.svg' ); +} + +.tux-action-bar .translate-mode-button.down:before { + .background-image( '../images/view-list-hi.svg' ); +} + +.tux-action-bar .page-mode-button { + width: 30%; +} + +.tux-action-bar .page-mode-button:before { + .background-image( '../images/view-page.svg' ); +} + +.tux-action-bar .page-mode-button.down:before { + .background-image( '../images/view-page-hi.svg' ); +} + +.tux-action-bar .proofread-mode-button { + width: 36%; +} + +.tux-action-bar .proofread-mode-button:before { + .background-image( '../images/view-proofread.svg' ); +} + +.tux-action-bar .proofread-mode-button.down:before { + .background-image( '../images/view-proofread-hi.svg' ); +} + +.tux-message-filter-result { + color: #222; + display: flex; + justify-content: space-between; + align-items: center; + border-bottom: 1px solid #c9c9c9; + background: #fff5aa; + padding: 5px; + + & button { + background: inherit; + } +} + +.tux-empty-list { + padding: 20px; +} + +.tux-empty-list-header { + font-size: 25px; + padding: 5px 0; +} + +.tux-empty-list-guide { + color: #54595d; + font-size: 15px; + padding: 5px 0; +} + +.tux-empty-list-actions { + font-size: 15px; + padding: 8px 0; +} + +.tux-empty-list-actions a { + cursor: pointer; + margin: 0 10px; +} diff --git a/MLEB/Translate/resources/css/ext.translate.special.pagepreparation.css b/MLEB/Translate/resources/css/ext.translate.special.pagepreparation.css new file mode 100644 index 00000000..d68d6072 --- /dev/null +++ b/MLEB/Translate/resources/css/ext.translate.special.pagepreparation.css @@ -0,0 +1,11 @@ +#page { + width: 35%; +} + +.client-nojs .grid { + display: none; +} + +.client-js .tux-nojs { + display: none; +} diff --git a/MLEB/Translate/resources/css/ext.translate.tag.languages.css b/MLEB/Translate/resources/css/ext.translate.tag.languages.css new file mode 100644 index 00000000..36139aae --- /dev/null +++ b/MLEB/Translate/resources/css/ext.translate.tag.languages.css @@ -0,0 +1,73 @@ +.mw-pt-languages { + display: table; + border: 1px solid #a2a9b1; + box-sizing: border-box; + background: #f8f9fa none repeat scroll 0 0; + border-collapse: collapse; + line-height: 1.2; + width: 100%; + clear: both; + overflow: auto; +} + +.mw-pt-languages-label { + display: table-cell; + border-right: 1px solid #a2a9b1; + padding: 0.5em; + background: #eaecf0 none repeat scroll 0 0; + font-weight: bold; + width: 15%; +} + +.mw-pt-languages-list { + padding-left: 0.5em; + padding-bottom: 0.7em; + display: table-cell; + width: 80%; +} + +.mw-pt-languages-list a { + white-space: nowrap; +} + +.mw-pt-languages-selected, +.mw-pt-languages-ui { + font-weight: bold; +} + +.mw-pt-progress { + padding-right: 11px; + background: transparent right center no-repeat; + background-size: 9px 9px; +} + +/* Need very high specificity to override skin styles in the sidebar */ +#mw-panel .portal .body .mw-pt-progress--none a, +.interwiki-x-pagetranslation.mw-pt-progress--none a { + color: #ba0000; +} + +#mw-panel .portal .body .mw-pt-progress--none a:visited, +.interwiki-x-pagetranslation.mw-pt-progress--none a:visited { + color: #a55858; +} + +.mw-pt-progress--stub { + background-image: url( ../images/prog-1.png ); +} + +.mw-pt-progress--low { + background-image: url( ../images/prog-2.png ); +} + +.mw-pt-progress--med { + background-image: url( ../images/prog-3.png ); +} + +.mw-pt-progress--high { + background-image: url( ../images/prog-4.png ); +} + +.mw-pt-progress--complete { + background-image: url( ../images/prog-5.png ); +} diff --git a/MLEB/Translate/resources/js/ext.translate.recentgroups.js b/MLEB/Translate/resources/js/ext.translate.recentgroups.js new file mode 100644 index 00000000..678916a2 --- /dev/null +++ b/MLEB/Translate/resources/js/ext.translate.recentgroups.js @@ -0,0 +1,31 @@ +( function ( $, mw ) { + 'use strict'; + + mw.translate = mw.translate || {}; + + /** + * Simple wrapper for storing recent groups for an user. + * + * @class mw.translate.recentGroups + * @singleton + * @since 2016.03 + */ + + mw.translate.recentGroups = { + get: function () { + return JSON.parse( mw.storage.get( 'translate-recentgroups' ) ) || []; + }, + + append: function ( value ) { + var items = this.get(); + + items.unshift( value ); + items = items.filter( function ( item, index, array ) { + return array.indexOf( item ) === index; + } ); + items = items.slice( 0, 5 ); + + mw.storage.set( 'translate-recentgroups', JSON.stringify( items ) ); + } + }; +}( jQuery, mediaWiki ) ); diff --git a/MLEB/Translate/resources/js/ext.translate.special.operatorsuggest.js b/MLEB/Translate/resources/js/ext.translate.special.operatorsuggest.js new file mode 100644 index 00000000..362a259e --- /dev/null +++ b/MLEB/Translate/resources/js/ext.translate.special.operatorsuggest.js @@ -0,0 +1,39 @@ +/* + * Autocomplete search operators. + */ +( function ( mw, $ ) { + 'use strict'; + + function autocompleteOperators( request, response ) { + var operators = [ 'language:', 'group:', 'filter:' ], + result = [], + lastterm = request.term.split( ' ' ).pop(); + + $.each( operators, function ( index, value ) { + var pos = value.indexOf( lastterm ); + if ( pos === 0 ) { + result.push( value ); + } + } ); + response( result ); + } + + $( '.tux-searchpage .searchinputbox' ) + .autocomplete( { + source: autocompleteOperators, + select: function ( event, ui ) { + var $value = $( this ).val(), + operators = $value.split( ' ' ); + + operators.pop(); + operators.push( ui.item.value ); + + $( this ).val( operators.join( ' ' ) ); + return false; + }, + + focus: function ( event ) { + event.preventDefault(); + } + } ); +}( mediaWiki, jQuery ) ); |