Internationalization
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.createblog’ => {
label => trans(“Create Blogs”),
group => ‘sysadmin’,
order => 100,
},
},
};
For more information on the internationalization of plugins and components, see TODO Plugin Internationalization.
Arvind Satyanarayan on August 8, 2007, 9:11 p.m. Reply
This is a tip I discovered.
label
registry keys (or those keys that contains alabel
suffix) are automatically translated.