-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Internationalization (i18n) #2084
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
Conversation
Perhaps you could add an option to change the language independent from the system settings? |
I like it. I hope your pull request is accepted. |
Hmm, I keep that extension in mind, but I don't know how to handle the next steps. I think, that it's very useful. @REAS What do you think about that extension? |
Darius, this is for @benfry to evaluate. Best, Casey |
Thanks for this! Would you be interested in updating it for the current source? |
Currently I'm low on time, but yes, I'm going to extend it next week (2014/June/03). |
Thanks! |
Thank you! We're about to switch over to 3.x development, and I'll merge this in when we kick off that process. |
Okay, great! |
Hi @benfry , I think it is needed to add a rule to convert .properties files to include them into pde.jar: I have tried this pull request merged into the currentHEAD, |
Thanks again for this, I'd like to merge it into the repo. A couple small things that need to be fixed first:
Please take a shot at fixing these up and re-submitting when you can. I'd love to get this integrated soon. Thanks again for your help! |
Hi Ben, thanks for the hints, I'm going to consecutively fix these. |
Okay, I hope, that I didn't forget something ... please check out the i18n branch, build and test it too. Happy coding, |
Now merged; here goes! I'm super excited about this. |
Entirely awesome. How do people add other languages? @voidplus could you write a Wiki page about that? http://wiki.processing.org Or, am I missing something? |
I'm glad too. 👍 Yes, I'm going to write a short howto page this week. In addition I want to create a small interactive website, where people can fill out "pde-forms". I think, that's the easiest way, how contributors can help. |
has anyone considered translating processing/java syntax in addition to the file menu? e.g. "void", "setup", "draw", "return", "vertex", etc. since the IDE already has a parser built on top of it to convert to java, setting it up to parse different languages should be straightforward, and i think speakers of other languages may find it welcoming and more accessible than english-only. also, i think i should be able to contribute a russian version. |
Short answer is that we've done that in the past (http://dbn.media.mit.edu/) and it wasn't as useful as we'd hoped. Longer answer is that it's probably something better discussed as a suggestion on the forum. Would love to add a Russian translation, thanks! |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hello, Hallo, Salut, Cześć.
How to change the language?
Change the language in the preferences
CMD + ,
of Processing.How to use a translation?
Just type
Language.text("object.name");
, anytime, anywhere. (It uses the singleton pattern and it's independent (It uses a separate file/lib/language.txt
to store the favorite language).) You find theobject.name
in the packageprocessing.app.languages
, where every language is located as aproperties
file. If the specific language doens't have the translation (i.e.menu.file
inPDE_fr.properties
), the system will extend the default translation ofPDE.properties
. The default language isEnglish
.How to add a new language?
1: Add the language ISO 639-1 code (list of codes) and name in
processing.app.Language
, i.e.:2: Add the file
PDE_de.properties
with translations inprocessing.app.languages
.Note
It's a initial version of that extension. I hope, that you like it.
Happy coding,
Darius