Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
On my mission to give every interface some more context, here's LanguageInterface . The change is very small but meaningful -- there's a wall of text already just needs a link.
Comment | File | Size | Author |
---|---|---|---|
#13 | 2533254-13.patch | 451 bytes | quietone |
lidocs.patch | 372 bytes | chx | |
Comments
Comment #1
jhodgdonI'm not against this change, but I'm wondering if it really improves the documentation much.
That topic is all about the translation/internationalization API, which actually only passes around $langcode. The topic says nothing about language classes (what they're for, when/why you'd use them, how you get them, etc.).
So I think if we're going to add an @ingroup, we need to do one of the following:
a) Make a new one for the language system
b) Add a section to the i18n topic we have now to describe the language system.
We may have some docs on one of the language manager classes somewhere about what the language classes are too; if so maybe that would be a better thing to do (@see this manager class instead of @ingroup something)?
Comment #2
Gábor HojtsyComment #3
jhodgdonNeeds work for #1. Please decide which option (a) or (b) is better and either implement or ask for help. I just don't think that this interface is related to this topic, as written... Thanks!
Comment #4
chx CreditAttribution: chx commentedComment #13
quietone CreditAttribution: quietone as a volunteer commentedI looked at the other interfaces in the i18n group and the documentation consists of a summary line and the @ingroup. Is that sufficient for this as well.
Comment #14
jibranSeems straightforward.
Comment #15
catch#2533254-1: LanguageInterface lacks @ingroup i18n still seems to be relevant here - the i18n docs don't really mention the language system (I found one reference), I think we should at least add a follow-up for that. Also this is a task.
Comment #16
catchComment #17
quietone CreditAttribution: quietone as a volunteer commentedFollow up added. #3200269: Expand the documentation of the language system in i18n.
Comment #18
jibran#15 is addressed to back to RTBC.
Comment #21
catchCommitted/pushed to 9.2.x and cherry-picked to 9.1.x, thanks!