mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-04-06 00:32:05 +02: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
|
||||
|
||||
# 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 "$@"
|
||||
|
||||
@@ -347,6 +347,9 @@ modules:
|
||||
- type: dir
|
||||
path: ../../src
|
||||
dest: src
|
||||
- type: dir
|
||||
path: ../../localization
|
||||
dest: localization
|
||||
|
||||
- type: file
|
||||
path: ../../CMakeLists.txt
|
||||
|
||||
Reference in New Issue
Block a user