-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Translation Guidelines for Developer Docs #1598
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
ffab0d4
Translations.md
oruburos 63c31c5
README.md including translation guideliens
oruburos 1b8bcca
Merge remote-tracking branch 'remotes/upstream/develop' into translat…
oruburos db937dd
README.md including translation guidelines with extra formatting
oruburos db8dcbb
README.md including translation guidelines with extra formatting
oruburos 2ce7b40
Merge branch 'develop' into translation_docs
oruburos bfd4587
Merge branch 'develop' into translation_docs
andrewn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
## Translations Guidelines | ||
|
||
|
||
*How to contribute with Translations for p5 web editor* | ||
|
||
**General rules of thumb for translations** | ||
oruburos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
In order to simplify the translations process the following rules of thumb were used: | ||
|
||
**Technical Part** | ||
oruburos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
* There is only one file to translate all the texts in any specific language, which is located under the directory, in respective locale [subdirectory](https://github.com/processing/p5.js-web-editor/tree/develop/translations/locales) | ||
* The new language code must be added to [i18n.js](https://github.com/processing/p5.js-web-editor/blob/develop/client/i18n.js#L7) | ||
oruburos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
* New languages will need to be selected using a dropdown in Nav component, specifically in function [renderLanguageMenu.](https://github.com/processing/p5.js-web-editor/blob/develop/client/components/Nav.jsx#L550) | ||
|
||
**Translations** | ||
oruburos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
* Every component should introduce its own subset of keys inside a dictionary named after the component. | ||
For instance: If you want to translate AssetList.jsx you need to introduce the following namespace in translations.json : | ||
``` | ||
oruburos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"AssetList": { | ||
"Title": "p5.js Web Editor | My assets", | ||
"ToggleOpenCloseARIA": "Toggle Open/Close Asset Options", | ||
"OpenNewTab": "Open in New Tab", | ||
"HeaderName": "Name", | ||
} | ||
``` | ||
* There are common texts that are present in Common namespace, try to check first if the exact label is already present there. | ||
oruburos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
* Every key follows PascalCase case style. | ||
* Every key that is used in an ARIA text should end with the suffix ‘ARIA’. | ||
* The order of keys inside of appearance should be order of in the order they appear in the source code | ||
|
||
**Language Use** | ||
oruburos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
The Processing Foundation is specifically invested in expanding the communities of technology and the arts to include and support those who have not had equal access because of their race, gender, class, sexuality, and/or disability. We see software as a medium, something that connects two things. We view it as a means for thinking and making. We believe software, and the tools to learn it, should be accessible to everyone | ||
|
||
With those principles in mind, we want to strongly suggest the use of non-gendered terms whenever possible. If it is not possible to avoid, use the most inclusive version. | ||
For instance, in Spanish translation we tackled that problem with a particular rule of thumb: | ||
Avoid male-gendered words, use instead the letter ‘e’ , we used the ‘e’ approach vs other approaches like ‘x’ or ‘@’ because you also need to think about how screen readers would read the text aloud. | ||
|
||
**Discussion** | ||
oruburos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
Did you want to know the context? | ||
* The original idea for Alpha Editor in Spanish was addressed in [this issue](https://github.com/processing/p5.js-web-editor/issues/595) | ||
* The discussion regarding which library to use was addressed in [Library](https://github.com/processing/p5.js-web-editor/issues/1447) | ||
* [UI Design](https://github.com/processing/p5.js-web-editor/issues/1434) | ||
* [Language Use](https://github.com/processing/p5.js-web-editor/issues/1509) | ||
|
||
|
||
|
||
Thanks! | ||
P5.js Web Editor Community | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.