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

[Question] Is it safe to translate these values into several translate in the powermenu file? #176

Open
gusbemacbe opened this issue Oct 17, 2022 · 0 comments

Comments

@gusbemacbe
Copy link

Hello!

Observe these highlighted lines:

shutdown=" Shutdown"
reboot=" Restart"
lock=" Lock"
suspend=" Sleep"
logout=" Logout"
.

I would replace with:

# 🇬🇧 Translations
# 🇵🇹 Traduções
# 🇪🇸 Traducciones
curlang="${LANG:0:2}"

case "$curlang" in
es) # 🇪🇸 Spanish
    lock="Bloquear la pantalla"
    logout="Cerrar la sesión"
    reboot="Reiniciar"
    shutdown="Cerrar"
    suspend="Dormir"
    ;;
pt) # 🇵🇹 Portuguese
    lock="Bloquear o ecrã"
    logout="Encerrar a sessão"
    reboot="Reinicializar"
    shutdown="Encerrar"
    suspend="Dormir"
    ;;
pt_BR) # 🇧🇷 Brazilian Portuguese
    lock="Bloquear a tela"
    logout="Sair da sessão"
    reboot="Reiniciar"
    shutdown="Desligar"
    suspend="Dormir"
    ;;
*)  # 🇬🇧 Assuming default English
    # 🇵🇹 Supondo o inglês como padrão
    # 🇪🇸 Suponiendo el inglés como predeterminado
    lock="Lock the screen"
    logout="Log out"
    reboot="Reboot"
    shutdown="Shut down"
    suspend="Sleep"
    ;;
esac

shutdown="${shutdown}" 
reboot="${reboot}" 
lock="${lock}" 
suspend="${suspend}" 
logout="${logout}" 

Is it safe?

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

1 participant