bimtester: se gettext for message translation

This commit is contained in:
Bernd Hahnebach
2020-12-18 07:14:42 +01:00
committed by Dion Moult
parent 3ae20637d7
commit 85a78a6e48
13 changed files with 135 additions and 30 deletions
@@ -1,7 +1,9 @@
import gettext
from behave import step
from utils import assert_schema
from ifcdata_methods import assert_schema
from utils import IfcFile
from utils import switch_locale
@step('The IFC file "{file}" must be provided')
@@ -14,8 +16,8 @@ def step_impl(context, file):
@step("IFC data must use the {schema} schema")
def step_impl(context, schema):
context.schema = IfcFile.get().schema
assert_schema(schema, context.schema)
switch_locale(context.localedir, "en")
assert_schema(context, schema)
@step('The IFC file "{file}" is exempt from being provided')