nek023 / Lin-Xcode5

A Localization Manager for Xcode 5

Home Page:http://questbe.at/lin/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue of writing Old-Style ASCII Property Lists

SteveKChiu opened this issue · comments

Some of our .strings files are in Old-Style ASCII Property Lists format which is also supported by XCode. If we use Lin plugin to add missing translation during development, the new translation is added to the wrong place, result in bad-syntax format.

The "Old-Style ASCII Property Lists" only have minor difference from regular one. For example, the regular one looks like:

"Insert Element" = "Insert Element";
"ErrorString_1" = "An unknown error occurred.";

The "Old-Style ASCII Property Lists" only add two more chars:

{
"Insert Element" = "Insert Element";
"ErrorString_1" = "An unknown error occurred.";
}

You only need to make sure the new string is added before the final '}' char, and we are done.

Despite the "Old-Style ASCII Property Lists" has ASCII in name, an UTF8 encoded file is perfectly fine.