Translate Elements

Revision as of 21:39, 24 January 2013 by Sinisakrisan (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 Elements will involve some modifying of JomSocial language files. If you already have multilingual site, we will assume you know how to manipulate with language files of Joomla and extensions that are installed. With your favorite code editor, open default JomSocial language file which is ROOT/language/en-GB/en-GB.com_community.ini and open language file for your respective language. It should be this file ROOT/language/xx-YY/xx-YY.com_community.ini where xx-YY is your language code Scroll to the bottom of both files

Translating Method

For this tutorial, we will translate Custom Profiles 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 and at the bottom of language files add the proper translation.

COM_COMMUNITY_FIELDS_GENDER="Our Translation"


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 in JomSocial.