Localizable.strings icon indicating copy to clipboard operation
Localizable.strings copied to clipboard

Multiline translations

Open cristibaluta opened this issue 10 years ago • 1 comments

Right now if a line doesn't begin with " and ends in "; is considered a comment, so it is not parsed. If the line begins with " but doesn't end in "; it should add the next line as part of the translation, and so on till a line ends in "; Also, investigate the possibility of loading the localization file as a NSDictionary and after finding the keys get the value from dictionary. You still need to deal with the remaining lines since they'll be considered comments and write back to the file.

cristibaluta avatar Oct 08 '15 18:10 cristibaluta

This is too complicated, now the lines can also contain comments which makes it even harder to detect the end of line. For the same reason reading the file as a NSDictionary will lose formatting and comments so is not a good path.

cristibaluta avatar Oct 12 '16 06:10 cristibaluta