GNU gettext - Bugs: bug #48903, xgettext: Add support for...
You are not allowed to post comments on this tracker with your current authentication level.
bug #48903: xgettext: Add support for ClutterScript
Submitter: | Philip Withnall <drbob> | ||
Submitted: | Thu 25 Aug 2016 06:22:10 PM UTC | ||
Category: | Other | Severity: | 3 - Normal |
Item Group: | None | Status: | None |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Open |
Wed 31 Aug 2016 12:55:47 PM UTC, comment #2: |
Philip Withnall <drbob>![]() |
Sat 27 Aug 2016 03:54:43 PM UTC, comment #1: While the patch looks reasonable, I would like to see JSON+ITS being implemented at some point:
|
Daiki Ueno <ueno>![]() |
Thu 25 Aug 2016 06:22:10 PM UTC, original submission:
ClutterScript is a UI definition language for the Clutter toolkit, based on JSON. It allows marking translatable strings by adding a ‘translatable’ attribute to an object, and putting the string to be translated in a ‘string’ attribute. Translations are looked up by Clutter at runtime, rather than being merged back into the ClutterScript file.
|
Philip Withnall <drbob>![]() |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 3 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2016-11-27 | haible | Category | None | ![]() |
Other |
2016-10-04 | drbob | Attached File | - | ![]() |
Added 0001-xgettext-Add-support-for-ClutterScript.patch, #38663 |
2016-08-25 | drbob | Attached File | - | ![]() |
Added 0001-xgettext-Add-support-for-ClutterScript.patch, #38357 |
I agree that JSON+ITS would be a better long term solution. I don’t currently have time to work on it, but have requested that it get put in the roadmap for our current project at work, which will hopefully result in me getting time to work on it in some weeks’ time.
I don’t believe there is a JSONPath implementation for json-c. The only JSON library I could find with JSONPath support is json-glib, but that brings in a lot of dependencies (and circular ones) for gettext. It should be possible to implement a JSONPath parser internally without too much difficulty (it’s not a complex standard; in fact, it’s not a standard at all, but merely a suggestion on a web page, which makes implementing it a little interesting — various bits of it are ill-defined).