Translation Helper bugs
See original GitHub issueDescribe the bug When the URL contains an anchor, the Translation Helper API does not render the URL properly.
-
Parser
-
HtmlRenderer
-
Formatter
-
FlexmarkHtmlParser
-
DocxRenderer
-
PdfConverterExtension
- extension(s)
To Reproduce
Test Code:
Just add an anchor to the URL:
final String markdown = "This is [*Sparta*](http://sparta.com)";
=>
final String markdown = "This is [*Sparta*](http://sparta.com#anchor)";
Resulting Output
This is [*Sparta*](http://sparta.com#anchor)
--------------------------
<<<*Sparta*
>>>*sPaARTaA*
<<<This is [_1_](_2_#_1_)
>>>thiIS iIS [_1_](_2_#_1_)
--------------------------
thiIS iIS [*sPaARTaA*](http://sparta.com#_1_)
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Handling translation bugs — I18n Contributor Guide ...
Bugs to report English strings are hard to translate in your language. For example, translators cannot control the order of words, or a...
Read more >Report bugs in translations here - Discuss Scratch
Please report problems with translations here. Note, Scratch is translated by volunteers, so not everything is translated.
Read more >The main types of localization bugs - Allcorrect Games
Above, we've listed the bugs that are most commonly encountered in localization. This is by no means an exhaustive list, but even by...
Read more >Reporting Bugs — Translate Toolkit 3.7.4 documentation
Check the documentation of the tool to see if the examples or other guidelines can help. If you are lucky, your problem is...
Read more >[Resolved] translation bugs - WPML
[Resolved] translation bugs ; Yvette. Supporter. Languages: English (English ) Spanish (Español ). Timezone: Europe/Paris (GMT+01:00). Hello. 1.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Missing post:
translatingTexts
translatedTexts
@heyuxian, thank you for catching this. It is an omission in handling anchors for links which are not self-references to headings in the document. If the link has a page ref and an anchor then the anchor is left as the translation reference instead of being restored to original text.
I updated the code in the master branch and releasing a new version.
Fix for this is available. Repo updated, maven updated but may take a while to show up in maven central.