[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libreoffice-users] Localized Basic macros
- Subject: Re: [libreoffice-users] Localized Basic macros
- From: Johnny Rosenberg <firstname.lastname@example.org>
- Date: Sun, 10 May 2020 21:05:51 +0200
- To: LibreOffice Användare <email@example.com>
Den sön 10 maj 2020 kl 17:25 skrev Johnny Rosenberg <firstname.lastname@example.org
> Den sön 10 maj 2020 kl 15:29 skrev Regina Henschel <
>> Hi Johnny,
>> Johnny Rosenberg schrieb am 10-May-20 um 14:35:
>> > Hi!
>> > I'm playing a little with macros (my level is probably one step or two
>> > above beginner) and making extensions out of them. I found a few
>> > online and I got it to work.
>> > I don't know if I'm going to share anything in the future (because I
>> > think my extensions will fulfil anyone else's needs than my own and they
>> > are probably poorly written anyway), but if I want to do that, there's a
>> > minor problem: My macros interact with the user (usually me) in Swedish,
>> > and I guess it would be a good idea to at least write an English version
>> > for sharing with others.
>> > However, it would be nice if the extension adapts to the user's locale
>> > installed (and falls back to English when the user's locale is not
>> > available, that is in most cases). Is that possible? A link to some
>> > of some sort would be appreciated. I found nothing so far.
>> Perhaps start with the help
> I didn't even think of that… I'll have a look there first, of course.
Seems like only custom dialogues can be translated, not text in general,
such as Print or MsgBox.
I could of course create some arrays with translations and use them
depending on which UI language is selected, but it doesn't seem to be
possible for a macro to detect that. I only found things like
ThisComponent.CharLocale.Language, but that seems to be more about the
selected language for characters, and it doesn't change when I just change
the UI language.
>> Info from OpenOffice.org might be still valid:
>> There had been some issues with localization of dialogs:
>> According to https://bugs.documentfoundation.org/show_bug.cgi?id=130932
>> you need at least LO version 6.4.
> I currently run LibreOffice 220.127.116.11, so I'm fine, I guess.
>> And this issue is not yet solved:
>> It contains a test document.
> I'll have a look at that too.
>> Kind regards
> Thanks for replying! This should get me going.
> Kind regards
> Johnny Rosenberg
>> To unsubscribe e-mail to: email@example.com
>> Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
>> List archive: https://listarchives.libreoffice.org/global/users/
To unsubscribe e-mail to: firstname.lastname@example.org
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
|[libreoffice-users] Localized Basic macros||Johnny Rosenberg <email@example.com>|
|Re: [libreoffice-users] Localized Basic macros||Regina Henschel <firstname.lastname@example.org>|
|Re: [libreoffice-users] Localized Basic macros||Johnny Rosenberg <email@example.com>|
- Prev by Date: [libreoffice-users] Re: Test
- Next by Date: Re: [libreoffice-users] Localized Basic macros
- Previous by thread: Re: [libreoffice-users] Localized Basic macros
- Next by thread: Re: [libreoffice-users] Localized Basic macros