How do you translate terms in a customized user profile field

How do you translate terms in a customized user profile field

Clarence Prudhoe -
回帖数: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

回复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...

回复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

回复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>