Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

There are three places where translation work needs to happen to add a new language: a gettext translation file (.po or portable object file), a javascript translation file, and a few database entries.

Obtaining necessary files

Until the 2.3 release is out, the files referenced below will need to be obtained from subversion. You can either check out the whole directory structure for the web code or just get the needed files.

You can check out the whole structure like this:

Tip

svn co https://svn.apache.org/repos/asf/incubator/vcl/trunk/web/Image Added vclweb

You can get the individual files containing strings to be translated like this:

Tip

svn export https://svn.apache.org/repos/asf/incubator/vcl/trunk/web/locale/po_files/vcl.po.templateImage Added
svn export https://svn.apache.org/repos/asf/incubator/vcl/trunk/web/js/nls/messages.js.templateImage Added
svn export https://svn.apache.org/repos/asf/incubator/vcl/trunk/mysql/update-vcl.sqlImage Added

For the update-vcl.sql file, you'll need to search for the string "Inserts for table `connectmethod`" (without the double quotes, with the back tick quotes). Then, the 2nd and 4th fields (corresponding to discription and connecttext) will need to be translated.

Creating a gettext translation file

...