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
spec: Add support for source locales #351
Conversation
|
With the tag name style change and the para typo fixed, I think this is fine. If we would go with the |
This allows specifying the locale of the source translatable strings in a component. The vast majority of the time, this is `en_US`, but that’s not guaranteed. Add a `source_locale` attribute to allow changing this default. The attribute has been added to the `<translation/>` element so that it can be used by the metadata generator to synthesize a `<lang/>` element for the source locale. It’s not been added to the `<languages>` element, as it’s assumed that element is auto-generated and hence can include the source locale explicitly as a `<lang/>` element. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: ximion#345
4fbc321
to
c72f0ce
Compare
Sure, I’ve changed the spec wording and changes to go with that. I’ll start working on the appstream-compose changes for this now, so please shout if something still looks wrong in the spec! |
Done! |
|
Looks good, except for the memory leak ^^ |
This reflects the new `source_locale` attribute added to the specification. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: ximion#345
Support parsing the new `<translation source_locale=""/>` attribute, and turn it into a fake `<lang/>` entry at 100% for the source locale. Add tests. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Fixes: ximion#345
c57d367
to
b027012
Compare
Makes sense. Branch updated :) |
|
Looks good, thank you for working on this! :-) |
This allows specifying the locale of the source translatable strings
in a component. The vast majority of the time, this is
en_US, butthat’s not guaranteed. Add a
source-localeattribute to allow changingthis default.
Signed-off-by: Philip Withnall pwithnall@endlessos.org
Helps: #345