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

Translations for gcalcli? 🌐 #765

Open
dbarnett opened this issue Sep 17, 2024 · 1 comment
Open

Translations for gcalcli? 🌐 #765

dbarnett opened this issue Sep 17, 2024 · 1 comment
Labels
display Issues related to output formatting/color/etc

Comments

@dbarnett
Copy link
Collaborator

Any interest in setting up translations support for gcalcli so it would be possible for users to submit translations to show some of the strings in the app translated into their favorite languages?

For example, I might prefer to see everything in Spanish, something like:

$ LANG=es_MX.utf8 gcalcli --help
Modo de empleo: gcalcli [-h] [--version] [--client-id ID_CLIENTE]
               ...

Interfaz de línea de comandos para Google Calendar

configuración:
  gcalcli supports a few other configuration mechanisms in addition to
  the command-line arguments listed below.

  …

opciones:
  -h, --help            muestra este texto de ayuda y finaliza la aplicación
  …
@dbarnett dbarnett modified the milestone: 4.5 Sep 17, 2024
@dbarnett
Copy link
Collaborator Author

Seems like gettext is the right tool for the job here. I haven't used it before in python, but I did find a guide on basic usage at https://lokalise.com/blog/beginners-guide-to-python-i18n/.

@dbarnett dbarnett added the display Issues related to output formatting/color/etc label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
display Issues related to output formatting/color/etc
Projects
None yet
Development

No branches or pull requests

1 participant