Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiline translations #2

Open
cristibaluta opened this issue Oct 8, 2015 · 1 comment
Open

Multiline translations #2

cristibaluta opened this issue Oct 8, 2015 · 1 comment

Comments

@cristibaluta
Copy link
Owner

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
Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant