Translation problem
-
Hi,
How would I make this easy to translate?
In english everything can be fixed with adding a ‘s’ when its a plural. But in dutch there are different letters when its a plural.Thanks in advance!
$time = time() – $time; // to get the time since that moment
$tokens = array (
31536000 => ‘year’,
2592000 => ‘month’,
604800 => ‘week’,
86400 => ‘day’,
3600 => ‘hour’,
60 => ‘minute’,
1 => ‘second’
);foreach ($tokens as $unit => $text) {
if ($time < $unit) continue;
$numberOfUnits = floor($time / $unit);
$t = $numberOfUnits.’ ‘.$text.(($numberOfUnits>1)?’s’:”);
return $t. ” ago “;
}https://wordpress.org/plugins/fbf-facebook-page-feed-widget/
The topic ‘Translation problem’ is closed to new replies.