MediaWiki:Gadget-popups.js

注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google ChromeFirefoxMicrosoft EdgeSafari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。

(function($, mw) {

  // The following translated strings is based on https://en.wikipedia.org/w/index.php?title=User:Lupin/strings-draft&oldid=579996170
  // This can help sysops to manage this Gadget, so please update this every fetch from [[en:User:Lupin/strings-draft]]

  //<pre><nowiki>
  //////////////////////////////////////////////////
  // Translatable strings
  //////////////////////////////////////////////////
  //
  // See instructions at
  // http://en.wikipedia.org/wiki/Wikipedia:Tools/Navigation_popups/Translation

  var batchConv = require('ext.gadget.HanAssist').batchConv;

  window.popupStrings = batchConv({
    /////////////////////////////////////
    // summary data, searching etc.
    /////////////////////////////////////
    'article': { hans: '条目', hant: '條目' },
    'category': { hans: '分类', hant: '分類' },
    'categories': { hans: '分类', hant: '分類' },
    'image': { hans: '文件', hant: '檔案' },
    'images': { hans: '文件', hant: '檔案' },
    'stub': '小作品',
    'section stub': { hans: '小章节', hant: '小章節' },
    'Empty page': { hans: '空页面', hant: '空頁面' },
    'kB': { hans: '千字节', hant: '千位元組' },
    'bytes': { hans: '字节', hant: '位元組' },
    'day': '日',
    'days': '日',
    'hour': { hans: '时', hant: '時' },
    'hours': { hans: '时', hant: '時' },
    'minute': '分',
    'minutes': '分',
    'second': '秒',
    'seconds': '秒',
    'week': '周',
    'weeks': '周',
    'search': { hans: '搜索', hant: '搜尋' },
    'SearchHint': { hans: '搜索包含%s的页面', hant: '搜尋包含%s的頁面' },
    'web': { hans: '站点', hant: '站點' },
    'global': '全域',
    'globalSearchHint': { hans: '在所有维基媒体项目中搜索%s', hant: '在所有維基媒體項目中搜尋%s' },
    'googleSearchHint': { hans: '用Google搜索%s', hant: '用Google搜尋%s' },
    'more...': '更多...',
    /////////////////////////////////////
    // article-related actions and info
    // (some actions also apply to user pages)
    /////////////////////////////////////
    'actions': { hans: '动作', hant: '動作' },         ///// view articles and view talk
    'popupsMenu': 'Popups',
    'enable previews': { hans: '启用预览', hant: '啓用預覽' },
    'disable previews': { hans: '禁用预览', hant: '禁用預覽' },
    'togglePreviewsHint': { hans: '切换本页Popups的预览开关', hant: '切換本頁Popups的預覽開關' },
    'toggle previews': { hans: '切换预览开关', hant: '切換預覽開關' },
    'reset': { hans: '复位', hant: '複位' },
    'disable': { hans: '禁用Popups', hant: '禁用Popups' },
    'disablePopupsHint': { hans: '在本页禁用Popups,刷新页面以重新启用。', hant: '在本頁禁用Popups,重新整理頁面以重新啟用。' },
    'historyfeedHint': { hans: '本页最近更改的RSS Feed', hant: '本頁最近更改的RSS Feed。' },
    'purgePopupsHint': { hans: '复位Popups,清除所有缓存数据。', hant: '複位Popups,清除所有快取資料。' },
    'PopupsHint': { hans: '复位Popups,清除所有缓存数据。', hant: '複位Popups,清除所有快取資料。' },
    'spacebar': '空格',
    'view': { hans: '查看', hant: '檢視' },
    'view article': { hans: '查看条目', hant: '檢視條目' },
    'viewHint': { hans: '前往%s', hant: '前往%s' },
    'talk': { hans: '讨论', hant: '討論' },
    'talk page': { hans: '讨论页', hant: '討論頁' },
    'this&nbsp;revision': { hans: '此修订版本', hant: '此修訂版本' },
    'revision %s of %s': { hans: '页面$2的修订版本$1', hant: '頁面$2的修訂版本$1' },
    'Revision %s of %s': { hans: '页面$2的修订版本$1', hant: '頁面$2的修訂版本$1' },
    'the revision prior to revision %s of %s': { hans: '页面$2的修订版本$1之前的修订版本', hant: '頁面$2的修訂版本$1之前的修訂版本' },
    'Toggle image size': { hans: '点击切换图片大小', hant: '點擊切換圖片大小' },
    'del': '删除',                 ///// delete, protect, move
    'delete': '删除',
    'deleteHint': '删除%s',
    'undeleteShort': '反',
    'UndeleteHint': { hans: '恢复%s', hant: '恢復%s' },
    'protect': { hans: '保护', hant: '保護' },
    'protectHint': { hans: '保护%s', hant: '保護%s' },
    'unprotectShort': '解除',
    'unprotectHint': { hans: '解除对%s的保护', hant: '解除對%s的保護' },
    'move': { hans: '移动', hant: '移動' },
    'move page': { hans: '移动页面', hant: '移動頁面' },
    'MovepageHint': { hans: '修改%s的标题', hant: '修改%s的標題' },
    'edit': { hans: '编辑', hant: '編輯' },               ///// edit articles and talk
    'edit article': { hans: '编辑条目', hant: '編輯條目' },
    'editHint': { hans: '修改%s的内容', hant: '修改%s的內容' },
    'edit talk': { hans: '编辑讨论页', hant: '編輯討論頁' },
    'new': '新',
    'new topic': { hans: '新主题', hant: '新主題' },
    'newSectionHint': { hans: '在%s增加新的评论主题', hant: '在%s增加新的評論主題' },
    'null edit': { hans: '空编辑', hant: '空編輯' },
    'nullEditHint': { hans: '制造一次对%s的空编辑', hant: '製造一次對%s的空編輯' },
    'hist': { hans: '历史', hant: '歷史' },               ///// history, diffs, editors, related
    'history': { hans: '历史', hant: '歷史' },
    'historyHint': { hans: '%s的修订历史', hant: '%s的修訂歷史' },
    'last': '最近',
    'lastEdit': '最近更改',
    'show last edit': '最近一次更改',
    'Show the last edit': { hans: '显示最近一次更改的差异', hant: '顯示最近一次更改的差異' },
    'lastContrib': { hans: '最近编辑', hant: '最近編輯' },
    'last set of edits': { hans: '最近编辑', hant: '最近編輯' },
    'lastContribHint': { hans: '显示由最后一位编辑者制造的差异', hant: '顯示由最後一位編輯者製造的差異' },
    'cur': { hans: '当前', hant: '當前' },
    'diffCur': { hans: '与当前版本的差异', hant: '與目前版本的差異' },
    'Show changes since revision %s': { hans: '显示自修订版本%s的差异', hant: '顯示自修訂版本%s的差異' },
    '%s old': '%s前', // as in 4 weeks old
    'oldEdit': { hans: '旧编辑', hant: '舊編輯' },
    'purge': { hans: '清除缓存', hant: '清除快取' },
    'purgeHint': { hans: '清除服务器中%s的缓存', hant: '清除伺服器中%s的快取' },
    'raw': { hans: '源代码', hant: '原始碼' },
    'rawHint': { hans: '查看%s的源代码', hant: '檢視%s的原始碼' },
    'render': { hans: '简单', hant: '簡單' },
    'renderHint': { hans: '显示%s的纯HTML解析', hant: '顯示%s的純HTML解析' },
    'Show the edit made to get revision': { hans: '显示编辑以得到修订版本', hant: '顯示編輯以得到修訂版本' },
    'sinceMe': '自我',
    'changes since mine': { hans: '自我修订的差异', hant: '自我修訂的差異' },
    'sinceMeHint': { hans: '显示自我上次修改以来的差异', hant: '顯示自我上次修改以來的差異' },
    'Couldn\'t find an edit by %s\nin the last %s edits to\n%s': { hans: '在$3最近$2次编辑中找不到$1做出的修改', hant: '在$3最近$2次編輯中找不到$1做出的修改' },
    'eds': { hans: '编辑', hant: '編輯' },
    'editors': { hans: '编辑者', hant: '編輯者' },
    'editorListHint': { hans: '列出编辑过%s的用户', hant: '列出編輯過%s的用戶' },
    'related': { hans: '相关', hant: '相關' },
    'relatedChanges': { hans: '相关更改', hant: '相關更改' },
    'related changes': { hans: '相关更改', hant: '相關更改' },
    'RecentchangeslinkedHint': { hans: '显示相关%s的修改', hant: '顯示相關%s的修改' },
    'editOld': { hans: '编辑旧版', hant: '編輯舊版' },          ///// edit old version, or revert
    'rv': '回退',
    'revert': '回退',
    'revertHint': '回退到 %s',
    'undo': { hans: '撤销', hant: '撤銷' },
    'undoHint': { hans: '撤销这次编辑', hant: '撤銷這次編輯' },
    'defaultpopupRedlinkSummary': { hans: '取消到空页面[[%s]]的链接,通过[[WP:POP|popups]]', hant: '取消到空頁面[[%s]]的連結,透過[[WP:POP|popups]]' },
    'defaultpopupFixDabsSummary': { hans: '消歧义[[%s]]到[[%s]],通过[[WP:POP|popups]]', hant: '消歧義[[%s]]到[[%s]],透過[[WP:POP|popups]]' },
    'defaultpopupFixRedirsSummary': { hans: '忽略从[[%s]]到[[%s]]的重定向,通过[[WP:POP|popups]]', hant: '忽略從[[%s]]到[[%s]]的重定向,透過[[WP:POP|popups]]' },
    'defaultpopupExtendedRevertSummary': { hans: '回退到$2在$1时制作的修订版本$3,通过[[WP:POP|popups]]', hant: '回退到$2在$1時製作的修訂版本$3,透過[[WP:POP|popups]]' },
    'defaultpopupRevertToPreviousSummary': { hans: '回退到修订版本%s的上一个版本,通过[[WP:POP|popups]]', hant: '回退到修訂版本%s的上一個版本,透過[[WP:POP|popups]]' },
    'defaultpopupRevertSummary': { hans: '回退到修订版本%s,通过[[WP:POP|popups]]', hant: '回退到修訂版本%s,透過[[WP:POP|popups]]' },
    'defaultpopupQueriedRevertToPreviousSummary': { hans: '回退到修订$1(由$3在$2时制作)的上一个修订版本,通过[[WP:POP|popups]]', hant: '回退到修訂$1(由$3在$2時製作)的上一個修訂版本,透過[[WP:POP|popups]]' },
    'defaultpopupQueriedRevertSummary': { hans: '回退到$3在$2时制作的修订版本$1,通过[[WP:POP|popups]]', hant: '回退到$3在$2時製作的修訂版本$1,透過[[WP:POP|popups]]' },
    'defaultpopupRmDabLinkSummary': { hans: '移除到消歧义页[[%s]]的链接,通过[[WP:POP|popups]]', hant: '移除到消歧義頁[[%s]]的連結,透過[[WP:POP|popups]]' },
    'Redirects': '重定向', // as in Redirects to ...
    ' to ': '至',           // as in Redirects to ...
    'Bypass redirect': { hans: '忽略重定向', hant: '忽略重定向' },
    'Fix this redirect': { hans: '修复重定向', hant: '修復重定向' },
    'disambig': { hans: '消歧义', hant: '消歧義' },          ///// add or remove dab etc.
    'disambigHint': { hans: '消歧义这个链接到[[%s]]', hant: '消歧義這個連結到[[%s]]' },
    'Click to disambiguate this link to:': { hans: '点击以消歧义这个链接到:', hant: '點擊以消歧義這個連結到:' },
    'remove this link': { hans: '移除链接', hant: '移除連結' },
    'remove all links to this page from this article': { hans: '移除此条目到这页的所有链接', hant: '移除此條目到這頁的所有連結' },
    'remove all links to this disambig page from this article': { hans: '移除此条目到这消歧义的所有链接', hant: '移除此條目到這消歧義的所有連結' },
    'mainlink': { hans: '主链接', hant: '主連結' },          ///// links, watch, unwatch
    'wikiLink': { hans: '内部链接', hant: '內部連結' },
    'wikiLinks': { hans: '内部链接', hant: '內部連結' },
    'links here': { hans: '链入', hant: '鏈入' },
    'whatLinksHere': { hans: '链入页面', hant: '鏈入頁面' },
    'what links here': { hans: '链入页面', hant: '鏈入頁面' },
    'WhatlinkshereHint': { hans: '显示链接到%s的页面', hant: '顯示連結到%s的頁面' },
    'unwatchShort': { hans: '取消', hant: '取消' },
    'watchThingy': { hans: '监视', hant: '監視' },  // called watchThingy because {}.watch is a function
    'watchHint': { hans: '将%s加入到我的监视列表', hant: '將%s加入到我的監視列表' },
    'unwatchHint': { hans: '从我的监视列表移除%s', hant: '從我的監視列表移除%s' },
    'Only found one editor: %s made %s edits': { hans: '仅找到一位编者:%s作出了%s次编辑', hant: '僅找到一位編者:%s作出了%s次編輯' },
    '%s seems to be the last editor to the page %s': { hans: '%s看上去是%s这页的最后一位编者', hant: '%s看上去是%s這頁的最後一位編者' },
    'rss': { hans: 'RSS', hant: 'RSS' },
    /////////////////////////////////////
    // diff previews
    /////////////////////////////////////
    'Diff truncated for performance reasons': { hans: '差异已被截断', hant: '差異已被截斷' },
    'Old revision': { hans: '旧版本', hant: '舊版本' },
    'New revision': { hans: '新版本', hant: '新版本' },
    'Something went wrong :-(': { hans: '出问题了:-(', hant: '出問題了:-(' },
    'Empty revision, maybe non-existent': { hans: '空的修订,可能并不存在', hant: '空的修訂,可能並不存在' },
    'Unknown date': '未知日期',
    /////////////////////////////////////
    // other special previews
    /////////////////////////////////////
    'Empty category': { hans: '空的分类', hant: '空的分類' },
    'Category members (%s shown)': { hans: '分类成员(%s显示)', hant: '分類成員(%s顯示)' },
    'No image links found': { hans: '未找到文件链接', hant: '未找到檔案連結' },
    'File links': { hans: '文件链接', hant: '檔案連結' },
    'not commons': { hans: '维基共享中无此名称的文件。', hant: '維基共享中無此名稱的檔案。' },
    'commons only': { hans: '此文件来自维基共享。', hant: '此檔案來自維基共享。' },
    'No image found': { hans: '找不到文件', hant: '找不到檔案' },
    'commons dupe': { hans: '维基共享中存在此文件的副本。', hant: '維基共享中存在此檔案的副本。' },
    'commons conflict': { hans: '维基共享中存在此文件名称不同的副本。', hant: '維基共享中存在此檔名稱不同的副本。' },
    /////////////////////////////////////
    // user-related actions and info
    /////////////////////////////////////
    'user': { cn: "用户", tw: "使用者", hk: "用戶" },               ///// user page, talk, email, space
    'user&nbsp;page': { cn: "用户页", tw: "使用者頁", hk: "用戶頁" },
    'user talk': { hans: '用户讨论', hant: '用戶討論' },
    'edit user talk': { hans: '编辑用户讨论', hant: '編輯用戶討論' },
    'leave comment': { hans: '留言', hant: '留言' },
    'email': { hans: '电邮', hant: '電郵' },
    'email user': { hans: '电邮用户', hant: '電郵用戶' },
    'EmailuserHint': { hans: '给%s发送电子邮件', hant: '給%s發送電子郵件' },
    'space': { hans: '空间', hant: '空間' }, // short form for userSpace link
    'PrefixIndexHint': { cn: '显示%s的用户空间', tw: '顯示%s的使用者空間', hk: '顯示%s的用戶空間' },
    'count': { hans: '统计', hant: '統計' },             ///// contributions, tree, log
    'edit counter': { hans: '编辑次数', hant: '編輯次數' },
    'katelinkHint': { hans: '%s的编辑次数', hant: '%s的編輯次數' },
    'contribs': { hans: '贡献', hant: '貢獻' },
    'contributions': { hans: '贡献', hant: '貢獻' },
    'deletedContribs': { hans: '已删除的贡献', hant: '已刪除的貢獻' },
    'ContributionsHint': { cn: '%s的用户贡献', tw: '%s的使用者貢獻', hk: '%s的用戶貢獻' },
    'tree': { hans: '树', hant: '樹' },
    'contribsTreeHint': { hans: '根据命名空间查看%s的贡献', hant: '根據命名空間檢視%s的貢獻' },
    'log': { hans: '日志', hant: '日誌' },
    'user log': { cn: '用户日志', tw: '使用者日誌', hk: '用戶日誌' },
    'userLogHint': { cn: '显示%s的用户日志', tw: '顯示%s的使用者日誌', hk: '顯示%s的用戶日誌' },
    'arin': { hans: 'ARIN查询', hant: 'ARIN查詢' },             ///// ARIN lookup, block user or IP
    'Look up %s in ARIN whois database': { hans: '在ARIN Whois数据库中查询%s', hant: '在ARIN Whois數據庫中查詢%s' },
    'unblockShort': { hans: '解除', hant: '解除' },
    'block': { hans: '封禁', hant: '封禁' },
    'block user': { cn: '封禁用户', tw: '封禁使用者', hk: '封禁用戶' },
    'IpblocklistHint': { hans: '解封%s', hant: '解封%s' },
    'BlockipHint': { hans: '封禁%s', hant: '封禁%s' },
    'block log': { hans: '封禁日志', hant: '封禁日誌' },
    'blockLogHint': { hans: '显示%s的封禁日志', hant: '顯示%s的封禁日誌' },
    'protectLogHint': { hans: '显示%s的保护日志', hant: '顯示%s的保護日誌' },
    'pageLogHint': { hans: '显示%s的日志', hant: '顯示%s的日誌' },
    'deleteLogHint': { hans: '显示%s的删除日志', hant: '顯示%s的刪除日誌' },
    'Invalid %s %s': { hans: '选项%s不可用:%s', hant: '選項%s不可用:%s' },
    /////////////////////////////////////
    // Autoediting
    /////////////////////////////////////
    'Enter a non-empty edit summary or press cancel to abort': { hans: '输入编辑摘要,或按取消中止操作', hant: '輸入編輯摘要,或按取消中止操作' },
    'Failed to get revision information, please edit manually.\n\n': { hans: '获取修订版本信息失败,请手动修改。\n\n', hant: '獲取修訂版本資訊失敗,請手動修改。\n\n' },
    'The %s button has been automatically clicked. Please wait for the next page to load.': { hans: '按钮%s已被自动点击,请等待下一个页面加载。', hant: '按鈕%s已被自動點擊,請等待下一個頁面載入。' },
    'Could not find button %s. Please check the settings in your javascript file.': { hans: '找不到按钮%s,请检查您JavaScript文件中的设置。', hant: '找不到按鈕%s,請檢查您JavaScript檔案中的設定。' },
    /////////////////////////////////////
    // Popups setup
    /////////////////////////////////////
    'Open full-size image': { hans: '查看全尺寸图像', hant: '檢視全尺寸影像' },
    'zxy': { hans: 'zxy', hant: 'zxy' },
    'globalSearchHint': { hans: "在维基百科其他语言搜索“%s”", hant: "在維基百科其他語言搜尋「%s」" },
    'googleSearchHint': { hans: "在Google上搜索“%s”", hant: "在Google上搜尋「%s」" },
    'enable previews': { hans: "启用预览", hant: "啟用預覽" },
    'show preview': { hans: "禁用预览", hant: "禁用預覽" },
    'historyfeedHint': { hans: "该页面的近期更改RSS feed", hant: "該頁面的近期更改RSS feed" },
    'send thanks': { hans: "发送感谢", hant: "傳送感謝" },
    'ThanksHint': { cn: "向该用户发送一封感谢消息", tw: "向該使用者傳送一封感謝訊息", hk: "向該用戶傳送一封感謝訊息" },
    'mark patrolled': { hans: "标记为已巡查", hant: "標記為已巡查" },
    'markpatrolledHint': { hans: "标记该编辑为已巡查", hant: "標記該編輯為已巡查" },
    'Could not marked this edit as patrolled': { hans: "无法标记该编辑为已巡查", hant: "無法標記該編輯為已巡查" },
    'defaultpopupReviewedSummary': { hans: "标记从版本%s到%s间的编辑为已巡查", hant: "標記從版本%s到%s間的編輯為已巡查" },
    'Image from Commons': { hans: "来自维基共享资源的图片", hant: "來自維基共享資源的圖片" },
    'Description page': { hans: "图片描述页", hant: "圖片描述頁面" },
    'Alt text:': { hans: "替换文本(Alt):", hant: "替換文字(Alt):" },
    'revdel': { hans: "历史版本被隐藏", hant: "歷史版本被隱藏" },
    'editCounterLinkHint': { cn: "用户%s的编辑次数", tw: "使用者%s的編輯次數", hk: "用戶%s的編輯次數" },
    'DeletedcontributionsHint': { cn: "用户%s的被删除编辑次数", tw: "使用者%s的被刪除編輯次數", hk: "用戶%s的被刪除編輯次數" },
    'No backlinks found': { hans: "找不到链入页面", hant: "找不到連入頁面" },
    'and more': { hans: "以及其他页面", hant: "以及其他頁面" },
    'Download preview data': { hans: "下载预览数据", hant: "下載預覽資料" },
    'Invalid or IP user': { cn: "错误的用户名或IP用户", tw: "錯誤的使用者名稱或IP使用者", hk: "錯誤的用戶名稱或IP用戶" },
    'Not a registered username': { cn: "非已注册的用户", tw: "非已註冊的使用者", hk: "非已註冊的用戶" },
    'BLOCKED': { hans: "被封禁", hant: "被封鎖" },
    'Has blocks': { hans: "被部分封禁", hant: "被部分封鎖" },
    ' edits since: ': { hans: "次编辑,注册日期为", hant: "次編輯,註冊日期為" },
    'last edit on ': { hans: "最后一次编辑于", hant: "最後一次編輯於" },
    'EmailUserHint': { hans: "给%s发送电子邮件", hant: "給%s發送電子郵件" },
    'RANGEBLOCKED': { hans: "IP段被封禁", hant: "IP段被封鎖" },
    'IP user': { cn: "IP用户", tw: "IP使用者", hk: "IP用戶" },
    '♀': "♀",
    '♂': "♂",
    'HIDDEN': { hans: "全域隐藏", hant: "全域隱藏" },
    'LOCKED': { hans: "全域锁定", hant: "全域鎖定" },
    'Invalid user': { hans: "非法用户名", hant: "非法使用者名稱" },
    'diff': { hans: "差异", hant: "差異" },
    'to ': "至",
    'PrefixIndexHint': { cn: "显示用户%s的子页面", tw: "顯示使用者%s的子頁面", hk: "顯示用戶%s的子頁面" },
    'nullEditSummary': { hans: "进行一次零编辑", hant: "進行一次零編輯" },
    separator: "、",
    comma: ","
  });
  //</nowiki></pre>

  mw.loader.load('https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-popups.js&action=raw&ctype=text/javascript');
})(jQuery, mediaWiki);