What Is The Best Practice To Separate Translation Messages In Different Files?

Now, I use i18n, in my little app. But I don’t know, what will be the best practice to separate the translation messages in different files.

For the messages of errors, I store in the errors.php, the name of the model’s attributes I use the models.php in the /messages/hu.

But I don’t know exactly how separate the messages from the Views. I have different views of models, the menu names, the javascript messages, etc.

And I need a little suggestions, how separate them in different translations files. I don’t wanna store all in one translation file.