57.4. The lang Internationalization Directory

Thanks to the generous contributions of Webmin users, the lang subdirectory for this module contains files for several different languages. The settings in the Language form of the Webmin Configuration module determines which one is loaded into the %text hash when init_config is called, as explained in Section 56.3 “Internationalization”.

This module uses no hard-coded text strings in any of its CGI programs or other scripts. Instead, references to an appropriate message for the current language, like $text{'index_create'} or &text('exec_cmd'), are used. If your module might ever be translated into a different language, you should do the same in its CGI programs, as well. Even though it is slightly more work to put messages into a separate file, it is worth it in the long run.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.148.102.166