Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-09-13 03:32:04 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-09-13 03:32:04 +0400
commit3bff7f2414208849f2733d5c073be247bc1ce279 (patch)
treecc24111c4ac668425237f635451dfa902f107a4f /modules
parentd5cc77461e4c5b3925e5b6a8c71f94868ba15097 (diff)
patch from 'Ivan Paulos Tom?' to add translation lookups to wiki docs.
Diffstat (limited to 'modules')
-rw-r--r--modules/rna_wiki_reference.py75
1 files changed, 67 insertions, 8 deletions
diff --git a/modules/rna_wiki_reference.py b/modules/rna_wiki_reference.py
index 2a5b4ea9..c374c1fd 100644
--- a/modules/rna_wiki_reference.py
+++ b/modules/rna_wiki_reference.py
@@ -1,16 +1,75 @@
-# this file maps RNA to online URL's for right mouse context menu
-# documentation access
-
+# RNA WIKI REFERENCE
+#
+# This file maps RNA to online URL's for right mouse context menu documentation access
+#
+# To make international, we made a script,
+# pointing the manuals to the proper language,
+# specified in the 'User Preferences Window' by the users
+# Some Languages have their manual page, using a prefix or
+# being preceeded by their respective reference, for example
+#
+# Doc:2.6 --> Doc:FR/2.6
+#
+# The table in the script, contains all of the languages we have in the
+# Blender wiki website, for those other languages that still
+# doesn't have a team of translators, and/or don't have a manual for their languages
+# we commented the lines below, you should add them to the language table
+# when they have a proper manual in our Blender wiki, or added
+# to the Blender UI translation table
+# The Blender wiki manual uses a list of ISO_639-1 codes to convert languages to wiki manual prefixes
+#
+# "DANISH": "DK", - Present in the wiki manual, but not present in Blender UI translations table
+# "FARSI": "FA", - Present in the wiki manual, but not present in Blender UI translations table
+# "KOREAN": "KO", - Present in the wiki manual, but not present in Blender UI translations table
+# "LITHUANIAN": "LT", - Present in the wiki manual, but not present in Blender UI translations table
+# "MACEDONIAN": "MK", - Present in the wiki manual, but not present in Blender UI translations table
+# "MONGOLIAN": "MN", - Present in the wiki manual, but not present in Blender UI translations table
+# "ROMANIAN": "RO", - Present in the wiki manual, but not present in Blender UI translations table
+#
+# "ESTONIAN": "ET", - Present in the wiki, as an empty page, not present in UI translations table
+#
+# "CROATIAN": "HR", - Present in Blender UI translations table, but without wiki manual
+# "KYRGYZ": "KY", - Present in Blender UI translations table, but without wiki manual
+# "NEPALI": "NE", - Present in Blender UI translations table, but without wiki manual
+# "PERSIAN": "FA", - Present in Blender UI translations table, but without wiki manual
+# "HEBREW": "HE", - Present in Blender UI translations table, but without wiki manual
+# "HUNGARIAN": "HU", - Present in Blender UI translations table, but without wiki manual
+# "SERBIAN_LATIN": "SR", - Present in Blender UI translations table, but without wiki manual
+#
+# NOTES:
+#
+# CHINESE - Present in the wiki as simplified chinese, for both the traditional and simplified
+# PORTUGUESE - Present in the wiki for both Portuguese and Brazilian Portuguese
+# THAILANDESE - It's the same being used for Turkish in the wiki
+#
# URL prefix is the: url_manual_prefix + url_manual_mapping[id]
url_manual_prefix = "http://wiki.blender.org/index.php/Doc:2.6/Manual/"
-# to make international...
-# Doc:2.6 --> FR/Doc:2.6
-
LANG = {
- "FRENCH": "FR",
- "RUSSIAN": "RU",
+ "ARABIC": "AR",
+ "BULGARIAN": "BG",
+ "CATALAN": "CA",
+ "CZECH": "CZ",
+ "GERMAN": "DE",
+ "GREEK": "EL",
+ "RUSSIAN": "RU",
+ "SERBIAN": "SR",
+ "SWEDISH": "SV",
+ "TURKISH": "TH",
+ "UKRAINIAN": "UK",
+ "SPANISH": "ES",
+ "FINNISH": "FI",
+ "FRENCH": "FR",
+ "INDONESIAN": "ID",
+ "ITALIAN": "IT",
+ "JAPANESE": "JA",
+ "DUTCH": "NL",
+ "POLISH": "PL",
+ "PORTUGUESE": "PT",
+ "BRAZILIANPORTUGUESE": "PT",
+ "SIMPLIFIED_CHINESE": "ZH",
+ "TRADITIONAL_CHINESE": "ZH",
}.get(__import__("bpy").context.user_preferences.system.language)
url_manual_prefix = url_manual_prefix \