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

Providing Primitives French translation, improving translation and html coding... #144

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Jojaba
Copy link

@Jojaba Jojaba commented Nov 5, 2023

Hello,
Really sorry, this is my first Pull request and I figured out my commits are badly done (I should commit one change after another and not this way).
Already sent you an Email about that...
Here the changes made on the several files:

  • index.js : fixed the translated colors not being taken in account.
  • Language.html : fxed missing tags (<html></html>, <head></head>, <body></body>, </dt>, </dd>), Provided more anchors to summary. Externalize CSS (ref.css and ref.min.css) and improving styling (turtle.png, more space between blocks,...)
  • language-fr.html : guide FR translation.
  • l10n/lang-fr.json : Added Primitives translation. added some missing messages translation (there are still string that haven't beeing localized), added all logo colors translation.
  • cm/logo.js : adding french keywords to have CodeMirror syntax highlighting working.
  • turtle.js: filling out the turtle in green... I would suggest to make the turtle smaller...

This translation should be reviewed by french users. I translated arbitrary using this rules:

  • No accentuated words. For example, répète (translation of repeat)becomes repete.
  • Try to have small words (not so easy in french) but also understandible.

Thanks in advance for your patience.
Joël

@inexorabletash
Copy link
Owner

Yeah, I'm going to need you to submit separate PRs for the changes. You do this by having a separate branch for each "topic" or intended change, and submit a PR for each.

High level comments though:

  • Please don't add the "min" files or the workspace files

  • The CodeMirror change should be generalized in some way to not hard-code the terms; it should be reworked to use the localization files.

  • Splitting the CSS out of the language file should be done as a stand-alone change with no additions, so it's easier to understand what the changes are (e.g. adding the background image?)

  • Reformatting the language.html file, e.g. adding additional HTML tags, should be avoided, especially if unrelated to the change. Close tags are not needed for DT and DD, and replacing multiple DTs with BR changes the semantics of the doc.

  • Please don't add comments into the JSON files

  • It's not obvious how language-fr.html file would be used - there's probably a subtle change somewhere I'm not spotting.

  • It looks like the index.js change is a bug fix?

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

Successfully merging this pull request may close these issues.

None yet

2 participants