-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
I18N: Add script to automatically generate scummvm.appdata.xml from .po files #4826
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but couple of changes are required.
devtools/generate-appdata.py
Outdated
| description_elem.appendChild(p_elem) | ||
|
|
||
| # paragraph 3 | ||
| p_elem = doc.createElement("p") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, turn it into a simpler template. Working with current soup of in-code tags is not practical
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed and changed the code to have an in-source copy of the template and added code to substitute specific keywords with relevant translations.
dists/scummvm.appdata.xml
Outdated
| <project_license>GPL-3.0-or-later</project_license> | ||
| <name>ScummVM</name> | ||
| <summary>Interpreter for numerous adventure games and role-playing games</summary> | ||
| <summary xml:lang="ru">Интерпретатор множества приключенческих и ролевых игр</summary> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These, and other language tags should be sorted alphabetically, so their sequence stays consistent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
…ags alphabetically
|
Thank you! |
This PR adds a script to support multilanguage in scummvm.appdata.xml. The multilanguage data is extracted from po/*.po files.
Related Discord discussion: https://discord.com/channels/581224060529148060/1086942326489895033/1086976457311531058