Translation: FileException Does Not Support Translation
#25.531 aberto em 21 de nov. de 2025
Métricas do repositório
- Stars
- (30.913 stars)
- Métricas de merge de PR
- (Mesclagem média 24d 7h) (217 fundiu PRs em 30d)
Description
Is there an existing issue for this?
- I have searched the existing issues
Problem description
Problem Description:
There is one generic Base::FileException that includes a hardcoded string which gets bubbled up into a user message when anything related to files or file systems goes wrong. These exceptions should be revisited and reworked to use the best translation methods available in freecad.
- This is a further action from issue #25474
Proposed Solution:
Method A: Add more granular derived exceptions from Base::FileException to communicate different problems, and include text/translation in their class definition instead of the point when the exception is raised. This is the proposed method from @chennes .
Method B: Include translation code at the point the exceptions are raised.
Full version info
OS: Windows 11 build 26100
Architecture: x86_64
Version: 1.0.1.39285 (Git) Conda
Build type: Release
Branch: (HEAD detached at 1.0.1)
Hash: 878f0b8c9c72c6f215833a99f2762bc3a3cf2abd
Python 3.11.12, Qt 5.15.15, Coin 4.0.3, Vtk 9.3.0, OCC 7.8.1
Locale: English/United States (en_US)
Stylesheet/Theme/QtStyle: FreeCAD Light.qss/FreeCAD Light/Fusion
Installed mods:
* AddonManager 2025.11.4
* fasteners 0.5.43
* manifest.json
* Render 2024.12.15
Subproject(s) affected?
None
Anything else?
- Discussion from another ticket: https://github.com/FreeCAD/FreeCAD/issues/25474#issuecomment-3555641262
Code of Conduct
- I agree to follow this project's Code of Conduct