Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

gallery module translation


Go to End


1666 Views

Avatar
janulka

Community Member, 80 Posts

7 December 2008 at 12:57am

Edited: 07/12/2008 1:01am

Hello,
I downloaded some translation packs from http://translate.silverstripe.com, everything fine apart from gallery module translation..

then i uploaded php file to galley/lang/nb_NO.php, but nothing changed

Fields in GalleryPage are defined following:

new NumericField( 'MediaPerLine', 'Media Files Per Line' ),

Then when I change the field to:..

new NumericField ( "MediaPerPage", _t( 'GalleryPage.MEDIAPERPAGE', 'Media Files Per Page' )),

.. the translation shows ok.

Is there a "translations-ready" GalleryPage.php I can download from somewhere? Or do I have to manually change all fields in GalleryPage.php?

Or is there an easier way how to add translation to gallery module?

thanks