Skip to content
Snippets Groups Projects
Commit fe1ca5fa authored by Campbell Barton's avatar Campbell Barton
Browse files

commit initial support for linking to different languages from the wiki

parent 6facadf2
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,18 @@ ...@@ -5,6 +5,18 @@
url_manual_prefix = "http://wiki.blender.org/index.php/Doc:2.6/Manual/" 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 # - The first item is a wildcard - typical file system globbing
# using python module 'fnmatch.fnmatch' # using python module 'fnmatch.fnmatch'
# - Expressions are evaluated top down (include catch-all expressions last). # - Expressions are evaluated top down (include catch-all expressions last).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment