![]() There is a base translation file at vcl/js/nls/messages.js.template. Vcl/locale/es_PR/LC_MESSAGES/ path: msgfmt -output=vcl/locale/es_PR/LC_MESSAGES/vcl.mo vcl/locale/po_files/es_PR/vcl.po ![]() moįile using msgfmt, also from the gettext suite, placing the. Make sure you incorporate any HTML in the string into yourĪfter you have translated everything, you need to compile the. There is a program under Linux named poedit from the gettext suite that You must translate the string listed after msgid and place the translation on the Theįile has pairs of lines like msgid "Welcome to the Virtual Computing Lab\n" You need to translate each string in your new vcl.po file in to the new language. Next, copy vcl/locale/po_files/vcl.po.template under the new po path: cp vcl/locale/po_files/vcl.po.template vcl/locale/po_files/es_PR/vcl.po With the name you would like displayed in the drop-down box for selecting the locale: echo 'Spanish (PR)' > vcl/locale/es_PR/language Next, create a file named language in the new locale directory (vcl/locale/es_PR) Two new directories under vcl/locale for your new locale (using es_PR as an example): vcl/locale/es_PR/LC_MESSAGES Vcl/locale/po_files/vcl.po.template is a base translation file. Also, there are entries that need to be added to the database in the connect There are two files to work with - a php translation file and a javascript translationįile. There are three places where translation work needs to happen to add a new language:Ī gettext translation file (.po or portable object file), a javascript translationįile, and a few database entries. This should be addressed if future releases. Translated in portions instead of as a whole. Also, there are currently several sections where a paragraph may be More work will be done in future releases to add multilingualization to all parts of The initial work wasĭone and contributed by Toru Yokoyama in JIRA-485. ![]() That the basic user sees to be presented in different languages. VCL 2.3 has the first step in multilingualization by allowing the parts of the site Adding a New Locale to the VCL Web Frontend Introduction ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |