I have an extension that displays the time a shout was posted, for example:
1 day ago
This string is generated in my helper like so:
$num . ' ' . JText::_('SHOUT_TIME') . ' ' . JText::_('SHOUT_AGO')
The language constants are as follows:
Now, in English this is perfectly fine, however in let's say, German,
ago translates into
The result of this would be
1 tag vor, however it should be
vor 1 tag.
Bare in mind that
SHOUT_TIME, could be one of the following:
so this needs to be a separate language string.
So how can I switch the string around to cater for other language without using conditional statements in the helper?