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

Get Managing Linux® Systems with Webmin™ System Administration and Module Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.