Re: Multilanguage

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Frank Landen (fishbone999NOSPAM_at_web.de)
Date: 01/07/05


Date: Sat, 8 Jan 2005 00:14:32 +0100

Thanks for answer. I thought to put the translations into a database. But
isn´t there a tool, that give me all strings from a project ? p.e. like
this:

1. Collect a list from all strings in a project
2. User choose which strings should be translated
3. The tool replace the selected strings with variables or functions (which
return the selected language string "langstring(language, stringnumber")
4. Output the selected strings from 2. in a list/table

I think it wouldn´t be very difficult to write an app for this, but the
tools i´ve found for localizations are to complex.

Frank

> The resource file is only a storage space, you can switch languages
> on the fly while the user is in the application. You do; however, need
> the code everywhere where you want this functionality.
>
> Other alternatives to the resource file (although some not the best
> way) are:
>
> Text files
> Collections
> Database tables
>
> One place where I would never put the language info is in the
> registry! <g>
>
> Once the user swithceslanguage, do you want it to be sticky?
> That is, that the app use the last selected language on start up.
> If so, then you'll need to store the option selected somewhere
> (the registry is a feasible option for this).
>
> If you are switchng languages, take care to take into account
> everything, including possible differences in number, currency
> and date formatting.
>>
>> I´ve wrote a really big application in vb6 and now, i´ve to implement a
>> multilanguage function in it. I´ve searched with google for a tool, which
>> i could use to do the localization without having so much work. I now the
>> resource-file.... ...but isnt there nothing else ?
>> It would be nice, when I could change the language at runtime, and not
>> only at program-start (p.e. multilizer)



Relevant Pages

  • Re: Foreign language issues
    ... > translated strings that I read at program initialization. ... > translations was the largest part of the effort. ... > When a PC has a non-English default language, is there a way for a VB ... 'universal' dialogs/forms and just swap out 'strings' as needed. ...
    (microsoft.public.vb.general.discussion)
  • Re: add support for other languages
    ... language DLLs or a single DLL with multiple language support, ... Just compile in Unicode ... You can create a hand-edited resource that contains Unicode strings, but you have to do it ... I don't know where is the language support comes into ...
    (microsoft.public.vc.mfc)
  • Re: Two Questions about "strlen", "strcat" and "strcpy"
    ... >>Important is that we have in the standard language a way of using ... > No. zero terminated strings is the whole problem in the first place. ... > programmer to think in terms of implementation and constantly respin ... The standards comitee refuses any change, ...
    (comp.lang.c)
  • Re: GNU gettext
    ... The gettext documentation explains how the keys work. ... translation files, or that you'd need to write a small utility to help ... gettext was desined for plain C, the keys are C strings ... as a developer you have no clue what every language ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: How come Ada isnt more popular?
    ... A language with a Hinldey-Milner type system ... fixed size strings, unbounded strings, suffix tree. ... container varies, the element does not. ...
    (comp.lang.ada)