mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 22:11:36 +00:00
bimtester: start italian and dutch translation
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
from behave import step
|
||||
|
||||
import ifcdata_methods as idm
|
||||
from utils import switch_locale
|
||||
|
||||
|
||||
the_lang = "it"
|
||||
|
||||
|
||||
# TODO the next line needs translation
|
||||
@given("Il file IFC è stato fornito attraverso un argumento")
|
||||
def step_impl(context):
|
||||
switch_locale(context.localedir, the_lang)
|
||||
idm.provide_ifcfile_by_argument(context)
|
||||
|
||||
|
||||
@step("I dati IFC devono seguire lo schema {schema}")
|
||||
def step_impl(context, schema):
|
||||
switch_locale(context.localedir, the_lang)
|
||||
idm.has_ifcdata_specific_schema(context, schema)
|
||||
@@ -0,0 +1,22 @@
|
||||
from behave import step
|
||||
|
||||
import ifcdata_methods as idm
|
||||
from utils import switch_locale
|
||||
|
||||
|
||||
the_lang = "nl"
|
||||
|
||||
|
||||
"""
|
||||
# TODO the next line needs translation
|
||||
@given("The IFC file has been provided through an argument")
|
||||
def step_impl(context):
|
||||
switch_locale(context.localedir, the_lang)
|
||||
idm.provide_ifcfile_by_argument(context)
|
||||
"""
|
||||
|
||||
|
||||
@step("IFC-gegevens moeten het {schema} -schema gebruiken")
|
||||
def step_impl(context, schema):
|
||||
switch_locale(context.localedir, the_lang)
|
||||
idm.has_ifcdata_specific_schema(context, schema)
|
||||
@@ -0,0 +1,23 @@
|
||||
from behave import step
|
||||
|
||||
from utils import assert_attribute
|
||||
from utils import IfcFile
|
||||
from utils import switch_locale
|
||||
|
||||
|
||||
the_lang = "it"
|
||||
|
||||
|
||||
"""
|
||||
# TODO the next line needs translation
|
||||
@step("The project must have an identifier of {guid}")
|
||||
def step_impl(context, guid):
|
||||
switch_locale(context.localedir, the_lang)
|
||||
assert_attribute(IfcFile.get().by_type("IfcProject")[0], "GlobalId", guid)
|
||||
"""
|
||||
|
||||
|
||||
@step('Il nome del progetto, codice o identificatore breve deve essere "{value}"')
|
||||
def step_impl(context, value):
|
||||
switch_locale(context.localedir, the_lang)
|
||||
assert_attribute(IfcFile.get().by_type("IfcProject")[0], "Name", value)
|
||||
@@ -0,0 +1,23 @@
|
||||
from behave import step
|
||||
|
||||
from utils import assert_attribute
|
||||
from utils import IfcFile
|
||||
from utils import switch_locale
|
||||
|
||||
|
||||
the_lang = "nl"
|
||||
|
||||
|
||||
"""
|
||||
# TODO the next line needs translation
|
||||
@step("The project must have an identifier of {guid}")
|
||||
def step_impl(context, guid):
|
||||
switch_locale(context.localedir, the_lang)
|
||||
assert_attribute(IfcFile.get().by_type("IfcProject")[0], "GlobalId", guid)
|
||||
"""
|
||||
|
||||
|
||||
@step('De projectnaam, code of korte ID moet "{value}"')
|
||||
def step_impl(context, value):
|
||||
switch_locale(context.localedir, the_lang)
|
||||
assert_attribute(IfcFile.get().by_type("IfcProject")[0], "Name", value)
|
||||
Reference in New Issue
Block a user