[Wikidata-bugs] [Maniphest] [Commented On] T73512: create filter by language that can be applied to objects before passing to serialization

2014-11-28 Thread JanZerebecki
JanZerebecki added a comment. Part of this was discussed at: https://github.com/wmde/WikibaseDataModel/pull/272#discussion_r19963343 TASK DETAIL https://phabricator.wikimedia.org/T73512 REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign . To

[Wikidata-bugs] [Maniphest] [Commented On] T73512: create filter by language that can be applied to objects before passing to serialization

2014-11-28 Thread JanZerebecki
JanZerebecki added a comment. Part of this was discussed at: https://github.com/wmde/WikibaseDataModel/pull/272#discussion_r19963343 TASK DETAIL https://phabricator.wikimedia.org/T73512 REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign . To

[Wikidata-bugs] [Maniphest] [Commented On] T73512: create filter by language that can be applied to objects before passing to serialization

2014-11-28 Thread JanZerebecki
JanZerebecki added a comment. Do we try to transliterate for each fall back language in the chains if that language is not present? Do we for the possible sources of a thusly requested tranliteration try do language fall back? Probably not. Do we recursively tranliterate? Probably not. Find out

[Wikidata-bugs] [Maniphest] [Commented On] T73512: create filter by language that can be applied to objects before passing to serialization

2014-11-28 Thread JanZerebecki
JanZerebecki added a comment. Do we try to transliterate for each fall back language in the chains if that language is not present? Do we for the possible sources of a thusly requested tranliteration try do language fall back? Probably not. Do we recursively tranliterate? Probably not. Find out

[Wikidata-bugs] [Maniphest] [Commented On] T73512: create filter by language that can be applied to objects before passing to serialization

2014-12-01 Thread daniel
daniel added a comment. @jan: a good entry point is probably LanguageFallbackChain::extractPreferredValue() TASK DETAIL https://phabricator.wikimedia.org/T73512 REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign . To: daniel Cc: JanZerebecki

[Wikidata-bugs] [Maniphest] [Commented On] T73512: create filter by language that can be applied to objects before passing to serialization

2014-12-02 Thread JanZerebecki
JanZerebecki added a comment. Consider using LanguageFallbackChain as is instead of proposed AcceptLanguageSet and Tranliterator. TASK DETAIL https://phabricator.wikimedia.org/T73512 REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign . To: J

[Wikidata-bugs] [Maniphest] [Commented On] T73512: create filter by language that can be applied to objects before passing to serialization

2014-12-02 Thread daniel
daniel added a comment. I suggest an EntityLocalizer service as follows: ``` interface EntityLocalizer { /** ** @return Entity **/ public function localizeEntity( Entity $e, LanguageFallbackChain $chain ); } ``` TASK DETAIL https://phabricator.wikimedia.org/T73512 REPLY HAND

[Wikidata-bugs] [Maniphest] [Commented On] T73512: create filter by language that can be applied to objects before passing to serialization

2014-12-02 Thread JanZerebecki
JanZerebecki added a comment. That interface and its implementation would reside in WikibaseRepo. TASK DETAIL https://phabricator.wikimedia.org/T73512 REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign . To: JanZerebecki Cc: JanZerebecki, dan