How do you translate terms in a customized user profile field

How do you translate terms in a customized user profile field

by Clarence Prudhoe -
Number of replies: 3

Hi,

I have added several customized user profile fields.  Is there a way to translate these terms when the user changes languages?  I know how to translate terms that are listed in a Moodle file, but the terms in the custome user profile fields are written directly to the database

Is there a solution for this?

Thanks

Clarence

Average of ratings: -
In reply to Clarence Prudhoe

Re: How do you translate terms in a customized user profile field

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Hi Clarence,

Perhaps you could try using the multi-lang filter? See Multi language content for details.

I'm just going to move your discussion thread to the languages forum in case anyone else has any ideas...

In reply to Helen Foster

Re: How do you translate terms in a customized user profile field

by Clarence Prudhoe -

Hi Helen,

Thanks for the suggestion.  However, I assume the Multi language tags will only work when entered in the HTML editor.

I added a drop list to the user profile that has a list of options.  The user selects one of the options and that gets written into his profile in the database. 

I will try your suggestion and let you know what I learn.

Clarence

In reply to Clarence Prudhoe

Re: How do you translate terms in a customized user profile field

by Pierre Clavet -

Hi Clarence,

You just have to use the multi language span html tag.  Here's what I use.  Just copy/paste and change the text (help/aide).

<span class="multilang" lang="en">help</span><span class="multilang" lang="fr">Aide</span>