ISSUE SUMMARY:
Hello guys! In Croatian language word ago comes before date.
Example:
American: 5 days ago
Croatian: it should be, ago 5 days.
How to do that? How to move word ago before date (or time)?
Thx in advance,
Marijo
Hi,
basically you must create the language overrides from joomla language manager:
856: COM_COMMUNITY_ACTIVITIES_DAYS_AGO="%1$s Days Ago"
857: COM_COMMUNITY_ACTIVITIES_WEEK_AGO="1 Week Ago"
858: COM_COMMUNITY_ACTIVITIES_WEEK_AGO_MANY="%1$s Weeks Ago"
859: COM_COMMUNITY_ACTIVITIES_MONTH_AGO="1 Month Ago"
860: COM_COMMUNITY_ACTIVITIES_MONTH_AGO_MANY="%1$s Months Ago"
861: COM_COMMUNITY_ACTIVITIES_MOMENT_AGO="A Moment Ago"
865: COM_COMMUNITY_LAPSED_DAYS="%1$s days ago"
866: COM_COMMUNITY_LAPSED_HOURS="%1$s hours ago"
867: COM_COMMUNITY_LAPSED_HOURS_AGO="%1$s hours ago"
868: COM_COMMUNITY_LAPSED_MINUTES="%1$s minutes ago"
869: COM_COMMUNITY_LAPSED_LESS_THAN_A_MINUTE="less than a minute ago"
870: COM_COMMUNITY_LAPSED_AGO="ago"
1827: COM_COMMUNITY_LAPSED_YEAR="%1$s year ago"
1828: COM_COMMUNITY_LAPSED_YEAR_MANY="%1$s years ago"
1829: COM_COMMUNITY_LAPSED_WEEK="%1$s week ago"
1830: COM_COMMUNITY_LAPSED_WEEK_MANY="%1$s weeks ago"
1831: COM_COMMUNITY_LAPSED_MONTH="%1$s month ago"
1832: COM_COMMUNITY_LAPSED_MONTH_MANY="%1$s months ago"
1833: COM_COMMUNITY_LAPSED_DAY="%1$s day ago"
1834: COM_COMMUNITY_LAPSED_DAY_MANY="%1$s days ago"
1836: COM_COMMUNITY_LAPSED_HOUR_MANY="%1$s hours ago"
1837: COM_COMMUNITY_LAPSED_MINUTE="%1$s minute ago"
1838: COM_COMMUNITY_LAPSED_MINUTE_MANY="%1$s minutes ago"
1839: COM_COMMUNITY_LAPSED_SECOND="%1$s second ago"
1840: COM_COMMUNITY_LAPSED_SECOND_MANY="%1$s seconds ago"COM_COMMUNITY_ACTIVITIES_DAYS_AGO="%1$s Days Ago"COM_COMMUNITY_ACTIVITIES_DAYS_AGO="Ago %1$s Days"
I have translated that language strings to my default language. In Croatian language (hr-HR) "ago" = "prije"
URL =
kpc-zagreb.hr/index.php/hr/zajednica
but you have to login...
There is no problem with that words... there is no problem when activity is older than a day...
The problem is time format when it shows hours and minutes (less than a day)...
It shoud be, e.g.
prije 5 sati 10 minuta = 5 hours 15 minutes ago
At this moment is, e.g.
prije 5 sati prije 10 minuta = 5 hours ago 15 minutes ago...
how to rid of the second word ago (or in Croatian, word prije?)
Regards,
Hi Marijo,
ok. the issue is clear now. please provide make override for this language string:
COM_COMMUNITY_LAPSED_MINUTES="%1$s minutes"
COM_COMMUNITY_LAPSED_MINUTES_AGO="%1$s minutes ago"if (($showFull && !empty($diff['hours'])) || (empty($diff['hours']))) {
if (!empty($diff['minutes'])) {
if ( $diff['minutes'] == 1 ) {
$html .= JText::sprintf('COM_COMMUNITY_LAPSED_MINUTE', $diff['minutes']) . ' ';
}else {
$html .= JText::sprintf('COM_COMMUNITY_LAPSED_MINUTES', $diff['minutes']) . ' ';
}
}
}if (($showFull && !empty($diff['hours'])) || (empty($diff['hours']))) {
if (empty($diff['hours']) && !empty($diff['minutes'])) {
if ( $diff['minutes'] == 1 ) {
$html .= JText::sprintf('COM_COMMUNITY_LAPSED_MINUTE', $diff['minutes']) . ' ';
}else {
$html .= JText::sprintf('COM_COMMUNITY_LAPSED_MINUTES_AGO', $diff['minutes']) . ' ';
}
} elseif (!empty($diff['minutes'])) {
$html .= JText::sprintf('COM_COMMUNITY_LAPSED_MINUTES', $diff['minutes']) . ' ';
}
}