Throughout the registry strings are defined that are meant to be
displayed through a user interface. These strings are frequently
expressed in English. For those strings that may need to be translated
in order to appear within the application according to user's language
preferences, those string can be wrapped in a "trans" subroutine to
signal to Movable Type that a string is translatable. For example:
$registry = {
permissions => {
'system.create_blog' => {
label => trans("Create Blogs"),
group => 'sys_admin',
order => 100,
},
},
};
For more information on the internationalization of plugins and components, see TODO Plugin Internationalization.
$registry = {
permissions => {
'system.create_blog' => {
label => trans("Create Blogs"),
group => 'sys_admin',
order => 100,
},
},
};
For more information on the internationalization of plugins and components, see TODO Plugin Internationalization.
1 User Contributed Notes
This is a tip I discovered. label registry keys (or those keys that contains a label suffix) are automatically translated.