[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with localized
From: |
Dr. H. Nikolaus Schaller |
Subject: |
Re: Problem with localized |
Date: |
Sun, 29 May 2011 15:07:30 +0200 |
Am 29.05.2011 um 14:52 schrieb Sebastian Reitenbach:
> Hi,
>
> on starting up Burn.app for the first time, I notices some garbage in the
> output of the localized string, used in the Alert Panel. The localized string
> is used this way:
>
> if (!params) {
> NSRunInformationalAlertPanel(APP_NAME,
> [NSString stringWithFormat:
> _(@"AppController.runningFirstTime"), APP_NAME],
> _(@"Common.OK"),nil,nil);
> [self showPrefPanel: nil];
> }
>
> APP_NAME is defined this way:
> NSString *APP_NAME = @"Burn.app";
>
> The localized string is defined as:
> "AppController.runningFirstTime"
> = "%s seems to be running for the first time.\nPlease check the settings
> before you commence work.";
just guessing: %s is the formatting specified for a C string while %@ expects
an NSString...
If %s is applied to a NSString, it tries to interpret the iVars of the NSString
object as characters, aka "garbage".
Nikolaus
- Problem with localized, Sebastian Reitenbach, 2011/05/29
- Re: Problem with localized,
Dr. H. Nikolaus Schaller <=