summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-03-05 10:24:32 +0300
committerAndrew Dolgov <[email protected]>2019-03-05 10:24:32 +0300
commit273ad083790cbd3cc83aeda5e35334795a7db7e2 (patch)
tree83c46d9738a1410f0350a15c9c4e27e87e7c06a6
parentbaa84a696ae0cf3166f540e0475cc2522d2fb105 (diff)
switch to base plugin gettext methods
-rwxr-xr-x[-rw-r--r--]init.php6
-rwxr-xr-xupdate-translations.sh2
2 files changed, 4 insertions, 4 deletions
diff --git a/init.php b/init.php
index 33224f3..bdf5df1 100644..100755
--- a/init.php
+++ b/init.php
@@ -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() {