Movable Type Documentation > Developer

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 User Contributed Notes

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

Submit a User Contributed Note

User contributed notes are a great way to share the knowledge you have gained in using Movable Type.

If you have a technical question or problem, please visit Movable Type Support.

(If you haven't left a note here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)