Community

Adding Extra Languages / New Language Setup

Showing 1 - 2 of 2
Adding Extra Languages / New Language Setup
by Support Dept.
1 year ago
S

Support Dept.

Administrator

You can add new languages under 'Administrator - Settings - Languages' . Please note the 'Locale' name you add, e.g.: 'fr', this is what you will use as a language identifier.

Once the language is added, copy the contents of the /app/I18n/en to /app/I18n/fr folder, these are the interface language files that you might want to translate. There is no need to translate /admin.php and /widget.php as these are admin panel language files. Make sure to use utf-8 codepage when editing these files.

Once the language and language files are added you can access you website using two different paths, one for english: domain.com/en and one for French: domain.com/fr If you place French as the primary language in admin (first in the list of languages) you will be able to access French version at domain.com and switch to English using domain.com/en. These links can be placed into the script top menu as a menu item that leads to the website home page, for English use domain.com/en, for 'French' use domain.com/fr, this way user can switch their language easily.

When there are two or more languages available, you will find out that form fields for category names, location names, product names, field names, field options (checkbox options, select dropdown options) and almost all text information you can edit for widgets have extra tabs that include your language names,  this is what you can use to switch the current translation, so if you have English and French you can click the apropriate language name tab to add/edit phrase in the selected language. Note that if no translation is available for any extra language phrase the default English translation is used on the template.

Listing titles and any other text listing custom fields are not translated, while all dropdown options or checkboxes are. So we recommend to add listing title in both languages for each listing, e.g.: "English Language Title - French Language Title", this will improve your SEO and will use both languages when searching for listings.

Re: Adding Extra Languages / New Language Setup
by Support Dept.
1 year ago
S

Support Dept.

Administrator

Please note that since phpListings 1.0.2 locale switching links that allow you to switch your directory website language dynamically are added into the 'Header' widget menu automatically.

Showing 1 - 2 of 2
pixel image