Fix Flatpak missing locale support (#12714)

Add the localization/ directory to the Flatpak source list so
run_gettext.sh can compile .po files into .mo translations.

Replace LC_ALL=C.UTF-8 with LC_NUMERIC=C in the entrypoint script
to preserve the user's language settings while still preventing
decimal-separator parsing issues.
This commit is contained in:
SoftFever
2026-03-12 21:37:18 +08:00
parent 112bec6bd2
commit 0cc4b442e3
2 changed files with 6 additions and 1 deletions

View File

@@ -4,6 +4,8 @@
grep -q org.freedesktop.Platform.GL.nvidia /.flatpak-info && export WEBKIT_DISABLE_DMABUF_RENDERER=1
# Work-around https://github.com/bambulab/BambuStudio/issues/3440
export LC_ALL=C.UTF-8
# Use LC_NUMERIC instead of LC_ALL to prevent decimal separator issues
# while preserving the user's language/locale for translations.
export LC_NUMERIC=C
exec /app/bin/orca-slicer "$@"

View File

@@ -347,6 +347,9 @@ modules:
- type: dir
path: ../../src
dest: src
- type: dir
path: ../../localization
dest: localization
- type: file
path: ../../CMakeLists.txt