Language settings don't work on user custom fields Topic is solved

General questions regarding the use of languages in Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
shawnhy
Joomla! Apprentice
Joomla! Apprentice
Posts: 41
Joined: Tue Jan 22, 2013 3:37 am
Location: Taiwan, a democratic country

Language settings don't work on user custom fields

Post by shawnhy » Mon Jul 30, 2018 7:11 am

hi, I have a multi-lang site and I allow User Registration. I wish user who register an account fill up custom forms.
I create field groups, and fields in each languages. But I find ALL fields appear in front-end, regardless the language setting.
Is this a joomla bug or what? Ho can I resolve it?

shawnhy
Joomla! Apprentice
Joomla! Apprentice
Posts: 41
Joined: Tue Jan 22, 2013 3:37 am
Location: Taiwan, a democratic country

Re: Language settings don't work on user custom fields

Post by shawnhy » Mon Jul 30, 2018 2:03 pm

Image

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Language settings don't work on user custom fields

Post by infograf768 » Mon Jul 30, 2018 2:10 pm

Give a lang string Constant and a value.
Example:
MY_USER_CUSTOM_FIELD_WHATEVER="Test field"
and equivalent in Chinese.

Add these via overrides for all your languages.

Then use the Constant MY_USER_CUSTOM_FIELD_WHATEVER as title of the custom field.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

shawnhy
Joomla! Apprentice
Joomla! Apprentice
Posts: 41
Joined: Tue Jan 22, 2013 3:37 am
Location: Taiwan, a democratic country

Re: Language settings don't work on user custom fields

Post by shawnhy » Mon Jul 30, 2018 2:27 pm

@infograf768
Thank you for your answer. I will try if it takes me out.
This trick looks like a work around. I was curious whether it is a bug.

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Language settings don't work on user custom fields

Post by infograf768 » Mon Jul 30, 2018 3:49 pm

it is not a workaround.
It is the easiest way (for me).

There are other solutions involving creating as many fields as languages and tagging them to their specific language, but afaik it would only work for frontend, i.e. if you have equivalent fields tagged to en-GB and to cn-ZH, They will both show when backend editing.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

sokrates_mx5
Joomla! Explorer
Joomla! Explorer
Posts: 310
Joined: Tue Mar 24, 2009 12:30 pm

Re: Language settings don't work on user custom fields

Post by sokrates_mx5 » Sun Jan 05, 2020 10:34 am

shawnhy wrote:
Mon Jul 30, 2018 7:11 am
hi, I have a multi-lang site and I allow User Registration. I wish user who register an account fill up custom forms.
I create field groups, and fields in each languages. But I find ALL fields appear in front-end, regardless the language setting.
Is this a joomla bug or what? Ho can I resolve it?
I have the same problem. How did you solve it?

shawnhy
Joomla! Apprentice
Joomla! Apprentice
Posts: 41
Joined: Tue Jan 22, 2013 3:37 am
Location: Taiwan, a democratic country

Re: Language settings don't work on user custom fields

Post by shawnhy » Sun Jan 05, 2020 12:26 pm

sokrates_mx5 wrote:
Sun Jan 05, 2020 10:34 am

I have the same problem. How did you solve it?
Cannot solve this without customized code


Locked

Return to “Language - Joomla! 3.x”