On #2148255: [meta] Make better D8 api.d.o landing page, linked to high-level overview topics, and put it in Core api.php files, we made a patch that included a stub Topic page for api.drupal.org (i.e., a @defgroup) titled:
Internationalization and translation
This can be found in file core/modules/system/core.api.php where it says
@defgroup i18n
The documentation to go on this page needs to be written. The idea is:
a) Write a few paragraphs about the topic.
b) Link to more detailed documentation on
https://drupal.org/developing/api/8
c) If the more detailed documentation does not yet exist, create stub page(s), link to the stub pages, and add a note to this issue stating that the stub pages need to be filled out.
d) If the topic has related classes, interfaces, and functions -- appropriate for an overview -- add
@ingroup i18n
to their documentation headers. That will make these classes etc. show up on the Topic page on api.drupal.org. Only include classes/functions that are appropriate for an overview page please!
For more info -- documentation standards for @defgroup/@ingroup:
https://drupal.org/coding-standards/docs#defgroup
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | interdiff.txt | 3.07 KB | jhodgdon |
| #6 | 2216541-i18n-topic-6.patch | 8.72 KB | jhodgdon |
Comments
Comment #1
jhodgdonComment #2
jhodgdonTime to write another one!
Comment #3
jhodgdonHere's a patch.
Note that it links to the info_types topic, which is defined in another issue that is waiting to be reviewed/committed. #2216559: Repurpose @defgroup/topic docs for Architecture Overview. The rest I think should be fairly self-explanatory. Hopefully also correct. :)
Comment #4
gábor hojtsyLooks generally good, thanks for working on this! Some comments:
formatPlural() or t() global functions or methods are supported (not translate()!); most classes have a t() injected; for consistency, best to use the StringTranslationTrait: https://www.drupal.org/node/2079797
date_format
Drupal.formatPlural() should also be mentioned.
Comment #5
plachLooks good to me :)
Comment #6
jhodgdonGreat, thanks for the reviews! I was sure there were some typos and that I'd probably gotten something not quite right. :)
Here's a fix for the issues in #4.
Comment #7
gábor hojtsyLooks good to me.
Comment #8
webchickCommitted and pushed to 8.x. Thanks!
Comment #11
jhodgdonSilly testbot! The patch has already been committed, no wonder it didn't apply!
Comment #13
gábor hojtsy