Version Description
- Fixed bug when absolute path used to get plugins
- Added loco_plugins_data filter
- Added theme Template Name header extraction
- Minor copy amends
Download this release
Release Info
Developer | timwhitlock |
Plugin | Loco Translate |
Version | 2.0.2 |
Comparing to | |
See all releases |
Code changes from version 2.0.1 to 2.0.2
- lib/compiled/gettext.php +1 -1
- loco.php +2 -2
- pub/css/admin.css +1 -1
- readme.txt +7 -1
- src/config/Model.php +2 -2
- src/gettext/Extraction.php +6 -2
- src/hooks/AdminHooks.php +1 -6
- src/mvc/AdminController.php +6 -1
- src/package/Header.php +1 -1
- src/package/Listener.php +20 -13
- src/package/Plugin.php +55 -35
- src/test/WordPressTestCase.php +2 -0
- tpl/admin/init/init-prompt.php +5 -6
- tpl/admin/layout.php +1 -9
lib/compiled/gettext.php
CHANGED
@@ -13,7 +13,7 @@
|
|
13 |
', $lines); } return trim($comment, '/
|
14 |
|
15 |
', $block) as $line) { if (false !== ($i = strpos($line, ':'))) { $key = substr($line, 0, $i); $val = substr($line, ++$i); $header[trim($key, '/*
|
16 |
-
', 'r' => '
|
17 |
', $a)); } else { $index = count($this->exp); $this->reg[$key] = $index; $this->exp[] = $entry; if (isset($this->dom[$domain])) { $this->dom[$domain]++; } else { $this->dom[$domain] = 1; } } return $index; } private function push($rule, array $args, $comment = '', $ref = '') { $s = strpos($rule, 's'); $p = strpos($rule, 'p'); $c = strpos($rule, 'c'); $d = strpos($rule, 'd'); foreach ($args as $i => $tokens) { if (1 === count($tokens) && is_array($tokens[0]) && T_CONSTANT_ENCAPSED_STRING === $tokens[0][0]) { $args[$i] = loco_decapse_php_string($tokens[0][1]); } else { $args[$i] = null; } } if (!isset($args[$s])) { return null; } $key = $msgid = $args[$s]; if (!is_string($msgid)) { return null; } $entry = array('id' => '', 'source' => $msgid, 'target' => ''); if (is_int($c) && isset($args[$c])) { $entry['context'] = $context = $args[$c]; $key .= '
|