Comments (5)
Such a well-delivered bug report calls for immediate reaction! 🚀
The problem was that SVG had a bit different text. And there was also a file duplicate.
I fixed it in the repo and submitted the correct images.yml
.
Also, added more troubleshooting hints at https://github.com/javascript-tutorial/server#troubleshooting-images-translation.
from server.
from server.
@iliakan Could you help?
from server.
#87 (comment)
Such a well-delivered bug report calls for immediate reaction! 🚀
The problem was that SVG had a bit different text. And there was also a file duplicate ...
@iliakan 🙇♂️ perfect
Thanks for the quick response and additional troubleshooting guidance on translating images.
I was able to understand better and replicate it in another image that had a translation in progress.
The script to get the strings from a file (SVG) is essential.
If I may make a suggestion?
It would even be nice to add the command to obtain the strings as a mandatory step in the translation process, if we are going to follow the guidance only looking directly at the SVG, it ends up allowing for a margin of error, but with the script, just copy the result and use it as keys in the YML file
Why the suggestion?
It took me a while to get the translation of the file ifelse.svg
for example.
/1-js/02-first-steps/10-ifelse/2-check-standard/ifelse_task2.svg
This is because, at first, (thinking it would be possible to translate the entire text) ... I looked directly at the SVG file and identified, for example, the following text What's the “official” name of Javascript?
as follows:
What's the “official” name of JavaScript?
I realized then that I would need to isolate each text snippet by separating them by the html
elements (which is already provided by the script you guided to use)
Note
There are some relevant remarks, since the characters need to match exactly as the script expects to read, because:
- Some characters appeared in a specific encoding format, which cannot be used in translation
- In the visual format, there is a double quote character
"
, but looking carefully, the character is different“
(I can't tell if it's due to my OS - MAC)
The final result of implementing the translation in the images.yml
file looks like this:
ifelse_task2.svg:
Begin:
text: Início
position: center
What's the:
text: Qual o nome
position: center
“official” name of:
text: nome "oficial" do
position: center
Other:
text: Outro
position: center
You don't know?:
text: Você não conhece?
position: left
Right!:
text: Correto!
position: center
from server.
Thank you for the valuable insights! Could you suggest a PR for the Readme https://github.com/javascript-tutorial/server/blob/master/README.md ?
Sure ... pull request submitted: #88
from server.
Related Issues (20)
- builds static assets and start server error HOT 3
- Cannot find module 'bunyan'
- How can I get the generated html files? HOT 2
- UX problem when clicking topic links in RTL languages
- Instruction regarding Language-Specific-Repo is not right HOT 2
- can't run service
- Error: Already exists an entry with slug:primitive-conversions-questions HOT 1
- Page gets slow and laggy on scrolling to the comments section HOT 1
- Failed to @extend "$font-burger"
- Cannot start the server HOT 7
- BUG - ./edit command fails - throwing error - cannot find module 'stylus'
- BUG - error loading application based on pt.javascript.info repository HOT 2
- [Bug report] local server page next button css styling broken
- Error: callback(): The callback was already called. HOT 9
- If I want to change page elements, where should I go to modify them?
- `edit.cmd fa` fails: node: --openssl-legacy-provider is not allowed in NODE_OPTIONS HOT 3
- Can not run server HOT 1
- TypeError: fs.rmSync is not a function
- Project running error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from server.