Answered by:
multilanguage dialog box

Question
-
Hi,
I added a button which launches a dialog box. But I would like to use it in French and English.
I want the dialog box to be translated.
I used the Ribbon Workbench solution for my button.
I know that "Dialogs are language specific" But how to do that.
Thyanks for your help in advance.
Adel
Monday, October 1, 2012 12:36 PM
Answers
-
Hi,
what kind of dialog is this? Is it a custom HTML Web Resource you created? If that is the case you can add localization to your html using Javascript. You can get the Organization and the User Language Code using Xrm.Page.context.getOrgLcid() and Xrm.Page.context.getUserLcid() respectively and then differentiate your strings per language.
Greetings,
Pavlos
- Edited by Pavlos Panagiotidis Tuesday, October 2, 2012 10:31 AM
- Proposed as answer by Scott Durow (MVP)MVP, Editor Tuesday, October 2, 2012 6:51 PM
- Marked as answer by JLattimerMVP, Moderator Monday, December 24, 2012 4:13 AM
Tuesday, October 2, 2012 10:31 AM -
Hi,
Here is an example of this in the sdk : http://msdn.microsoft.com/en-us/library/hh670609.aspx#BKMK_DeveloperOption
hth,
@ScottDurow
Scott Durow
Read my blog: www.develop1.net/public
If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"- Proposed as answer by Scott Durow (MVP)MVP, Editor Tuesday, October 2, 2012 6:51 PM
- Marked as answer by JLattimerMVP, Moderator Monday, December 24, 2012 4:13 AM
Tuesday, October 2, 2012 4:24 PMAnswerer
All replies
-
Hi,
what kind of dialog is this? Is it a custom HTML Web Resource you created? If that is the case you can add localization to your html using Javascript. You can get the Organization and the User Language Code using Xrm.Page.context.getOrgLcid() and Xrm.Page.context.getUserLcid() respectively and then differentiate your strings per language.
Greetings,
Pavlos
- Edited by Pavlos Panagiotidis Tuesday, October 2, 2012 10:31 AM
- Proposed as answer by Scott Durow (MVP)MVP, Editor Tuesday, October 2, 2012 6:51 PM
- Marked as answer by JLattimerMVP, Moderator Monday, December 24, 2012 4:13 AM
Tuesday, October 2, 2012 10:31 AM -
Hi,
Here is an example of this in the sdk : http://msdn.microsoft.com/en-us/library/hh670609.aspx#BKMK_DeveloperOption
hth,
@ScottDurow
Scott Durow
Read my blog: www.develop1.net/public
If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"- Proposed as answer by Scott Durow (MVP)MVP, Editor Tuesday, October 2, 2012 6:51 PM
- Marked as answer by JLattimerMVP, Moderator Monday, December 24, 2012 4:13 AM
Tuesday, October 2, 2012 4:24 PMAnswerer -
Hi Scott,
thanks I will try this.
Wednesday, October 3, 2012 8:00 AM