How can I change or update list option caption displayed?

I have 2 list options. One is getting data from lookup table (iduser,role) and the other one is getting information from a hard code (0=>‘Name’,1=>‘Address’,2=>‘Gender’)
The problem is the values pulled are in english yet the website is bilingual so I need to translate this values based on language that the user is currently using in the application.My only difficulty is : which event should I use, how can I access the list option values and change them in the event. for the translation I know how I will do to get the right translation for each value from my language file.

You may use ListOptions_Rendered event to change the content, you can check the current lanugage ID by the function CurrentLanguageID(). (Assume v2020.)

Thanks , What property to I access to get the list of the options and update them according to the language? What I want to change is the displayed text for the value, not the value (that is coming from the database).

You may try:var_dump($this->ListOptions);to see all the properties.

You may simply use “Lookup_Selecting” server event in order to modify the options from the Select control.

Please read “Server Events and Client Scripts” topic from PHPMaker Help menu for more info and example.