question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Translation Helper bugs

See original GitHub issue

Describe 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:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
vschcommented, May 24, 2019

Missing post:

```java
  System.out.println("Hello world");
```
This is [Sparta](http://sparta.com#anchor)

translatingTexts

```_1_ <== (1)
_2_
```
This is [_3_](_4_#_1_) <== (1)

translatedTexts

```anchor <== (1)
System.out.println("Hello world");
```
This is [Sparta](http://sparta.com#anchor) <== (1)
1reaction
vschcommented, May 22, 2019

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found