mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 13:43:40 +00:00
bimtester: se gettext for message translation
This commit is contained in:
committed by
Dion Moult
parent
3ae20637d7
commit
85a78a6e48
@@ -1,13 +1,9 @@
|
||||
from behave import step
|
||||
|
||||
from utils import assert_schema
|
||||
|
||||
from ifcdata_methods import assert_schema
|
||||
from utils import switch_locale
|
||||
|
||||
@step("Les données IFC doivent utiliser le schéma {schema}")
|
||||
def step_impl(context, schema):
|
||||
try:
|
||||
context.execute_steps(
|
||||
"* IFC data must use the {schema} schema".format(schema=schema)
|
||||
)
|
||||
except Exception:
|
||||
assert_schema(schema, context.schema)
|
||||
switch_locale(context.localedir, "fr")
|
||||
assert_schema(context, schema)
|
||||
|
||||
Reference in New Issue
Block a user