Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lang / Locale config #17

Open
gedw99 opened this issue Jan 17, 2025 · 4 comments
Open

Lang / Locale config #17

gedw99 opened this issue Jan 17, 2025 · 4 comments

Comments

@gedw99
Copy link

gedw99 commented Jan 17, 2025

Hey @Tom5521

I am back working on fsize, and testing it across different OS / ARCH....

I noticed you made this also have locale checking and po files. This is really nice.

Can we add a flag to the CLI so a specific locale can be chosen ?

fsize  --locale en .

I know it normally auto detects the locale, but I gotta cross test and having a config for that would make testing much easier.

@gedw99
Copy link
Author

gedw99 commented Jan 18, 2025

I am using you fork of gettexte and also building a gui

@Tom5521
Copy link
Owner

Tom5521 commented Jan 18, 2025

Can we add a flag to the CLI so a specific locale can be chosen ?

Sure, but for now you can specify the language of the translations through the LANG environment variable, on unix systems, if you really need it right now.

@gedw99
Copy link
Author

gedw99 commented Jan 18, 2025

Ah that’s a good point .

What’s the bash look like ?

Just to get going

@Tom5521
Copy link
Owner

Tom5521 commented Jan 18, 2025

What’s the bash look like ?

Something like this

$ LANG=my-language fsize

Or you can export the environment value

export LANG=my-language
fsize

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

No branches or pull requests

2 participants