Commit 1604f0af authored by Simonas's avatar Simonas

in progress

parent 7439a84a
...@@ -16,10 +16,10 @@ ...@@ -16,10 +16,10 @@
- check if dev.biuro.lt, dev.biuro.lv, dev.biuro.ee works - check if dev.biuro.lt, dev.biuro.lv, dev.biuro.ee works
### DB backup ### DB backup
- `C:\web\dev.biuro> docker exec -i mysql mysqldump -uroot -pIiIjnsLi2wR9i1kWVbVpUAzP --default-character-set=utf8 wordpress > docker/mariadb/db_002.sql` - `C:\web\dev.biuro> docker exec -i mysql mysqldump -uroot -pIiIjnsLi2wR9i1kWVbVpUAzP --default-character-set=utf8 wordpress > docker/mariadb/db_003.sql`
### DB restore ### DB restore
- `C:\web\dev.biuro> docker exec -i mysql mysql -uroot -pIiIjnsLi2wR9i1kWVbVpUAzP --default-character-set=utf8 wordpress < docker/mariadb/db_001.sql` - `C:\web\dev.biuro> docker exec -i mysql mysql -uroot -pIiIjnsLi2wR9i1kWVbVpUAzP --default-character-set=utf8 wordpress < docker/mariadb/db_002.sql`
## Development ## Development
- `C:\web\dev.biuro\wordpress>yarn (or npm install)` - `C:\web\dev.biuro\wordpress>yarn (or npm install)`
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -17,6 +17,13 @@ ...@@ -17,6 +17,13 @@
get_header(); ?> get_header(); ?>
<div id="content">
<?php the_content(); ?>
</div>
<?php
/*
<main class="l-main" role="main"> <main class="l-main" role="main">
<h1>index.php</h1> <h1>index.php</h1>
<p>main</p> <p>main</p>
...@@ -31,4 +38,7 @@ get_header(); ?> ...@@ -31,4 +38,7 @@ get_header(); ?>
<p>aside</p> <p>aside</p>
</aside> </aside>
*/
?>
<?php get_footer(); <?php get_footer();
msgid ""
msgstr ""
"Project-Id-Version: Biuro\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-11-08 10:20+0000\n"
"PO-Revision-Date: 2018-11-08 10:20+0000\n"
"Last-Translator: biuro <info@biuro.eu>\n"
"Language-Team: \n"
"Language: lt_LT\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10 >= 2 "
"&&(n%100<10||n%100 >= 20)? 1 : 2);\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Loco https://localise.biz/"
#: header.php:177
msgid "Language"
msgstr ""
#. Name of the theme
#. Author of the theme
msgid "Biuro"
msgstr ""
#. Description of the theme
msgid "Biuro multiregion theme"
msgstr ""
#. Author URI of the theme
msgid "https://www.biuro.lt/"
msgstr ""
msgid ""
msgstr ""
"Project-Id-Version: Biuro\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-11-08 10:20+0000\n"
"PO-Revision-Date: 2018-11-08 10:20+0000\n"
"Last-Translator: biuro <info@biuro.eu>\n"
"Language-Team: Lithuanian\n"
"Language: lt_LT\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10 >= 2 "
"&&(n%100<10||n%100 >= 20)? 1 : 2);\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Loco https://localise.biz/"
#: header.php:177
msgid "Language"
msgstr "Kalba"
#. Name of the theme
#. Author of the theme
msgid "Biuro"
msgstr ""
#. Description of the theme
msgid "Biuro multiregion theme"
msgstr ""
#. Author URI of the theme
msgid "https://www.biuro.lt/"
msgstr ""
This diff is collapsed.
This diff is collapsed.
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# This file is distributed under the same license as the Plugins - Yoast SEO - Stable (latest release) package. # This file is distributed under the same license as the Plugins - Yoast SEO - Stable (latest release) package.
msgid "" msgid ""
msgstr "" msgstr ""
"PO-Revision-Date: 2018-11-06 09:48:07+0000\n" "PO-Revision-Date: 2018-11-07 16:13:21+0000\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
...@@ -15,6 +15,12 @@ msgstr "" ...@@ -15,6 +15,12 @@ msgstr ""
msgid "Google Ads" msgid "Google Ads"
msgstr "Google Ads" msgstr "Google Ads"
#. translators: 1: expands to <code>noindex</code>; 2: link open tag; 3: link
#. close tag.
#: admin/views/tabs/metas/paper-content/date-archives-settings.php:29
msgid "Not showing the date archives in the search results technically means those will have a %1$s robots meta. %2$sMore info on the search results settings%3$s."
msgstr "Не показывать архивы по дате в результатах поиска технически значит, что они будут иметь метатэг %1$s robots. %2$sБольше информации о настройках результатов поиска%3$s."
#. translators: %s expands to Yoast SEO Premium #. translators: %s expands to Yoast SEO Premium
#: admin/class-premium-upsell-admin-block.php:84 #: admin/class-premium-upsell-admin-block.php:84
msgid "Upgrade to %s" msgid "Upgrade to %s"
...@@ -29,6 +35,12 @@ msgstr "Скрыть заметку об обновлении %s" ...@@ -29,6 +35,12 @@ msgstr "Скрыть заметку об обновлении %s"
msgid "Learn about why permalinks are important for SEO." msgid "Learn about why permalinks are important for SEO."
msgstr "Узнайте почему постоянные ссылки важны для SEO." msgstr "Узнайте почему постоянные ссылки важны для SEO."
#. translators: %1$s and %2$s expand to <i> items to emphasize the word in the
#. middle.
#: admin/class-admin-init.php:720
msgid "Changing your permalinks settings can seriously impact your search engine visibility. It should almost %1$s never %2$s be done on a live website."
msgstr "Измерение настроек постоянных ссылок может серьезно повлиять на видимость сайта в поисковых системах. Почти %1$s никогда %2$s это лучше не делать на живом сайте."
#: admin/class-admin-init.php:718 #: admin/class-admin-init.php:718
msgid "WARNING:" msgid "WARNING:"
msgstr "ПРЕДУПРЕЖДЕНИЕ:" msgstr "ПРЕДУПРЕЖДЕНИЕ:"
......
# Compiled libraries
These files are built from the Loco core. Do not edit!
They've been converted down for PHP 5.2 compatibility in WordPress.
<?php
/**
* Downgraded for PHP 5.2 compatibility. Do not edit.
*/
function loco_parse_wp_locale( $tag ){ if( ! preg_match( '/^([a-z]{2,3})(?:[-_]([a-z]{2}))?(?:[-_]([a-z0-9]{3,8}))?$/i', $tag, $tags ) ){ throw new InvalidArgumentException('Invalid WordPress locale: '.json_encode($tag) ); } $data = array( 'lang' => strtolower( $tags[1] ), ); if( isset($tags[2]) && ( $subtag = $tags[2] ) ){ $data['region'] = strtoupper($tags[2]); } if( isset($tags[3]) && ( $subtag = $tags[3] ) ){ $data['variant'] = strtolower($tags[3]); } return $data; }
<?php
/**
* Downgraded for PHP 5.2 compatibility. Do not edit.
*/
class LocoDomQuery extends ArrayIterator { public static function parse( $source ){ $dom = new DOMDocument('1.0', 'UTF-8' ); $dom->preserveWhitespace = true; $dom->formatOutput = false; $source = '<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body>'.$source.'</body></html>'; $used_errors = libxml_use_internal_errors(true); $opts = LIBXML_HTML_NODEFDTD; $parsed = $dom->loadHTML( $source, $opts ); $errors = libxml_get_errors(); $used_errors || libxml_use_internal_errors(false); libxml_clear_errors(); if( $errors || ! $parsed ){ $e = new Loco_error_ParseException('Unknown parse error'); foreach( $errors as $error ){ $e = new Loco_error_ParseException( trim($error->message) ); $e->setContext( $error->line, $error->column, $source ); if( LIBXML_ERR_FATAL === $error->level ){ throw $e; } } if( ! $parsed ){ throw $e; } } return $dom; } public function __construct( $value ){ if( is_array($value) ){ $nodes = $value; } else if( $value instanceof DOMDocument ){ $nodes = array( $value->documentElement ); } else if( $value instanceof DOMNodeList ){ $nodes = array(); foreach( $value as $node ){ $nodes[] = $node; } } else { $value = self::parse( $value ); $nodes = array( $value->documentElement ); } parent::__construct( $nodes ); } public function eq( $index ){ $q = new LocoDomQuery(array()); if( $el = $this[$index] ){ $q[] = $el; } return $q; } public function find( $value ){ $q = new LocoDomQuery( array() ); $f = new _LocoDomQueryFilter($value); foreach( $this as $el ){ foreach( $f->filter($el) as $match ){ $q[] = $match; } } return $q; } public function text(){ $s = ''; foreach( $this as $el ){ $s .= $el->textContent; } return $s; } public function html(){ $s = ''; foreach( $this as $outer ){ foreach( $outer->childNodes as $inner ){ $s .= $inner->ownerDocument->saveXML($inner); } break; } return $s; } public function attr( $name ){ foreach( $this as $el ){ return $el->getAttribute($name); } return null; } public function serialize(){ $pairs = array(); foreach( array('input','select','textarea','button') as $type ){ foreach( $this->find($type) as $field ){ $name = $field->getAttribute('name'); if( ! $name ){ continue; } if( $field->hasAttribute('type') ){ $type = $field->getAttribute('type'); } if( 'select' === $type ){ $value = null; $f = new _LocoDomQueryFilter('option'); foreach( $f->filter($field) as $option ){ if( $option->hasAttribute('value') ){ $_value = $option->getAttribute('value'); } else { $_value = $option->nodeValue; } if( $option->hasAttribute('selected') ){ $value = $_value; break; } else if( is_null($value) ){ $value = $_value; } } if( is_null($value) ){ $value = ''; } } else if( 'checkbox' === $type || 'radio' === $type ){ if( $field->hasAttribute('checked') ){ $value = $field->getAttribute('value'); } else { continue; } } else if( 'file' === $type ){ $value = ''; } else if( $field->hasAttribute('value') ){ $value = $field->getAttribute('value'); } else { $value = $field->textContent; } $pairs[] = sprintf('%s=%s', rawurlencode($name), rawurlencode($value) ); } } return implode('&',$pairs); } }
class _LocoDomQueryFilter { private $tag; private $attr = array(); public function __construct( $value ){ $id = '[-_a-z][-_a-z0-9]*'; if( ! preg_match('/^([a-z1-6]*)(#'.$id.')?(\.'.$id.')?(\[(\w+)="(.+)"\])?$/i', $value, $r ) ){ throw new InvalidArgumentException('Bad filter, '.$value ); } if( $r[1] ){ $this->tag = $r[1]; } if( ! empty($r[2]) ){ $this->attr['id'] = substr($r[2],1); } if( ! empty($r[3]) ){ $this->attr['class'] = substr($r[3],1); } if( ! empty($r[4]) ){ $this->attr[ $r[5] ] = $r[6]; } } public function filter( DOMElement $el ){ if( $this->tag ){ $list = $el->getElementsByTagName($this->tag); $recursive = false; } else { $list = $el->childNodes; $recursive = true; } if( $this->attr ){ $list = $this->reduce( $list, new ArrayIterator, $recursive )->getArrayCopy(); } return $list; } public function reduce( DOMNodeList $list, ArrayIterator $reduced, $recursive ){ foreach( $list as $node ){ if( $node instanceof DOMElement ){ $matched = false; foreach( $this->attr as $name => $value ){ if( ! $node->hasAttribute($name) ){ $matched = false; break; } $values = array_flip( explode(' ', $node->getAttribute($name) ) ); if( ! isset($values[$value]) ){ $matched = false; break; } $matched = true; } if( $matched ){ $reduced[] = $node; } if( $recursive && $node->hasChildNodes() ){ $this->reduce( $node->childNodes, $reduced, true ); } } } return $reduced; } }
<?php
/**
* Compiled data. Do not edit.
*/
return unserialize('a:207:{s:2:"aa";s:4:"Afar";s:2:"ab";s:9:"Abkhazian";s:2:"ae";s:7:"Avestan";s:2:"af";s:9:"Afrikaans";s:2:"ak";s:4:"Akan";s:2:"am";s:7:"Amharic";s:2:"an";s:9:"Aragonese";s:2:"ar";s:6:"Arabic";s:3:"arq";s:15:"Algerian Arabic";s:3:"ary";s:15:"Moroccan Arabic";s:2:"as";s:8:"Assamese";s:2:"av";s:6:"Avaric";s:2:"ay";s:6:"Aymara";s:2:"az";s:11:"Azerbaijani";s:3:"azb";s:17:"South Azerbaijani";s:2:"ba";s:7:"Bashkir";s:3:"bal";s:7:"Baluchi";s:3:"bcc";s:16:"Southern Balochi";s:2:"be";s:10:"Belarusian";s:2:"bg";s:9:"Bulgarian";s:2:"bi";s:7:"Bislama";s:2:"bm";s:7:"Bambara";s:2:"bn";s:7:"Bengali";s:2:"bo";s:7:"Tibetan";s:2:"br";s:6:"Breton";s:2:"bs";s:7:"Bosnian";s:2:"ca";s:7:"Catalan";s:2:"ce";s:7:"Chechen";s:3:"ceb";s:7:"Cebuano";s:2:"ch";s:8:"Chamorro";s:3:"ckb";s:15:"Central Kurdish";s:2:"co";s:8:"Corsican";s:2:"cr";s:4:"Cree";s:2:"cs";s:5:"Czech";s:2:"cu";s:13:"Church Slavic";s:2:"cv";s:7:"Chuvash";s:2:"cy";s:5:"Welsh";s:2:"da";s:6:"Danish";s:2:"de";s:6:"German";s:2:"dv";s:7:"Dhivehi";s:2:"dz";s:8:"Dzongkha";s:2:"ee";s:3:"Ewe";s:2:"el";s:5:"Greek";s:2:"en";s:7:"English";s:2:"eo";s:9:"Esperanto";s:2:"es";s:7:"Spanish";s:2:"et";s:8:"Estonian";s:2:"eu";s:6:"Basque";s:2:"fa";s:7:"Persian";s:2:"ff";s:5:"Fulah";s:2:"fi";s:7:"Finnish";s:2:"fj";s:6:"Fijian";s:2:"fo";s:7:"Faroese";s:2:"fr";s:6:"French";s:3:"frp";s:7:"Arpitan";s:3:"fuc";s:6:"Pulaar";s:3:"fur";s:8:"Friulian";s:2:"fy";s:15:"Western Frisian";s:2:"ga";s:5:"Irish";s:2:"gd";s:15:"Scottish Gaelic";s:2:"gl";s:8:"Galician";s:2:"gn";s:7:"Guarani";s:3:"gsw";s:12:"Swiss German";s:2:"gu";s:8:"Gujarati";s:2:"gv";s:4:"Manx";s:2:"ha";s:5:"Hausa";s:3:"haw";s:8:"Hawaiian";s:3:"haz";s:8:"Hazaragi";s:2:"he";s:6:"Hebrew";s:2:"hi";s:5:"Hindi";s:2:"ho";s:9:"Hiri Motu";s:2:"hr";s:8:"Croatian";s:2:"ht";s:7:"Haitian";s:2:"hu";s:9:"Hungarian";s:2:"hy";s:8:"Armenian";s:2:"hz";s:6:"Herero";s:2:"ia";s:11:"Interlingua";s:2:"id";s:10:"Indonesian";s:2:"ie";s:11:"Interlingue";s:2:"ig";s:4:"Igbo";s:2:"ii";s:10:"Sichuan Yi";s:2:"ik";s:7:"Inupiaq";s:2:"io";s:3:"Ido";s:2:"is";s:9:"Icelandic";s:2:"it";s:7:"Italian";s:2:"iu";s:9:"Inuktitut";s:2:"ja";s:8:"Japanese";s:2:"jv";s:8:"Javanese";s:2:"ka";s:8:"Georgian";s:3:"kab";s:6:"Kabyle";s:2:"kg";s:5:"Kongo";s:2:"ki";s:6:"Kikuyu";s:2:"kj";s:8:"Kuanyama";s:2:"kk";s:6:"Kazakh";s:2:"kl";s:11:"Kalaallisut";s:2:"km";s:13:"Central Khmer";s:2:"kn";s:7:"Kannada";s:2:"ko";s:6:"Korean";s:2:"kr";s:6:"Kanuri";s:2:"ks";s:8:"Kashmiri";s:2:"ku";s:7:"Kurdish";s:2:"kv";s:4:"Komi";s:2:"kw";s:7:"Cornish";s:2:"ky";s:7:"Kirghiz";s:2:"la";s:5:"Latin";s:2:"lb";s:13:"Luxembourgish";s:2:"lg";s:5:"Ganda";s:2:"li";s:9:"Limburgan";s:2:"ln";s:7:"Lingala";s:2:"lo";s:3:"Lao";s:2:"lt";s:10:"Lithuanian";s:2:"lu";s:12:"Luba-Katanga";s:2:"lv";s:7:"Latvian";s:2:"mg";s:8:"Malagasy";s:2:"mh";s:11:"Marshallese";s:2:"mi";s:5:"Maori";s:2:"mk";s:10:"Macedonian";s:2:"ml";s:9:"Malayalam";s:2:"mn";s:9:"Mongolian";s:2:"mr";s:7:"Marathi";s:2:"ms";s:5:"Malay";s:2:"mt";s:7:"Maltese";s:2:"my";s:7:"Burmese";s:2:"na";s:5:"Nauru";s:2:"nb";s:17:"Norwegian Bokmål";s:2:"nd";s:13:"North Ndebele";s:2:"ne";s:6:"Nepali";s:2:"ng";s:6:"Ndonga";s:2:"nl";s:5:"Dutch";s:2:"nn";s:17:"Norwegian Nynorsk";s:2:"no";s:9:"Norwegian";s:2:"nr";s:13:"South Ndebele";s:2:"nv";s:6:"Navajo";s:2:"ny";s:6:"Nyanja";s:2:"oc";s:19:"Occitan (post 1500)";s:2:"oj";s:6:"Ojibwa";s:2:"om";s:5:"Oromo";s:2:"or";s:5:"Oriya";s:3:"ory";s:27:"Oriya (individual language)";s:2:"os";s:8:"Ossetian";s:2:"pa";s:7:"Panjabi";s:2:"pi";s:4:"Pali";s:2:"pl";s:6:"Polish";s:2:"ps";s:6:"Pushto";s:2:"pt";s:10:"Portuguese";s:2:"qu";s:7:"Quechua";s:3:"rhg";s:8:"Rohingya";s:2:"rm";s:7:"Romansh";s:2:"rn";s:5:"Rundi";s:2:"ro";s:8:"Romanian";s:2:"ru";s:7:"Russian";s:3:"rue";s:5:"Rusyn";s:3:"rup";s:15:"Macedo-Romanian";s:2:"rw";s:11:"Kinyarwanda";s:2:"sa";s:8:"Sanskrit";s:3:"sah";s:5:"Yakut";s:2:"sc";s:9:"Sardinian";s:2:"sd";s:6:"Sindhi";s:2:"se";s:13:"Northern Sami";s:2:"sg";s:5:"Sango";s:2:"sh";s:14:"Serbo-Croatian";s:2:"si";s:7:"Sinhala";s:2:"sk";s:6:"Slovak";s:2:"sl";s:9:"Slovenian";s:2:"sm";s:6:"Samoan";s:2:"sn";s:5:"Shona";s:2:"so";s:6:"Somali";s:2:"sq";s:8:"Albanian";s:2:"sr";s:7:"Serbian";s:2:"ss";s:5:"Swati";s:2:"st";s:14:"Southern Sotho";s:2:"su";s:9:"Sundanese";s:2:"sv";s:7:"Swedish";s:2:"sw";s:7:"Swahili";s:3:"szl";s:8:"Silesian";s:2:"ta";s:5:"Tamil";s:2:"te";s:6:"Telugu";s:2:"tg";s:5:"Tajik";s:2:"th";s:4:"Thai";s:2:"ti";s:8:"Tigrinya";s:2:"tk";s:7:"Turkmen";s:2:"tl";s:7:"Tagalog";s:2:"tn";s:6:"Tswana";s:2:"to";s:21:"Tonga (Tonga Islands)";s:2:"tr";s:7:"Turkish";s:2:"ts";s:6:"Tsonga";s:2:"tt";s:5:"Tatar";s:2:"tw";s:3:"Twi";s:3:"twd";s:6:"Twents";s:2:"ty";s:8:"Tahitian";s:3:"tzm";s:23:"Central Atlas Tamazight";s:2:"ug";s:6:"Uighur";s:2:"uk";s:9:"Ukrainian";s:2:"ur";s:4:"Urdu";s:2:"uz";s:5:"Uzbek";s:2:"ve";s:5:"Venda";s:2:"vi";s:10:"Vietnamese";s:2:"vo";s:8:"Volapük";s:2:"wa";s:7:"Walloon";s:2:"wo";s:5:"Wolof";s:2:"xh";s:5:"Xhosa";s:3:"xmf";s:10:"Mingrelian";s:2:"yi";s:7:"Yiddish";s:2:"yo";s:6:"Yoruba";s:2:"za";s:6:"Zhuang";s:2:"zh";s:7:"Chinese";s:2:"zu";s:4:"Zulu";}');
<?php
/**
* Compiled data. Do not edit.
*/
return unserialize('a:113:{s:2:"af";a:2:{i:0;s:9:"Afrikaans";i:1;s:9:"Afrikaans";}s:2:"ar";a:2:{i:0;s:6:"Arabic";i:1;s:14:"العربية";}s:3:"ary";a:2:{i:0;s:15:"Moroccan Arabic";i:1;s:31:"العربية المغربية";}s:2:"as";a:2:{i:0;s:8:"Assamese";i:1;s:21:"অসমীয়া";}s:3:"azb";a:2:{i:0;s:17:"South Azerbaijani";i:1;s:29:"گؤنئی آذربایجان";}s:2:"az";a:2:{i:0;s:11:"Azerbaijani";i:1;s:16:"Azərbaycan dili";}s:3:"bel";a:2:{i:0;s:10:"Belarusian";i:1;s:29:"Беларуская мова";}s:5:"bg_BG";a:2:{i:0;s:9:"Bulgarian";i:1;s:18:"Български";}s:5:"bn_BD";a:2:{i:0;s:7:"Bengali";i:1;s:15:"বাংলা";}s:2:"bo";a:2:{i:0;s:7:"Tibetan";i:1;s:21:"བོད་ཡིག";}s:5:"bs_BA";a:2:{i:0;s:7:"Bosnian";i:1;s:8:"Bosanski";}s:2:"ca";a:2:{i:0;s:7:"Catalan";i:1;s:7:"Català";}s:3:"ceb";a:2:{i:0;s:7:"Cebuano";i:1;s:7:"Cebuano";}s:5:"cs_CZ";a:2:{i:0;s:5:"Czech";i:1;s:9:"Čeština";}s:2:"cy";a:2:{i:0;s:5:"Welsh";i:1;s:7:"Cymraeg";}s:5:"da_DK";a:2:{i:0;s:6:"Danish";i:1;s:5:"Dansk";}s:5:"de_CH";a:2:{i:0;s:20:"German (Switzerland)";i:1;s:17:"Deutsch (Schweiz)";}s:12:"de_DE_formal";a:2:{i:0;s:15:"German (Formal)";i:1;s:13:"Deutsch (Sie)";}s:5:"de_DE";a:2:{i:0;s:6:"German";i:1;s:7:"Deutsch";}s:14:"de_CH_informal";a:2:{i:0;s:30:"German (Switzerland, Informal)";i:1;s:21:"Deutsch (Schweiz, Du)";}s:3:"dzo";a:2:{i:0;s:8:"Dzongkha";i:1;s:18:"རྫོང་ཁ";}s:2:"el";a:2:{i:0;s:5:"Greek";i:1;s:16:"Ελληνικά";}s:5:"en_GB";a:2:{i:0;s:12:"English (UK)";i:1;s:12:"English (UK)";}s:5:"en_NZ";a:2:{i:0;s:21:"English (New Zealand)";i:1;s:21:"English (New Zealand)";}s:5:"en_ZA";a:2:{i:0;s:22:"English (South Africa)";i:1;s:22:"English (South Africa)";}s:5:"en_AU";a:2:{i:0;s:19:"English (Australia)";i:1;s:19:"English (Australia)";}s:5:"en_CA";a:2:{i:0;s:16:"English (Canada)";i:1;s:16:"English (Canada)";}s:2:"eo";a:2:{i:0;s:9:"Esperanto";i:1;s:9:"Esperanto";}s:5:"es_AR";a:2:{i:0;s:19:"Spanish (Argentina)";i:1;s:21:"Español de Argentina";}s:5:"es_GT";a:2:{i:0;s:19:"Spanish (Guatemala)";i:1;s:21:"Español de Guatemala";}s:5:"es_MX";a:2:{i:0;s:16:"Spanish (Mexico)";i:1;s:19:"Español de México";}s:5:"es_CO";a:2:{i:0;s:18:"Spanish (Colombia)";i:1;s:20:"Español de Colombia";}s:5:"es_VE";a:2:{i:0;s:19:"Spanish (Venezuela)";i:1;s:21:"Español de Venezuela";}s:5:"es_CR";a:2:{i:0;s:20:"Spanish (Costa Rica)";i:1;s:22:"Español de Costa Rica";}s:5:"es_PE";a:2:{i:0;s:14:"Spanish (Peru)";i:1;s:17:"Español de Perú";}s:5:"es_CL";a:2:{i:0;s:15:"Spanish (Chile)";i:1;s:17:"Español de Chile";}s:5:"es_ES";a:2:{i:0;s:15:"Spanish (Spain)";i:1;s:8:"Español";}s:2:"et";a:2:{i:0;s:8:"Estonian";i:1;s:5:"Eesti";}s:2:"eu";a:2:{i:0;s:6:"Basque";i:1;s:7:"Euskara";}s:5:"fa_IR";a:2:{i:0;s:7:"Persian";i:1;s:10:"فارسی";}s:2:"fi";a:2:{i:0;s:7:"Finnish";i:1;s:5:"Suomi";}s:5:"fr_BE";a:2:{i:0;s:16:"French (Belgium)";i:1;s:21:"Français de Belgique";}s:5:"fr_FR";a:2:{i:0;s:15:"French (France)";i:1;s:9:"Français";}s:5:"fr_CA";a:2:{i:0;s:15:"French (Canada)";i:1;s:19:"Français du Canada";}s:3:"fur";a:2:{i:0;s:8:"Friulian";i:1;s:8:"Friulian";}s:2:"gd";a:2:{i:0;s:15:"Scottish Gaelic";i:1;s:9:"Gàidhlig";}s:5:"gl_ES";a:2:{i:0;s:8:"Galician";i:1;s:6:"Galego";}s:2:"gu";a:2:{i:0;s:8:"Gujarati";i:1;s:21:"ગુજરાતી";}s:3:"haz";a:2:{i:0;s:8:"Hazaragi";i:1;s:15:"هزاره گی";}s:5:"he_IL";a:2:{i:0;s:6:"Hebrew";i:1;s:16:"עִבְרִית";}s:5:"hi_IN";a:2:{i:0;s:5:"Hindi";i:1;s:18:"हिन्दी";}s:2:"hr";a:2:{i:0;s:8:"Croatian";i:1;s:8:"Hrvatski";}s:5:"hu_HU";a:2:{i:0;s:9:"Hungarian";i:1;s:6:"Magyar";}s:2:"hy";a:2:{i:0;s:8:"Armenian";i:1;s:14:"Հայերեն";}s:5:"id_ID";a:2:{i:0;s:10:"Indonesian";i:1;s:16:"Bahasa Indonesia";}s:5:"is_IS";a:2:{i:0;s:9:"Icelandic";i:1;s:9:"Íslenska";}s:5:"it_IT";a:2:{i:0;s:7:"Italian";i:1;s:8:"Italiano";}s:2:"ja";a:2:{i:0;s:8:"Japanese";i:1;s:9:"日本語";}s:5:"jv_ID";a:2:{i:0;s:8:"Javanese";i:1;s:9:"Basa Jawa";}s:5:"ka_GE";a:2:{i:0;s:8:"Georgian";i:1;s:21:"ქართული";}s:3:"kab";a:2:{i:0;s:6:"Kabyle";i:1;s:9:"Taqbaylit";}s:2:"kk";a:2:{i:0;s:6:"Kazakh";i:1;s:19:"Қазақ тілі";}s:2:"km";a:2:{i:0;s:5:"Khmer";i:1;s:27:"ភាសាខ្មែរ";}s:5:"ko_KR";a:2:{i:0;s:6:"Korean";i:1;s:9:"한국어";}s:3:"ckb";a:2:{i:0;s:16:"Kurdish (Sorani)";i:1;s:13:"كوردی‎";}s:2:"lo";a:2:{i:0;s:3:"Lao";i:1;s:21:"ພາສາລາວ";}s:5:"lt_LT";a:2:{i:0;s:10:"Lithuanian";i:1;s:15:"Lietuvių kalba";}s:2:"lv";a:2:{i:0;s:7:"Latvian";i:1;s:16:"Latviešu valoda";}s:5:"mk_MK";a:2:{i:0;s:10:"Macedonian";i:1;s:31:"Македонски јазик";}s:5:"ml_IN";a:2:{i:0;s:9:"Malayalam";i:1;s:18:"മലയാളം";}s:2:"mn";a:2:{i:0;s:9:"Mongolian";i:1;s:12:"Монгол";}s:2:"mr";a:2:{i:0;s:7:"Marathi";i:1;s:15:"मराठी";}s:5:"ms_MY";a:2:{i:0;s:5:"Malay";i:1;s:13:"Bahasa Melayu";}s:5:"my_MM";a:2:{i:0;s:17:"Myanmar (Burmese)";i:1;s:15:"ဗမာစာ";}s:5:"nb_NO";a:2:{i:0;s:19:"Norwegian (Bokmål)";i:1;s:13:"Norsk bokmål";}s:5:"ne_NP";a:2:{i:0;s:6:"Nepali";i:1;s:18:"नेपाली";}s:12:"nl_NL_formal";a:2:{i:0;s:14:"Dutch (Formal)";i:1;s:20:"Nederlands (Formeel)";}s:5:"nl_NL";a:2:{i:0;s:5:"Dutch";i:1;s:10:"Nederlands";}s:5:"nl_BE";a:2:{i:0;s:15:"Dutch (Belgium)";i:1;s:20:"Nederlands (België)";}s:5:"nn_NO";a:2:{i:0;s:19:"Norwegian (Nynorsk)";i:1;s:13:"Norsk nynorsk";}s:3:"oci";a:2:{i:0;s:7:"Occitan";i:1;s:7:"Occitan";}s:5:"pa_IN";a:2:{i:0;s:7:"Punjabi";i:1;s:18:"ਪੰਜਾਬੀ";}s:5:"pl_PL";a:2:{i:0;s:6:"Polish";i:1;s:6:"Polski";}s:2:"ps";a:2:{i:0;s:6:"Pashto";i:1;s:8:"پښتو";}s:5:"pt_BR";a:2:{i:0;s:19:"Portuguese (Brazil)";i:1;s:20:"Português do Brasil";}s:10:"pt_PT_ao90";a:2:{i:0;s:27:"Portuguese (Portugal, AO90)";i:1;s:17:"Português (AO90)";}s:5:"pt_PT";a:2:{i:0;s:21:"Portuguese (Portugal)";i:1;s:10:"Português";}s:3:"rhg";a:2:{i:0;s:8:"Rohingya";i:1;s:8:"Ruáinga";}s:5:"ro_RO";a:2:{i:0;s:8:"Romanian";i:1;s:8:"Română";}s:5:"ru_RU";a:2:{i:0;s:7:"Russian";i:1;s:14:"Русский";}s:3:"sah";a:2:{i:0;s:5:"Sakha";i:1;s:14:"Сахалыы";}s:5:"si_LK";a:2:{i:0;s:7:"Sinhala";i:1;s:15:"සිංහල";}s:5:"sk_SK";a:2:{i:0;s:6:"Slovak";i:1;s:11:"Slovenčina";}s:5:"sl_SI";a:2:{i:0;s:9:"Slovenian";i:1;s:13:"Slovenščina";}s:2:"sq";a:2:{i:0;s:8:"Albanian";i:1;s:5:"Shqip";}s:5:"sr_RS";a:2:{i:0;s:7:"Serbian";i:1;s:23:"Српски језик";}s:5:"sv_SE";a:2:{i:0;s:7:"Swedish";i:1;s:7:"Svenska";}s:3:"szl";a:2:{i:0;s:8:"Silesian";i:1;s:17:"Ślōnskŏ gŏdka";}s:5:"ta_IN";a:2:{i:0;s:5:"Tamil";i:1;s:15:"தமிழ்";}s:2:"te";a:2:{i:0;s:6:"Telugu";i:1;s:18:"తెలుగు";}s:2:"th";a:2:{i:0;s:4:"Thai";i:1;s:9:"ไทย";}s:2:"tl";a:2:{i:0;s:7:"Tagalog";i:1;s:7:"Tagalog";}s:5:"tr_TR";a:2:{i:0;s:7:"Turkish";i:1;s:8:"Türkçe";}s:5:"tt_RU";a:2:{i:0;s:5:"Tatar";i:1;s:19:"Татар теле";}s:3:"tah";a:2:{i:0;s:8:"Tahitian";i:1;s:10:"Reo Tahiti";}s:5:"ug_CN";a:2:{i:0;s:6:"Uighur";i:1;s:16:"ئۇيغۇرچە";}s:2:"uk";a:2:{i:0;s:9:"Ukrainian";i:1;s:20:"Українська";}s:2:"ur";a:2:{i:0;s:4:"Urdu";i:1;s:8:"اردو";}s:5:"uz_UZ";a:2:{i:0;s:5:"Uzbek";i:1;s:11:"O‘zbekcha";}s:2:"vi";a:2:{i:0;s:10:"Vietnamese";i:1;s:14:"Tiếng Việt";}s:5:"zh_CN";a:2:{i:0;s:15:"Chinese (China)";i:1;s:12:"简体中文";}s:5:"zh_TW";a:2:{i:0;s:16:"Chinese (Taiwan)";i:1;s:12:"繁體中文";}s:5:"zh_HK";a:2:{i:0;s:19:"Chinese (Hong Kong)";i:1;s:16:"香港中文版 ";}}');
<?php
/**
* Compiled data. Do not edit.
*/
return unserialize('a:64:{s:2:"ak";i:1;s:2:"am";i:1;s:2:"ar";i:2;s:3:"ary";i:2;s:2:"be";i:3;s:2:"bm";i:4;s:2:"bo";i:4;s:2:"br";i:1;s:2:"bs";i:3;s:2:"cs";i:5;s:2:"cy";i:6;s:2:"dz";i:4;s:2:"ff";i:1;s:2:"fr";i:1;s:2:"ga";i:7;s:2:"gd";i:8;s:2:"gv";i:9;s:2:"hr";i:10;s:2:"id";i:4;s:2:"ii";i:4;s:2:"iu";i:11;s:2:"ja";i:4;s:2:"ka";i:4;s:2:"kk";i:4;s:2:"km";i:4;s:2:"kn";i:4;s:2:"ko";i:4;s:2:"kw";i:11;s:2:"ky";i:4;s:2:"ln";i:1;s:2:"lo";i:4;s:2:"lt";i:12;s:2:"lv";i:13;s:2:"mg";i:1;s:2:"mi";i:1;s:2:"mk";i:14;s:2:"ms";i:4;s:2:"mt";i:15;s:2:"my";i:4;s:2:"nr";i:4;s:2:"oc";i:1;s:2:"pl";i:16;s:2:"ro";i:17;s:2:"ru";i:3;s:2:"sa";i:11;s:2:"sg";i:4;s:2:"sk";i:5;s:2:"sl";i:18;s:2:"sm";i:4;s:2:"sr";i:3;s:2:"su";i:4;s:2:"th";i:4;s:2:"ti";i:1;s:2:"tl";i:1;s:2:"to";i:4;s:2:"tt";i:4;s:2:"ug";i:4;s:2:"uk";i:3;s:2:"vi";i:4;s:2:"wa";i:1;s:2:"wo";i:4;s:2:"yo";i:4;s:2:"zh";i:4;s:0:"";a:19:{i:0;a:2:{i:0;s:6:"n != 1";i:1;a:2:{i:0;s:3:"one";i:1;s:5:"other";}}i:1;a:2:{i:0;s:5:"n > 1";i:1;a:2:{i:0;s:3:"one";i:1;s:5:"other";}}i:2;a:2:{i:0;s:95:"n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100 >= 3 && n%100<=10 ? 3 : n%100 >= 11 && n%100<=99 ? 4 : 5";i:1;a:6:{i:0;s:4:"zero";i:1;s:3:"one";i:2;s:3:"two";i:3;s:3:"few";i:4;s:4:"many";i:5;s:5:"other";}}i:3;a:2:{i:0;s:82:"(n%10==1 && n%100!=11 ? 0 : n%10 >= 2 && n%10<=4 &&(n%100<10||n%100 >= 20)? 1 : 2)";i:1;a:3:{i:0;s:3:"one";i:1;s:3:"few";i:2;s:5:"other";}}i:4;a:2:{i:0;s:1:"0";i:1;a:1:{i:0;s:5:"other";}}i:5;a:2:{i:0;s:45:"( n == 1 ) ? 0 : ( n >= 2 && n <= 4 ) ? 1 : 2";i:1;a:3:{i:0;s:3:"one";i:1;s:3:"few";i:2;s:5:"other";}}i:6;a:2:{i:0;s:56:"n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n==3 ? 3 : n==6 ? 4 : 5";i:1;a:6:{i:0;s:4:"zero";i:1;s:3:"one";i:2;s:3:"two";i:3;s:3:"few";i:4;s:4:"many";i:5;s:5:"other";}}i:7;a:2:{i:0;s:44:"n==1 ? 0 : n==2 ? 1 : n<7 ? 2 : n<11 ? 3 : 4";i:1;a:5:{i:0;s:3:"one";i:1;s:3:"two";i:2;s:3:"few";i:3;s:4:"many";i:4;s:5:"other";}}i:8;a:2:{i:0;s:79:"n==1||n==11 ? 0 : n==2||n==12 ? 1 :(n >= 3 && n<=10)||(n >= 13 && n<=19)? 2 : 3";i:1;a:4:{i:0;s:3:"one";i:1;s:3:"two";i:2;s:3:"few";i:3;s:5:"other";}}i:9;a:2:{i:0;s:43:"n%10==1 ? 0 : n%10==2 ? 1 : n%20==0 ? 2 : 3";i:1;a:4:{i:0;s:3:"one";i:1;s:3:"two";i:2;s:3:"few";i:3;s:5:"other";}}i:10;a:2:{i:0;s:80:"n%10==1 && n%100!=11 ? 0 : n%10 >= 2 && n%10<=4 &&(n%100<10||n%100 >= 20)? 1 : 2";i:1;a:3:{i:0;s:3:"one";i:1;s:3:"few";i:2;s:5:"other";}}i:11;a:2:{i:0;s:27:"n == 1 ? 0 : n == 2 ? 1 : 2";i:1;a:3:{i:0;s:3:"one";i:1;s:3:"two";i:2;s:5:"other";}}i:12;a:2:{i:0;s:71:"(n%10==1 && n%100!=11 ? 0 : n%10 >= 2 &&(n%100<10||n%100 >= 20)? 1 : 2)";i:1;a:3:{i:0;s:3:"one";i:1;s:3:"few";i:2;s:5:"other";}}i:13;a:2:{i:0;s:49:"n % 10 == 1 && n % 100 != 11 ? 0 : n != 0 ? 1 : 2";i:1;a:3:{i:0;s:3:"one";i:1;s:5:"other";i:2;s:4:"zero";}}i:14;a:2:{i:0;s:40:"( n % 10 == 1 && n % 100 != 11 ) ? 0 : 1";i:1;a:2:{i:0;s:3:"one";i:1;s:5:"other";}}i:15;a:2:{i:0;s:75:"(n==1 ? 0 : n==0||( n%100>1 && n%100<11)? 1 :(n%100>10 && n%100<20)? 2 : 3)";i:1;a:4:{i:0;s:3:"one";i:1;s:3:"few";i:2;s:4:"many";i:3;s:5:"other";}}i:16;a:2:{i:0;s:66:"(n==1 ? 0 : n%10 >= 2 && n%10<=4 &&(n%100<10||n%100 >= 20)? 1 : 2)";i:1;a:3:{i:0;s:3:"one";i:1;s:3:"few";i:2;s:5:"other";}}i:17;a:2:{i:0;s:56:"(n==1 ? 0 :(((n%100>19)||(( n%100==0)&&(n!=0)))? 2 : 1))";i:1;a:3:{i:0;s:3:"one";i:1;s:3:"few";i:2;s:5:"other";}}i:18;a:2:{i:0;s:56:"n%100==1 ? 0 : n%100==2 ? 1 : n%100==3||n%100==4 ? 2 : 3";i:1;a:4:{i:0;s:3:"one";i:1;s:3:"two";i:2;s:3:"few";i:3;s:5:"other";}}}}');
<?php
/**
* Compiled data. Do not edit.
*/
return unserialize('a:250:{s:2:"AD";s:7:"Andorra";s:2:"AE";s:20:"United Arab Emirates";s:2:"AF";s:11:"Afghanistan";s:2:"AG";s:19:"Antigua and Barbuda";s:2:"AI";s:8:"Anguilla";s:2:"AL";s:7:"Albania";s:2:"AM";s:7:"Armenia";s:2:"AO";s:6:"Angola";s:2:"AQ";s:10:"Antarctica";s:2:"AR";s:9:"Argentina";s:2:"AS";s:14:"American Samoa";s:2:"AT";s:7:"Austria";s:2:"AU";s:9:"Australia";s:2:"AW";s:5:"Aruba";s:2:"AX";s:14:"Åland Islands";s:2:"AZ";s:10:"Azerbaijan";s:2:"BA";s:22:"Bosnia and Herzegovina";s:2:"BB";s:8:"Barbados";s:2:"BD";s:10:"Bangladesh";s:2:"BE";s:7:"Belgium";s:2:"BF";s:12:"Burkina Faso";s:2:"BG";s:8:"Bulgaria";s:2:"BH";s:7:"Bahrain";s:2:"BI";s:7:"Burundi";s:2:"BJ";s:5:"Benin";s:2:"BL";s:17:"Saint Barthélemy";s:2:"BM";s:7:"Bermuda";s:2:"BN";s:17:"Brunei Darussalam";s:2:"BO";s:7:"Bolivia";s:2:"BQ";s:32:"Bonaire, Sint Eustatius and Saba";s:2:"BR";s:6:"Brazil";s:2:"BS";s:7:"Bahamas";s:2:"BT";s:6:"Bhutan";s:2:"BV";s:13:"Bouvet Island";s:2:"BW";s:8:"Botswana";s:2:"BY";s:7:"Belarus";s:2:"BZ";s:6:"Belize";s:2:"CA";s:6:"Canada";s:2:"CC";s:23:"Cocos (Keeling) Islands";s:2:"CD";s:36:"The Democratic Republic of the Congo";s:2:"CF";s:24:"Central African Republic";s:2:"CG";s:5:"Congo";s:2:"CH";s:11:"Switzerland";s:2:"CI";s:14:"Côte d\'Ivoire";s:2:"CK";s:12:"Cook Islands";s:2:"CL";s:5:"Chile";s:2:"CM";s:8:"Cameroon";s:2:"CN";s:5:"China";s:2:"CO";s:8:"Colombia";s:2:"CR";s:10:"Costa Rica";s:2:"CU";s:4:"Cuba";s:2:"CV";s:22:"Cabo Verde; Cape Verde";s:2:"CW";s:8:"Curaçao";s:2:"CX";s:16:"Christmas Island";s:2:"CY";s:6:"Cyprus";s:2:"CZ";s:14:"Czech Republic";s:2:"DE";s:7:"Germany";s:2:"DJ";s:8:"Djibouti";s:2:"DK";s:7:"Denmark";s:2:"DM";s:8:"Dominica";s:2:"DO";s:18:"Dominican Republic";s:2:"DZ";s:7:"Algeria";s:2:"EC";s:7:"Ecuador";s:2:"EE";s:7:"Estonia";s:2:"EG";s:5:"Egypt";s:2:"EH";s:14:"Western Sahara";s:2:"ER";s:7:"Eritrea";s:2:"ES";s:5:"Spain";s:2:"ET";s:8:"Ethiopia";s:2:"FI";s:7:"Finland";s:2:"FJ";s:4:"Fiji";s:2:"FK";s:27:"Falkland Islands (Malvinas)";s:2:"FM";s:30:"Federated States of Micronesia";s:2:"FO";s:13:"Faroe Islands";s:2:"FR";s:6:"France";s:2:"GA";s:5:"Gabon";s:2:"GB";s:14:"United Kingdom";s:2:"GD";s:7:"Grenada";s:2:"GE";s:7:"Georgia";s:2:"GF";s:13:"French Guiana";s:2:"GG";s:8:"Guernsey";s:2:"GH";s:5:"Ghana";s:2:"GI";s:9:"Gibraltar";s:2:"GL";s:9:"Greenland";s:2:"GM";s:6:"Gambia";s:2:"GN";s:6:"Guinea";s:2:"GP";s:10:"Guadeloupe";s:2:"GQ";s:17:"Equatorial Guinea";s:2:"GR";s:6:"Greece";s:2:"GS";s:44:"South Georgia and the South Sandwich Islands";s:2:"GT";s:9:"Guatemala";s:2:"GU";s:4:"Guam";s:2:"GW";s:13:"Guinea-Bissau";s:2:"GY";s:6:"Guyana";s:2:"HK";s:9:"Hong Kong";s:2:"HM";s:33:"Heard Island and McDonald Islands";s:2:"HN";s:8:"Honduras";s:2:"HR";s:7:"Croatia";s:2:"HT";s:5:"Haiti";s:2:"HU";s:7:"Hungary";s:2:"ID";s:9:"Indonesia";s:2:"IE";s:7:"Ireland";s:2:"IL";s:6:"Israel";s:2:"IM";s:11:"Isle of Man";s:2:"IN";s:5:"India";s:2:"IO";s:30:"British Indian Ocean Territory";s:2:"IQ";s:4:"Iraq";s:2:"IR";s:24:"Islamic Republic of Iran";s:2:"IS";s:7:"Iceland";s:2:"IT";s:5:"Italy";s:2:"JE";s:6:"Jersey";s:2:"JM";s:7:"Jamaica";s:2:"JO";s:6:"Jordan";s:2:"JP";s:5:"Japan";s:2:"KE";s:5:"Kenya";s:2:"KG";s:10:"Kyrgyzstan";s:2:"KH";s:8:"Cambodia";s:2:"KI";s:8:"Kiribati";s:2:"KM";s:7:"Comoros";s:2:"KN";s:21:"Saint Kitts and Nevis";s:2:"KP";s:37:"Democratic People\'s Republic of Korea";s:2:"KR";s:17:"Republic of Korea";s:2:"KW";s:6:"Kuwait";s:2:"KY";s:14:"Cayman Islands";s:2:"KZ";s:10:"Kazakhstan";s:2:"LA";s:32:"Lao People\'s Democratic Republic";s:2:"LB";s:7:"Lebanon";s:2:"LC";s:11:"Saint Lucia";s:2:"LI";s:13:"Liechtenstein";s:2:"LK";s:9:"Sri Lanka";s:2:"LR";s:7:"Liberia";s:2:"LS";s:7:"Lesotho";s:2:"LT";s:9:"Lithuania";s:2:"LU";s:10:"Luxembourg";s:2:"LV";s:6:"Latvia";s:2:"LY";s:5:"Libya";s:2:"MA";s:7:"Morocco";s:2:"MC";s:6:"Monaco";s:2:"MD";s:7:"Moldova";s:2:"ME";s:10:"Montenegro";s:2:"MF";s:26:"Saint Martin (French part)";s:2:"MG";s:10:"Madagascar";s:2:"MH";s:16:"Marshall Islands";s:2:"MK";s:41:"The Former Yugoslav Republic of Macedonia";s:2:"ML";s:4:"Mali";s:2:"MM";s:7:"Myanmar";s:2:"MN";s:8:"Mongolia";s:2:"MO";s:5:"Macao";s:2:"MP";s:24:"Northern Mariana Islands";s:2:"MQ";s:10:"Martinique";s:2:"MR";s:10:"Mauritania";s:2:"MS";s:10:"Montserrat";s:2:"MT";s:5:"Malta";s:2:"MU";s:9:"Mauritius";s:2:"MV";s:8:"Maldives";s:2:"MW";s:6:"Malawi";s:2:"MX";s:6:"Mexico";s:2:"MY";s:8:"Malaysia";s:2:"MZ";s:10:"Mozambique";s:2:"NA";s:7:"Namibia";s:2:"NC";s:13:"New Caledonia";s:2:"NE";s:5:"Niger";s:2:"NF";s:14:"Norfolk Island";s:2:"NG";s:7:"Nigeria";s:2:"NI";s:9:"Nicaragua";s:2:"NL";s:11:"Netherlands";s:2:"NO";s:6:"Norway";s:2:"NP";s:5:"Nepal";s:2:"NR";s:5:"Nauru";s:2:"NU";s:4:"Niue";s:2:"NZ";s:11:"New Zealand";s:2:"OM";s:4:"Oman";s:2:"PA";s:6:"Panama";s:2:"PE";s:4:"Peru";s:2:"PF";s:16:"French Polynesia";s:2:"PG";s:16:"Papua New Guinea";s:2:"PH";s:11:"Philippines";s:2:"PK";s:8:"Pakistan";s:2:"PL";s:6:"Poland";s:2:"PM";s:25:"Saint Pierre and Miquelon";s:2:"PN";s:8:"Pitcairn";s:2:"PR";s:11:"Puerto Rico";s:2:"PS";s:18:"State of Palestine";s:2:"PT";s:8:"Portugal";s:2:"PW";s:5:"Palau";s:2:"PY";s:8:"Paraguay";s:2:"QA";s:5:"Qatar";s:2:"RE";s:8:"Réunion";s:2:"RO";s:7:"Romania";s:2:"RS";s:6:"Serbia";s:2:"RU";s:18:"Russian Federation";s:2:"RW";s:6:"Rwanda";s:2:"SA";s:12:"Saudi Arabia";s:2:"SB";s:15:"Solomon Islands";s:2:"SC";s:10:"Seychelles";s:2:"SD";s:5:"Sudan";s:2:"SE";s:6:"Sweden";s:2:"SG";s:9:"Singapore";s:2:"SH";s:44:"Saint Helena, Ascension and Tristan da Cunha";s:2:"SI";s:8:"Slovenia";s:2:"SJ";s:22:"Svalbard and Jan Mayen";s:2:"SK";s:8:"Slovakia";s:2:"SL";s:12:"Sierra Leone";s:2:"SM";s:10:"San Marino";s:2:"SN";s:7:"Senegal";s:2:"SO";s:7:"Somalia";s:2:"SR";s:8:"Suriname";s:2:"SS";s:11:"South Sudan";s:2:"ST";s:21:"Sao Tome and Principe";s:2:"SV";s:11:"El Salvador";s:2:"SX";s:25:"Sint Maarten (Dutch part)";s:2:"SY";s:20:"Syrian Arab Republic";s:2:"SZ";s:9:"Swaziland";s:2:"TC";s:24:"Turks and Caicos Islands";s:2:"TD";s:4:"Chad";s:2:"TF";s:27:"French Southern Territories";s:2:"TG";s:4:"Togo";s:2:"TH";s:8:"Thailand";s:2:"TJ";s:10:"Tajikistan";s:2:"TK";s:7:"Tokelau";s:2:"TL";s:11:"Timor-Leste";s:2:"TM";s:12:"Turkmenistan";s:2:"TN";s:7:"Tunisia";s:2:"TO";s:5:"Tonga";s:2:"TR";s:6:"Turkey";s:2:"TT";s:19:"Trinidad and Tobago";s:2:"TV";s:6:"Tuvalu";s:2:"TW";s:6:"Taiwan";s:2:"TZ";s:27:"United Republic of Tanzania";s:2:"UA";s:7:"Ukraine";s:2:"UG";s:6:"Uganda";s:2:"UM";s:36:"United States Minor Outlying Islands";s:2:"US";s:13:"United States";s:2:"UY";s:7:"Uruguay";s:2:"UZ";s:10:"Uzbekistan";s:2:"VA";s:29:"Holy See (Vatican City State)";s:2:"VC";s:32:"Saint Vincent and the Grenadines";s:2:"VE";s:9:"Venezuela";s:2:"VG";s:22:"British Virgin Islands";s:2:"VI";s:19:"U.S. Virgin Islands";s:2:"VN";s:8:"Viet Nam";s:2:"VU";s:7:"Vanuatu";s:2:"WF";s:17:"Wallis and Futuna";s:2:"WS";s:5:"Samoa";s:2:"YE";s:5:"Yemen";s:2:"YT";s:7:"Mayotte";s:2:"ZA";s:12:"South Africa";s:2:"ZM";s:6:"Zambia";s:2:"ZW";s:8:"Zimbabwe";s:2:"ZZ";s:11:"Private use";}');
<?php
/*
Plugin Name: Loco Translate
Plugin URI: https://wordpress.org/plugins/loco-translate/
Description: Translate themes and plugins directly in WordPress
Author: Tim Whitlock
Version: 2.1.5
Author URI: https://localise.biz/wordpress/plugin
Text Domain: loco-translate
Domain Path: /languages/
*/
// disallow execution out of context
if( ! function_exists('is_admin') ){
return;
}
// legacy plugin should not be installed at the same time
if( function_exists('loco_require') ){
return;
}
/**
* Get absolute path to Loco primary plugin file
* @return string
*/
function loco_plugin_file(){
return __FILE__;
}
/**
* Get version of this plugin
* @return string
*/
function loco_plugin_version(){
return '2.1.5';
}
/**
* Get Loco plugin handle, used by WordPress to identify plugin as a relative path
* @return string
*/
function loco_plugin_self(){
static $handle;
isset($handle) or $handle = plugin_basename(__FILE__);
return $handle;
}
/**
* Get absolute path to plugin root directory
* @return string
*/
function loco_plugin_root(){
static $root;
isset($root) or $root = dirname(__FILE__);
return $root;
}
/**
* Check whether currently running in debug mode
* @return bool
*/
function loco_debugging(){
return apply_filters('loco_debug', WP_DEBUG );
}
/**
* Whether currently processing an Ajax request
* @return bool
*/
function loco_doing_ajax(){
return defined('DOING_AJAX') && DOING_AJAX;
}
/**
* Evaluate a constant by name
* @return mixed
*/
function loco_constant( $name ){
$value = defined($name) ? constant($name) : null;
// constant values will only be modified in tests
if( defined('LOCO_TEST') && LOCO_TEST ){
$value = apply_filters('loco_constant', $value, $name );
$value = apply_filters('loco_constant_'.$name, $value );
}
return $value;
}
/**
* Runtime inclusion of any file under plugin root
* @return mixed
*/
function loco_include( $relpath ){
$path = loco_plugin_root().'/'.$relpath;
if( ! file_exists($path) ){
throw new Loco_error_Exception('File not found: '.$path);
}
return include $path;
}
/**
* Require dependant library once only
* @return void
*/
function loco_require_lib( $path ){
require_once loco_plugin_root().'/lib/'.$path;
}
/**
* Check PHP extension required by Loco and load polyfill if needed
* @return bool
*/
function loco_check_extension( $name ){
static $cache = array();
if( ! isset($cache[$name]) ){
if( extension_loaded($name) ){
$cache[$name] = true;
}
else {
Loco_error_AdminNotices::warn( sprintf( __('Loco requires the "%s" PHP extension. Ask your hosting provider to install it','loco-translate'), $name ) );
$class = 'Loco_compat_'.ucfirst($name).'Extension.php';
$cache[$name] = class_exists( $class );
}
}
return $cache[$name];
}
/**
* Class autoloader for Loco classes under src directory.
* e.g. class "Loco_foo_FooBar" wil be found in "src/foo/FooBar.php"
* Also does autoload for polyfills under "src/compat" if classname < 20 chars
* @return void
*/
function loco_autoload( $name ){
if( 'Loco_' === substr($name,0,5) ){
loco_include( 'src/'.strtr( substr($name,5), '_', '/' ).'.php' );
}
else if( ! isset($name{20}) && file_exists( $path = loco_plugin_root().'/src/compat/'.$name.'.php') ){
require $path;
}
}
spl_autoload_register( 'loco_autoload', false );
// provide safe directory for custom translations that won't be deleted during auto-updates
if( ! defined('LOCO_LANG_DIR') ){
define( 'LOCO_LANG_DIR', trailingslashit(loco_constant('WP_LANG_DIR')).'loco' );
}
// text domain loading helper for custom file locations. disable by setting constant empty
if( LOCO_LANG_DIR ){
new Loco_hooks_LoadHelper;
}
// initialize hooks for admin screens
if( is_admin() ){
new Loco_hooks_AdminHooks;
}
<?xml version="1.0" encoding="utf-8"?>
<bundle name="Loco Translate" min-version="2.0.14">
<domain name="loco-translate">
<project name="Loco Translate" slug="loco-translate">
<source>
<directory>src</directory>
<directory>tpl</directory>
<file>loco.php</file>
</source>
<target>
<directory>languages</directory>
</target>
<template>
<file>languages/loco-translate.pot</file>
</template>
</project>
</domain>
<exclude>
<directory>tmp</directory>
<directory>lib</directory>
<directory>pub</directory>
<directory>test</directory>
</exclude>
</bundle>
This diff is collapsed.
form.loco-filter{float:right}@media only screen and (max-width: 1024px){table.wp-list-table a.row-title{max-width:100px}}
form#loco-conf>div{overflow:visible;border-bottom:solid 1px #ccc;padding-top:2em}form#loco-conf>div h2{margin-top:0}form#loco-conf td.twin>div{float:left;clear:none;width:50%}form#loco-conf td .description:first-child{margin-top:0;margin-bottom:4px}form#loco-conf a.icon-del{display:block;float:right;z-index:99;color:#aaa;outline:none}form#loco-conf a.icon-del:hover{color:#cc0000}form#loco-conf>div:first-child a.icon-del{display:none}form#loco-conf p.description{color:#aaa;font-size:12px;text-indent:0.25em}form#loco-conf tr:hover p.description{color:#666}form#loco-reset{position:absolute;bottom:0;right:0}
This diff is collapsed.
#loco.wrap .notice-info dl{margin-top:0;display:inline-block}#loco.wrap .notice-info dl dt,#loco.wrap .notice-info dl dd{line-height:1.4em}#loco.wrap .notice-info dl dt{font-weight:bold;color:#555}#loco.wrap .notice-info dl dd{margin-left:0;margin-bottom:0.8em}#loco.wrap .notice-info dl div.progress .l{display:none}
#loco.wrap td.loco-not-active{color:#aaa}#loco.wrap div.loco-projects>h3{float:left}#loco.wrap div.loco-projects form.loco-filter{float:right;margin:1em 0}
#loco.wrap .revisions-diff{padding:10px;min-height:20px}#loco.wrap table.diff{border-collapse:collapse}#loco.wrap table.diff td{white-space:nowrap;overflow:hidden;font:normal 12px/17px 'Monaco','Menlo','Ubuntu Mono','Consolas','source-code-pro',monospace;padding:2px}#loco.wrap table.diff td>span{color:#aaa}#loco.wrap table.diff td>span:after{content:". "}#loco.wrap table.diff tbody{border-top:1px dashed #ccc}#loco.wrap table.diff tbody:first-child{border-top:none}#loco.wrap .revisions.loading .diff-meta{color:#eee}#loco.wrap .revisions.loading .loading-indicator span.spinner{visibility:visible;background:#fff url(../img/spin-modal.gif?v=2.1.5) center center no-repeat}#loco.wrap .revisions-meta{clear:both;padding:10px 12px;margin:0;position:relative;top:10px}#loco.wrap .revisions-meta .diff-meta{clear:none;float:left;width:50%;padding:0;min-height:auto}#loco.wrap .revisions-meta .diff-meta button{margin-top:5px}#loco.wrap .revisions-meta .diff-meta-current{float:right;text-align:right}#loco.wrap .revisions-meta time{color:#72777c}#loco.wrap .revisions-control-frame{margin:10px 0}#loco.wrap .revisions-diff-frame{margin-top:20px}
form#loco-poinit .loco-locales fieldset{float:left;margin-right:2em}form#loco-poinit .loco-locales fieldset.disabled span.lang{visibility:hidden !important}form#loco-poinit .loco-locales fieldset span.nolang{background:#999}form#loco-poinit .loco-locales fieldset>label span{width:20px;text-align:center;display:inline-block;margin-right:4px}form#loco-poinit a.icon-help{color:#999;font-style:normal;text-decoration:none}form#loco-poinit a.icon-help:hover{color:#666}form#loco-poinit .form-table th{padding:15px 10px}form#loco-poinit .form-table tr:first-child td,form#loco-poinit .form-table tr:first-child th{padding-top:25px}form#loco-poinit label.for-disabled input{visibility:hidden}form#loco-poinit label.for-disabled .icon-lock{top:0;left:0;display:block;position:absolute;width:1em;font-size:14px;text-align:center;color:#808080}
#loco.wrap #loco-po{padding-right:0;overflow:auto}#loco.wrap #loco-po.loco-loading{min-height:100px;background:#fff url(../img/spin-modal.gif?v=2.1.5) center center no-repeat}#loco.wrap #loco-po.loco-loading ol.msgcat{display:none}#loco.wrap ol.msgcat{margin-left:3em;padding-top:1em;border-top:1px dashed #ccc}#loco.wrap ol.msgcat:first-child{padding-top:0;border-top:none}#loco.wrap ol.msgcat li{color:#aaa;margin:0;padding:0 0 0 1em;font:normal 12px/17px 'Monaco','Menlo','Ubuntu Mono','Consolas','source-code-pro',monospace;border-left:1px solid #EEE}#loco.wrap ol.msgcat li>*{color:#333;white-space:pre}#loco.wrap ol.msgcat li>.po-comment{color:#3CC200}#loco.wrap ol.msgcat li>.po-refs{color:#0073aa}#loco.wrap ol.msgcat li>.po-refs a{color:inherit;text-decoration:none}#loco.wrap ol.msgcat li>.po-refs a:hover{text-decoration:underline}#loco.wrap ol.msgcat li>.po-flags{color:#77904a}#loco.wrap ol.msgcat li>.po-flags em{font-style:normal}#loco.wrap ol.msgcat li>.po-word{color:#000}#loco.wrap ol.msgcat li>.po-junk{font-style:italic;color:#CCC}#loco.wrap ol.msgcat li>.po-string>span{color:#C931C7}#loco.wrap form.loco-filter{top:0;right:0;position:absolute}#loco.wrap .loco-invalid form.loco-filter input[type="text"]:focus{border-color:#cc0000;-webkit-box-shadow:0 0 2px rgba(153,0,0,0.5);-moz-box-shadow:0 0 2px rgba(153,0,0,0.5);box-shadow:0 0 2px rgba(153,0,0,0.5)}#loco.wrap .loco-invalid ol.msgcat{list-style-type:none}#loco.wrap .loco-invalid ol.msgcat li{color:#000}.loco-modal{min-width:90% !important;min-height:100px}#loco-po-ref ol li{color:#aaa;margin:0;white-space:pre;padding:0 0 0 1em;font:normal 12px/17px Consolas,Monaco,monospace;background:transparent;border-left:1px solid #EEE}#loco-po-ref ol li code{margin:0;padding:0;display:inline;background:inherit}#loco-po-ref ol li.highlighted{color:#666;background-color:#f8eec7}#loco-po-ref ol li.highlighted code.T_CONSTANT_ENCAPSED_STRING{color:#C931C7}
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(9,100,132,0.05)}.wrap #loco-editor .wg-split-x>nav.wg-tabs>a.active,.wrap #loco-editor .is-table .wg-cols>div>div.selected{background-color:#096484}.wrap #loco-editor .is-editable>.wg-content>textarea:focus,.wrap #loco-editor .is-editable>.wg-content.has-focus .ace_scroller,.wrap #loco-editor .is-editable>.wg-content.has-focus .mce-content-body{border-color:#5b9dd9;-webkit-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);-moz-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8)}form button.loco-loading.button-primary[disabled]:before{background:transparent url(../../img/skins/blue/spin-primary-button.gif?v=2.1.5) 0 0 no-repeat !important}
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(199,165,137,0.05)}.wrap #loco-editor .wg-split-x>nav.wg-tabs>a.active,.wrap #loco-editor .is-table .wg-cols>div>div.selected{background-color:#c7a589}.wrap #loco-editor .is-editable>.wg-content>textarea:focus,.wrap #loco-editor .is-editable>.wg-content.has-focus .ace_scroller,.wrap #loco-editor .is-editable>.wg-content.has-focus .mce-content-body{border-color:#5b9dd9;-webkit-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);-moz-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8)}form button.loco-loading.button-primary[disabled]:before{background:transparent url(../../img/skins/coffee/spin-primary-button.gif?v=2.1.5) 0 0 no-repeat !important}
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(163,183,69,0.05)}.wrap #loco-editor .wg-split-x>nav.wg-tabs>a.active,.wrap #loco-editor .is-table .wg-cols>div>div.selected{background-color:#a3b745}.wrap #loco-editor .is-editable>.wg-content>textarea:focus,.wrap #loco-editor .is-editable>.wg-content.has-focus .ace_scroller,.wrap #loco-editor .is-editable>.wg-content.has-focus .mce-content-body{border-color:#5b9dd9;-webkit-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);-moz-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8)}form button.loco-loading.button-primary[disabled]:before{background:transparent url(../../img/skins/ectoplasm/spin-primary-button.gif?v=2.1.5) 0 0 no-repeat !important}
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(136,136,136,0.05)}.wrap #loco-editor .wg-split-x>nav.wg-tabs>a.active,.wrap #loco-editor .is-table .wg-cols>div>div.selected{background-color:#888}.wrap #loco-editor .is-editable>.wg-content>textarea:focus,.wrap #loco-editor .is-editable>.wg-content.has-focus .ace_scroller,.wrap #loco-editor .is-editable>.wg-content.has-focus .mce-content-body{border-color:#5b9dd9;-webkit-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);-moz-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8)}form button.loco-loading.button-primary[disabled]:before{background:transparent url(../../img/skins/light/spin-primary-button.gif?v=2.1.5) 0 0 no-repeat !important}
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(225,77,67,0.05)}.wrap #loco-editor .wg-split-x>nav.wg-tabs>a.active,.wrap #loco-editor .is-table .wg-cols>div>div.selected{background-color:#e14d43}.wrap #loco-editor .is-editable>.wg-content>textarea:focus,.wrap #loco-editor .is-editable>.wg-content.has-focus .ace_scroller,.wrap #loco-editor .is-editable>.wg-content.has-focus .mce-content-body{border-color:#5b9dd9;-webkit-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);-moz-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8)}form button.loco-loading.button-primary[disabled]:before{background:transparent url(../../img/skins/midnight/spin-primary-button.gif?v=2.1.5) 0 0 no-repeat !important}
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(158,186,160,0.05)}.wrap #loco-editor .wg-split-x>nav.wg-tabs>a.active,.wrap #loco-editor .is-table .wg-cols>div>div.selected{background-color:#9ebaa0}.wrap #loco-editor .is-editable>.wg-content>textarea:focus,.wrap #loco-editor .is-editable>.wg-content.has-focus .ace_scroller,.wrap #loco-editor .is-editable>.wg-content.has-focus .mce-content-body{border-color:#5b9dd9;-webkit-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);-moz-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8)}form button.loco-loading.button-primary[disabled]:before{background:transparent url(../../img/skins/ocean/spin-primary-button.gif?v=2.1.5) 0 0 no-repeat !important}
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(221,130,59,0.05)}.wrap #loco-editor .wg-split-x>nav.wg-tabs>a.active,.wrap #loco-editor .is-table .wg-cols>div>div.selected{background-color:#dd823b}.wrap #loco-editor .is-editable>.wg-content>textarea:focus,.wrap #loco-editor .is-editable>.wg-content.has-focus .ace_scroller,.wrap #loco-editor .is-editable>.wg-content.has-focus .mce-content-body{border-color:#5b9dd9;-webkit-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);-moz-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8)}form button.loco-loading.button-primary[disabled]:before{background:transparent url(../../img/skins/sunrise/spin-primary-button.gif?v=2.1.5) 0 0 no-repeat !important}
This diff is collapsed.
/**
* Script for bundle configuration screen
*/
!function( window, document, $ ){
// utility for scrolling
function elementTop( el, ancestor ){
var y = el.offsetTop;
while( ( el = el.offsetParent ) && el !== ancestor ){
y += el.offsetTop;
}
return y;
}
// form duplicator for adding another project
function addProject(){
var $divs = $('#loco-conf > div'),
$copy = $divs.eq(0).clone(),
index = $divs.length,
id = 'loco-conf-'+index,
ns = '['+index+']'
;
function clearField( i, input ){
var name = input.name.replace('[0]',ns);
$(input).attr('name', name ).val('');
}
$copy.attr('id', 'loco-conf-'+index );
$copy.find('input').each( clearField );
$copy.find('textarea').each( clearField );
//$copy.find('div.notice').remove();
// TODO translations of this:
$copy.find('h2').eq(0).html('New set <span>(untitled)</span>');
$copy.insertBefore('#loco-form-foot');
createClickRemove( $copy.find('a.icon-del'), index );
// scroll to $copy
$copy.hide().slideDown( 500 );
$('html, body').animate( { scrollTop: elementTop($copy[0]) }, 500 );
}
function createClickRemove( $el, index ){
return $el.click( function(event){
event.preventDefault();
delProject( index );
return false;
} );
}
// remove whole set from form
function delProject( index ){
var $div = $('#loco-conf-'+index),
$fld = $div.find('input[name="conf['+index+'][removed]"]')
;
// setting removed flag saves having to re-index all sets. back end will ignore it.
$fld.val('1');
$div.slideUp( 500, function(){ $(this).hide().find('table').remove(); } );
}
// enable project removal from initial blocks
$('#loco-conf > div').each( function( index, div ){
createClickRemove( $(div).find('a.icon-del'), index );
} );
// enable project addition via button in footer
$('#loco-add-butt').attr('disabled',false).click( function(event){
event.preventDefault();
addProject();
return false;
} );
}( window, document, jQuery );
\ No newline at end of file
/**
* Run Javascript diagnostics
*/
!function( loco, $ ){
// check tick symbol is readable by JavaScript as UTF-8
// E2\x9C\x93 => 0x2713
var span = $('#loco-utf8-check'),
tick = span[0].textContent
;
if( 1 !== tick.length || 0x2713 !== tick.charCodeAt(0) ){
loco.notices.warning("This page has a problem rendering UTF-8").stick();
}
// show custom endpoint if set in global
if( window.ajaxurl ){
$('#loco-ajax-url').text( window.ajaxurl );
}
// check UTF-8 passes to Ajax and back without a problem
function onAjaxTestPass( data, status, xhr ){
if( data && data.ping ){
$('#loco-ajax-check').text( data.ping );
}
else {
onAjaxTestFail( xhr, status, data && data.error && data.error.message );
}
}
function onAjaxTestFail( xhr, error, message ){
if( 'success' !== error ){
message = loco.ajax.parse( loco.ajax.strip( xhr.responseText ) );
}
$('#loco-ajax-check').text( 'FAILED: '+message ).addClass('loco-danger');
}
loco.ajax.post( 'ping', {echo:'\u039F\u039A \u2713'}, onAjaxTestPass, onAjaxTestFail );
}( window.locoScope, window.jQuery );
\ No newline at end of file
/**
* Script for file delete operation
*/
!function( window, document, $ ){
var fsHook = document.getElementById('loco-fs'),
elForm = document.getElementById('loco-del');
if( fsHook && elForm ){
window.locoScope.fs
.init( fsHook )
.setForm( elForm );
}
}( window, document, jQuery );
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
/**
* Script for POT file initializing page
*/
!function( window, document, $ ){
var loco = window.locoScope,
fsHook = document.getElementById('loco-fs'),
elForm = document.getElementById('loco-potinit')
;
// enable disable form submission
/*function setFormDisabled( disabled ){
$(elForm).find('button.button-primary').each( function( i, button ){
button.disabled = disabled;
} );
}*/
// Submit form to Ajax end point when ..erm.. submitted
function onXgettextSuccess( data ){
var href = data && data.redirect;
if( href ){
location.assign( href );
}
}
function process( event ){
event.preventDefault();
loco.ajax.submit( event.target, onXgettextSuccess );
return false;
}
$(elForm)
.submit( process );
//setFormDisabled( false );
if( fsHook ){
loco.fs.init(fsHook).setForm( elForm );
}
}( window, document, jQuery );
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<?php
/**
* @codeCoverageIgnore
*/
class Loco_admin_DebugController extends Loco_mvc_AdminController {
/**
* {@inheritdoc}
*/
public function init(){
parent::init();
$this->set('title','DEBUG');
}
/**
* {@inheritdoc}
*/
public function render(){
// debug package listener
$themes = array();
/* @var $bundle Loco_package_Bundle */
foreach( Loco_package_Listener::singleton()->getThemes() as $bundle ){
$themes[] = array (
'id' => $bundle->getId(),
'name' => $bundle->getName(),
'default' => $bundle->getDefaultProject()->getSlug(),
'count' => count($bundle),
);
}
$this->set('themes', $themes );
$plugins = array();
/* @var $bundle Loco_package_Bundle */
foreach( Loco_package_Listener::singleton()->getPlugins() as $bundle ){
$plugins[] = array (
'id' => $bundle->getId(),
'name' => $bundle->getName(),
'default' => $bundle->getDefaultProject()->getSlug(),
'count' => count($bundle),
);
}
// $this->set( 'plugins', Loco_package_Plugin::get_plugins() );
// $this->set('installed', wp_get_installed_translations('plugins') );
// $this->set('active', get_option( 'active_plugins', array() ) );
// $this->set('langs',get_available_languages());
/*$plugins = get_plugins();
$plugin_info = get_site_transient( 'update_plugins' );
foreach( $plugins as $plugin_file => $plugin_data ){
if ( isset( $plugin_info->response[$plugin_file] ) ) {
$plugins[$plugin_file]['____'] = $plugin_info->response[$plugin_file];
}
}*/
/*/ inspect session and test flash messages
$session = Loco_data_Session::get();
$session->flash( 'success', microtime() );
$this->set('session', $session->getArrayCopy() );
Loco_data_Session::close();*/
// try some notices
Loco_error_AdminNotices::add( new Loco_error_Success('This is a sample success message') );
Loco_error_AdminNotices::add( new Loco_error_Warning('This is a sample warning') );
Loco_error_AdminNotices::add( new Loco_error_Exception('This is a sample error') );
Loco_error_AdminNotices::add( new Loco_error_Debug('This is a sample debug message') );
//*/
return $this->view('admin/debug');
}
}
<?php
/**
* Dummy controller skips "core" list view, rendering the core projects directly as a single bundle.
* Route: loco-core -> loco-core-view
*/
class Loco_admin_list_CoreController extends Loco_admin_RedirectController {
/**
* {@inheritdoc}
*/
public function getLocation(){
return Loco_mvc_AdminRouter::generate('core-view');
}
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment