[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3734] trunk/py/scripts/addons/modules/ rna_wiki_reference.py: patch from 'Ivan Paulos Tom?' to add translation lookups to wiki docs.

Campbell Barton ideasman42 at gmail.com
Thu Sep 13 01:32:04 CEST 2012


Revision: 3734
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3734
Author:   campbellbarton
Date:     2012-09-12 23:32:04 +0000 (Wed, 12 Sep 2012)
Log Message:
-----------
patch from 'Ivan Paulos Tom?' to add translation lookups to wiki docs.

Modified Paths:
--------------
    trunk/py/scripts/addons/modules/rna_wiki_reference.py

Modified: trunk/py/scripts/addons/modules/rna_wiki_reference.py
===================================================================
--- trunk/py/scripts/addons/modules/rna_wiki_reference.py	2012-09-12 23:15:21 UTC (rev 3733)
+++ trunk/py/scripts/addons/modules/rna_wiki_reference.py	2012-09-12 23:32:04 UTC (rev 3734)
@@ -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 \



More information about the Bf-extensions-cvs mailing list