-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Classes common::Message and common::EmptyMessage #2032
Classes common::Message and common::EmptyMessage #2032
Conversation
Hmm, sorry, but I am bit confused about the usage of the |
In plugin:
And pass the object to callback. In app:
|
All right, thanks for the example. Why is the translate argument, which determines whether to translate, handled on the app side? It seems to require the app to understand the message content and decide whether to translate it. I understand that translation itself happens on the app side, not the client, but shouldn’t the decision to translate be made by the message author, who knows its semantics? For instance, error codes or machine-generated messages might not need translation. To put it differently, if the message author already determines which parts are translatable, what scenario would require the app to override that decision and not translate the message? |
If it makes sense to translate the passed text, the message author implements The application decides whether the translation is used and in what language. Why? Well, because the application doesn't have to be just |
…nation A base abstract class for passing a message whose formatting, including localization (translation, argument format) is done at the destination. Usage: The user creates a child of this class and implements the `format` method.
ce3c006
common::Message
: A base abstract class for passing a message whose formatting, including localization (translation, argument format) is done at the destination.common::EmptyMessage
: class for passing an empty messageCloses: #2034
Requires: #2029
Requires: #2031