Title: Adding a New Locale to the VCL Web Frontend Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at . http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ## Introduction VCL 2.3 has the first step in multilingualization by allowing the parts of the site that the basic user sees to be presented in different languages. The initial work was done and contributed by Toru Yokoyama in JIRA-485. More work will be done in future releases to add multilingualization to all parts of the site. Also, there are currently several sections where a paragraph may be translated in portions instead of as a whole. This does not provide for optimal translations. This should be addressed if future releases. 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. ## Places to translate There are two files to work with - a php translation file and a javascript translation file. Also, there are entries that need to be added to the database in the connect method table. vcl/locale/po_files/vcl.po.template vcl/js/nls/messages.js.template ## Creating a gettext translation file vcl/locale/po_files/vcl.po.template is a base translation file. You need to create 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/es_PR Next, create a file named language in the new locale directory (vcl/locale/es_PR) 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, 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 You need to translate each string in your new vcl.po file in to the new language. The file has pairs of lines like msgid "