Jump to:

10389 Posts in 2200 Topics by 1712 members

All other Modules

SilverStripe Forums » All other Modules » Image Gallery Extension: Testers Needed

Discuss all other Modules here.

Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w

Go to End
Author Topic: 67090 Views
  • UncleCheese
    Avatar
    4085 Posts
  • banal
    Avatar
    Community Member
    901 Posts

    Re: Image Gallery Extension: Testers Needed Link to this post

    Hi UncleCheese

    Wow. This module is great work really (just checked out and installed, created a gallery)! Took so long for me to actually try it.
    Kudos to you to maintain/update so many different modules at such a pace.

    When I created my gallery, I got some PHP NOTICEs (because array indices where accessed that don't exist). Attached to this post you'll find a patch that fixes this issue.

    I didn't find a de_DE.php lang file in the lang directory. Did Stephan send his file to you? Or did I misunderstood what the problem is?

    Attached Files
  • Stephan
    Avatar
    Community Member
    42 Posts

    Re: Image Gallery Extension: Testers Needed Link to this post

    Hello,
    Uncle Cheese doesn't have my de_DE file.
    But here it is for you for testing.
    The translation is not perfect yet.

    Thank you for taking care of this issue.

    CU Stephan

    Attached Files
  • banal
    Avatar
    Community Member
    901 Posts

    Re: Image Gallery Extension: Testers Needed Link to this post

    Hi Stephan

    I just copied your lang file to my image_gallery/lang directory and it works just fine. I changed line 9 of your file (although it works without that change):

    // from this
    i18n::include_locale_file('cms', 'en_US');
    // to this
    i18n::include_locale_file('image_gallery', 'en_US');

    Seems to work.. see attached screenshot...

    Attached Files
  • Stephan
    Avatar
    Community Member
    42 Posts

    Re: Image Gallery Extension: Testers Needed Link to this post

    Yes it works, this is my text
    But unfortunately still not on my webserver.

    There is still something strange going on.
    I'm running on Windows with IIS6 and everything is going very well.
    But I still have problems from time to time with the language of my backend.

    Although this seemed to be fixed with SS 2.3.1 (since then my backend language is german
    (but not always, sometimes the navigation area is in english while the content area is german)),
    I now have this problem with the ImageGallery backend.
    This is very annoying.
    I have brought up this issue serveral times in the forum but nobody seems to take care of this .

    Everything else is working just fine with IIS6, is fast enough etc.

    I also have mod_rewrite working on IIS6 although this seems not be necessary any more with 2.3.1.

    CU Stephan

  • banal
    Avatar
    Community Member
    901 Posts

    Re: Image Gallery Extension: Testers Needed Link to this post

    Hm. These translations are purely php based. It's hard to imagine that the underlying webserver would actually break some functionality here.
    I'd probably start looking at the IIS caching mechanisms. I don't know IIS at all, so I can't help. To narrow this down I'd try to install another module and check if the same issue occurs there as well.

    Good luck

  • micahsheets
    Avatar
    Community Member
    162 Posts

    Re: Image Gallery Extension: Testers Needed Link to this post

    Just a question about the ImageGalleryPage.php file. What does "$cms" mean when it is put as a parameter to getCMSFields($cms)?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Image Gallery Extension: Testers Needed Link to this post

    Funny.. I was just looking at the code the other day and I saw that, and I was wondering the same thing. I really have no idea. I know the Gallery module used that argument and way back when the ImageGallery was a subclass of Gallery, my getCMSFields() was failing because its parent included the argument and it did not. So who knows. Now that it's free of the Gallery module shackles, it can probably go, I suppose.

    67090 Views
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.