Skip to content

Add LANG env variable support on macOS#5

Closed
eduardomozart wants to merge 0 commit intoKangLin:masterfrom
eduardomozart:LANG-macOS
Closed

Add LANG env variable support on macOS#5
eduardomozart wants to merge 0 commit intoKangLin:masterfrom
eduardomozart:LANG-macOS

Conversation

@eduardomozart
Copy link
Copy Markdown
Contributor

On macOS, Qt ignores LANG environment variable and uses only system settings to determine the current UI language. On other systems, we can override Qt Language using LANG environment variable.
With this PR, if LANG environment variable is available, it overrides the Qt Language detection logic, e.g.:

LANG=pt_BR.UTF-8 ./RabbitRemoteControlApp

Opens the Rabbit Remote Control on Portuguese (Brazil) even on systems with other locales.

I changed my macOS language to EN-US so you can use it without hassle during remote connections, but I was unable to test the translation of Rabbit Remote Control on macOS for my main language, so this PR allows me to do that.

@eduardomozart eduardomozart changed the title Add LANG support on macOS Add LANG env variable support on macOS Aug 31, 2025
@KangLin KangLin force-pushed the LANG-macOS branch 3 times, most recently from f12d2fe to e830236 Compare August 31, 2025 09:58
@KangLin KangLin closed this Aug 31, 2025
@KangLin
Copy link
Copy Markdown
Owner

KangLin commented Aug 31, 2025

Thanks! Merge to master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants