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.

crowdin segmentation issue

See original GitHub issue

The sentence

Your p element’s text should be Click here to view more cat photos. You have either omitted the text or have a typo.

is not separated in two sentences in Crowdin, as the dot is inside the backticks. I know the dot inside quotes is best practice in American English, but in this case the quotes are not visible, and just for formatting. Plus the test

assert(extraSpacesRemoved.match(/click here to view more cat photos\.?$/i));

marks the period as optional. Maybe the period can be put outside the quotes so that it can be segmented correctly on crowdin?

Other cases:

sentence:

The text of the p element should be Click here to view more cat photos. Do not change the text, spacing, or punctuation of the p element.

sentence:

After nesting the anchor (a) element, the only p element content visible in the browser should be Click here to view more cat photos. Double check the text, spacing, or punctuation of both the p and nested anchor element.

sentence:

The new image should have an alt value of A slice of lasagna on a plate. Make sure the alt attribute’s value is surrounded with quotation marks.

sentence:

The figcaption element should have the text Cats hate other cats. You have omitted a word or have a typo.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
moT01commented, May 10, 2022

That’s not bad. It may look a little goofy:

Your p element’s text should be Click here to view more cat photos.. You have either omitted the text or have a typo.

It looks good enough I guess. An alternative could be to restructure the sentence so that text is in the middle. Maybe something like this:

Click here to view more cat photos. should be the text of your p element. You have either omitted the text or have a typo.

I’m fine with either of those approaches.

0reactions
ieahleencommented, Jun 18, 2022

Other possibility altogether, I find a regex that makes the correct segnmentation on these directly from crowdin

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom Segmentation | Crowdin Documentation
Open the project where you'd like to adjust the segmentation rules and go to Content > Files. · Click (or right-click) on the...
Read more >
Crowdin Integration | SaaSquatch Documentation
SaaSquatch internationalization integrates easily with Crowdin to automatically manage your translations. This article describes how to use the Crowdin CLI ...
Read more >
Translation memory fails to match even though text is unchanged ...
NOTE: This was originally entered as https://wpml.org/forums/topic/change-from ... the Translations page) sends different segmentation/HTML than the CrowdIn ...
Read more >
Release Notes - Knowledge Base - Lilt
The Lilt + Crowdin connector enables companies to automatically push and pull web content between ... Resolved issues with confirming/accepting segments.
Read more >
New App: Issue Notification Manager - Submit feature requests ...
Forward issues created in the Editor by translators to the right person in your team. ... Read more about custom segmentation in Crowdin....
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