mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 19:27:10 +00:00
Licensing and black for BIMTester and IfcBlender. See #1082.
This commit is contained in:
@@ -1,3 +1,21 @@
|
||||
# BIMTester - OpenBIM Auditing Tool
|
||||
# Copyright (C) 2021 Dion Moult <dion@thinkmoult.com>
|
||||
#
|
||||
# This file is part of BIMTester.
|
||||
#
|
||||
# BIMTester is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Lesser General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# BIMTester is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public License
|
||||
# along with BIMTester. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import datetime
|
||||
import json
|
||||
import os
|
||||
@@ -55,6 +73,7 @@ class ReportGenerator:
|
||||
# get language and switch locale
|
||||
the_lang = self.get_feature_lang(feature.get("keyword", None))
|
||||
from bimtester.lang import switch_locale
|
||||
|
||||
switch_locale(os.path.join(self.base_path, "locale"), the_lang)
|
||||
data["_lang"] = the_lang
|
||||
|
||||
|
||||
Reference in New Issue
Block a user