-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbase.php
More file actions
36 lines (31 loc) · 736 Bytes
/
base.php
File metadata and controls
36 lines (31 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/**
* @package Crowdin
* @author Alan Hardman <alan@phpizza.com>
* @version 1.0.0
*/
namespace Plugin\Crowdin;
class Base extends \Plugin
{
protected $locale = "ach-UG";
protected $jsCode = <<<EOT
<script type="text/javascript">
var _jipt = [];
_jipt.push(['project', 'phproject']);
</script>
<script type="text/javascript" src="//cdn.crowdin.com/jipt/jipt.js"></script>
EOT;
/**
* Initialize the plugin
*/
public function _load()
{
$f3 = \Base::instance();
$f3->mset([
"LOCALES" => "app/plugin/crowdin/dict-crowdin/",
"FALLBACK" => $this->locale,
"LANGUAGE" => $this->locale,
]);
$this->_addJs($this->jsCode);
}
}