pontoon
pontoon copied to clipboard
Suggestion in machinery is too different from source string
https://pontoon.mozilla.org/nb-NO/all-projects/all-resources/?search=california&string=302266
Current string
A VPN is a way to hide your IP address. <a href="{ $vpn }">When you use a VPN</a>, your external IP address will be coming from the VPN server’s external IP, rather than your location’s external IP address. So if your connecting VPN server is located in California, your external IP will look like it’s connected from California, no matter where you actually are. Plus, your online activity is sent over an encrypted, secure connection to your VPN server, giving you additional security and privacy. <a href="{ $mozvpn }">{ -brand-name-mozilla-vpn }</a> is one way to hide your IP address. We don’t keep your network activity logs, and we don’t partner with third parties who build profiles of what you do online. We offer full-device protection for up to five devices with servers in { $countries }+ countries, you can connect to anywhere, from anywhere.
Machinery suggested string
<h1>We're sorry, but we can't find what you're looking for.</h1> <p> The page or file you requested wasn't found on our site. It's possible that you clicked a link that's out of date, or typed in the address incorrectly. </p> <ul> <li>If you typed in the address, please double check the spelling.</li> <li> If you followed a link from somewhere, please let us know at <a href="mailto:[email protected]">[email protected]</a>. Tell us where you came from and what you were looking for, and we'll do our best to fix it. </li> </ul> <p>Or you can just jump over to some of the popular pages on our website.</p> <ul> <li>Are you interested in a <a href="%(rec)s">list of featured add-ons</a>?</li> <li> Do you want to <a href="%(search)s">search for add-ons</a>? You may go to the <a href="%(search)s">search page</a> or just use the search field above. </li> <li> If you prefer to start over, just go to the <a href="%(home)s">add-ons front page</a>. </li> </ul>
With online calculators I get a match of 23%, while Pontoon reports 39%. I'm lost in the code, but we seem to be truncating the text for matches in the TM.
Do we need a higher lower floor to show a match? https://github.com/mozilla/pontoon/blob/4edad456ca69549d964c448d301c685bbf0e735b/pontoon/base/models/translation_memory.py#L132-L133
Yeah, that's a bug. We should not show any matches below 70% match: https://github.com/mozilla/pontoon/blob/4edad456ca69549d964c448d301c685bbf0e735b/pontoon/base/models/translation_memory.py#L126