Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Thanks Andrew,
Please send me your ideas and examples.

My idea is also to use it in an extension.

I have upload my ides of an extension here
http://blog.magenta-aps.dk/wp-content/uploads/2011/11/Review.oxt .

The extension creates a new toolbar called Review. The right most icon
starts a macro with a dialog that is localized (so far only English and
Danish is included). All localization stuff is in the module "Localization".

Problems so faris:

   - When I read the DialogStrings_xx_YY.properties i have some problems
   with encoding. Only files created on the same platform shows right (Danish
   language consist of some non-ascii characters æ, ø and å.
   Currently this reads with wrong encoding on Windows (use Danish version
   to see the problem).
   How can that be solved?
   - Effectiveness. I'm not sure this is the most effective way and I'm
   affraid that with many strings it will run slow. I haven't tried with more
   than these very few strings.

Missing work to be done (not problems)

   - Error handling
   - Better way to load only relevant strings (only partly implemented so
   far)
   - Default language should be from DialogString_xx_YY.default and not
   hardcoded
   - Script to generate Addons.xcu and /Office/UI/XYZWindowState.xcu

Feel free to tell me what you think of my solution.


Cheers,
Leif Lodahl
The Danish Team

2011/11/30 Andrew Douglas Pitonyak <andrew@pitonyak.org>


On 11/29/2011 03:37 AM, Leif Lodahl wrote:

Hi all,
I often need to have text strings other that dialog labels. This can be
error messages, status line messages and msgbox() text.

Does anyone here has experience with developing localizable macros?

It is possible to localize dialogs, the but is there a some kind of best
practice method to access these strings from a Basic macro?

I have found a way to do it, but if there is an official way of doing it,
I
would like to hear about it.


Cheers,
Leif Lodahl

 I have only done this in extensions. I can send you an example if you
desire..... But... I need to take a dog out to go to the bathroom.


--
Andrew Pitonyak
My Macro Document: 
http://www.pitonyak.org/**AndrewMacro.odt<http://www.pitonyak.org/AndrewMacro.odt>
Info:  http://www.pitonyak.org/oo.php


--
For unsubscribe instructions e-mail to: users+help@global.libreoffice.**
org <users%2Bhelp@global.libreoffice.org>
Problems? http://www.libreoffice.org/**get-help/mailing-lists/how-to-**
unsubscribe/<http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/>
Posting guidelines + more: http://wiki.**documentfoundation.org/**
Netiquette <http://wiki.documentfoundation.org/Netiquette>
List archive: 
http://listarchives.**libreoffice.org/global/users/<http://listarchives.libreoffice.org/global/users/>
All messages sent to this list will be publicly archived and cannot be
deleted



-- 
For unsubscribe instructions e-mail to: users+help@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.