Tk Source Code

View Ticket
Login
2022-03-13
01:21 Ticket [2978063fff] Localizing application first menu entries status still Open with 3 other changes artifact: 61dde71385 user: kevin_walzer
2022-03-09
12:28 Ticket [2978063fff]: 7 changes artifact: cf74aa157a user: tberg
2010-03-29
01:00 Ticket [2978063fff]: 4 changes artifact: e5db8b02b3 user: zdia
01:00 Add attachment tkMacOSXMenus.c to ticket [2978063fff] artifact: 35c2011f77 user: zdia
2010-03-28
18:00 New ticket [2978063fff] Localizing application first menu entries. artifact: ab00b38112 user: zdia

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: