CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2005
    Posts
    224

    changing label texts for different languages

    Hi all

    i have 13 languages(english,spain...)

    if i select a language from combobox need to change all labels accordingly

    i have predefined texts for all languages

    i know how to do it with database,but i should not use database

    thanks a lot

  2. #2
    Join Date
    Mar 2005
    Location
    Vienna, Austria
    Posts
    4,538

    Re: changing label texts for different languages

    Quote Originally Posted by tis707
    Hi all

    i have 13 languages(english,spain...)

    if i select a language from combobox need to change all labels accordingly

    i have predefined texts for all languages

    i know how to do it with database,but i should not use database

    thanks a lot
    For having different languages normally Localize is used and you may have your data in Sat dll's
    For how to create a user defined Localizer class see my article about dockable Panels part 1 where I explain how to do localization in general even you use it in userdesigned controls. For the link to this articleseries which is written basically for beginners and explains a lot of basic techniques all around how to built a usercontrol and whats needed to do, look at the bottom of this post !
    Jonny Poet

    To be Alive is depending on the willingsness to help others and also to permit others to help you. So lets be alive. !
    Using Code Tags makes the difference: Code is easier to read, so its easier to help. Do it like this: [CODE] Put Your Code here [/code]
    If anyone felt he has got help, show it in rating the post.
    Also dont forget to set a post which is fully answered to 'resolved'. For more details look to FAQ's about Forum Usage. BTW I'm using Framework 3.5 and you ?
    My latest articles :
    Creating a Dockable Panel-Controlmanager Using C#, Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7

  3. #3
    Join Date
    Jan 2005
    Posts
    224

    Re: changing label texts for different languages

    hai
    thanks for your reply

    i didnot find any link below the post

    shall i use arraylist to get this or any other

    pls help me with sample

    i have to show 12 different languages

  4. #4
    Join Date
    Mar 2005
    Location
    Vienna, Austria
    Posts
    4,538

    Re: changing label texts for different languages

    Quote Originally Posted by tis707
    hai
    thanks for your reply

    i didnot find any link below the post
    Then you need to change the settings of your CG forum settings switch signature on and you will see it under my signature
    but for getting sure here it is
    http://www.codeguru.com/csharp/cshar...le.php/c14179/


    And NO, dont use an arraylist do it the professional way as 16 languages are a lot of resourcesfiles.
    Jonny Poet

    To be Alive is depending on the willingsness to help others and also to permit others to help you. So lets be alive. !
    Using Code Tags makes the difference: Code is easier to read, so its easier to help. Do it like this: [CODE] Put Your Code here [/code]
    If anyone felt he has got help, show it in rating the post.
    Also dont forget to set a post which is fully answered to 'resolved'. For more details look to FAQ's about Forum Usage. BTW I'm using Framework 3.5 and you ?
    My latest articles :
    Creating a Dockable Panel-Controlmanager Using C#, Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7

  5. #5
    Join Date
    Jan 2005
    Posts
    224

    Re: changing label texts for different languages

    thanks a lot
    i will go through the link

  6. #6
    Join Date
    Mar 2005
    Location
    Vienna, Austria
    Posts
    4,538

    Re: changing label texts for different languages

    Quote Originally Posted by tis707
    thanks a lot
    i will go through the link
    There are also other intersesting links regarding localisation on the web for example at CodeProject If you google for 'Global Localization' you will find all you need
    Jonny Poet

    To be Alive is depending on the willingsness to help others and also to permit others to help you. So lets be alive. !
    Using Code Tags makes the difference: Code is easier to read, so its easier to help. Do it like this: [CODE] Put Your Code here [/code]
    If anyone felt he has got help, show it in rating the post.
    Also dont forget to set a post which is fully answered to 'resolved'. For more details look to FAQ's about Forum Usage. BTW I'm using Framework 3.5 and you ?
    My latest articles :
    Creating a Dockable Panel-Controlmanager Using C#, Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured