Category:Translate-without-prefix

From Custom Mario Kart
Jump to navigation Jump to search

Wiimm developed a bot that that collects all translations on the Wiiki and provides them as a JSON file.

There are three categories that affect scanning and analysis:

no-bot
Pages with this category will be ignored by all bots. This concerns the analysis and editing of the page.
no-translation
Pages with this category will be ignored by the translation bot.
translate-without-prefix
The definition of the category contains a job list. If the US English translation matches one of the jobs, then additional translation records will be created without the specified prefixes. See below for details.

The category entries are searched directly in the text of the respective page. They cannot be included. The bot runs every 30 minutes. The result is available as a compact JSON file (about 2.5 MB) and as formatted JSON file (about 3 MB). It is also available as a much smaller bzip2 compressed JSON file (about 420 KB). All sizes are based on the status of 2024-02-29.

Category translate-without-prefix

This category enables the automatic creation of additional translations with prefixes removed.

Syntax: [[Category:translate-without-prefix|{{PAGENAME}}|JOBS]]

The above definition should be adopted literally with the exception of JOBS. {{PAGENAME}} ensures that the page names are displayed correctly in the category. It can be replaced by a single letter to force another ordering.

JOBS varies and determines how the prefixes are processed. It is a comma separated list of one or more jobs. Each job runs individually and independently, and consists of a list of one or more slash-separated terms. Each term is either remove or remove=insert (like search=replace, see examples). A space is added at the end of each prefix to ensure word boundaries. If the US English name (us) begins with exactly the first prefix, then another translation record is created. The first appropriate prefix is removed from all translations.

Examples
Jobs Description
Wii If the US English name begins with Wii , then create a new record with the Wii  prefix removed from all translations.
Tour,Tour N64 First job: If the US English name begins with Tour , then create a new record with the Tour  prefix removed from all translations.

Second job: If the US English name begins with Tour N64 , then create a new record with the Tour N64  prefix removed from all translations.

Zelda WW/LZWW If the US English name begins with Zelda WW , then create a new record with either the Zelda WW  prefix or the LZWW  prefix removed from all translations.
Tour N64=Tour If the US English name begins with Tour N64 , then create a new record and replace Tour N64  with Tour  for all translations.

Format of JSON result

The result is an object (each JSON object can be interpreted as an associative array) with the following elements:

info
An information object with statistics and counters.
.version and .version_human
The current version of the output format. The version number is incremented when the output format changes.
.categories[]
The associated categories are listed in order of priority with the number of hits. With options that prevent the scan, other categories are not searched for and are therefore not recorded statistically.
.translations[]
A list of all languages translated into. The language abbreviations are used as keys. The value is the number of translations for these languages.
.region2language[]
List of predefined rules to rewrite regions according to language abbreviations.
.regions[]
Statistics about the translations defined on the Wiiki with region information.
.removed_prefixes[]
List of used translation job from category:translate-without-prefix.
.*
Various statistical values.
warning
An object with warnings. One member is used for each type of warning.
.pageload_failed[]
For debugging: A list of IDs of pages that failed to load. Page names are unknown. Each element is of format page_id. info.pageload_failed is the corresponding counter.
.defined_twice[]
An object with translations, that are define two or more times. Each element is of format en_name : [page_id,page_name].
.broken_end_of_table[]
A list with broken table endings. Each element is of format [page_id,page_name].
translate[]
An object (associative array). The keys are the US English names that have been translated.
.page_id
The ID of the Wiiki page where the translation table is located. If there are several pages, then it is a list with all pages.
.page_name
The name of the Wiiki page where the translation table is located. If there are several pages, then it is a list with all pages.
.prefix_jobs
Optional value. If available, the translation job from category:translate-without-prefix is specified as a string.
.removed_prefixes[]
Optional value. If present, then the prefixes that are removed for this translation are given as a object. The member name (key) will be searched and removed. The value is the replacement.
.translate[]
An object (associative array). A list of translations. The language abbreviations are used as keys.

Pages in category "Translate-without-prefix"

The following 191 pages are in this category, out of 191 total.