Xcode should warn you about such errors, should it not? Please file a bug
report / enhancement request via the Apple Bug Reporter:
<http://developer.apple.com/bugreporter/>
Thanks!
j o a r
On 12 apr 2011, at 09.32, Dave DeLong wrote:
> The best way to discover these sorts of errors is to run "plutil
> /path/to/file.plist". It uses the default option (-lint), which checks the
> file for syntax errors. This works because a .strings file is really just a
> plist in the old school non-xml format. If it finds an error, it'll tell you:
>
> 2011-04-12 09:31:15.575 plutil[6473:903] CFPropertyListCreateFromXMLData():
> Old-style plist parser: missing semicolon in dictionary.
> Localizable.strings: Unexpected character / at line 1
>
> Cheers,
>
> Dave
>
> On Apr 12, 2011, at 8:57 AM, Michael Crawford wrote:
>
>> Three missing semi colons, in fact.
>>
>> Thanks.
>>
>> -Michael
>>
>> On Apr 12, 2011, at 11:36 AM, Roy Lovejoy wrote:
>>
>>> You've got at least one typo in your string file. That's all it takes.
>>>
>>> Look for a missing semi colon.
>>>
>>> Handcrafted on my iPhone
>>>
>>> On Apr 12, 2011, at 8:23 AM, Michael Crawford <[email protected]>
>>> wrote:
>>>
>>>> I'm trying to localize an app that I have currently selling on the Mac
>>>> app-store. I have taken the following steps:
>>>>
>>>> 1. Renamed my existing localization directory from "English.lproj" to
>>>> "en.lproj"
>>>> 2. Updated the existing localization settings for my main nib file from
>>>> English to en
>>>> 3. Created a new file named Localized.strings in UTF-16 format
>>>> 4. Added Localized.strings to en.lproj directory
>>>> 5. Added Localized.strings to project file
>>>> 6. Populated Localized.strings file with typical key-value pairs for
>>>> english
>>>> 7. Created my own macro for calling localizedStringForKey because I didn't
>>>> want more than a single argument
>>>> #define MCLocStr(key) [[NSBundle mainBundle] localizedStringForKey:(key)
>>>> value:@"" table:nil]
>>>> 8. Changed the value for the "Localization native development region" key
>>>> from "English" to "en" in my info.plist file
>>>>
>>>> I think that is it. When I run, substitutions just are not happening.
>>>> Here is an example.
>>>>
>>>> http://dl.dropbox.com/u/4920112/Screenshots/2.PNG
>>>>
>>>> What minute obscure little detail have I left out or forgotten?
>>>>
>>>> -Michael
>>>> _______________________________________________
>>>>
>>>> Cocoa-dev mailing list ([email protected])
>>>>
>>>> Please do not post admin requests or moderator comments to the list.
>>>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>>>
>>>> Help/Unsubscribe/Update your Subscription:
>>>> http://lists.apple.com/mailman/options/cocoa-dev/roy%40amalgamatedcoders.com
>>>>
>>>> This email sent to [email protected]
>>
>> _______________________________________________
>>
>> Cocoa-dev mailing list ([email protected])
>>
>> Please do not post admin requests or moderator comments to the list.
>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/cocoa-dev/davedelong%40me.com
>>
>> This email sent to [email protected]
>
> _______________________________________________
>
> Cocoa-dev mailing list ([email protected])
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/joar%40joar.com
>
> This email sent to [email protected]
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]