Pmlineditor has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/195224

Change subject: Round down message match percentage in Special:Translate
......................................................................

Round down message match percentage in Special:Translate

The match percentage of suggested messages in Special:Translate
is currently rounded by Math.round() which rounds 99.5+ to 100%,
which was replaced by Math.floor() to allow rounding down.

Bug: T69671
Change-Id: Icd6448d2598bec33151de25c9f8230dd94fcceed
---
M resources/js/ext.translate.editor.helpers.js
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Translate 
refs/changes/24/195224/1

diff --git a/resources/js/ext.translate.editor.helpers.js 
b/resources/js/ext.translate.editor.helpers.js
index 6a0587d..f3184de 100644
--- a/resources/js/ext.translate.editor.helpers.js
+++ b/resources/js/ext.translate.editor.helpers.js
@@ -304,7 +304,7 @@
                                                $( '<div>' )
                                                        .addClass( 'three 
columns quality text-right' )
                                                        .text( mw.msg( 
'tux-editor-tm-match',
-                                                               Math.round( 
translation.quality * 100 ) ) ),
+                                                               Math.floor( 
translation.quality * 100 ) ) ),
                                                $( '<div>' )
                                                        .addClass( 'row 
text-right' )
                                                        .append(

-- 
To view, visit https://gerrit.wikimedia.org/r/195224
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icd6448d2598bec33151de25c9f8230dd94fcceed
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Pmlineditor <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to