User:NguoiDungKhongDinhDanh/QuickTranslation
(Redirected from User:NguoiDungKhongDinhDanh/QT)
QuickTranslation is a tool that allows translating without having to open a second tab. See its source code here and its TranslateWiki counterpart here.
Installation[edit]
Add one of the following line to your global.js or local common.js:
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:NguoiDungKhongDinhDanh/QuickTranslation.js&action=raw&ctype=text/javascript');
How-to[edit]
When viewing a translation, you will see a blue button similar to this:
After clicking it, you will see a form containing four parts: Translate documentation (optional), source page's wikitext, current page's wikitext and an area for you to type in your translation. There's also an inputbox for edit-summary-lovers like me. To save your translation, simply click Submit; else, click Cancel.
Caveats[edit]
- Due to its nature, it should only be installed at multi-language projects where the Translate extension is installed.
- The script cannot work if the "source page" doesn't exist, and the /en page is considered source page by default. Currently I haven't found out a workaround yet.
Maintainer[edit]
You may ask for new features or bug fixes at my talk page.