About-menu

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

lcgrs
Posts: 19
Joined: Thu Sep 05, 2013 5:44 pm

About-menu

Post by lcgrs »

I have been done some testing with LiveCode, but now I have one question: is is possible to translate the "About-menu". In the compiled program, it still shows "About application", I would like to have "Over" (in Dutch).

If I develop a application in Dutch, I like to have the About-menu in Dutch.

Thanks!
Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: About-menu

Post by Mark »

Hi,

Open the Menu Builder en look at the Help menu. The last item in the Help menu should say "About". Change it to "Over" and it should appear as "Over" in the menu bar.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: About-menu

Post by jacque »

Changing the label will remove the item from the menu bar. Instead, use the newer menu item string that allows you to include a tag. A tag acts like a button label; the name of the item is still "About" but the user will see the tag you enter. The syntax is:

[<flags>] <label> ['/' <accelerator> ['|' <tag>]]

Only the label is required (that's actually the name) but you can add a tag this way:

About MyApp/|Over
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: About-menu

Post by Mark »

In older version of Revolution/LiveCode, the menu builder works as I described in my previous post. Apparently, it no longer works correctly. That's a bug.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: About-menu

Post by jacque »

Actually the menu syntax changed when tags were added a few versions ago.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
lcgrs
Posts: 19
Joined: Thu Sep 05, 2013 5:44 pm

Re: About-menu

Post by lcgrs »

I have found this about localization
http://forums.livecode.com/phpBB2/viewtopic.php?t=635
It tells that OSX will handle the localization of the 'About'-menu automatically.
Anybody with more information about the proj folder? Livecode adds an Dutch.proj file, but this seems not to be enough to get things working...
Where can I find more info about localization?

Thanks for any hints!
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: About-menu

Post by Klaus »

Goedenavond lcgrs,

the trick with the empty .PROJ folders will only do the following for you:
1. Localize QUIT string in the appropriate menu-item in the app menu: German example -> NameOfApp beenden
2. Same for the TITLE of the help menu: German example -> Hilfe
3. Same for the ABOUT string of the menu-item in the APP menu: German example -> Über NameOfApp

Everything else needs to be set up by you. :D


Best

Klaus
lcgrs
Posts: 19
Joined: Thu Sep 05, 2013 5:44 pm

Re: About-menu

Post by lcgrs »

Klaus wrote:the trick with the empty .PROJ folders will only do the following for you:
1. Localize QUIT string in the appropriate menu-item in the app menu: German example -> NameOfApp beenden
2. Same for the TITLE of the help menu: German example -> Hilfe
3. Same for the ABOUT string of the menu-item in the APP menu: German example -> Über NameOfApp
Thats great! This is what I am looking for! :)
Only... At this stage, "this trick" doesn't work for me. I found an emty 'Dutch.proj' map in the compiled Livecode app, but the 'About'-menu is still in English. So I suppose that I do something wrong, or should do something more to get it working?

So any hints?
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: About-menu

Post by Klaus »

Dag lcgrs,

hm, that used to work, but I did not build a standalone for a long time...

Did you set up the menus as required?
I mean, do you really have a HELP menu etc.?


Best

Klaus
lcgrs
Posts: 19
Joined: Thu Sep 05, 2013 5:44 pm

Re: About-menu

Post by lcgrs »

Did you set up the menus as required?
I mean, do you really have a HELP menu etc.?
I used the menu builder to create the menu:
Attachments
Screen dump window menu builder
Screen dump window menu builder
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: About-menu

Post by jacque »

Is the correct locale set in the Mac System Preferences (Language and Region pane)?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
lcgrs
Posts: 19
Joined: Thu Sep 05, 2013 5:44 pm

Re: About-menu

Post by lcgrs »

Everything seems OK for me:
  • Language: Dutch
  • Region: Belgium
lcgrs
Posts: 19
Joined: Thu Sep 05, 2013 5:44 pm

Re: About-menu

Post by lcgrs »

I am still stuck with my problem concerning this about-menu... :(
When there is no possibility to translate this about-menu, I will have to conclude that Livecode can only be used for development of apps in English???
That means that I wil have to drop Livecode... :(
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: About-menu

Post by jacque »

Is the About item at the very bottom of the Help menu? Did you alter it at all? There are some specific rules about how that menu item must be set up:

It must be the last menu item in the Help menu
It must be preceded by a hyphen on the previous line
It must start with the word "About"
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
lcgrs
Posts: 19
Joined: Thu Sep 05, 2013 5:44 pm

Re: About-menu

Post by lcgrs »

Three times "Yes"!

The problem is not that it doesn't works, but that the About menu remains in English (only the Help menu is in Dutch). So: what to do to have an About-menu in Dutch (or French, or any other language)…???
Post Reply