mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 00:52:04 +00:00
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:
@@ -4,6 +4,8 @@
|
|||||||
grep -q org.freedesktop.Platform.GL.nvidia /.flatpak-info && export WEBKIT_DISABLE_DMABUF_RENDERER=1
|
grep -q org.freedesktop.Platform.GL.nvidia /.flatpak-info && export WEBKIT_DISABLE_DMABUF_RENDERER=1
|
||||||
|
|
||||||
# Work-around https://github.com/bambulab/BambuStudio/issues/3440
|
# 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 "$@"
|
exec /app/bin/orca-slicer "$@"
|
||||||
|
|||||||
@@ -347,6 +347,9 @@ modules:
|
|||||||
- type: dir
|
- type: dir
|
||||||
path: ../../src
|
path: ../../src
|
||||||
dest: src
|
dest: src
|
||||||
|
- type: dir
|
||||||
|
path: ../../localization
|
||||||
|
dest: localization
|
||||||
|
|
||||||
- type: file
|
- type: file
|
||||||
path: ../../CMakeLists.txt
|
path: ../../CMakeLists.txt
|
||||||
|
|||||||
Reference in New Issue
Block a user