[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Localization with NSString
From: |
Paul Chany |
Subject: |
Re: Localization with NSString |
Date: |
Tue, 22 Jun 2010 19:55:58 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Richard Frith-Macdonald <richard@tiptree.demon.co.uk> writes:
> On 22 Jun 2010, at 14:59, Paul Chany wrote:
>
> Then you need to deal with localization. The standard way to do that
> in GNUstep is using the '_(X)' macro (which is a shorthand for a more
> longwinded localization call: 'NSLocalizedString (X, @"")' ).
> Renaissance effectively does this for you in the gui code it controls,
> but in your own program code you have to localize the strings you want
> localised.
>
> eg.
> GSPrintf(stdout, _(@"Hello!\n"));
I decide to follow this advice. I have now following in main.m file:
[snip..]
@implementation MyDelegate : NSObject
- (void) printHello: (id)sender
{
GSPrintf(stdout, _(@"Hello!\n"));
}
[..snip]
> That loads localised strings from the default localisation file of the
> application.
How can I create such a default localisation file? Maybe with
make_strings program? What filename should it have?
--
Regards,
Paul Chany
You can freely correct my English.
http://csanyi-pal.info
- Localization with NSString, Paul Chany, 2010/06/22
- Re: Localization with NSString, David Chisnall, 2010/06/22
- Re: Localization with NSString, Richard Frith-Macdonald, 2010/06/22
- Re: Localization with NSString,
Paul Chany <=
- Localization with the '_(X)' macro, Paul Chany, 2010/06/23
- Re: Localization with the '_(X)' macro, Nicola Pero, 2010/06/23
- Re: Localization with the '_(X)' macro, Paul Chany, 2010/06/23
- How to localize keyEquivalent="q"?, Paul Chany, 2010/06/24
- Re: How to localize keyEquivalent="q"?, Nicola Pero, 2010/06/24
- Re: How to localize keyEquivalent="q"?, Paul Chany, 2010/06/24
- Re: How to localize keyEquivalent="q"?, Nicola Pero, 2010/06/24
- Re: How to localize keyEquivalent="q"?, Robert Slover, 2010/06/24
- Re: How to localize keyEquivalent="q"?, Paul Chany, 2010/06/24
- Re: How to localize keyEquivalent="q"?, David Chisnall, 2010/06/24