Re: What locale code to use when using Translate behavior?
Let's say I want to get the German or Korean locale code, is there an easy way of getting them? Like a function perhaps? Get it from where? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: What locale code to use when using Translate behavior?
I was wondering if CakePHP got it stored somewhere. Maybe from the L10n class? On Oct 13, 6:43 pm, leop ponton@gmail.com wrote: Let's say I want to get the German or Korean locale code, is there an easy way of getting them? Like a function perhaps? Get it from where? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: What locale code to use when using Translate behavior?
I created a helper for this to format the list for forms, I'm asking because maybe there's a better way than the helper I've created. On Oct 13, 7:00 pm, brian bally.z...@gmail.com wrote: On Tue, Oct 13, 2009 at 11:19 AM, Rawna asumaw...@gmail.com wrote: I was wondering if CakePHP got it stored somewhere. Maybe from the L10n class? Yes, look at the source for the L10n class. Use get(). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
What locale code to use when using Translate behavior?
I know by default cake uses 'en_us' as the default locale code. Let's say I want to get the German or Korean locale code, is there an easy way of getting them? Like a function perhaps? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---