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

Fully support of Po specification #85

Open
15 tasks
pleonex opened this issue Jan 29, 2019 · 0 comments
Open
15 tasks

Fully support of Po specification #85

pleonex opened this issue Jan 29, 2019 · 0 comments

Comments

@pleonex
Copy link
Member

pleonex commented Jan 29, 2019

According to the detailed specification from Pology, the current implementation of the Po format and its converter doesn't fully implement the PO specification. That specification is based on several years of experience so it looks legit.

Describe the solution you'd like
Features and fixes to implement:

  • File header comments as translator comments in the Po header
  • Use "Original" field instead of "Translated" if the fuzzy flag is present.
  • Convert flags into a collection to easily check, add and remove
  • Differenciate if a field is null or empty (empty context vs null context)
  • Remove the lang constructor argument to support Po templates (.pot)
  • Force UTF-8 encoding
  • Set fuzzy flag in a new Po header for showing it hasn't been translated yet
  • Set an extension header with the Po generator to Yarhl
  • Wrap all the comments (anything starting with #) to 80 columns. We will wrap original and translated with new lines.
  • Support obselete entries at the end of the file for removed entries: #~
  • Support reading multi-line wrapped comments
  • Write and read previous context and original with multi-lines
  • Escape tabs and backslashes
  • Support different line breaks: \r\n, \n, \r
  • Support of plural entries

All this features should be validated at least with Weblate and PoEditor.

Related to #80

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

1 participant