Results 1 to 5 of 5

Thread: Multilanguage controls

  1. #1
    [RTS]BN+VS*'s Avatar
    [RTS]BN+VS* is offline VB.NET Forum Enthusiast
    .NET Framework
    .NET 2.0 (VS 2005)
    Join Date
    Feb 2009
    Location
    BELGIUM - East Flanders
    Posts
    53
    Reputation
    104

    Multilanguage controls

    Hey,

    I'm using a number of custom controls in a multi language application. What's the best way to make the controls display the correct language? Do I change properties of the control via the application depending on language strings fetched by it, or do I make the control itself support multiple languages?

    Cheers
    BN

  2. #2
    [RTS]BN+VS*'s Avatar
    [RTS]BN+VS* is offline VB.NET Forum Enthusiast
    .NET Framework
    .NET 2.0 (VS 2005)
    Join Date
    Feb 2009
    Location
    BELGIUM - East Flanders
    Posts
    53
    Reputation
    104
    No suggestions?
    My blog: BN's Blog
    My programs: Binary converter, Hash attacker, Directory browser

    Informatics has as little to do with computers as astronomy with telescopes.

  3. #3
    Richard Creer is offline VB.NET Forum Newbie
    .NET Framework
    .NET 2.0 (VS 2005)
    Join Date
    Dec 2008
    Posts
    4
    Reputation
    0
    I find it strange too. I have yet to find a single 'real world' example of doing this despite hours of searching. Makes you wonder...

  4. #4
    [RTS]BN+VS*'s Avatar
    [RTS]BN+VS* is offline VB.NET Forum Enthusiast
    .NET Framework
    .NET 2.0 (VS 2005)
    Join Date
    Feb 2009
    Location
    BELGIUM - East Flanders
    Posts
    53
    Reputation
    104
    I haven't found anything since last time I posted... Really strange no one comes up with the answer.

    Cheers
    BN
    My blog: BN's Blog
    My programs: Binary converter, Hash attacker, Directory browser

    Informatics has as little to do with computers as astronomy with telescopes.

  5. #5
    Richard Creer is offline VB.NET Forum Newbie
    .NET Framework
    .NET 2.0 (VS 2005)
    Join Date
    Dec 2008
    Posts
    4
    Reputation
    0

    Post

    I suspect part of the problem is that the 'automatic' translation of labels and such works on the setting of UICulture and, in XP at least, there is no obvious way to change this for the purposes of testing - see my adjacent post which has yet to produce an answer.

    Now one could assume that M. Customer in, say France, will have his UICulture set to fr-FR and everything will work. But I'm not convinced it is safe to assume that becauses my bought-in-the-UK, everything in English(UK), PC's UICulture is English(US) and resists all attempts to change it. It would not surprise me if very many PCs around the world are similarly English(US) and if I (fairly computer capable) cannot change it I doubt if someone less capable, like an average user, is going to succeed.

    So the 'automatic' translation is possibly a non-runner though I would be very happy if someone could demonstrate, with a working example, that I am wrong. Nevertheless people are clearly using locales, possibly by retrieving language-dependant strings programmatically.

    In the time it has taken me to investigate, and fail to get working, localisation the Microsoft way I could have written a database-driven alternative which would provide a central library of translations, let people choose their preferred language, and be much easier to maintain and distribute than all these little .resx files. In fact I think I will do just that...

    What did you do?

Bookmarks

Posting Permissions

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