Forums

Translation problem with pagination?

peter49 25 Apr, 2009
Hello everybody,

currently I am developing (being a php/Joomla/CF/CC newbie, but otherwise an experienced programmer) a website in Dutch, using a Dutch version of Joomla! (http://www.dutchjoomla.nl) and CC 1.2.
When using {pagination} in a rather long CC list there seems to be a problem with choosing the correct language, as the text displayed immediately before the dropdown remains in English ("Display num"). Elsewhere on this forum (http://www.chronoengine.com/forums.html?cont=posts&f=12&t=12111&p=28041#p20561) reference is made to "libraries/joomla/html/pagination.php" as the source of the relevant code. In my version of that file the relevant code reads:
$html .= "\n<div class=\"limit\">".JText::_('Display Num').$list['limitfield']."</div>";

and in several separate language files 'Display Num' is nicely translated. Note that the "English translation" of "Display Num" reads as "Display #". The standard language is set to Dutch in the Joomla back-end.
Nevertheless, "Dispay Num" remains visible in the pagination footer, suggesting there is no translation at all.
Did someone forget to import the correct translation file of did I miss something?

Regards,
Peter
peter49 23 May, 2009
Hi,

a solution was found by myself.
In the Joomla language file /language/nl-NL/nl-NL.ini the string "Display Num" does not occur. Neither it does in /language/en-GB/en-GB.ini . Simply adding it, together with its translation, solves my problem.
The string does however occur in several other language ini files (even in /administrator/language/nl-NL/nl-NL.ini), but apparently none of these is loaded at the moment it is needed by CC.

Don't know whether this is a Joomla bug or not. There might not be a requirement for this string at that place in Joomla. There is however a requirement after CC has been installed. So maybe ChronoEngine should define and load its own com_chronoconnectivity.ini and com_chronoforms.ini files.
GreyHead 23 May, 2009
Hi Peter,

I think that it's a half-Joomla bug. The pagination code is built for use in the back-end on the Admin list pages (see the nice formatting in the khepri template). ChronoForms is sensibly re-using the code in the front-end but the Joomla support isn't all available there.

Bob
Tobiasgar 24 Oct, 2011
Hello,
in my Forum Module I’m using the default pagination implementation:
<td><div class="paginateStat">{current_page} {lang:of} {total_pages}</div></td>
    {pagination_links}
    </tr> 


My Problem is, that not all strings are translated (to german):
It displays
< First | Zurück ...... Weiter | Last >

So the “First” and “Last” are not translated. I checked the language Files and I can see that the strings are translated in there. So what Strings (keys) are used to display this text, or how can I modify the output used here ?

Regards
This topic is locked and no more replies can be posted.