How do you translate terms in a customized user profile field

How do you translate terms in a customized user profile field

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

評比平均分數: -
In reply to Clarence Prudhoe

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

Helen Foster發表於
Core developers的相片 Documentation writers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片 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

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

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>