Re: i18n problem

2014-10-22 Thread Lucky1968
Hi, Here's an example: I have an element which generates a navigation menu. This is the code in the element: App::import('Model', array('Shop.ShopCategory')); $menuObj = new ShopCategory(); $nav_top = $menuObj-nav_top(''); ShopCategory has a translated 'name'-field which is also the models

Re: i18n problem

2014-10-21 Thread José Lorenzo
First time I see this. What Cake version are you using? On Monday, October 20, 2014 8:56:39 AM UTC+2, Lucky1968 wrote: Hi, Is there anyone who can help me with this? Thanx. On Wednesday, October 1, 2014 9:32:05 AM UTC+2, Lucky1968 wrote: Hi, I'm using i18n in my application and it

Re: i18n problem

2014-10-21 Thread Luc Bernard
Hi, I'm using 2.3.10 On 21 Oct 2014, at 21:11, José Lorenzo jose@gmail.com wrote: First time I see this. What Cake version are you using? On Monday, October 20, 2014 8:56:39 AM UTC+2, Lucky1968 wrote: Hi, Is there anyone who can help me with this? Thanx. On Wednesday,

Re: i18n problem

2014-10-20 Thread Lucky1968
Hi, Is there anyone who can help me with this? Thanx. On Wednesday, October 1, 2014 9:32:05 AM UTC+2, Lucky1968 wrote: Hi, I'm using i18n in my application and it seems that in certain views I can use $array['translated_field'] as in other views I need to use

i18n problem

2014-10-01 Thread Lucky1968
Hi, I'm using i18n in my application and it seems that in certain views I can use $array['translated_field'] as in other views I need to use $array[0]['Model__i18n_translated_field'] to get the same information coming from the same find in the same model. Can anyone tell me why this is? This

Re: i18n problem

2014-10-01 Thread Lucky1968
UPDATE: I also have to use $array[0]['Model__i18n_translated_field'] in normal (not forms) view files. On Wednesday, October 1, 2014 9:32:05 AM UTC+2, Lucky1968 wrote: Hi, I'm using i18n in my application and it seems that in certain views I can use $array['translated_field'] as in other

I18N problem with default language (FIXED)

2010-05-26 Thread massl
Hi, I've noticed that the google bot indexed the language keys instead of the translation. I could reproduce this by doing a telnet and a GET / (it doesn't matter what site). CakePHP caches the language files and for some reason it tried to load cake_core_default_en_us instead of the default

Re: special i18n problem

2009-04-13 Thread donnerbeil
Thanks for your comments. I'll think about it. But I don't understand, what you mean with using views. The only way I think views are useful in this case is, that I check in a foreach loop if the contents country_id equals the given one and skip all other. Maybe that's a solution. I still think

Re: special i18n problem

2009-04-08 Thread John Andersen
If I understand you correctly, then you have content that are not related to a specific country and you have country specific content. One thing is to use I10n to change the presentation language, the other is to change the content from non specific to country specific. In that case you may look

special i18n problem

2009-04-07 Thread donnerbeil
Hi, I have a community website. At the moment it's only in German, but I'm trying to get it international. Of course there are a lot of useful l10n and i18n classes in cake, but in my case I need something else. The content for each country is totally different. I don't need to have translated

Re: special i18n problem

2009-04-07 Thread faza
If your database supports it, I'd suggest using views. It's much faster than re-filtering the results in Cake, especially that you can create views using SQL code on-the-fly. This way you could still use a single model but change the $uses value dynamically. (A theory, haven't tested it) Still,