Tk Source Code

View Ticket
Login
Ticket UUID: 2978063
Title: Localizing application first menu entries
Type: Patch Version: None
Submitter: zdia Created on: 2010-03-28 18:00:56
Subsystem: 11. Aqua Menus Assigned To: aku
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2022-03-13 01:21:32
Resolution: None Closed By: nobody
    Closed on:
Description:
The hardcoded menu entries in the first application menu are localized by :NSLocalizedString(@"string", nil), e.g.

 [NSString stringWithFormat:NSLocalizedString(@"About %@", nil), aboutName]

so that the file Localizable.strings in the language folder /Resources/<lang>.lproj can substitute the menu entries

In the attachment there is a numbered extract with the changed lines in  tkMacOSXMenus.c

I will look into other files, too, but what is done is done ...

Great project!

Zbigniew
User Comments: kevin_walzer added on 2022-03-13 01:21:32:
Are there "strings" files available for the various languages Tk supports?

tberg added on 2022-03-09 12:28:58:

This ticket is a related issue concerning tk_messageBox also having hard-coded english text.


zdia added on 2010-03-29 01:00:56:

File Added - 368525:  tkMacOSXMenus.c

Attachments: