If you run a multi-language website, in addition to installing Joomla! or Wordpress languages and nBill language packs, the translation feature gives you the opportunity to provide translations of text that you have written yourself (for example, the captions on your order form fields, the names of your products, the text of your reminder e-mails, etc.). To access the translation feature, select Configuration->Translation from the main menu as shown in figure 3.13.1.

Figure 3.13.1 - Accessing the Translation Feature


This brings up a list of database tables that contain data that can be translated, along with a description of each. Click on a table name to open a list of the records in that table, then click on a record to actually perform the translation. Clicking on a record brings up the translation editor as shown in figure 3.13.2.

Figure 3.13.2 - The Translation Editor

The languages available to translate into are determined according to the nBill language packs you have got installed. If you want to translate into a language for which there is no language pack, you can simply create a new folder within the /administrator/components/com_nbill/language folder, and name it according to the language you want to use (eg. 'ja-JP').

When you have selected a target language, you can provide translated text for each column of the selected record. For your convenience, there is a 'Copy->' button which will simply copy the source text for you to edit (there is no point in just copying all the source text and not changing it though, as the source text will be used in the absence of a translation anyway). You can also choose whether or not to publish the translated text (so you can hide it from view and just use the language of the source content until you have finished translating it if you wish). Click on either the Apply or Save toolbar button to save the translation.

Use the normal CMS features for controlling which language is used in your website front-end, and nBill will automatically pick up the relevant translated text for that language when its pages are accessed. If more than one nBill language pack is installed, clients can also select their preferred language on the My Profile page in the front-end - this will ensure that e-mails sent to them (eg. when invoices are generated for them) will pick up the correct language, even though the client is not logged in to your website at the time it is sent.