Fix (unreported) calling Online Manual from context menu

This commit is contained in:
Philipp Oeser 2019-01-08 11:38:48 +01:00
parent d31844cc0b
commit 9003cc091f
1 changed files with 2 additions and 2 deletions

View File

@ -5,8 +5,8 @@ import bpy
url_manual_prefix = "https://docs.blender.org/manual/en/dev/"
language = ""
if bpy.context.preferences.system.use_international_fonts:
language = bpy.context.preferences.system.language
if bpy.context.preferences.view.use_international_fonts:
language = bpy.context.preferences.view.language
if language == 'DEFAULT':
import os
language = os.getenv('LANG', '').split('.')[0]