Author Topic: multi-language apps  (Read 8392 times)

James Fuller

  • Newbie
  • *
  • Posts: 41
multi-language apps
« on: December 19, 2016, 11:46:39 am »
Patrice,Mike
  How do you code for multi-language apps?

James

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1980
    • zapsolution
Re: multi-language apps
« Reply #1 on: December 19, 2016, 01:41:46 pm »
Pure SDK procedural style is the only common denominator.

...
Patrice
(Always working with the latest Windows version available...)

James Fuller

  • Newbie
  • *
  • Posts: 41
Re: multi-language apps
« Reply #2 on: December 19, 2016, 02:28:11 pm »
Patrice,
So you maintain a separate app for each language you support ? or ....??

James

James Fuller

  • Newbie
  • *
  • Posts: 41
Re: multi-language apps
« Reply #3 on: December 19, 2016, 05:39:55 pm »
Patrice,
  I think you misunderstood ?
I meant English, French as languages not programming languages.

James

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1980
    • zapsolution
Re: multi-language apps
« Reply #4 on: December 19, 2016, 06:03:05 pm »
For my demo, most of the time i am using English.
But i could also use external files to store the messages, just like what i am doing to load WinLIFT components from .sks file.

I am also using transparent graphic overlay to display any language when using projects like in the GDImage Settings below



...
« Last Edit: December 19, 2016, 06:06:32 pm by Patrice Terrier »
Patrice
(Always working with the latest Windows version available...)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: multi-language apps
« Reply #5 on: December 21, 2016, 04:13:53 am »
Hi James,

FBSL doesn't support Unicode natively but it does support East and West European locale ANSI code pages (like e.g. Russian CP-1251) which are regular parts of respective localized Windows OS distros and downloadable extra language packs. There are no more than 33 glyphs only in a modern Cyrillic alphabet, after all. :)

I rarely code for Russian users as most of my freelance contracts (for both C/C++ and FBSL) come from the West but when I do need locale dependent resources, I tend to use separate resource-only DLLs to host my strings. They would go by the same IDs in all the DLLs so that my main code would remain untouched for all the target locales I need.

I've yet never had a situation though that anybody would order localized version info or image resources from me. I've no experience with matrioshka and balalaika images in place of crystal balls and banjos. :)
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)