-
-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
relative datetime and translation #3355
Comments
@Jimmi08 This should have been made like this.. |
Thanks. I fixed it by using different word. Now it doesn't look stupid, just weird. So it can wait. |
@CaMer0n Why do we need a fallback? Can we not change it like this? define("LANDT_XAGO", "[x] ago");
define("LANDT_INX", "in [x]"); and if($older_date < $newer_date) // past
{
$replace = implode(", ", $ret);
$xago = e107::getParser()->lanVars(LANDT_XAGO, $replace);
return ($mode ? $ret : $xago);
}
else // future
{
$replace = implode(", ", $ret);
$inx = e107::getParser()->lanVars(LANDT_INX, $replace);
return ($mode ? $ret : $inx);
} |
Looks good @Moc ! 👍 |
@KiraTheUltimate This is probably because your language pack has not been updated yet. When you switch to the English language, what do you see? |
It's good, thank you, then I waiting the hungarian language update. |
if you use relative format of date, this is used:
return ($mode ? $outputArray : implode(", ", $outputArray) . " " . LANDT_AGO);
Order in my and Czech language is different
LANDT_AGO + relative date.
Is possible to add this to prefs?
The text was updated successfully, but these errors were encountered: