diff --git a/modules/rna_wiki_reference.py b/modules/rna_wiki_reference.py index 0b80e01b3e994013a3f8debbc11534d7350a01db..2a5b4ea9f6febf8f26c2c795a3c74425f42890f2 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).