Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • otb otb
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 184
    • Issues 184
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Main Repositories
  • otbotb
  • Issues
  • #1269

Closed
Open
Created Aug 29, 2016 by Sébastien Dinot@sdinotOwner

No translation when loading Monteverdi.app in MacOSX binary packages

Mantis Issue 1269, reported by gpasero, assigned to rkanavath, created: 2016-08-29

When I open Monteverdi using the "Monteverdi.app" launcher, the translation is not loaded (french platform). Howeverdi, when loading Monteverdi from a terminal (./bin/monteverdi), the translation is correctly loaded.

2016-09-02 10:26 - rashadkm: can you look at env on terminal? for me, i have

... LANG=en_US.UTF-8 ...

2016-09-02 10:53 - rashadkm: the issue comes from export LC_NUMERIC=C

monteverdi.app is simple a wrapper for running ./bin/monteverdi with some environment variables set here is the contents of script in Monteverdi.app which is written when running .run file.

#!/usr/bin/env bash
export LC_NUMERIC=C
export OTB_APPLICATION_PATH=/Users/otbval/OTB-5.6.1-Darwin64/lib/otb/applications
export GDAL_DATA=/Users/otbval/OTB-5.6.1-Darwin64/share/gdal
export GEOTIFF_CSV=/Users/otbval/OTB-5.6.1-Darwin64/share/epsg_csv
/Users/otbval/OTB-5.6.1-Darwin64/bin/monteverdi "$@"

If you simply copy-paste this to terminal. the language is english on a french system.

if you didn't set export LC_NUMERIC=C then you get a french locale depending on the system locale.

Wondering why LC_NUMERIC is affecting the whole language in Mac OSX.

Did they really changed it?

2016-09-07 16:59 - salbert: I added a small patch (507cee3c) which traces the QLocale::system().language() and .country() strings detected by Qt.

2016-10-25 14:36 - rashadkm: the issue is from mac osx taking LC_NUMERIC and setting that as language which is incorrect. could we force LC_NUMERIC=C only when reading/writing data?

Edited Jan 06, 2022 by Julien Osman
Assignee
Assign to
Time tracking