Problem/Motivation
Follow-up from #2107427: Regression: Language names should display in their native names in the language switcher block.
Language manager interface specifies implementation details for getLanguage on the interface.
Proposed resolution
- Update the docs on the method on the interface to remove implementation details.
- Update the docs on the implementation putting the implementation details there.
Remaining tasks
- (novice) git instructions for creating patch | Contributor task documentation for creating a patch
- Review patch to check it fixes the issue, the change is properly documented and for coding standards. Make sure patch stays within scope of just this issue. | Contributor task documentaiton for reviewing patch
User interface changes
None.
API changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | interdiff.txt | 735 bytes | holly.ross.drupal |
| #5 | juanca.patch | 1.41 KB | holly.ross.drupal |
Comments
Comment #1
holly.ross.drupal commentedI'm sprinting at NYCCamp and going to work on this patch right now.
Comment #2
holly.ross.drupal commentedComment #3
holly.ross.drupal commentedUpdated docs in LanguageManagerInterface to remove reference to sort method. Did not update LangauageManager.php with sort method because the implementation is only for sites that are language unaware...so the way the language array is built to return is to get the site default, then adds special system languages. THEN, no sort is applied.
Comment #4
tstoecklerSo I found this code in
ConfigurableLanguageManager:So we should probably update that comment to mention that it sorts by title as well. (It does :-))
Comment #5
holly.ross.drupal commentedUpdated ConfigurableLanguageManager.php with sort description.
Comment #6
tstoecklerYay, awesome! Thanks for the interdiff, very helpful.
Comment #7
yesct commentedlooks good to me too. I think that *is* really where the sort happens.
(also setting the author back to alimac. seems there is a d.o bug where if someone with admin priv uses the node edit to comment on an issue, that it changes the *author* of the issue to be the person commenting/editing)
Comment #10
webchickOops. Forgot to set the issue fixed the other day in all the excitement. :D
Committed and pushed to 8.x. Thanks!
Comment #11
gábor hojtsySuperb, thanks all. Removing from the D8MI sprint too.
Comment #12
gábor hojtsy