crisu83 / yii-rights

Automatically exported from code.google.com/p/yii-rights
BSD 3-Clause "New" or "Revised" License
2 stars 4 forks source link

Translations aren't working on version 1.0.0 #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set a language in the main configuration file of the application (for 
example "es")
2. Try to go to a unauthorized area

What is the expected output? What do you see instead?

If you haven't access you should receive a 403 error, but it is shown an error 
related to the translation (CPhpMessageSource line 99, "$class=new 
ReflectionClass($moduleClass);"). This function doesn't find "RightsModule".

What version of the product are you using? On what operating system?
1.0.0 (the last one) with Yii 1.1.5

Please provide any additional information below.
I tried to do the same with the previous version of yii-rights (0.9.11) and it 
works fine (I included the spanish translation of version 1.0.0).

Original issue reported on code.google.com by andreu.a...@gmail.com on 11 Dec 2010 at 5:17

GoogleCodeExporter commented 9 years ago
Thanks for reporting the bug. To resolve this add the following to your 
application imports:

'application.modules.rights.*'

I will change the documentation to state this as well.

Original comment by cni...@live.com on 11 Dec 2010 at 6:22

GoogleCodeExporter commented 9 years ago
Changed the upcoming documentation to state this.

Original comment by cni...@live.com on 12 Dec 2010 at 1:25