diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-09-11 06:11:06 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-09-11 06:11:06 +0400 |
commit | fe1ca5fa5b11d347d6fb0d50724d6e03228840eb (patch) | |
tree | 813664b6fd630617a6084a2b360ec4ea5f2cab07 /modules | |
parent | 6facadf247754c4de310b0f9475b093562506c73 (diff) |
commit initial support for linking to different languages from the wiki
Diffstat (limited to 'modules')
-rw-r--r-- | modules/rna_wiki_reference.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/rna_wiki_reference.py b/modules/rna_wiki_reference.py index 0b80e01b..2a5b4ea9 100644 --- a/modules/rna_wiki_reference.py +++ b/modules/rna_wiki_reference.py @@ -5,6 +5,18 @@ 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", +}.get(__import__("bpy").context.user_preferences.system.language) + +url_manual_prefix = url_manual_prefix \ + if LANG is None \ + else url_manual_prefix.replace("Doc:2.6", "Doc:" + LANG + "/" + "2.6") + # - The first item is a wildcard - typical file system globbing # using python module 'fnmatch.fnmatch' # - Expressions are evaluated top down (include catch-all expressions last). |