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

How to localize or translate properly #451

Open
kiraware opened this issue Jul 17, 2024 · 5 comments
Open

How to localize or translate properly #451

kiraware opened this issue Jul 17, 2024 · 5 comments

Comments

@kiraware
Copy link

Hello everyone, I want to help the localization of angry ip for Bahasa Indonesia (id). I have read translation guide at https://angryip.org/contribute/. I know I have to translate messages.properties to messages_id.properties. The problem comes when i read that content of the files. There is good text too translate and it's clear how to translate it, but sometimes there is a text that contain the ampersand character (&) in the middle of the text. I don't know what that means.

For example on this line

menu.tools.select.withoutPorts=Without o&pen ports

As you can see, it looks weird, and i have no idea how to translate that text.

Also in these lines

language.system=System default
language.en=English
language.ru=Русский
language.de=Deutsch
language.es=Español
language.fi=Suomi
language.gr=Ελληνικά
language.fr=Français
language.hu=Magyar
language.it=Italiano
language.ku=کوردی
language.lt=Lietuvių
language.tr=Türkçe
language.pt_BR=Português (BR)
language.zh_TW=正體中文
language.zh_CN=简体中文

Am I responsible to add language.id=Bahasa Indonesia? Since there is no Indonesian translation before. I hope someone could give me guide how to translate it properly. Tagging maintainer @angryziber, if someone could point me out, I'll soon add a PR for Bahasa Indonesia. Thank you

@JonnyTech
Copy link

The ampersand symbol in GUI applications is usually indicative that the following character is a keyboard shortcut, therefore from your above example, Without o&pen ports means that the menu item is selected by ALT+P - so look to see how other translators have done it.

@kiraware
Copy link
Author

kiraware commented Jul 17, 2024

The ampersand symbol in GUI applications is usually indicative that the following character is a keyboard shortcut

To make it clear, for example

Without o&pen ports is ALT+P
Without op&en ports is ALT+E
Without ope&n ports is ALT+N

Am I right?

Also how about the new language, should I added language.id=Bahasa Indonesia to messages.properties as I mentioned above?

@JonnyTech
Copy link

For the ampersand query, yes your examples are correct. Look at the other translations to see if they either selected another shortcut or removed it.

For the new language addition, yours is a reasonable assumption, but best wait for @angryziber to confirm.

@kiraware
Copy link
Author

Thank you for your response

@angryziber
Copy link
Collaborator

@kiraware yep, please create messages_id.properties and either submit a Pull Request or attach it here

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

3 participants