Gadget:HotCat.js:修订间差异

添加846字节 、​ 2023年5月7日 (星期日)
// Edit via Wikiplus
(// Edit via Wikiplus)
(// Edit via Wikiplus)
 
(未显示同一用户的3个中间版本)
第282行: 第282行:
// from the wiki where this script is executing, even if this script itself is hotlinked from Commons. This can
// from the wiki where this script is executing, even if this script itself is hotlinked from Commons. This can
// be used to change the default settings, or to provide localized interface texts for edit summaries and so on.
// be used to change the default settings, or to provide localized interface texts for edit summaries and so on.
loadJS( 'MediaWiki:Gadget-HotCat.js/local_defaults', loadTrigger.loaded );
// 搬运自中文维基百科,有修改
// https://zh.wikipedia.org/wiki/MediaWiki:Gadget-HotCat.js/local_defaults
HC.messages.cat_removed = '移除[[Category:$1]]';
HC.messages.template_removed = '移除{{[[Category:$1]]}}';
HC.messages.cat_added = '添加[[Category:$1]]';
HC.messages.cat_keychange = '已设置[[Category:$1]]的新排序字:';
HC.messages.cat_notFound = '分类“$1”没有找到';
HC.messages.cat_exists = '分类“$1”已经存在,没有添加。';
HC.messages.cat_resolved = '(重定向[[Category:$1]]已处理)';
HC.messages.uncat_removed = '已移除{{uncategorized}}';
HC.messages.prefix = '使用HotCat';
HC.messages.using = '';
HC.messages.multi_change = '$1个分类';
loadTrigger.loaded();


// Load localized UI texts. These are the texts that HotCat displays on the page itself. Texts shown in edit summaries
// Load localized UI texts. These are the texts that HotCat displays on the page itself. Texts shown in edit summaries
// should be localized in /local_defaults above.
// should be localized in /local_defaults above.
if ( conf.wgUserLanguage !== 'en' ) {
if ( conf.wgUserLanguage !== 'en' ) {
// Lupo: somebody thought it would be a good idea to add this. So the default is true, and you have to set it to false
// 搬运自维基共享资源
// explicitly if you're not on Commons and don't want that.
// https://commons.wikimedia.org/wiki/MediaWiki:Gadget-HotCat.js/zh-cn
if ( window.hotcat_translations_from_commons === undefined ) window.hotcat_translations_from_commons = true;
HC.messages.commit = '保存';
 
HC.messages.ok = '确定';
// Localization hook to localize HotCat messages, tooltips, and engine names for wgUserLanguage.
HC.messages.cancel = '取消';
if ( window.hotcat_translations_from_commons && conf.wgServer.indexOf( '//commons' ) < 0 ) {
HC.messages.multi_error = '无法从服务器取得页面文字。因此,您的分类变更无法保存。我们为此不便表示抱歉。';
loadURI( '//commons.wikimedia.org/w/index.php?title=' +
HC.categories = '分类';
'MediaWiki:Gadget-HotCat.js/' + conf.wgUserLanguage +
HC.engine_names.searchindex = '搜索索引';
'&action=raw&ctype=text/javascript', loadTrigger.loaded );
HC.engine_names.pagelist = '页面列表';
} else {
HC.engine_names.combined = '合并搜索';
// Load translations locally
HC.engine_names.subcat = '子分类';
loadJS( 'MediaWiki:Gadget-HotCat.js/' + conf.wgUserLanguage, loadTrigger.loaded );
HC.engine_names.parentcat = '上层分类';
}
HC.tooltips.change = '修改';
HC.tooltips.remove = '移除';
HC.tooltips.add = '增加一个新分类';
HC.tooltips.restore = '撤销变更';
HC.tooltips.undo = '撤销变更';
HC.tooltips.down = '打开以修改并显示子分类';
HC.tooltips.up = '打开以修改并显示上层分类';
HC.multi_tooltip = '修改多个分类';
loadTrigger.loaded();
} else {
} else {
loadTrigger.loaded();
loadTrigger.loaded();
维护员、​界面管理员、​巡查员、​监督员、​小部件编辑者
3,469

个编辑