Jump to content


Photo

Slow without memcache - Language Package

language german slow memcache

  • Please log in to reply
6 replies to this topic

#1 tfromm

tfromm

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 30 June 2014 - 11:08 AM

Hello,

 

Zurmo is very slow with the German language package and without memcache (is not supported by hosting provider). This is caused by additonal queries. So it is almost impossible to work with Zurmo.

 

Is there an option to load the language files in a different way? Po-Files? Or is it possible to change the data in messagesource?

 

Thank you in advance!

 

Thomas



#2 speixoto

speixoto

    Advanced Member

  • Members
  • PipPipPip
  • 386 posts

Posted 30 June 2014 - 12:00 PM

Hi,

The messagesource is the db right now but if you can change the messages component to use your own one.



#3 tfromm

tfromm

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 01 July 2014 - 09:11 AM

Thanks. How can I change the message component?



#4 speixoto

speixoto

    Advanced Member

  • Members
  • PipPipPip
  • 386 posts

Posted 01 July 2014 - 09:30 AM

Add your CustomMessageSource.php to a dir, maybe in app/protected/modules/custom/components/

 

Then edit the app/protected/config/perInstance.php adding this line:

$instanceConfig['components']['messages']['class'] = 'application.modules.custom.components.CustomMessageSource';


#5 tfromm

tfromm

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 01 July 2014 - 02:25 PM

Okay. Do you have an example how I can change the messagesource.php to load language files or another table?



#6 speixoto

speixoto

    Advanced Member

  • Members
  • PipPipPip
  • 386 posts

Posted 01 July 2014 - 07:08 PM

To be honest i can only you point you to the yii documentation.



#7 speixoto

speixoto

    Advanced Member

  • Members
  • PipPipPip
  • 386 posts

Posted 14 July 2014 - 06:23 AM

Or look at this: http://zurmo.org/for...nd-translation/







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users