Sunday, April 5, 2015

Re: DRY - flash message i18n

How about: "Your changes have been saved." and "There was an error saving your changes."



On Saturday, April 4, 2015 at 5:44:09 AM UTC-4, Salines wrote:
Hi,

as a person who works mostly non-English web applications, usually frustrating me bake generated flash messages, where each model has its own success and error messages. If you build an application with dozens of models, the process of translation is time-consuming, repetitive sentences where the only difference in the one word that is the model name. and I think that message should be universal, ie unique flash messages.

I would like to ask you, which sentence would be appropriate to replace existing flash messages, in order to have universally-meaning for all models?

The 'ModelName' has been saved; x 30

The 'ModelName' could not be saved. Please, try again; x 30


I plan to write a plugin that will extend bake shell, including a bake theme. example:

$this->Flash->success(__('Success: universal message here'));

and

$this->Flash->error(__('Error: universal message here'));

Thank You


--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: