| View previous topic :: View next topic |
| Author |
Message |
sergei_r General User

Joined: 25 Dec 2006 Posts: 25
|
Posted: Wed Sep 19, 2007 5:09 am Post subject: localization of addon's error messages and other strings |
|
|
| How am I supposed to localize my error messages and some other strings which I use in my Addon? Should I write them in Addons.xcu and then dependent on the locale do some if's? Or put them in some .po o .res files? Or somehow else? I have read Developer's Guide and I don't understand anything about localization. |
|
| Back to top |
|
 |
probe1 Moderator


Joined: 18 Aug 2004 Posts: 2465 Location: Chonburi Thailand Asia
|
Posted: Wed Sep 19, 2007 8:15 am Post subject: |
|
|
Run into the same problem - and copied a simple solution from DicOOo.sxw (find it on www.ooomacros.org).
In this code you can find a routine which determines the OOo GUI language, then run a makro to set an array of needed strings to a lang depended value.
This is OOo/StarBASIC - hope this helps you _________________ Cheers
Winfried
My Macros
DateTime2 extension: insert date, time or timestamp, formatted to your needs |
|
| Back to top |
|
 |
|