diff options
author | Andrew Dolgov <[email protected]> | 2019-03-05 10:24:32 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-03-05 10:24:32 +0300 |
commit | 273ad083790cbd3cc83aeda5e35334795a7db7e2 (patch) | |
tree | 83c46d9738a1410f0350a15c9c4e27e87e7c06a6 | |
parent | baa84a696ae0cf3166f540e0475cc2522d2fb105 (diff) |
switch to base plugin gettext methods
-rwxr-xr-x[-rw-r--r--] | init.php | 6 | ||||
-rwxr-xr-x | update-translations.sh | 2 |
2 files changed, 4 insertions, 4 deletions
@@ -26,13 +26,13 @@ class Time_to_Read extends Plugin { return 2; } - /*function hook_prefs_tab($args) { + function hook_prefs_tab($args) { if ($args != "prefPrefs") return; print "<div dojoType='dijit.layout.AccordionPane' - title=\"<i class='material-icons'>photo</i> ".P__($this, 'Test-Test')."\">"; + title=\"<i class='material-icons'>photo</i> ".$this->__('Test-Test')."\">"; print "</div>"; - }*/ + } } diff --git a/update-translations.sh b/update-translations.sh index 7584d36..c653f90 100755 --- a/update-translations.sh +++ b/update-translations.sh @@ -1,7 +1,7 @@ #!/bin/sh TEMPLATE=time_to_read.pot -xgettext -kP__:2 -L PHP -o $TEMPLATE *.php +xgettext -k__ -L PHP -o $TEMPLATE *.php xgettext -k__ -L Java -j -o $TEMPLATE *.js update_lang() { |