summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfox <[email protected]>2019-03-01 11:39:17 +0000
committerfox <[email protected]>2019-03-01 11:39:17 +0000
commit3dd4497ad5b6ec63292e844f5760f9012c0cade3 (patch)
tree95ae73d6e3debbefac78b27d2a37be3d45966346
parentb3688dacd15e75b379609d7a91b2439074c59d05 (diff)
Update page 'MakingPlugins'
-rw-r--r--MakingPlugins.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/MakingPlugins.md b/MakingPlugins.md
index f116bee..96e58b8 100644
--- a/MakingPlugins.md
+++ b/MakingPlugins.md
@@ -16,12 +16,12 @@ Some example plugins are available in the [samples](https://git.tt-rss.org/git/t
See ``time_to_read`` plugin for a complete example here: https://git.tt-rss.org/fox/ttrss-time-to-read
-### How to implement
+### Implementation
- Plugin translations are placed in a separate Gettext domain (name equals lowercase plugin class).
- Translation (.po) file in ``(plugin dir)/locale/LANG/`` name should correspond to Gettext domain name.
-### How to use
+### Using gettext
- On the PHP side, either use ``P__``, ``P__ngettext``, etc. shortcut functions defined in ``classes/pluginhost.php`` or call ``_dgettext`` group of functions directly.
- On the Javascript side, translations are combined together, so you can use the usual ``__()`` shortcut function.