Difference between revisions of "User:TidB/wikitranslator"

From Team Fortress Wiki
Jump to: navigation, search
m (How do I add my own language?: Because Brazilian language doesn't exist.)
m (Updated; using a more generic releases link now, added 123rse, made Tark green)
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:WikiTranslator}}
+
{{DISPLAYTITLE:wikitranslator}}
 
{{User:TidB/WikiTranslator/header}}
 
{{User:TidB/WikiTranslator/header}}
__TOC__
+
__NOTOC__
 
<br>
 
<br>
{{hatnote|Latest version: 2014-07-22:1}}
+
{{hatnote|[https://github.com/TidB/wikitranslator/releases/ Download the latest version here!]}}
  
== What is WikiTranslator? ==
+
[[File:User TidB WT Screenshot.png|800px|thumb|wikitranslator on Windows 10. The article is translated into German.|right]]
WikiTranslator is a local Python script that automatically translates common words, phrases and whole sentences in articles. This is especially useful for huge content updates like [[Scream Fortress 2013]] (over 100 cosmetics), which can be translated much faster.
 
  
== But automated translations are "strictly prohibited"! ==
+
The '''wikitranslator''' is a tool that automatically translates common words, phrases and whole sentences in articles. This is especially useful for huge content updates with many page that can be translated much faster.
This rule does only apply on services like Google Translate which translate a text word for word. This script adds previously translated sentences to the text. Additionally, [[User talk:WindPower#Automated_translations|WindPower allowed this tool]].
+
 
 +
=== Aren't automated translations "strictly prohibited"? ===
 +
This rule does only apply on services like Google Translate which translate a text word for word; this script adds previously translated sentences to the text. Oh, [[User talk:WindPower#Automated_translations|and it's allowed anyway]].
  
 
== Features ==
 
== Features ==
* Translates the first sentence in cosmetic item, weapon and item set pages as well as the optional sentences for community and promotional items.
+
* Translations of the first sentence in item (set) pages as well as the optional sentences for community and promotional items.
* Can translate multiple texts at once
+
** Also includes set contents, update history, levels, categories and flags as well as thumbnail descriptions.
* Can translate selected parts of the text
+
* Translation of headings
* Fully functional GUI
+
* Automatic addition of {{code|<nowiki>{{DISPLAYTITLE}}</nowiki>}}
* Supports multiple languages
+
* These features are available if the option 'Use TF Wiki connection to improve translations' is selected:
* Translations are customizable via the selection of functions
+
** Translation of wikilinks and Wikipedia links
* Selected functions can be saved as presets
+
** Localization of sounds in quotations
* File importing and exporting
+
** Translation of {{tl|Main}} and {{tl|See also}} templates
* Import of all pages in a category
 
* Translation of wikilinks and Wikipedialinks, using the Mediawiki API
 
  
== How do I add my own language? ==
+
== Supported languages ==
{{hatnote|At the moment, German, Korean, Brazilian Portuguese and Italian are supported. Working on support for Finnish. Thanks to [[User:Muriloricci|Muriloricci]], [[User:Themokey|Themokey]], [[User:Bandicoot0123|Bandicoot0123]] and [[User:Zabidenu|Zabidenu]] for this! And [[User:AgentBull|AgentBull]] for fixes and suggestions :)}}
+
{| class="wikitable grid"
Read the [[User:TidB/WikiTranslator/Localization|localization page]] first. There are a lot of strings to add and sometimes it is a bit tricky. If you have any questions, feel free to contact me.
+
! class="header" | Language
 +
! class="header" | Translator
 +
|-
 +
| Danish ({{code|da}})
 +
| [[User:Faghetti V.2|Faghetti V.2]]
 +
|-
 +
| German ({{code|de}})
 +
| [[User:AgentBull|AgentBull]], [[User:TidB|TidB]]
 +
|-
 +
| Finnish ({{code|fi}})
 +
| [[User:Zabidenu|Zabidenu]]
 +
|-
 +
| French ({{code|fr}})
 +
| [[User:Nicolapps|Nicolapps]]
 +
|-
 +
| Italian ({{code|it}})
 +
| [[User:Bandicoot0123|Bandicoot0123]]
 +
|-
 +
| Korean ({{code|ko}})
 +
| [[User:Themokey|Themokey]], [[User:123rse|123rse]]
 +
|-
 +
| Dutch ({{code|nl}})
 +
| [[User:CaptainCookieCrunch!|CaptainCookieCrunch!]]
 +
|-
 +
| Brazilian Portuguese ({{code|pt-br}})
 +
| [[User:Muriloricci|Muriloricci]], [[User:Tark|<span style="color: #5BC236">Tark</span>]]
 +
|-
 +
| Russian ({{code|ru}})
 +
| [[User:Pepsone|Pepsone]]
 +
|-
 +
| Turkish ({{code|tr}})
 +
| [[User:Cagrimanoka|Cagrimanoka]]
 +
|}
 +
 
 +
=== How do I add another language? ===
 +
Read the [[User:TidB/wikitranslator/Localization|localization page]] first. There are a lot of strings to add and sometimes it is a bit tricky. If you have any questions, feel free to contact me.
  
 
== Download & installation ==
 
== Download & installation ==
[https://github.com/TidB/WikiTranslator Download]<br>
+
=== Windows ===
You can find the newest version and the code on GitHub. Click on the "Download ZIP" button on the bottom right.  
+
# Download either {{code|wikitranslator.zip}} (faster startup time) or {{code|wikitranslator.exe}} (slower startup time) from [https://github.com/TidB/wikitranslator/releases/ the downloads page].
 
+
# If you're using the {{code|.zip}} download, extract it into some folder
[http://python.org/downloads/ Python 3.3]<br>
+
# Run {{code|wikitranslator.exe}}
You need Python 3.3 to run this script. Everything above version number 3 is supported.  
 
  
Copy the *.py files from the .zip folder into the Python folder.<br>
+
=== Other systems ===
Read the [[User:TidB/WikiTranslator/Documentation|documentation]] for more details how to run and use the script.
+
# [http://python.org/downloads/ Install Python 3 or later]<br>
 +
# [http://docs.python-requests.org/en/master/user/install/#install Install the 'requests' library] (installation instructions can be found there)<br>
 +
# [https://github.com/earwig/mwparserfromhell Install the 'mwparserfromhell' library] (installation instructions are in the README below)<br><br>
 +
# [https://github.com/TidB/wikitranslator Download the sources] however you like (cloning the repo, downloading the {{code|.zip}}) and run {{code|gui.py}}

Latest revision as of 08:56, 12 April 2019

User TidB Command.png User TidB WT Loc.png User TidB WT Template.png
wikitranslator Localization Localization template


Download the latest version here!
wikitranslator on Windows 10. The article is translated into German.

The wikitranslator is a tool that automatically translates common words, phrases and whole sentences in articles. This is especially useful for huge content updates with many page that can be translated much faster.

Aren't automated translations "strictly prohibited"?

This rule does only apply on services like Google Translate which translate a text word for word; this script adds previously translated sentences to the text. Oh, and it's allowed anyway.

Features

  • Translations of the first sentence in item (set) pages as well as the optional sentences for community and promotional items.
    • Also includes set contents, update history, levels, categories and flags as well as thumbnail descriptions.
  • Translation of headings
  • Automatic addition of {{DISPLAYTITLE}}
  • These features are available if the option 'Use TF Wiki connection to improve translations' is selected:
    • Translation of wikilinks and Wikipedia links
    • Localization of sounds in quotations
    • Translation of {{Main}} and {{See also}} templates

Supported languages

Language Translator
Danish (da) Faghetti V.2
German (de) AgentBull, TidB
Finnish (fi) Zabidenu
French (fr) Nicolapps
Italian (it) Bandicoot0123
Korean (ko) Themokey, 123rse
Dutch (nl) CaptainCookieCrunch!
Brazilian Portuguese (pt-br) Muriloricci, Tark
Russian (ru) Pepsone
Turkish (tr) Cagrimanoka

How do I add another language?

Read the localization page first. There are a lot of strings to add and sometimes it is a bit tricky. If you have any questions, feel free to contact me.

Download & installation

Windows

  1. Download either wikitranslator.zip (faster startup time) or wikitranslator.exe (slower startup time) from the downloads page.
  2. If you're using the .zip download, extract it into some folder
  3. Run wikitranslator.exe

Other systems

  1. Install Python 3 or later
  2. Install the 'requests' library (installation instructions can be found there)
  3. Install the 'mwparserfromhell' library (installation instructions are in the README below)

  4. Download the sources however you like (cloning the repo, downloading the .zip) and run gui.py