I18n: Translate error messages in VR add-on
This commit is contained in:
committed by
Bastien Montagne
parent
d1fdc7a0ce
commit
9ff1b4f1ec
@@ -10,6 +10,7 @@ else:
|
|||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
from bpy.app.translations import (
|
from bpy.app.translations import (
|
||||||
|
pgettext_n as n_,
|
||||||
pgettext_iface as iface_,
|
pgettext_iface as iface_,
|
||||||
contexts as i18n_contexts,
|
contexts as i18n_contexts,
|
||||||
)
|
)
|
||||||
@@ -249,9 +250,9 @@ class VIEW3D_PT_vr_info(bpy.types.Panel):
|
|||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
import platform
|
import platform
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
missing_support_string = "Built without VR/OpenXR features"
|
missing_support_string = n_("Built without VR/OpenXR features")
|
||||||
if platform.system() == "Darwin":
|
if platform.system() == "Darwin":
|
||||||
missing_support_string = "VR is not supported on macOS at the moment"
|
missing_support_string = n_("VR is not supported on macOS at the moment")
|
||||||
layout.label(icon='ERROR', text=missing_support_string)
|
layout.label(icon='ERROR', text=missing_support_string)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user