Last post May 20, 2008 09:20 PM by Annddrew
May 19, 2008 01:02 PM|Annddrew|LINK
I'm implementing the Poll module in French only. So far I have been able to translate everything in French. However, the only thing I'm not able to translate yet are the words on the links of the DetailsView control. For example the words "Cancel", "Update",
"Insert". I would like to use instead the French words "Annuler", "Sauvegarder" and "Ajouter" respectively. Any idea on how to achieve that ? Thank you.
May 20, 2008 01:27 AM|Lee Dumond|LINK
Here's how you'd do it for Delete. The others work exactly the same way.
1. In your DetailsView, set AutoGenerateDeleteButton="false".
2. Manually add a CommandField to the DetailsView.
3. In this CommandField, set ShowDeleteButton="true".
4. Set ButtonType="ButtonType.Link".
5. Set DeleteText="Supprimer"
Have fun. [:D]
May 20, 2008 01:15 PM|Annddrew|LINK
Thank you very much Lee Dumond. I tried your solution and it worked for the Insert, Update and Delete link buttons but it doesn't work for the Cancel link button because there is no such a thing as AutoGenerateCancelButton. However, I could add a CommandField
But it still shows up with the "Cancel" text. Any idea Lee Dumond ?? Merci beaucoup !
May 20, 2008 09:20 PM|Annddrew|LINK
Ok I figured it out. For the Cancel link button one has to add it with the other link buttons. For example:
Thank you very much Lee Dumond. I looked over all the internet and nobody seems to have the answer to my question except you !! Merci beaucoup !