nek023 / Lin-Xcode5

A Localization Manager for Xcode 5
http://questbe.at/lin/
MIT License
969 stars 77 forks source link

Issue of writing Old-Style ASCII Property Lists #4

Closed SteveKChiu closed 9 years ago

SteveKChiu commented 11 years ago

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.