-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Empty English strings localized into "<!-- -->" in French #5399
Comments
Excellent bug report! Looks like a one-off issue with whomever was doing French translations six months ago. I've removed those translations from the translatewiki branch, and they should disappear from Blockly in the next release. It's possible that translatewiki's next push reverts the deletion by restoring these translations. If this happens, then we need to delete them again, and notify them to explicitly pull. |
Thanks for the compliment! I did my best, but couldn't find the strings like Could I be notified when the fixes are actually included in a release, so we could bump our requirements in the downstream project with that version? |
New releases are announced here: https://groups.google.com/g/blockly-announce Although, it looks like we forgot to announce the July 2021 release on that newsgroup. Will bring this up with the team on Monday. In the mean time, you can hack your local copy by just editing msg/js/fr.js and setting the seven offending messages to "". You can ignore the JSON files, they are part of the upstream build process. |
I don't think hacking a local copy is possible, because blocky is a dependency included in our package.json resolved by npm for the users installing our node package, so it can't work that way, unless it's possible to overwrite these strings, but I'm not sure its worth that maintenance. |
Yup, they are globals. So you should be able to just add this to your project somewhere:
|
But make sure that you only do the above when your application is in French! |
Since the project didn't use the |
That's my bad. I missed that the internal release docs say we're supposed to bcc the announce group :/ |
Describe the bug
Some blocks, like the function block with or without outputs, are displayed differently in English and in French.
In French, there is an extra
<!-- -->
on the left of the block.To Reproduce
Steps to reproduce the behavior:
<!-- -->
You can also use the two following links to open the shared demo illustrating the problem:
https://blockly-demo.appspot.com/static/demos/code/index.html?lang=fr#czndiz
https://blockly-demo.appspot.com/static/demos/code/index.html?lang=en#czndiz
Expected behavior
There is no
<!-- -->
text displayed when not neededScreenshots
Desktop (please complete the following information):
Stack Traces
No error in stack trace if I looked at the good place.
Additional context
I did a little bit of investigation since I observed the problem when localizing a downstream project that we are about to release our version 2, that is using Blockly version 6.20210701.0.
In French, there was an extra
<!-- -->
that weren't in my translated strings.The original problematic French string was
Blockly.Msg["PROCEDURES_DEFNORETURN_DO"] = "<!-- -->";
When searching in this repository's msg folder for
<!-- -->
, I didn't find any other language that was affected except French, where the following 7 strings have this value:Blockly.Msg["LISTS_GET_INDEX_TAIL"]
Blockly.Msg["LISTS_GET_SUBLIST_TAIL"]
Blockly.Msg["MATH_ONLIST_HELPURL"]
Blockly.Msg["ORDINAL_NUMBER_SUFFIX"]
Blockly.Msg["PROCEDURES_DEFNORETURN_DO"]
Blockly.Msg["TEXT_CHARAT_TAIL"]
Blockly.Msg["TEXT_GET_SUBSTRING_TAIL"]
Other languages have some text in some of these 7 strings, and others leave it blank and have a comment saying it's untranslated (
Blockly.Msg["TEXT_GET_SUBSTRING_TAIL"] = ""; // untranslated
).Looking at the git history, the
<!-- -->
were introduced in commit aed9ba1 (Rebuild (#4733)) on 2021-03-25 at 12:37 for themsg/js/fr.js
file. For themsg/json/fr.json
file, the commit introducing the changes was 21fd86a on 2021-02-15 at 08:40 (a translatewiki update).Before the introduction of changes, there was either nothing, an empty string with the untranslated comment, or at one point
"ORDINAL_NUMBER_SUFFIX": "<!-- ---->"
.In the issues I looked for, I couldn't see anything related except the discussion about the ordinal number suffix.
The text was updated successfully, but these errors were encountered: