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.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.

This page was last updated on 2008-04-17, 22:03.

1 Note

This is a tip I discovered. label registry keys (or those keys that contains a label suffix) are automatically translated.

Leave a note

Have a question? Please use the MT Forums. Notes submitted on documentation should pertain to tips & hints regarding documentation. Your note may be removed once its contents have been integrated into the body of the page.