Translate Elements

Revision as of 09:29, 6 February 2015 by Michal (Talk | contribs)

Overview

This tutorial will cover the method of translating every JomSocial Element such are Custom Profile Fields, Groups, Video and Event Categories. In other words, every element that can be found in across JomSocial's configuration.

Translating Method

For this tutorial, we will translate Custom Profile Fields but you can apply same method to video, group and event categories, as well as Toolbar which is covered in other tutorial
Navigate to the site backend and from Components dropdown menu select JomSocial -> Custom Profiles
Jsmenucustomprofiles.png

In the page that opens click on the field you want to translate. For this tutorial, we will translate Gender field

Customprofilegenderdefault.png

Replace the Name of the field with a language key you want to use. You can use basically any key you want but for the sake of uniformed design we will use this schema COM_COMMUNITY_FIELDS_ITEMNAME
Following this schema, we will enter the COM_COMMUNITY_FIELDS_GENDER in Name field as indicated on the picture bellow

Customprofilegender1.png

  • Note - we entered the COM_COMMUNITY_FIELDS_GENDER in that field, only it is not fully visible.

Save the field.

Now browse to Backend -> Extensions -> Langauge manager. Click "overrides".

Nowe-lang1.png

Choose from dropdown list for which language you want to add new translation and click "New" button.

Nowe-lang2.png

Add COM_COMMUNITY_FIELDS_GENDER to "Language Constant" field and "Our Translation" to "text" field. Click "Save & Close".

Nowe-lang3.png

Your change should be saved and language override list will be displayed:

Nowe-lang4.png

Navigate to the site Front End and you will see your new translation in effect

Fieldtranslated.png

using the same method, you can translate the field tooltips, field options, as well as video, group and event categories and descriptions.

Limitation

Some limitation applies. You cant translate Multiprofiles names and descriptions. Everything else is translatable using this method

See Also