Ebrahim has uploaded a new change for review.
https://gerrit.wikimedia.org/r/88136
Change subject: Native digits on 'onGetHumanTimestamp'
......................................................................
Native digits on 'onGetHumanTimestamp'
Bug: 54581
Change-Id: I4b91d998ee92b77d1414912184267db621929fbc
---
M TimeUnits.body.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/cldr
refs/changes/36/88136/1
diff --git a/TimeUnits.body.php b/TimeUnits.body.php
index a9bf201..1a5526b 100644
--- a/TimeUnits.body.php
+++ b/TimeUnits.body.php
@@ -162,7 +162,7 @@
// Select the appropriate template for the timestamp.
$timeUnit = $timeUnits[$timeUnitKey];
// Replace the placeholder with the number.
- $output = str_replace( '{0}', $number, $timeUnit );
+ $output = str_replace( '{0}', $lang->formatNum( $number ),
$timeUnit );
return false;
}
--
To view, visit https://gerrit.wikimedia.org/r/88136
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4b91d998ee92b77d1414912184267db621929fbc
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/cldr
Gerrit-Branch: master
Gerrit-Owner: Ebrahim <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits