Glaisher has uploaded a new change for review.
https://gerrit.wikimedia.org/r/300836
Change subject: PageTranslation: Do renders for manually fuzzied units as well
......................................................................
PageTranslation: Do renders for manually fuzzied units as well
In page translation, if a unit gets fuzzied automatically, the normal
behavior is to update the translation unit with the text from the source
unit. So for consistency, even if a unit is marked with !!FUZZY!! manually,
render the translation with the source unit's text instead of not doing an
update at all.
Bug: T137715
Change-Id: I69203dc33ec2eed88f9320e421c4e59affa713c3
---
M tag/PageTranslationHooks.php
1 file changed, 0 insertions(+), 6 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Translate
refs/changes/36/300836/1
diff --git a/tag/PageTranslationHooks.php b/tag/PageTranslationHooks.php
index 508343f..1809e1f 100644
--- a/tag/PageTranslationHooks.php
+++ b/tag/PageTranslationHooks.php
@@ -112,12 +112,6 @@
return true;
}
- // Do not trigger renders for fuzzy
- $text = $content->getNativeData();
- if ( strpos( $text, TRANSLATE_FUZZY ) !== false ) {
- return true;
- }
-
$group = $handle->getGroup();
if ( !$group instanceof WikiPageMessageGroup ) {
return true;
--
To view, visit https://gerrit.wikimedia.org/r/300836
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I69203dc33ec2eed88f9320e421c4e59affa713c3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Glaisher <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits