Export more ILanguage attributes in API
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Undecided
|
Adi Roiban |
Bug Description
In reporting statistics for Ubuntu translations it would help to expose more Language information using LP API.
Right now, we are using an sql dump provided by Danilo http://
The Ubuntu translation team has started a wiki page to gather LP API requirements for helping in generating statistics:
https:/
For the ILanguage it would be nice to have this attributes:
abbreviate_
code : ro
english_name : Romanian
plural_expression : (n == 1 ? 0: (((n % 100 > 19) || ((n % 100 == 0) && (n != 0))) ? 2: 1))
plural_forms : 3
visible : True
For ILanguageSet it would be nice to have a getAll and search method.
Related branches
- Данило Шеган (community): Approve (code)
- Brad Crittenden (community): Abstain (code)
-
Diff: 284 lines (+151/-35)3 files modifiedlib/lp/services/worlddata/interfaces/language.py (+57/-29)
lib/lp/services/worlddata/model/language.py (+27/-6)
lib/lp/services/worlddata/stories/webservice/xx-language.txt (+67/-0)
Changed in launchpad-foundations: | |
assignee: | nobody → Adi Roiban (adiroiban) |
description: | updated |
description: | updated |
Changed in launchpad-foundations: | |
status: | New → In Progress |
Fixed in stable r10470 <http:// bazaar. launchpad. net/~launchpad- pqm/launchpad/ stable/ revision/ 10470>