Skip to content

WikiAr/tr2026

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

https://meta.wikimedia.org/wiki/User:Mr._Ibrahem/ArticleTranslator_2026.js

Based on https://en.wikipedia.org/wiki/User:Ebrahim/ArticleTranslator.js

Installation

To install the ArticleTranslator, add the following code to your global.js:

window.articleTranslatorConf = {
    homeWiki: 'ar',
    //translatorBarFormat: '$1 ترجم $2 من $3 إلى $4 $5',
    translatorBarFormat: '$1 ‏ ترجم‏ $2 ‏من ‏$3 ‏إلى ‏$4 ‏$5‏',
    templateTranslatorText: 'ترجم القوالب',
    removeLinksAliasesText: 'إزالة الأسماء المستعارة',
};

mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Mr. Ibrahem/ArticleTranslator_2026.js&action=raw&ctype=text/javascript');

Configuration Options

You can customize the translator by setting the following options in window.articleTranslatorConf:

Option Default Description
homeWiki 'ar' Target wiki language code
fromLang Page content language Source language code
translatorBarFormat '$1translate$2 links from $3 to $4 $5' Format string for the translator bar
templateTranslatorText 'Template translation' Label for template translation checkbox
removeLinksAliasesText 'Remove Links Aliases' Label for remove aliases checkbox
removeUntranslatedLinksText 'Remove untranslated links' Label for remove untranslated links checkbox
enableTemplateTranslation true Enable template name translation
removeLinksAliases true Remove link aliases after translation
removeUntranslatedLinks false Remove links that couldn't be translated
showSpeechButton false Show speech synthesis button (English pages only)
showForvoLink false Show Forvo pronunciation link (English pages only)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors