How to translate the pagination output

anne1979 21 Apr, 2016
Hi.
This might be simple, but ... I am going to use a list display including pagination and want the output "Showing 1 to x of x Entries" to be translated to german... How can I achieve this? Is there a certain place to put an additional language file?

Thank you for your help,
Anne
GreyHead 21 Apr, 2016
Hi Anne,

The text is set in Line 361 of /libraries/cegcore/locales/en_gb/lang.php

I suggest that you copy the folder /libraries/cegcore/locales/en_gb to /libraries/cegcore/locales/de_de then translate the lines that are displayed in the front end.

Bob
anne1979 21 Apr, 2016
Hi GreyHead,
bummer!

All I got is this:

Fatal error: Cannot redeclare class GCore\Locales\EnGb\Lang in .../htdocs/components/com_chronoconnectivity5/chronoconnectivity/locales/en_gb/lang.php on line 12

I changed everything back, but the error remains... :'-(

If I replace the whole folder with deDe settings (foldername, namespace, constant text / value), php is missing that enGB class...

Do I have to start something new?

Anne

P.S. I am from the java world and relatively new to php. Sorry
anne1979 21 Apr, 2016
Hi Bob,

I re-installed the Connectivity Component after doing a backup of my connections. So I can work again😉

Thanks so far,
Anne
GreyHead 21 Apr, 2016
1 Likes
Hi Anne,

Sorry, It looks as though you also have to change the name on Line 9 of the new file
namespace GCore\Locales\EnGb;
I guess that needs to be
namespace GCore\Locales\DeDe;

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