Messages - Eóin [ switch to compact view ]

Pages: prev1 2 3 4 5 6 [7] 8 9 10 11 12 ... 280next
31
Disappointing, I'd want to hear more details before jumping to conclusions. The purchase of shares seems to be a fact rather than rumor so there's no spin on that.

32
Living Room / Re: Kopimism - a newly-formalised religion
« on: January 08, 2012, 06:27 PM »
The only good thing about nonsense religions like this is that it highlights the nonsense it all religions

33
General Software Discussion / Re: Rapid Environment Editor
« on: January 08, 2012, 06:25 PM »
I use this alot, it's a godsend when programming apps rely on environment variables for locating each other, and for managing the path variable which a number of programs can be careless with.

34
Living Room / Re: Google Breaking its Rules?
« on: January 04, 2012, 12:38 PM »
Interesting response, they even opted to punish themselves. How masochistic of them :D

35
The the native MS approach is indeed resource DLLs as vlastimil suggests though the recommended way to use them is through Microsoft Multilingual User (MUI). I personally found this example, Hello MUI, great for getting up to speed with the API.

The FSF guys have long used gettext as mouser mentioned. Recently Boost added a localisation library, Boost.Locale, to their ever expanding collection. I haven't yet had a chance to use it, but looks neat. It seems to build on both gettext and ICU.

Some C++ apps come with language files that look like this:

HELLOWORLD "Hello, World!"

I'm curious: how is this loaded and interpreted? Is HELLOWORLD a string literal, and you have a long list of conditionals such as  "if id equals "HELLOWORLD" then sHelloWorld = id, else if..."? (That would be quite slow and it's one of the things I'm trying to avoid in Delphi.) Or do these strings map to numeric values somehow? Or something else yet?

Silly question!


Nope not silly, my guess is that the file is loaded into an associative array of some kind. In C++ that could be as simple as an STL std::map<std::string, std::string> container.


Pages: prev1 2 3 4 5 6 [7] 8 9 10 11 12 ... 280next
Go to full version