Page MenuHomePhabricator

Some date-strings don't show up as translated (notably feed) | in src/view/viewutils.php some calls to pht are missing
Closed, DuplicatePublic

Description

If that is the right way to fix it, feel free to apply:

--- a/src/view/viewutils.php
+++ b/src/view/viewutils.php
@@ -20,14 +20,14 @@ function phabricator_relative_date($epoch, $user, $on = fals
   $date = phabricator_date($epoch, $user);
 
   if ($date === $today) {
-    return 'today';
+    return pht('today');
   }
 
   if ($date === $yesterday) {
-    return 'yesterday';
+    return pht('yesterday');
   }
 
-  return (($on ? 'on ' : '').$date);
+  return ($on ? pht('on %s', $date) : $date);
 }