his article will describe how Vehicle Manager handles languages and how to add a new language file to the Vehicle manager software for Joomla .1.6&1.7 and joomla 2.5 and 3.3 .
Vehicle manager and language behavior
The Vehicle Manager component for Joomla comes with full language support. And with language files included. What does this mean?
All Vehicle Manager language variables are stored in one file.
That file can be translated to add other languages.
Once you have put a language file for a language into Vehicle Manager, then the language chosen as default in Joomla will automatically be picked up by Vehicle Manager.
On multilingual sites with JoomFish, Vehicle Manager will automatically pick up the language chosen in the frontend.
Yes, we know... the current language files in Vehicle Manager are done the "old fashioned" way, as it used to be in Joomla 1.0.x. Joomla 1.5.x uses translations through .ini files, split between admin area and frontend area.
The reason we kept the old way for now is because it gives us less headaches maintaining different translation methods for the two Joomla versions. Perhaps we will look at transforming the translations to the new Joomla 1.5.x way for a future version. Important thing is: the translations work, and they work fine!
Obtaining or creating language files
Many Language files for the Vehicle Manager component can be obtained from the website. But if your language isn't there yet, you can translate Vehicle Manager yourself and add your language. Once you have it, please share it on the website to help others!
How to translate Vehicle Manager language variables
First, find the file called english.php, either in your installation or in the zip archive of the component. Or download the latest English language file for Vehicle Manager from the Vehicle Manager languages section of the website.
In the Vehicle Manager installation it is located in the directory /components/com_vehiclemanager/lang/.
Next, make a copy of english.php and rename it to your own language, for example dutch.php.
Now open dutch.php with a text editor which is capable of handling UTF-8. We recommend PSPad if you are on a Windows operating system.
All Joomla 1.5.x files need to be saved as UTF-8.
WordPad or Notepad can NOT handle UTF-8, so they are NOT FIT to create or
edit these files with!
Try PSPad instead (http://www.pspad.com/), and set it under [Format] to UTF-8
before you edit and save your files.
A partial example of what you will see:
Continue to translate all language variables in your language.
You can use accented letters and special characters like é, ô, ü, ç, ñ, ¿. ©, ß etc.
inside the files, with ONE exception:
You cannot use single quotes inside the language variables.
Please replace all single quotes ( ' ) with back-accents ( ` )
So for example French "l'emprunt" inside a language variable needs to be written "l`imprunt".
This is because single quotes are part of the PHP code normally. The “`” or back- accent will be ignored by PHP and interpreted as normal text.
Adding your language file to the Vehicle manager installation
You can either do the operations on the component archive and then rezip and install, or edit the necessary files in place inside an existing installation.
1. Place your language file inside the directory
/components/com_Vehicle Manager/language/ using an FTP client or similar (if you are on a shared hosting account, please use internal Joomla FTP or QuiXplorer or similar to preserve the file ownership).
2. In the file VehicleManager.xml in the directory /administrator/components/com_vehiclemanager/ add to " administration -> menu section name menu on your native language
Sharing your created language files with the community
Once you have a working translation for Vehicle Manager ready, please share it on the website to help others!
You will receive full credits for your work in the Vehicle Manager Languages Section, as well as a link to your website.
Submitting language files for Vehicle Manager can be done in two ways by registered
You can upload your language file from User Menu > Upload file
version of Vehicle Manager the language translation is for
your name as you want it mentioned in the credits the website you want mentioned in the credits
Thank you in advance for sharing your efforts with the rest of the Vehicle Manager users!
After you added new Language to vehicle manager - please go to Vehicle manager , Language tab - and check appear that language in language filter
Current languages for Vehicle manager version you may find there are.