OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

localization of addon's error messages and other strings

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
sergei_r
General User
General User


Joined: 25 Dec 2006
Posts: 25

PostPosted: Wed Sep 19, 2007 5:09 am    Post subject: localization of addon's error messages and other strings Reply with quote

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
View user's profile Send private message
probe1
Moderator
Moderator


Joined: 18 Aug 2004
Posts: 2560
Location: Chonburi Thailand Asia

PostPosted: Wed Sep 19, 2007 8:15 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group