Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

FIELD_GENDER / FIELD_COUNTRY is not translating

11 years 3 months ago
Licenses:
JomSocial Expired

ISSUE SUMMARY:

1.COM_COMMUNITY_GENDER & COM_COMMUNITY_LANG_NAME_COUNTRY is not translating

2.Birthday field contain : "23:59:59"

i'm calling the field by using the documentation : documentation.jomsocial.com/wiki/JomSocial_User_Object

////////////////////////////////////////////////////////////
$cuser = CFactory::getUser($userId);
$cuser = CFactory::getRequestUser();

echo $cuser->getInfo('FIELD_BIRTHDATE');
echo $cuser->getInfo('FIELD_GENDER');
echo $cuser->getInfo('FIELD_COUNTRY');

STEPS TO REPLICATE:
1
2
3
4
5

RESULT : Not translating
EXPECTED RESULT
BROWSER

Attachments:
11 years 3 months ago
Licenses:

Hi.

This is correct behavior as we store language constants in db instead of text in order to allow user display this in many languages.
If you pull for data direct from database you need to use also jText:: to translate it: docs.joomla.org/Formatted_fields_in_lang..._translation_strings

Please, read this thread: www.jomsocial.com/forum/installation/245...-community-lang-name


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW