Subject: StringSet adaptability to language
From: Saint-Denis (email@example.com)
Date: Sat Nov 18 2000 - 20:17:22 CST
Some language like english, french and spanish to name a few, are spoken in different countries. The user's computer produce different localization string for each basic language and country combination.
AbiWord adapt it's menu and toolbar to the localization string. For example, if the localization string is "fr-CA" for french canadian, the program first search a "fr-CA" language. It can't find that language, since it is not supported. The program then search for the "fr" default language. Finding the "fr-FR" default language, the menus and toolbar will be set to French. This algorithm makes the program more user friendly than having to configure the "AbiWord.Profile" configuration file. The configuration file can be used, if the user want to override the language setting.
The StringSet does not completly follow this algorithm. It does not search for the default language. The patch I am proposing does it. So now, the dialog strings follow the same language as menus instead of reverting to the builtin english dialogs.
The bulk of StringSet language selection code is implented on platform specific code. For me, it is on file ap_Win32App.cpp on Windows. Other platforms are quite similar, so I made changes for those too, even thought I could not test it. The patch is in two files, one for Windows the other for Unix, BeOS and QNX. The Windows file should be applied first, it contains also some cross-platform code. Developpers on other platforms may then test it.
This archive was generated by hypermail 2b25 : Sat Nov 18 2000 - 20:19:58 CST