I18n problem in functions.bb-core.php
-
Hi,
I started investigating possibilities of translation bbPress to Polish. This language along with quite a few non-germanic languages has quite complex plural forms (3 forms instead of just 2). Not getting into much detail, because of the way functions.bb-core.php hardcodes seconds, hours, days… names it’s hard to do a proper translation.
To do it right I’d need a function that uses “%d month” and not just “month” or “months” as defined here:
// array of time period chunks
$chunks = array(
array(60 * 60 * 24 * 365 , __(‘year’) , __(‘years’)),
array(60 * 60 * 24 * 30 , __(‘month’) , __(‘months’)),
array(60 * 60 * 24 * 7, __(‘week’) , __(‘weeks’)),
array(60 * 60 * 24 , __(‘day’) , __(‘days’)),
array(60 * 60 , __(‘hour’) , __(‘hours’)),
array(60 , __(‘minute’) , __(‘minutes’)),
array(1 , __(‘second’) , __(‘seconds’)),
);
Any help would be very much appreciated.
- You must be logged in to reply to this topic.