locked
how to localize the paragraph text RRS feed

  • Question

  • User1516424943 posted

     hi

    i am developing website in two language English and Arabic.i convert the all control into arabic using culture and it is working perfectly 

     my question is how to convert the text which is present between the paragraph tag dyanamically

    is there any way to do the convergen dynamically i mean the way labels are changes into arabic when any user select language as arabic the same i want to convert the paragraph text into arabic

     please tell me is they any way to translate

     

    thanks in advance for help

     

    Wednesday, May 20, 2009 5:31 AM

Answers

  • User-292928630 posted

     Go to design mode of your form

    Click on tools and select the option to generate local resource.

    It will create a mypage.aspx.resx file with the same name as your page.

     On your aspx page add the following  code

    <asp:Localize ID="litParagraph" runat="server" meta:resourcekey="litParagraph"></asp:Localize>

    And the text for this paragraph against  litParagraph key in resource file.

    For arabic text create a new resource file  mypage.aspx.ar.resx

     

    for details follow this 

    http://quickstarts.asp.net/QuickStartv20/aspnet/doc/localization/localization.aspx

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, May 21, 2009 1:42 AM

All replies

  • User-292928630 posted

     You can use local resources to save the text in your paragraphs for both english and arabic text.

    Wednesday, May 20, 2009 7:35 AM
  • User1516424943 posted

     thanks for ur support

    can u give one example it will help me lot

    Wednesday, May 20, 2009 8:47 AM
  • User-292928630 posted

     Go to design mode of your form

    Click on tools and select the option to generate local resource.

    It will create a mypage.aspx.resx file with the same name as your page.

     On your aspx page add the following  code

    <asp:Localize ID="litParagraph" runat="server" meta:resourcekey="litParagraph"></asp:Localize>

    And the text for this paragraph against  litParagraph key in resource file.

    For arabic text create a new resource file  mypage.aspx.ar.resx

     

    for details follow this 

    http://quickstarts.asp.net/QuickStartv20/aspnet/doc/localization/localization.aspx

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, May 21, 2009 1:42 AM