Files
IfcOpenShell/src/bonsai/scripts
Andrej730 f0e5430daa bonsai_translations - allow .po files going out of sync
We had Chinese translation for Bonsai and some stub file for German and translation.py generation was failing with the error below. Chinese translation is more recent so it has some keys that German file hadn't and some keys were gone in the more recent version. In theory we should make all .po file in sync but let's skip it for now to keep things going.

```
Traceback (most recent call last):
  File "/home/runner/work/IfcOpenShell/IfcOpenShell/src/bonsai/scripts/bonsai_translations.py", line 379, in <module>
    update_translations_from_po(po_directory=Path(args.input), translations_module=Path(args.output))
  File "/home/runner/work/IfcOpenShell/IfcOpenShell/src/bonsai/scripts/bonsai_translations.py", line 203, in update_translations_from_po
    if (msgstr := msg.translations[lang]) in (None, ""):
                  ~~~~~~~~~~~~~~~~^^^^^^
KeyError: 'de_DE'
```
2025-03-07 20:48:44 +05:00
..
2024-08-13 23:09:50 +10:00
2024-08-13 23:09:50 +10:00
2025-02-11 21:32:03 +11:00
2024-08-13 23:09:50 +10:00
2024-08-14 16:49:34 +05:00
2024-08-13 23:09:50 +10:00
2024-08-14 16:49:34 +05:00
2024-08-14 16:49:34 +05:00
2024-08-13 23:09:50 +10:00
2024-08-14 16:49:34 +05:00
2024-09-20 22:03:19 +05:00
2024-08-14 16:49:34 +05:00
2024-08-14 16:49:34 +05:00
2024-08-13 23:09:50 +10:00
2024-08-14 16:49:34 +05:00
2024-08-14 16:49:34 +05:00
2025-02-18 18:50:33 +05:00
2024-08-14 16:49:34 +05:00
2024-08-13 23:09:50 +10:00
2024-08-13 23:09:50 +10:00
2024-08-13 23:09:50 +10:00
2024-08-13 23:09:50 +10:00