Hi All, I normally use __('string here') in my views, however in one particular case it just made sense to use a foreach so I ended up with something like:
__($type); Of course cake i18n extract doesn't like that, and I don't mind adding them manually as it's a special one-off case, but how? I can't just edit the .pot file since the next time I run cake extract it will just overwrite my changes (even if I tell it to merge). Editing the .po file directly doesn't work either since poEdit will just say they are obsolete strings as they don't exist in the .pot file. Another situation one may face is when you use $form->inputs(), CakePHP wraps the name of each field in the model with __() so basically if I have a column called 'name', it will lookup 'Name' in the translation file. This is another case where adding strings manually comes in handy (and CakePHP not overwriting the .pot file and clearing them!) Any ideas? Thanks! Gonzalo --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---