User:PB2008/script-installer.js: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
Tags: Mobile edit Mobile web edit
mNo edit summary
Tags: Mobile edit Mobile web edit
 
(3 intermediate revisions by the same user not shown)
Line 43: Line 43:
         movePrompt: "您想移動至哪裡?請輸入以下選項之一:", // followed by the names of skins
         movePrompt: "您想移動至哪裡?請輸入以下選項之一:", // followed by the names of skins
         normalizeSummary: "標準化腳本安裝",
         normalizeSummary: "標準化腳本安裝",
         remoteUrlDesc: "從 $1、$2 開始讀取",
         remoteUrlDesc: "從 $2 的 $1 開始讀取",
         panelHeader: "目前已安裝以下腳本:",
         panelHeader: "目前已安裝以下腳本:",
         cannotInstall: "無法安裝",
         cannotInstall: "無法安裝",
Line 394: Line 394:
         $.each( imports, function ( targetName, targetImports ) {
         $.each( imports, function ( targetName, targetImports ) {
             var fmtTargetName = ( targetName === "common"
             var fmtTargetName = ( targetName === "common"
                 ? "common (applies to all skins)"
                 ? "common (適用於所有介面)"
                 : targetName );
                 : targetName );
                 if( targetImports.length ) {
                 if( targetImports.length ) {
Line 447: Line 447:
                                             " | ",
                                             " | ",
                                             $( "<a>" )
                                             $( "<a>" )
                                                 .text( "Move" )
                                                 .text( "移動" )
                                                 .click( function () {
                                                 .click( function () {
                                                     var dest = null;
                                                     var dest = null;
Line 511: Line 511:
                 $( "<abbr>" ).append(
                 $( "<abbr>" ).append(
                     $( "<img>" ).attr( "src", "https://upload.wikimedia.org/wikipedia/commons/thumb/3/35/Achtung-yellow.svg/20px-Achtung-yellow.svg.png" ).addClass( "warning" ),
                     $( "<img>" ).attr( "src", "https://upload.wikimedia.org/wikipedia/commons/thumb/3/35/Achtung-yellow.svg/20px-Achtung-yellow.svg.png" ).addClass( "warning" ),
                     "(insecure)" )
                     "(不安全)" )
                 .attr( "title", "不是User空間或MediaWiki空間的安裝"+
                 .attr( "title", "不是User空間或MediaWiki空間的安裝"+
                     "受保護的頁面是臨時的,將來可能會被刪除。" ) );
                     "受保護的頁面是臨時的,將來可能會被刪除。" ) );
Line 521: Line 521:
             installElement.prepend( $( "<a>" )
             installElement.prepend( $( "<a>" )
                     .attr( "id", "script-installer-main-install" )
                     .attr( "id", "script-installer-main-install" )
                     .text( localScriptsByName[ fixedPageName ] ? "Uninstall" : "Install" )
                     .text( localScriptsByName[ fixedPageName ] ? "取消安裝" : "安裝" )
                     .click( makeLocalInstallClickHandler( fixedPageName ) ) );
                     .click( makeLocalInstallClickHandler( fixedPageName ) ) );
             return installElement;
             return installElement;
Line 566: Line 566:
                     .append( $( "<button>" )
                     .append( $( "<button>" )
                         .addClass( "mw-ui-button mw-ui-progressive mw-ui-big" )
                         .addClass( "mw-ui-button mw-ui-progressive mw-ui-big" )
                         .text( localScriptsByName[ scriptName ] ? "Uninstall" : "Install" )
                         .text( localScriptsByName[ scriptName ] ? "解決安裝" : "安裝" )
                         .click( makeLocalInstallClickHandler( scriptName ) ) ) ) );
                         .click( makeLocalInstallClickHandler( scriptName ) ) ) ) );
         } );
         } );
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu