Author Topic: Dual Language support for existing software  (Read 39 times)

Offline daniel_bingamon

  • Member
  • *
  • Posts: 21
Dual Language support for existing software
« on: September 22, 2022, 03:37:05 pm »
I have some software that we developed under Pelles over several years.   (Currently in English)  Now we have a request to put screen in Portuguese.   So, created a second .RC file that has same names as the English Dialogs and Menus only with the _PT added to the name.   Then when the alternate language (Portuguese) is selected the _PT will be added to the name and select the alternate Dialogs and Menus.
This is working so far - I've tested the menus, however the Accent Marks are producing multiple strange characters.   What can I do about this?

Offline John Z

  • Member
  • *
  • Posts: 482
Re: Dual Language support for existing software
« Reply #1 on: September 22, 2022, 10:35:43 pm »
Hi Daniel,

How have you encoded the characters in the resource file?  I believe that they must be as wide characters to display correctly in windows controls and menus.  If they are multibyte encodings you will need to convert them into  Unicode.  I have a multi language program and the accent marks I've used for French, Spanish and Russian seem ok.  might be of help.

John Z

Also you might post examples,or screen captures, of correct and incorrect strings with various accent marks.

If you'd like to tell me the English word or few adjacent words that have the issue, I can convert to Portuguese and try them in my multilingual program to see if the same accent issue happens.
You might also check out by Pelles forum member Grincheux written using Pelles and supports French, English, German, Italian and Spanish.  The sources are available on sourceforge too as a 7z file.
« Last Edit: Yesterday at 10:51:29 am by John Z »