Version Description
- Various improvements and bugfixes
=
Download this release
Release Info
Developer | timwhitlock |
Plugin | Loco Translate |
Version | 2.4.1 |
Comparing to | |
See all releases |
Code changes from version 2.4.0 to 2.4.1
- languages/loco-translate.pot +64 -48
- lib/data/locales.php +1 -1
- loco.php +2 -2
- pub/css/admin.css +1 -1
- pub/css/editor.css +1 -1
- pub/css/fileinfo.css +1 -1
- pub/css/locale.css +1 -1
- pub/css/podiff.css +1 -1
- pub/css/poview.css +1 -1
- pub/css/skins/blue.css +1 -1
- pub/css/skins/coffee.css +1 -1
- pub/css/skins/ectoplasm.css +1 -1
- pub/css/skins/light.css +1 -1
- pub/css/skins/midnight.css +1 -1
- pub/css/skins/modern.css +1 -0
- pub/css/skins/ocean.css +1 -1
- pub/css/skins/sunrise.css +1 -1
- pub/img/api/deepl.png +0 -0
- pub/img/skins/modern/spin-primary-button.gif +0 -0
- pub/js/min/admin.js +196 -193
- pub/js/min/debug.js +1 -1
- pub/js/min/delete.js +1 -1
- pub/js/min/editor.js +1 -1
- pub/js/min/move.js +1 -1
- pub/js/min/podiff.js +1 -1
- pub/js/min/poinit.js +1 -1
- pub/js/min/potinit.js +1 -1
- pub/js/min/poview.js +1 -1
- pub/js/min/setup.js +1 -1
- readme.txt +15 -5
- src/Locale.php +24 -6
- src/admin/bundle/ViewController.php +17 -3
- src/admin/config/ApisController.php +6 -0
- src/admin/config/DebugController.php +1 -0
- src/admin/file/EditController.php +17 -2
- src/admin/init/InitPoController.php +3 -3
- src/admin/list/LocalesController.php +6 -7
- src/ajax/ApisController.php +1 -1
- src/ajax/FsConnectController.php +15 -4
- src/api/Providers.php +5 -0
- src/api/WordPressFileSystem.php +5 -1
- src/api/WordPressTranslations.php +3 -3
- src/data/Preferences.php +52 -2
- src/data/Serializable.php +31 -1
- src/data/Settings.php +4 -20
- src/js/Strings.php +10 -10
- src/mvc/AdminController.php +33 -38
- src/mvc/ViewParams.php +11 -0
- src/package/Project.php +5 -0
- src/test/WordPressTestCase.php +2 -0
- tpl/admin/bundle/inc-po-table.php +3 -0
- tpl/admin/config/apis.php +29 -7
- tpl/admin/config/debug.php +5 -2
- tpl/admin/config/prefs.php +13 -0
- tpl/admin/layout.php +11 -6
- tpl/admin/list/locales.php +13 -2
languages/loco-translate.pot
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
#, fuzzy
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
-
"Project-Id-Version: Loco Translate 2.4.
|
5 |
"Report-Msgid-Bugs-To: \n"
|
6 |
-
"POT-Creation-Date: 2020-05
|
7 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
8 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
9 |
"Language-Team: \n"
|
@@ -13,7 +13,7 @@ msgstr ""
|
|
13 |
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
"X-Generator: Loco https://localise.biz/\n"
|
16 |
-
"X-Loco-Version: 2.4.
|
17 |
|
18 |
#: src/fs/FileWriter.php:214
|
19 |
#, php-format
|
@@ -208,12 +208,20 @@ msgstr ""
|
|
208 |
msgid "Allow full access to these roles"
|
209 |
msgstr ""
|
210 |
|
|
|
|
|
|
|
|
|
211 |
#: src/admin/config/ApisController.php:12
|
212 |
#: src/admin/config/BaseController.php:20
|
213 |
#: src/admin/config/BaseController.php:42 tpl/admin/help/tab-config-apis.php:2
|
214 |
msgid "API keys"
|
215 |
msgstr ""
|
216 |
|
|
|
|
|
|
|
|
|
217 |
#: tpl/admin/file/delete.php:16
|
218 |
msgid ""
|
219 |
"Are you sure you want to <strong>permanently</strong> delete the following "
|
@@ -279,7 +287,7 @@ msgstr ""
|
|
279 |
msgid "Check config repository"
|
280 |
msgstr ""
|
281 |
|
282 |
-
#: src/js/Strings.php:
|
283 |
msgid "Check console output for debugging information"
|
284 |
msgstr ""
|
285 |
|
@@ -382,7 +390,7 @@ msgstr ""
|
|
382 |
msgid "Create template instead"
|
383 |
msgstr ""
|
384 |
|
385 |
-
#: src/ajax/FsConnectController.php:
|
386 |
msgid "Creating this file requires permission"
|
387 |
msgstr ""
|
388 |
|
@@ -397,7 +405,7 @@ msgid "Debug"
|
|
397 |
msgstr ""
|
398 |
|
399 |
#: src/admin/file/BaseController.php:110 tpl/admin/file/diff.php:31
|
400 |
-
#: tpl/admin/bundle/inc-po-table.php:
|
401 |
msgid "Delete"
|
402 |
msgstr ""
|
403 |
|
@@ -407,7 +415,7 @@ msgstr ""
|
|
407 |
msgid "Delete %s"
|
408 |
msgstr ""
|
409 |
|
410 |
-
#: src/ajax/FsConnectController.php:
|
411 |
msgid "Deleting this file requires permission"
|
412 |
msgstr ""
|
413 |
|
@@ -428,9 +436,9 @@ msgstr ""
|
|
428 |
msgid "Disallow"
|
429 |
msgstr ""
|
430 |
|
431 |
-
#: src/data/Settings.php:
|
432 |
#: src/admin/bundle/LocaleController.php:130 tpl/admin/config/settings.php:177
|
433 |
-
#: tpl/admin/config/apis.php:
|
434 |
#: tpl/admin/common/inc-fsconn.php:16 tpl/admin/common/inc-fsconn.php:41
|
435 |
#: tpl/admin/errors/no-backups.php:22
|
436 |
msgid "Documentation"
|
@@ -482,13 +490,13 @@ msgid "%s translation"
|
|
482 |
msgstr ""
|
483 |
|
484 |
#. button for adding a new string when manually editing a POT file
|
485 |
-
#: src/admin/file/EditController.php:
|
486 |
msgctxt "Editor"
|
487 |
msgid "Add"
|
488 |
msgstr ""
|
489 |
|
490 |
#. Button that opens window for auto-translating
|
491 |
-
#: src/admin/file/EditController.php:
|
492 |
msgctxt "Editor"
|
493 |
msgid "Auto"
|
494 |
msgstr ""
|
@@ -512,7 +520,7 @@ msgid "Context not loaded"
|
|
512 |
msgstr ""
|
513 |
|
514 |
#. Button for downloading a PO, MO or POT file
|
515 |
-
#: src/admin/file/EditController.php:
|
516 |
msgctxt "Editor"
|
517 |
msgid "Download"
|
518 |
msgstr ""
|
@@ -524,19 +532,19 @@ msgid "Plural"
|
|
524 |
msgstr ""
|
525 |
|
526 |
#. button for removing a string when manually editing a POT file
|
527 |
-
#: src/admin/file/EditController.php:
|
528 |
msgctxt "Editor"
|
529 |
msgid "Remove"
|
530 |
msgstr ""
|
531 |
|
532 |
#. Button that reloads current screen
|
533 |
-
#: src/admin/file/EditController.php:
|
534 |
msgctxt "Editor"
|
535 |
msgid "Revert"
|
536 |
msgstr ""
|
537 |
|
538 |
#. Button that saves translations to disk
|
539 |
-
#: src/admin/file/EditController.php:
|
540 |
msgctxt "Editor"
|
541 |
msgid "Save"
|
542 |
msgstr ""
|
@@ -566,13 +574,13 @@ msgid "Suggest translation"
|
|
566 |
msgstr ""
|
567 |
|
568 |
#. Button that runs in-editor sync/operation
|
569 |
-
#: src/admin/file/EditController.php:
|
570 |
msgctxt "Editor"
|
571 |
msgid "Sync"
|
572 |
msgstr ""
|
573 |
|
574 |
#. Button that toggles between "code" and regular text editing modes
|
575 |
-
#: src/admin/file/EditController.php:
|
576 |
msgctxt "Editor"
|
577 |
msgid "Toggle code view"
|
578 |
msgstr ""
|
@@ -583,7 +591,7 @@ msgid "Toggle Fuzzy"
|
|
583 |
msgstr ""
|
584 |
|
585 |
#. Button that toggles invisible characters
|
586 |
-
#: src/admin/file/EditController.php:
|
587 |
msgctxt "Editor"
|
588 |
msgid "Toggle invisibles"
|
589 |
msgstr ""
|
@@ -624,7 +632,7 @@ msgstr ""
|
|
624 |
msgid "Enter a new location for this file"
|
625 |
msgstr ""
|
626 |
|
627 |
-
#: src/js/Strings.php:
|
628 |
msgid "Error"
|
629 |
msgstr ""
|
630 |
|
@@ -799,7 +807,7 @@ msgid ""
|
|
799 |
msgstr ""
|
800 |
|
801 |
#. Placeholder text for text filter above editor
|
802 |
-
#: src/admin/file/EditController.php:
|
803 |
msgid "Filter translations"
|
804 |
msgstr ""
|
805 |
|
@@ -850,7 +858,7 @@ msgstr ""
|
|
850 |
msgid "Grant access to roles"
|
851 |
msgstr ""
|
852 |
|
853 |
-
#: src/admin/file/EditController.php:
|
854 |
#: tpl/admin/file/edit-po.php:65
|
855 |
msgid "Help"
|
856 |
msgstr ""
|
@@ -891,7 +899,7 @@ msgstr ""
|
|
891 |
msgid "Import config from XML"
|
892 |
msgstr ""
|
893 |
|
894 |
-
#: tpl/admin/config/apis.php:
|
895 |
msgid "Important"
|
896 |
msgstr ""
|
897 |
|
@@ -925,7 +933,7 @@ msgstr ""
|
|
925 |
msgid "Installed languages"
|
926 |
msgstr ""
|
927 |
|
928 |
-
#: src/Locale.php:
|
929 |
msgid "Invalid locale"
|
930 |
msgstr ""
|
931 |
|
@@ -1034,7 +1042,7 @@ msgstr ""
|
|
1034 |
msgid "Loco Translate %s"
|
1035 |
msgstr ""
|
1036 |
|
1037 |
-
#: src/data/Settings.php:
|
1038 |
msgid ""
|
1039 |
"Loco Translate 2.4 supports third party translation providers. Set up your "
|
1040 |
"API keys in the plugin settings!"
|
@@ -1096,6 +1104,10 @@ msgctxt "Modified time"
|
|
1096 |
msgid "Updated"
|
1097 |
msgstr ""
|
1098 |
|
|
|
|
|
|
|
|
|
1099 |
#: src/admin/file/MoveController.php:100 src/admin/file/MoveController.php:127
|
1100 |
#, php-format
|
1101 |
msgid "Move %s"
|
@@ -1144,7 +1156,7 @@ msgstr ""
|
|
1144 |
msgid "No translation APIs configured"
|
1145 |
msgstr ""
|
1146 |
|
1147 |
-
#: tpl/admin/bundle/inc-po-table.php:
|
1148 |
#, php-format
|
1149 |
msgid "No translations found for \"%s\""
|
1150 |
msgstr ""
|
@@ -1173,7 +1185,7 @@ msgstr ""
|
|
1173 |
msgid "Nothing needed updating"
|
1174 |
msgstr ""
|
1175 |
|
1176 |
-
#: src/js/Strings.php:
|
1177 |
#: tpl/admin/common/inc-fsconn.php:37
|
1178 |
msgid "Notice"
|
1179 |
msgstr ""
|
@@ -1190,7 +1202,7 @@ msgstr ""
|
|
1190 |
msgid "Official plugin page"
|
1191 |
msgstr ""
|
1192 |
|
1193 |
-
#: src/js/Strings.php:
|
1194 |
msgid "OK"
|
1195 |
msgstr ""
|
1196 |
|
@@ -1308,43 +1320,43 @@ msgid "Plugins"
|
|
1308 |
msgstr ""
|
1309 |
|
1310 |
#. Plural category for languages that have no plurals
|
1311 |
-
#: src/Locale.php:
|
1312 |
msgctxt "Plural category"
|
1313 |
msgid "All forms"
|
1314 |
msgstr ""
|
1315 |
|
1316 |
#. Plural category used in some multi-plural languages
|
1317 |
-
#: src/Locale.php:
|
1318 |
msgctxt "Plural category"
|
1319 |
msgid "Few"
|
1320 |
msgstr ""
|
1321 |
|
1322 |
#. Plural category used in some multi-plural languages
|
1323 |
-
#: src/Locale.php:
|
1324 |
msgctxt "Plural category"
|
1325 |
msgid "Many"
|
1326 |
msgstr ""
|
1327 |
|
1328 |
#. Plural category for singular quantity
|
1329 |
-
#: src/Locale.php:
|
1330 |
msgctxt "Plural category"
|
1331 |
msgid "One"
|
1332 |
msgstr ""
|
1333 |
|
1334 |
#. General plural category not covered by other forms
|
1335 |
-
#: src/Locale.php:
|
1336 |
msgctxt "Plural category"
|
1337 |
msgid "Other"
|
1338 |
msgstr ""
|
1339 |
|
1340 |
#. Plural category used in some multi-plural languages
|
1341 |
-
#: src/Locale.php:
|
1342 |
msgctxt "Plural category"
|
1343 |
msgid "Two"
|
1344 |
msgstr ""
|
1345 |
|
1346 |
#. Plural category for zero quantity
|
1347 |
-
#: src/Locale.php:
|
1348 |
msgctxt "Plural category"
|
1349 |
msgid "Zero"
|
1350 |
msgstr ""
|
@@ -1387,7 +1399,7 @@ msgstr ""
|
|
1387 |
msgid "Project name"
|
1388 |
msgstr ""
|
1389 |
|
1390 |
-
#: src/js/Strings.php:
|
1391 |
msgid "Provide the following text when reporting a problem"
|
1392 |
msgstr ""
|
1393 |
|
@@ -1429,6 +1441,10 @@ msgstr ""
|
|
1429 |
msgid "Restore %s"
|
1430 |
msgstr ""
|
1431 |
|
|
|
|
|
|
|
|
|
1432 |
#. Where %s is a file name
|
1433 |
#: src/ajax/DiffController.php:47
|
1434 |
#, php-format
|
@@ -1447,8 +1463,8 @@ msgstr ""
|
|
1447 |
msgid "Save credentials in session"
|
1448 |
msgstr ""
|
1449 |
|
1450 |
-
#: tpl/admin/config/settings.php:176 tpl/admin/config/apis.php:
|
1451 |
-
#: tpl/admin/config/prefs.php:
|
1452 |
msgid "Save settings"
|
1453 |
msgstr ""
|
1454 |
|
@@ -1456,7 +1472,7 @@ msgstr ""
|
|
1456 |
msgid "Saving PO/POT files"
|
1457 |
msgstr ""
|
1458 |
|
1459 |
-
#: src/ajax/FsConnectController.php:
|
1460 |
msgid "Saving this file requires permission"
|
1461 |
msgstr ""
|
1462 |
|
@@ -1484,12 +1500,12 @@ msgstr ""
|
|
1484 |
msgid "See FAQ"
|
1485 |
msgstr ""
|
1486 |
|
1487 |
-
#: tpl/admin/config/apis.php:
|
1488 |
msgid "See full disclaimer"
|
1489 |
msgstr ""
|
1490 |
|
1491 |
#. Generic error when external process broke an Ajax request
|
1492 |
-
#: src/js/Strings.php:
|
1493 |
msgid "Server returned invalid data"
|
1494 |
msgstr ""
|
1495 |
|
@@ -1504,7 +1520,7 @@ msgid "Sets"
|
|
1504 |
msgstr ""
|
1505 |
|
1506 |
#: src/mvc/AdminRouter.php:67 src/mvc/AdminRouter.php:72
|
1507 |
-
#: src/data/Settings.php:
|
1508 |
#: tpl/admin/file/edit-po.php:62 tpl/admin/common/inc-fsconn.php:18
|
1509 |
#: tpl/admin/common/inc-fsconn.php:43 tpl/admin/errors/no-backups.php:24
|
1510 |
msgid "Settings"
|
@@ -1673,7 +1689,7 @@ msgid ""
|
|
1673 |
"extract strings directly from source code."
|
1674 |
msgstr ""
|
1675 |
|
1676 |
-
#: tpl/admin/config/apis.php:
|
1677 |
msgid ""
|
1678 |
"Third party services are subject to their own terms of use and may incur "
|
1679 |
"costs from the provider"
|
@@ -1756,13 +1772,13 @@ msgid "This information is for developers to find problems in the bundle setup"
|
|
1756 |
msgstr ""
|
1757 |
|
1758 |
#. Warning when POT file is opened in the file editor. It can be disabled in settings.
|
1759 |
-
#: src/admin/file/EditController.php:
|
1760 |
msgid ""
|
1761 |
"This is NOT a translation file. Manual editing of source strings is not "
|
1762 |
"recommended."
|
1763 |
msgstr ""
|
1764 |
|
1765 |
-
#: src/ajax/FsConnectController.php:
|
1766 |
msgid "This move operation requires permission"
|
1767 |
msgstr ""
|
1768 |
|
@@ -1835,12 +1851,12 @@ msgid "Translation progress %s%%"
|
|
1835 |
msgstr ""
|
1836 |
|
1837 |
#. Where %s is the name of the invalid POT file
|
1838 |
-
#: src/ajax/SyncController.php:47 src/admin/file/EditController.php:
|
1839 |
#, php-format
|
1840 |
msgid "Translation template is invalid (%s)"
|
1841 |
msgstr ""
|
1842 |
|
1843 |
-
#: src/admin/file/EditController.php:
|
1844 |
#, php-format
|
1845 |
msgid "Translations don't match template. Run sync to update from %s"
|
1846 |
msgstr ""
|
@@ -1869,7 +1885,7 @@ msgstr ""
|
|
1869 |
msgid "Unknown author"
|
1870 |
msgstr ""
|
1871 |
|
1872 |
-
#: src/js/Strings.php:
|
1873 |
msgid "Unknown error"
|
1874 |
msgstr ""
|
1875 |
|
@@ -1929,7 +1945,7 @@ msgstr ""
|
|
1929 |
msgid "Visit official site"
|
1930 |
msgstr ""
|
1931 |
|
1932 |
-
#: src/js/Strings.php:
|
1933 |
msgid "Warning"
|
1934 |
msgstr ""
|
1935 |
|
1 |
#, fuzzy
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
+
"Project-Id-Version: Loco Translate 2.4.1-dev\n"
|
5 |
"Report-Msgid-Bugs-To: \n"
|
6 |
+
"POT-Creation-Date: 2020-08-05 16:06+0000\n"
|
7 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
8 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
9 |
"Language-Team: \n"
|
13 |
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
"X-Generator: Loco https://localise.biz/\n"
|
16 |
+
"X-Loco-Version: 2.4.1-dev; wp-5.5-RC2-48740"
|
17 |
|
18 |
#: src/fs/FileWriter.php:214
|
19 |
#, php-format
|
208 |
msgid "Allow full access to these roles"
|
209 |
msgstr ""
|
210 |
|
211 |
+
#: src/admin/config/ApisController.php:65
|
212 |
+
msgid "API key"
|
213 |
+
msgstr ""
|
214 |
+
|
215 |
#: src/admin/config/ApisController.php:12
|
216 |
#: src/admin/config/BaseController.php:20
|
217 |
#: src/admin/config/BaseController.php:42 tpl/admin/help/tab-config-apis.php:2
|
218 |
msgid "API keys"
|
219 |
msgstr ""
|
220 |
|
221 |
+
#: src/admin/config/ApisController.php:66
|
222 |
+
msgid "API region"
|
223 |
+
msgstr ""
|
224 |
+
|
225 |
#: tpl/admin/file/delete.php:16
|
226 |
msgid ""
|
227 |
"Are you sure you want to <strong>permanently</strong> delete the following "
|
287 |
msgid "Check config repository"
|
288 |
msgstr ""
|
289 |
|
290 |
+
#: src/js/Strings.php:113
|
291 |
msgid "Check console output for debugging information"
|
292 |
msgstr ""
|
293 |
|
390 |
msgid "Create template instead"
|
391 |
msgstr ""
|
392 |
|
393 |
+
#: src/ajax/FsConnectController.php:138
|
394 |
msgid "Creating this file requires permission"
|
395 |
msgstr ""
|
396 |
|
405 |
msgstr ""
|
406 |
|
407 |
#: src/admin/file/BaseController.php:110 tpl/admin/file/diff.php:31
|
408 |
+
#: tpl/admin/bundle/inc-po-table.php:63 tpl/admin/bundle/locale.php:75
|
409 |
msgid "Delete"
|
410 |
msgstr ""
|
411 |
|
415 |
msgid "Delete %s"
|
416 |
msgstr ""
|
417 |
|
418 |
+
#: src/ajax/FsConnectController.php:141
|
419 |
msgid "Deleting this file requires permission"
|
420 |
msgstr ""
|
421 |
|
436 |
msgid "Disallow"
|
437 |
msgstr ""
|
438 |
|
439 |
+
#: src/data/Settings.php:170 src/admin/file/EditController.php:190
|
440 |
#: src/admin/bundle/LocaleController.php:130 tpl/admin/config/settings.php:177
|
441 |
+
#: tpl/admin/config/apis.php:122 tpl/admin/config/prefs.php:45
|
442 |
#: tpl/admin/common/inc-fsconn.php:16 tpl/admin/common/inc-fsconn.php:41
|
443 |
#: tpl/admin/errors/no-backups.php:22
|
444 |
msgid "Documentation"
|
490 |
msgstr ""
|
491 |
|
492 |
#. button for adding a new string when manually editing a POT file
|
493 |
+
#: src/admin/file/EditController.php:214
|
494 |
msgctxt "Editor"
|
495 |
msgid "Add"
|
496 |
msgstr ""
|
497 |
|
498 |
#. Button that opens window for auto-translating
|
499 |
+
#: src/admin/file/EditController.php:225
|
500 |
msgctxt "Editor"
|
501 |
msgid "Auto"
|
502 |
msgstr ""
|
520 |
msgstr ""
|
521 |
|
522 |
#. Button for downloading a PO, MO or POT file
|
523 |
+
#: src/admin/file/EditController.php:227
|
524 |
msgctxt "Editor"
|
525 |
msgid "Download"
|
526 |
msgstr ""
|
532 |
msgstr ""
|
533 |
|
534 |
#. button for removing a string when manually editing a POT file
|
535 |
+
#: src/admin/file/EditController.php:216
|
536 |
msgctxt "Editor"
|
537 |
msgid "Remove"
|
538 |
msgstr ""
|
539 |
|
540 |
#. Button that reloads current screen
|
541 |
+
#: src/admin/file/EditController.php:223
|
542 |
msgctxt "Editor"
|
543 |
msgid "Revert"
|
544 |
msgstr ""
|
545 |
|
546 |
#. Button that saves translations to disk
|
547 |
+
#: src/admin/file/EditController.php:219
|
548 |
msgctxt "Editor"
|
549 |
msgid "Save"
|
550 |
msgstr ""
|
574 |
msgstr ""
|
575 |
|
576 |
#. Button that runs in-editor sync/operation
|
577 |
+
#: src/admin/file/EditController.php:221
|
578 |
msgctxt "Editor"
|
579 |
msgid "Sync"
|
580 |
msgstr ""
|
581 |
|
582 |
#. Button that toggles between "code" and regular text editing modes
|
583 |
+
#: src/admin/file/EditController.php:233
|
584 |
msgctxt "Editor"
|
585 |
msgid "Toggle code view"
|
586 |
msgstr ""
|
591 |
msgstr ""
|
592 |
|
593 |
#. Button that toggles invisible characters
|
594 |
+
#: src/admin/file/EditController.php:231
|
595 |
msgctxt "Editor"
|
596 |
msgid "Toggle invisibles"
|
597 |
msgstr ""
|
632 |
msgid "Enter a new location for this file"
|
633 |
msgstr ""
|
634 |
|
635 |
+
#: src/js/Strings.php:98 src/error/Exception.php:149
|
636 |
msgid "Error"
|
637 |
msgstr ""
|
638 |
|
807 |
msgstr ""
|
808 |
|
809 |
#. Placeholder text for text filter above editor
|
810 |
+
#: src/admin/file/EditController.php:229
|
811 |
msgid "Filter translations"
|
812 |
msgstr ""
|
813 |
|
858 |
msgid "Grant access to roles"
|
859 |
msgstr ""
|
860 |
|
861 |
+
#: src/admin/file/EditController.php:217 tpl/admin/file/edit-po.php:45
|
862 |
#: tpl/admin/file/edit-po.php:65
|
863 |
msgid "Help"
|
864 |
msgstr ""
|
899 |
msgid "Import config from XML"
|
900 |
msgstr ""
|
901 |
|
902 |
+
#: tpl/admin/config/apis.php:112
|
903 |
msgid "Important"
|
904 |
msgstr ""
|
905 |
|
933 |
msgid "Installed languages"
|
934 |
msgstr ""
|
935 |
|
936 |
+
#: src/Locale.php:320
|
937 |
msgid "Invalid locale"
|
938 |
msgstr ""
|
939 |
|
1042 |
msgid "Loco Translate %s"
|
1043 |
msgstr ""
|
1044 |
|
1045 |
+
#: src/data/Settings.php:168
|
1046 |
msgid ""
|
1047 |
"Loco Translate 2.4 supports third party translation providers. Set up your "
|
1048 |
"API keys in the plugin settings!"
|
1104 |
msgid "Updated"
|
1105 |
msgstr ""
|
1106 |
|
1107 |
+
#: tpl/admin/bundle/inc-po-table.php:60
|
1108 |
+
msgid "Move"
|
1109 |
+
msgstr ""
|
1110 |
+
|
1111 |
#: src/admin/file/MoveController.php:100 src/admin/file/MoveController.php:127
|
1112 |
#, php-format
|
1113 |
msgid "Move %s"
|
1156 |
msgid "No translation APIs configured"
|
1157 |
msgstr ""
|
1158 |
|
1159 |
+
#: tpl/admin/bundle/inc-po-table.php:108
|
1160 |
#, php-format
|
1161 |
msgid "No translations found for \"%s\""
|
1162 |
msgstr ""
|
1185 |
msgid "Nothing needed updating"
|
1186 |
msgstr ""
|
1187 |
|
1188 |
+
#: src/js/Strings.php:104 src/error/Notice.php:20
|
1189 |
#: tpl/admin/common/inc-fsconn.php:37
|
1190 |
msgid "Notice"
|
1191 |
msgstr ""
|
1202 |
msgid "Official plugin page"
|
1203 |
msgstr ""
|
1204 |
|
1205 |
+
#: src/js/Strings.php:107 src/error/Success.php:19
|
1206 |
msgid "OK"
|
1207 |
msgstr ""
|
1208 |
|
1320 |
msgstr ""
|
1321 |
|
1322 |
#. Plural category for languages that have no plurals
|
1323 |
+
#: src/Locale.php:401
|
1324 |
msgctxt "Plural category"
|
1325 |
msgid "All forms"
|
1326 |
msgstr ""
|
1327 |
|
1328 |
#. Plural category used in some multi-plural languages
|
1329 |
+
#: src/Locale.php:415
|
1330 |
msgctxt "Plural category"
|
1331 |
msgid "Few"
|
1332 |
msgstr ""
|
1333 |
|
1334 |
#. Plural category used in some multi-plural languages
|
1335 |
+
#: src/Locale.php:417
|
1336 |
msgctxt "Plural category"
|
1337 |
msgid "Many"
|
1338 |
msgstr ""
|
1339 |
|
1340 |
#. Plural category for singular quantity
|
1341 |
+
#: src/Locale.php:411
|
1342 |
msgctxt "Plural category"
|
1343 |
msgid "One"
|
1344 |
msgstr ""
|
1345 |
|
1346 |
#. General plural category not covered by other forms
|
1347 |
+
#: src/Locale.php:419
|
1348 |
msgctxt "Plural category"
|
1349 |
msgid "Other"
|
1350 |
msgstr ""
|
1351 |
|
1352 |
#. Plural category used in some multi-plural languages
|
1353 |
+
#: src/Locale.php:413
|
1354 |
msgctxt "Plural category"
|
1355 |
msgid "Two"
|
1356 |
msgstr ""
|
1357 |
|
1358 |
#. Plural category for zero quantity
|
1359 |
+
#: src/Locale.php:409
|
1360 |
msgctxt "Plural category"
|
1361 |
msgid "Zero"
|
1362 |
msgstr ""
|
1399 |
msgid "Project name"
|
1400 |
msgstr ""
|
1401 |
|
1402 |
+
#: src/js/Strings.php:116
|
1403 |
msgid "Provide the following text when reporting a problem"
|
1404 |
msgstr ""
|
1405 |
|
1441 |
msgid "Restore %s"
|
1442 |
msgstr ""
|
1443 |
|
1444 |
+
#: tpl/admin/config/prefs.php:29 tpl/admin/config/prefs.php:33
|
1445 |
+
msgid "Restrict locales"
|
1446 |
+
msgstr ""
|
1447 |
+
|
1448 |
#. Where %s is a file name
|
1449 |
#: src/ajax/DiffController.php:47
|
1450 |
#, php-format
|
1463 |
msgid "Save credentials in session"
|
1464 |
msgstr ""
|
1465 |
|
1466 |
+
#: tpl/admin/config/settings.php:176 tpl/admin/config/apis.php:121
|
1467 |
+
#: tpl/admin/config/prefs.php:44
|
1468 |
msgid "Save settings"
|
1469 |
msgstr ""
|
1470 |
|
1472 |
msgid "Saving PO/POT files"
|
1473 |
msgstr ""
|
1474 |
|
1475 |
+
#: src/ajax/FsConnectController.php:147
|
1476 |
msgid "Saving this file requires permission"
|
1477 |
msgstr ""
|
1478 |
|
1500 |
msgid "See FAQ"
|
1501 |
msgstr ""
|
1502 |
|
1503 |
+
#: tpl/admin/config/apis.php:115
|
1504 |
msgid "See full disclaimer"
|
1505 |
msgstr ""
|
1506 |
|
1507 |
#. Generic error when external process broke an Ajax request
|
1508 |
+
#: src/js/Strings.php:110
|
1509 |
msgid "Server returned invalid data"
|
1510 |
msgstr ""
|
1511 |
|
1520 |
msgstr ""
|
1521 |
|
1522 |
#: src/mvc/AdminRouter.php:67 src/mvc/AdminRouter.php:72
|
1523 |
+
#: src/data/Settings.php:169 src/admin/file/EditController.php:189
|
1524 |
#: tpl/admin/file/edit-po.php:62 tpl/admin/common/inc-fsconn.php:18
|
1525 |
#: tpl/admin/common/inc-fsconn.php:43 tpl/admin/errors/no-backups.php:24
|
1526 |
msgid "Settings"
|
1689 |
"extract strings directly from source code."
|
1690 |
msgstr ""
|
1691 |
|
1692 |
+
#: tpl/admin/config/apis.php:114
|
1693 |
msgid ""
|
1694 |
"Third party services are subject to their own terms of use and may incur "
|
1695 |
"costs from the provider"
|
1772 |
msgstr ""
|
1773 |
|
1774 |
#. Warning when POT file is opened in the file editor. It can be disabled in settings.
|
1775 |
+
#: src/admin/file/EditController.php:188
|
1776 |
msgid ""
|
1777 |
"This is NOT a translation file. Manual editing of source strings is not "
|
1778 |
"recommended."
|
1779 |
msgstr ""
|
1780 |
|
1781 |
+
#: src/ajax/FsConnectController.php:144
|
1782 |
msgid "This move operation requires permission"
|
1783 |
msgstr ""
|
1784 |
|
1851 |
msgstr ""
|
1852 |
|
1853 |
#. Where %s is the name of the invalid POT file
|
1854 |
+
#: src/ajax/SyncController.php:47 src/admin/file/EditController.php:150
|
1855 |
#, php-format
|
1856 |
msgid "Translation template is invalid (%s)"
|
1857 |
msgstr ""
|
1858 |
|
1859 |
+
#: src/admin/file/EditController.php:145
|
1860 |
#, php-format
|
1861 |
msgid "Translations don't match template. Run sync to update from %s"
|
1862 |
msgstr ""
|
1885 |
msgid "Unknown author"
|
1886 |
msgstr ""
|
1887 |
|
1888 |
+
#: src/js/Strings.php:119
|
1889 |
msgid "Unknown error"
|
1890 |
msgstr ""
|
1891 |
|
1945 |
msgid "Visit official site"
|
1946 |
msgstr ""
|
1947 |
|
1948 |
+
#: src/js/Strings.php:101 src/error/Warning.php:19
|
1949 |
msgid "Warning"
|
1950 |
msgstr ""
|
1951 |
|
lib/data/locales.php
CHANGED
@@ -2,4 +2,4 @@
|
|
2 |
/**
|
3 |
* Compiled data. Do not edit.
|
4 |
*/
|
5 |
-
return array('af'=>array(0=>'Afrikaans',1=>'Afrikaans'),'ar'=>array(0=>'Arabic',1=>'العربية'),'ary'=>array(0=>'Moroccan Arabic',1=>'العربية المغربية'),'as'=>array(0=>'Assamese',1=>'অসমীয়া'),'az'=>array(0=>'Azerbaijani',1=>'Azərbaycan dili'),'azb'=>array(0=>'South Azerbaijani',1=>'گؤنئی آذربایجان'),'bel'=>array(0=>'Belarusian',1=>'Беларуская мова'),'bg_BG'=>array(0=>'Bulgarian',1=>'Български'),'bn_BD'=>array(0=>'Bengali (Bangladesh)',1=>'বাংলা'),'bo'=>array(0=>'Tibetan',1=>'བོད་ཡིག'),'bs_BA'=>array(0=>'Bosnian',1=>'Bosanski'),'ca'=>array(0=>'Catalan',1=>'Català'),'ceb'=>array(0=>'Cebuano',1=>'Cebuano'),'cs_CZ'=>array(0=>'Czech',1=>'Čeština'),'cy'=>array(0=>'Welsh',1=>'Cymraeg'),'da_DK'=>array(0=>'Danish',1=>'Dansk'),'de_DE_formal'=>array(0=>'German (Formal)',1=>'Deutsch (Sie)'),'
|
2 |
/**
|
3 |
* Compiled data. Do not edit.
|
4 |
*/
|
5 |
+
return array('af'=>array(0=>'Afrikaans',1=>'Afrikaans'),'ar'=>array(0=>'Arabic',1=>'العربية'),'ary'=>array(0=>'Moroccan Arabic',1=>'العربية المغربية'),'as'=>array(0=>'Assamese',1=>'অসমীয়া'),'az'=>array(0=>'Azerbaijani',1=>'Azərbaycan dili'),'azb'=>array(0=>'South Azerbaijani',1=>'گؤنئی آذربایجان'),'bel'=>array(0=>'Belarusian',1=>'Беларуская мова'),'bg_BG'=>array(0=>'Bulgarian',1=>'Български'),'bn_BD'=>array(0=>'Bengali (Bangladesh)',1=>'বাংলা'),'bo'=>array(0=>'Tibetan',1=>'བོད་ཡིག'),'bs_BA'=>array(0=>'Bosnian',1=>'Bosanski'),'ca'=>array(0=>'Catalan',1=>'Català'),'ceb'=>array(0=>'Cebuano',1=>'Cebuano'),'cs_CZ'=>array(0=>'Czech',1=>'Čeština'),'cy'=>array(0=>'Welsh',1=>'Cymraeg'),'da_DK'=>array(0=>'Danish',1=>'Dansk'),'de_DE_formal'=>array(0=>'German (Formal)',1=>'Deutsch (Sie)'),'de_CH_informal'=>array(0=>'German (Switzerland, Informal)',1=>'Deutsch (Schweiz, Du)'),'de_CH'=>array(0=>'German (Switzerland)',1=>'Deutsch (Schweiz)'),'de_DE'=>array(0=>'German',1=>'Deutsch'),'dzo'=>array(0=>'Dzongkha',1=>'རྫོང་ཁ'),'el'=>array(0=>'Greek',1=>'Ελληνικά'),'en_GB'=>array(0=>'English (UK)',1=>'English (UK)'),'en_CA'=>array(0=>'English (Canada)',1=>'English (Canada)'),'en_ZA'=>array(0=>'English (South Africa)',1=>'English (South Africa)'),'en_AU'=>array(0=>'English (Australia)',1=>'English (Australia)'),'en_NZ'=>array(0=>'English (New Zealand)',1=>'English (New Zealand)'),'eo'=>array(0=>'Esperanto',1=>'Esperanto'),'es_AR'=>array(0=>'Spanish (Argentina)',1=>'Español de Argentina'),'es_MX'=>array(0=>'Spanish (Mexico)',1=>'Español de México'),'es_VE'=>array(0=>'Spanish (Venezuela)',1=>'Español de Venezuela'),'es_GT'=>array(0=>'Spanish (Guatemala)',1=>'Español de Guatemala'),'es_CL'=>array(0=>'Spanish (Chile)',1=>'Español de Chile'),'es_CR'=>array(0=>'Spanish (Costa Rica)',1=>'Español de Costa Rica'),'es_PE'=>array(0=>'Spanish (Peru)',1=>'Español de Perú'),'es_CO'=>array(0=>'Spanish (Colombia)',1=>'Español de Colombia'),'es_ES'=>array(0=>'Spanish (Spain)',1=>'Español'),'et'=>array(0=>'Estonian',1=>'Eesti'),'eu'=>array(0=>'Basque',1=>'Euskara'),'fa_IR'=>array(0=>'Persian',1=>'فارسی'),'fi'=>array(0=>'Finnish',1=>'Suomi'),'fr_BE'=>array(0=>'French (Belgium)',1=>'Français de Belgique'),'fr_CA'=>array(0=>'French (Canada)',1=>'Français du Canada'),'fr_FR'=>array(0=>'French (France)',1=>'Français'),'fur'=>array(0=>'Friulian',1=>'Friulian'),'gd'=>array(0=>'Scottish Gaelic',1=>'Gàidhlig'),'gl_ES'=>array(0=>'Galician',1=>'Galego'),'gu'=>array(0=>'Gujarati',1=>'ગુજરાતી'),'haz'=>array(0=>'Hazaragi',1=>'هزاره گی'),'he_IL'=>array(0=>'Hebrew',1=>'עִבְרִית'),'hi_IN'=>array(0=>'Hindi',1=>'हिन्दी'),'hr'=>array(0=>'Croatian',1=>'Hrvatski'),'hu_HU'=>array(0=>'Hungarian',1=>'Magyar'),'hy'=>array(0=>'Armenian',1=>'Հայերեն'),'id_ID'=>array(0=>'Indonesian',1=>'Bahasa Indonesia'),'is_IS'=>array(0=>'Icelandic',1=>'Íslenska'),'it_IT'=>array(0=>'Italian',1=>'Italiano'),'ja'=>array(0=>'Japanese',1=>'日本語'),'jv_ID'=>array(0=>'Javanese',1=>'Basa Jawa'),'ka_GE'=>array(0=>'Georgian',1=>'ქართული'),'kab'=>array(0=>'Kabyle',1=>'Taqbaylit'),'kk'=>array(0=>'Kazakh',1=>'Қазақ тілі'),'km'=>array(0=>'Khmer',1=>'ភាសាខ្មែរ'),'ko_KR'=>array(0=>'Korean',1=>'한국어'),'ckb'=>array(0=>'Kurdish (Sorani)',1=>'كوردی'),'lo'=>array(0=>'Lao',1=>'ພາສາລາວ'),'lt_LT'=>array(0=>'Lithuanian',1=>'Lietuvių kalba'),'lv'=>array(0=>'Latvian',1=>'Latviešu valoda'),'mk_MK'=>array(0=>'Macedonian',1=>'Македонски јазик'),'ml_IN'=>array(0=>'Malayalam',1=>'മലയാളം'),'mn'=>array(0=>'Mongolian',1=>'Монгол'),'mr'=>array(0=>'Marathi',1=>'मराठी'),'ms_MY'=>array(0=>'Malay',1=>'Bahasa Melayu'),'my_MM'=>array(0=>'Myanmar (Burmese)',1=>'ဗမာစာ'),'nb_NO'=>array(0=>'Norwegian (Bokmål)',1=>'Norsk bokmål'),'ne_NP'=>array(0=>'Nepali',1=>'नेपाली'),'nl_BE'=>array(0=>'Dutch (Belgium)',1=>'Nederlands (België)'),'nl_NL_formal'=>array(0=>'Dutch (Formal)',1=>'Nederlands (Formeel)'),'nl_NL'=>array(0=>'Dutch',1=>'Nederlands'),'nn_NO'=>array(0=>'Norwegian (Nynorsk)',1=>'Norsk nynorsk'),'oci'=>array(0=>'Occitan',1=>'Occitan'),'pa_IN'=>array(0=>'Punjabi',1=>'ਪੰਜਾਬੀ'),'pl_PL'=>array(0=>'Polish',1=>'Polski'),'ps'=>array(0=>'Pashto',1=>'پښتو'),'pt_BR'=>array(0=>'Portuguese (Brazil)',1=>'Português do Brasil'),'pt_PT'=>array(0=>'Portuguese (Portugal)',1=>'Português'),'pt_PT_ao90'=>array(0=>'Portuguese (Portugal, AO90)',1=>'Português (AO90)'),'rhg'=>array(0=>'Rohingya',1=>'Ruáinga'),'ro_RO'=>array(0=>'Romanian',1=>'Română'),'ru_RU'=>array(0=>'Russian',1=>'Русский'),'sah'=>array(0=>'Sakha',1=>'Сахалыы'),'si_LK'=>array(0=>'Sinhala',1=>'සිංහල'),'sk_SK'=>array(0=>'Slovak',1=>'Slovenčina'),'sl_SI'=>array(0=>'Slovenian',1=>'Slovenščina'),'sq'=>array(0=>'Albanian',1=>'Shqip'),'sr_RS'=>array(0=>'Serbian',1=>'Српски језик'),'sv_SE'=>array(0=>'Swedish',1=>'Svenska'),'szl'=>array(0=>'Silesian',1=>'Ślōnskŏ gŏdka'),'ta_IN'=>array(0=>'Tamil',1=>'தமிழ்'),'te'=>array(0=>'Telugu',1=>'తెలుగు'),'th'=>array(0=>'Thai',1=>'ไทย'),'tl'=>array(0=>'Tagalog',1=>'Tagalog'),'tr_TR'=>array(0=>'Turkish',1=>'Türkçe'),'tt_RU'=>array(0=>'Tatar',1=>'Татар теле'),'tah'=>array(0=>'Tahitian',1=>'Reo Tahiti'),'ug_CN'=>array(0=>'Uighur',1=>'ئۇيغۇرچە'),'uk'=>array(0=>'Ukrainian',1=>'Українська'),'ur'=>array(0=>'Urdu',1=>'اردو'),'uz_UZ'=>array(0=>'Uzbek',1=>'O‘zbekcha'),'vi'=>array(0=>'Vietnamese',1=>'Tiếng Việt'),'zh_CN'=>array(0=>'Chinese (China)',1=>'简体中文'),'zh_HK'=>array(0=>'Chinese (Hong Kong)',1=>'香港中文版 '),'zh_TW'=>array(0=>'Chinese (Taiwan)',1=>'繁體中文'));
|
loco.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Loco Translate
|
|
4 |
Plugin URI: https://wordpress.org/plugins/loco-translate/
|
5 |
Description: Translate themes and plugins directly in WordPress
|
6 |
Author: Tim Whitlock
|
7 |
-
Version: 2.4.
|
8 |
Author URI: https://localise.biz/wordpress/plugin
|
9 |
Text Domain: loco-translate
|
10 |
Domain Path: /languages/
|
@@ -30,7 +30,7 @@ function loco_plugin_file(){
|
|
30 |
* @return string
|
31 |
*/
|
32 |
function loco_plugin_version(){
|
33 |
-
return '2.4.
|
34 |
}
|
35 |
|
36 |
|
4 |
Plugin URI: https://wordpress.org/plugins/loco-translate/
|
5 |
Description: Translate themes and plugins directly in WordPress
|
6 |
Author: Tim Whitlock
|
7 |
+
Version: 2.4.1
|
8 |
Author URI: https://localise.biz/wordpress/plugin
|
9 |
Text Domain: loco-translate
|
10 |
Domain Path: /languages/
|
30 |
* @return string
|
31 |
*/
|
32 |
function loco_plugin_version(){
|
33 |
+
return '2.4.1';
|
34 |
}
|
35 |
|
36 |
|
pub/css/admin.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
._ajax_loader_f2{background-image:url(../img/ajax-loader-f2.gif?v=2.4.0);background-repeat:no-repeat;min-height:16px}._ajax_loader_f2x4{background:transparent url(../img/ajax-loader-f2-x4.gif?v=2.4.0) 0 0 no-repeat;min-height:75px}._ajax_loader_cc{background-image:url(../img/ajax-loader-cc.gif?v=2.4.0);background-repeat:no-repeat;min-height:16px}@media only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx){._ajax_loader_f2{background-image:url(../img/ajax-loader-f2-x2.gif?v=2.4.0);background-size:16px}._ajax_loader_cc{background-image:url(../img/ajax-loader-cc-x2.gif?v=2.4.0);background-size:16px}}._green_glow_inner{-webkit-box-shadow:inset 0 0 10px 0 #3db63d;-moz-box-shadow:inset 0 0 10px 0 #3db63d;box-shadow:inset 0 0 10px 0 #3db63d}._green_glow_outer{-webkit-box-shadow:0 0 .5em 0 #3db63d;-moz-box-shadow:0 0 .5em 0 #3db63d;box-shadow:0 0 .5em 0 #3db63d}.loco-font,#loco.wrap .wp-list-table th.loco-sort.loco-asc:after,#loco.wrap .wp-list-table th.loco-sort.loco-desc:after,#loco.wrap .icon,#loco.wrap .has-icon:before{font-family:"loco";speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@font-face{font-family:"loco";src:url("../font/loco.eot?v=2.4.0");src:url("../font/loco.eot?v=2.4.0?#iefix") format("embedded-opentype"),url("../font/loco.woff?v=2.4.0") format("woff"),url("../font/loco.ttf?v=2.4.0") format("truetype"),url("../font/loco.svg?v=2.4.0#loco") format("svg");font-weight:normal;font-style:normal}.tipsy{font-size:11px;position:absolute;padding:5px;z-index:500001;opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.tipsy.in{opacity:1}.tipsy-inner{background-color:#000;color:#fff;white-space:nowrap;padding:6px 8px;line-height:1.3em;text-align:center;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px;-webkit-font-smoothing:subpixel-antialiased}.tipsy-arrow{position:absolute;width:0;height:0;line-height:0;border:5px dashed #000}.tipsy-n .tipsy-arrow{top:0px;left:50%;margin-left:-5px;border-bottom-style:solid;border-top:none;border-left-color:transparent;border-right-color:transparent}.tipsy-nw .tipsy-arrow{top:0;left:10px;border-bottom-style:solid;border-top:none;border-left-color:transparent;border-right-color:transparent}.tipsy-ne .tipsy-arrow{top:0;right:10px;border-bottom-style:solid;border-top:none;border-left-color:transparent;border-right-color:transparent}.tipsy-s .tipsy-arrow{bottom:0;left:50%;margin-left:-5px;border-top-style:solid;border-bottom:none;border-left-color:transparent;border-right-color:transparent}.tipsy-sw .tipsy-arrow{bottom:0;left:10px;border-top-style:solid;border-bottom:none;border-left-color:transparent;border-right-color:transparent}.tipsy-se .tipsy-arrow{bottom:0;right:10px;border-top-style:solid;border-bottom:none;border-left-color:transparent;border-right-color:transparent}.tipsy-e .tipsy-arrow{right:0;top:50%;margin-top:-5px;border-left-style:solid;border-right:none;border-top-color:transparent;border-bottom-color:transparent}.tipsy-w .tipsy-arrow{left:0;top:50%;margin-top:-5px;border-right-style:solid;border-left:none;border-top-color:transparent;border-bottom-color:transparent}#loco.wrap .selector li,#loco.wrap .selector .handle,#loco.wrap .selectoradd a,#loco.wrap .selectorsep:before,#loco.wrap .selectorsep span{padding:.3em .75em}#loco.wrap .selector{text-align:left;display:inline-block;white-space:nowrap}#loco.wrap .selectoradd a,#loco.wrap .selector .handle{cursor:default;display:block;position:relative;border-top:solid 1px #fff;border-right:solid 1px #ddd;border-bottom:solid 1px #ddd;border-left:solid 1px #fff;color:#666;height:1.3em;overflow:hidden;white-space:normal}#loco.wrap .selectorsep{display:inline-block;border:solid 1px transparent}#loco.wrap .selectorsep:before{display:block;position:relative;color:#999;height:1.3em;overflow:hidden}#loco.wrap .selectorsep>*{display:block;line-height:1em;color:#666;height:1.3em;overflow:hidden}#loco.wrap .selector .handle{outline:none;white-space:nowrap;padding-right:2.3em;max-width:250px;text-overflow:ellipsis}#loco.wrap .selector .handle .prefix{padding-right:.6ex}#loco.wrap .selector .handle:after{font-family:loco;font-size:1.3em;color:#ccc;display:block;position:absolute;top:.25em;right:.6em;content:"▼"}#loco.wrap .selector .handle:focus:after,#loco.wrap .selector .handle:hover:after{color:#666}#loco.wrap .selector.no-caret .handle{padding-right:.75em}#loco.wrap .selector.no-caret .handle:after{display:none}#loco.wrap .selector.no-title .handle{padding-left:.5em;padding-right:.5em}#loco.wrap .selector.no-title .handle .label{display:none}#loco.wrap .selector.no-title .handle .icon{margin-right:0px}#loco.wrap .selector.dummy .handle{border-color:transparent}#loco.wrap .selector.dummy .handle:after{display:none}#loco.wrap .selectoradd{position:relative}#loco.wrap .selectoradd>*{display:block;float:left;clear:none}#loco.wrap .selectoradd>a.has-icon{width:1.3em}#loco.wrap .selectoradd>a.has-icon:before{color:#999;display:inline;padding-left:0;padding-right:0;line-height:1.4em}#loco.wrap .selectoradd>a.has-icon:hover:after{color:#2e892e}#loco.wrap .selectorsep{display:inline-block}#loco.wrap .selectorsep span{color:#666;height:1.3em}#loco.wrap .selector ul{padding:0}#loco.wrap .selector ul,#loco.wrap .selector li{display:block;position:relative;cursor:default;margin:0}#loco.wrap .selector ul{z-index:5;position:absolute;left:0;top:0;background:#f5f5f5;box-shadow:0 10px 5px rgba(0,0,0,.2);border:solid 1px #ccc;overflow:auto}#loco.wrap .selector.up ul{margin-top:0}#loco.wrap .selector.multi li input{display:none}#loco.wrap .selector.multi li.checked{background:#e5e5e5}#loco.wrap .selector li.active{background:#e5e5e5 !important}#loco.wrap .selector li.over{background:#ccc !important;color:#fff;text-shadow:1px 1px #aaa}#loco.wrap .selector li.over .label{color:#fff}#loco.wrap .selector .label{font:inherit;color:inherit}#loco.wrap .selector .icon{display:inline-block;min-width:1.2em;text-align:center;font-size:14px}#loco.wrap .selector .icon.no-icon{display:none}#loco.wrap .selector .icon:before{color:#666}#loco.wrap .selector .avtr{width:18px;height:18px;background-size:18px;background-repeat:no-repeat}#loco.wrap .selector .label{line-height:1}#loco.wrap .selector .icon,#loco.wrap .selector .icon-16{vertical-align:bottom}#loco.wrap .selector .icon,#loco.wrap .selector .lang,#loco.wrap .selector .icon-16{margin-right:5px}#loco.wrap .selector .region,#loco.wrap .selector .variant-wales,#loco.wrap .selector .region-gb.lang-cy,#loco.wrap .selector .variant-scotland,#loco.wrap .selector .region-gb.lang-gd,#loco.wrap .selector .variant-valencia,#loco.wrap .selector .region-es.variant-valencia,#loco.wrap .selector .lang-ca,#loco.wrap .selector .region-es.lang-ca,#loco.wrap .selector .lang-eo,#loco.wrap .selector .lang-eu{margin-left:2px;margin-right:7px}#loco.wrap .selector.ticked .icon.no-icon{font-size:12px;display:inline-block}#loco.wrap .selector.ticked .active .icon.no-icon:before{content:"✓"}#loco.wrap .selectoradd a:hover,#loco.wrap .selector a.handle:focus,#loco.wrap .selector a.handle:hover{color:#000;border-color:#999}#loco.wrap .selector.active .handle{border-color:#999;background-color:#eee;color:#999}#loco.wrap .selector.active .handle:after{color:#999;content:"▲"}#loco.wrap .selector.disabled{cursor:default;cursor:no-drop;cursor:not-allowed}#loco.wrap .selector.disabled .handle{pointer-events:none;border-top:solid 1px #fff;border-right:solid 1px #ddd;border-bottom:solid 1px #ddd;border-left:solid 1px #fff;color:#999;padding-right:1em}#loco.wrap .selector.disabled .handle:after{display:none}#loco.wrap .selector.disabled .handle span.icon{color:#999 !important}#loco.wrap .selector li.disabled,#loco.wrap .selector li.disabled.over{color:#aaa;text-shadow:1px 1px #fff;pointer-events:none}#loco.wrap .selector li.disabled *{cursor:text}#loco.wrap .selector li.disabled .icon:before{color:#aaa}#loco.wrap .selector li.disabled .flag,#loco.wrap .selector li.disabled .icon-16{opacity:.4}#loco.wrap .selector.lefty ul{left:auto;right:0}#loco.wrap .selector.lefty ul .icon,#loco.wrap .selector.lefty ul .icon-32{display:block;float:right;clear:none}#loco.wrap .selector.lefty ul .label{padding-right:32px;padding-left:0}#loco.wrap .selector ul>form{margin:0;display:block}#loco.wrap .selector ul>form input{margin:0;-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0}#loco.wrap .selector ul>form input:focus{-webkit-box-shadow:inset 0 0 5px 0 #3db63d;-moz-box-shadow:inset 0 0 5px 0 #3db63d;box-shadow:inset 0 0 5px 0 #3db63d}#loco.wrap .selector ul>form input.error{border-color:#c00;-webkit-box-shadow:inset 0 0 5px 0 rgba(153,0,0,.5);-moz-box-shadow:inset 0 0 5px 0 rgba(153,0,0,.5);box-shadow:inset 0 0 5px 0 rgba(153,0,0,.5)}#loco.wrap .selector ul>form a.clear{margin:0;border:none}#loco.wrap .selector ul>form ::placeholder{color:gray;font-size:16px;font-family:"loco";text-align:right;display:block}#loco.wrap .selector ul>form ::-webkit-input-placeholder{color:gray;font-size:16px;font-family:"loco";text-align:right;display:block}#loco.wrap .selector ul>form :-moz-placeholder{color:gray;font-size:16px;font-family:"loco";text-align:right;display:block;opacity:1}#loco.wrap .selector ul>form ::-moz-placeholder{color:gray;font-size:16px;font-family:"loco";text-align:right;display:block;opacity:1}#loco.wrap .selector ul>form :-ms-input-placeholder{color:gray;font-size:16px;font-family:"loco";text-align:right;display:block}#loco.wrap .selector ul>form .ielt10 .placeheld{color:gray;font-size:16px;font-family:"loco";text-align:right;display:block}#loco.wrap div.auto-comp-wrap{width:100%}#loco.wrap div.auto-comp-wrap input{display:inline-block}#loco.wrap div.auto-comp-wrap.loading input{background:transparent url(../img/ajax-loader.gif?v=2.4.0) right 2px no-repeat}#loco.wrap div.auto-comp-drop{color:#333;background:#fff;border-top:none;position:absolute;width:auto;top:0;left:0;z-index:99;-webkit-box-shadow:0 5px 5px rgba(0,0,0,.4);-moz-box-shadow:0 5px 5px rgba(0,0,0,.4);box-shadow:0 5px 5px rgba(0,0,0,.4)}#loco.wrap div.auto-comp-result{padding:5px 10px;cursor:pointer;background:#f0f0f0;border-top:solid 1px #fff;border-bottom:solid 1px #ddd;white-space:nowrap}#loco.wrap div.auto-comp-result:first-child{border-top:solid 1px #ddd}#loco.wrap div.auto-comp-result>*{display:inline-block;vertical-align:middle;line-height:normal}#loco.wrap div.auto-comp-result .icon:before{padding-right:5px}#loco.wrap div.auto-comp-result:hover{background:#a8a8a8;color:#fff;border-top-color:#a8a8a8;border-bottom-color:#999}#loco.wrap div.auto-comp-result.selected{background:#666 !important;color:#fff;border-top-color:#666;border-bottom-color:#666}#loco.wrap div.auto-comp-result .lang,#loco.wrap div.auto-comp-result .region,#loco.wrap div.auto-comp-result .variant-wales,#loco.wrap div.auto-comp-result .region-gb.lang-cy,#loco.wrap div.auto-comp-result .variant-scotland,#loco.wrap div.auto-comp-result .region-gb.lang-gd,#loco.wrap div.auto-comp-result .variant-valencia,#loco.wrap div.auto-comp-result .region-es.variant-valencia,#loco.wrap div.auto-comp-result .lang-ca,#loco.wrap div.auto-comp-result .region-es.lang-ca,#loco.wrap div.auto-comp-result .lang-eo,#loco.wrap div.auto-comp-result .lang-eu,#loco.wrap div.auto-comp-result .avtr{margin-right:5px}#loco.wrap div.auto-comp-wrap.error a.icon.clear:before{color:#c00;opacity:1}#loco.wrap div.auto-comp-wrap.error input[type=text]{border-color:#c00;color:#c00}#loco.wrap div.auto-comp-wrap.error input[type=text]:focus{-webkit-box-shadow:0 0 .5em 0 rgba(153,0,0,.5);-moz-box-shadow:0 0 .5em 0 rgba(153,0,0,.5);box-shadow:0 0 .5em 0 rgba(153,0,0,.5)}#loco.wrap ._ajax_loader_f2{background-image:url(../img/ajax-loader-f2.gif?v=2.4.0);background-repeat:no-repeat;min-height:16px}#loco.wrap ._ajax_loader_f2x4{background:transparent url(../img/ajax-loader-f2-x4.gif?v=2.4.0) 0 0 no-repeat;min-height:75px}#loco.wrap ._ajax_loader_cc{background-image:url(../img/ajax-loader-cc.gif?v=2.4.0);background-repeat:no-repeat;min-height:16px}@media only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx){#loco.wrap ._ajax_loader_f2{background-image:url(../img/ajax-loader-f2-x2.gif?v=2.4.0);background-size:16px}#loco.wrap ._ajax_loader_cc{background-image:url(../img/ajax-loader-cc-x2.gif?v=2.4.0);background-size:16px}}#loco.wrap ._green_glow_inner{-webkit-box-shadow:inset 0 0 10px 0 #3db63d;-moz-box-shadow:inset 0 0 10px 0 #3db63d;box-shadow:inset 0 0 10px 0 #3db63d}#loco.wrap ._green_glow_outer{-webkit-box-shadow:0 0 .5em 0 #3db63d;-moz-box-shadow:0 0 .5em 0 #3db63d;box-shadow:0 0 .5em 0 #3db63d}#loco.wrap .loco-font,#loco.wrap .wp-list-table th.loco-sort.loco-asc:after,#loco.wrap .wp-list-table th.loco-sort.loco-desc:after,#loco.wrap .icon,#loco.wrap .has-icon:before{font-family:"loco";speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#loco.wrap .has-icon:before{display:inline-block;padding-right:.3em}#loco.wrap a.icon-help{cursor:help}#loco.wrap a.icon-help span{display:none}#loco.wrap .icon-notag:before{content:""}#loco.wrap .icon-python:before{content:"🐍"}#loco.wrap .icon-unicode:before{content:"u"}#loco.wrap .icon-json:before{content:"{"}#loco.wrap .icon-bullist:before{content:""}#loco.wrap .icon-numlist:before{content:""}#loco.wrap .icon-indent:before{content:""}#loco.wrap .icon-outdent:before{content:""}#loco.wrap .icon-link:before{content:""}#loco.wrap .icon-unlink:before{content:""}#loco.wrap .icon-bold:before{content:"B"}#loco.wrap .icon-italic:before{content:"I"}#loco.wrap .icon-translate:before{content:""}#loco.wrap .icon-proj:before{content:""}#loco.wrap .icon-plural:before{content:"᛬"}#loco.wrap .icon-max:before,#loco.wrap .icon-full-screen:before{content:""}#loco.wrap .icon-min:before{content:""}#loco.wrap .icon-sort:before{content:""}#loco.wrap .icon-ok:before,#loco.wrap .notice-success>.has-icon:before,#loco.wrap .notice-success p>strong.has-icon:before{content:"✓"}#loco.wrap .icon-ok-empty:before{content:"🗌"}#loco.wrap .icon-checkbox-checked:before,#loco.wrap .selector.multi li.checked .icon-checkbox:before{content:"☑"}#loco.wrap .icon-checkbox-unchecked:before{content:"☐"}#loco.wrap .icon-checkbox-partial:before{content:"☉"}#loco.wrap .icon-radio-checked:before{content:"⚫"}#loco.wrap .icon-radio-unchecked:before{content:"⚪"}#loco.wrap .icon-ext:before{content:"⬈"}#loco.wrap .icon-share:before{content:""}#loco.wrap .icon-star:before{content:""}#loco.wrap .icon-user:before{content:""}#loco.wrap .icon-remove:before{content:"×"}#loco.wrap .icon-cog:before{content:""}#loco.wrap .icon-trash:before{content:""}#loco.wrap .icon-time:before,#loco.wrap .icon-history:before{content:""}#loco.wrap .icon-download:before{content:""}#loco.wrap .icon-revert:before{content:""}#loco.wrap .icon-sync:before{content:""}#loco.wrap .icon-lock:before,#loco.wrap .notice-locked>.has-icon:before,#loco.wrap .notice-locked p>strong.has-icon:before{content:""}#loco.wrap .icon-flag:before{content:""}#loco.wrap .icon-tag:before{content:""}#loco.wrap .icon-tags:before{content:""}#loco.wrap .icon-print:before{content:""}#loco.wrap .icon-camera:before{content:""}#loco.wrap .icon-pencil:before{content:""}#loco.wrap .icon-add:before{content:""}#loco.wrap .icon-del:before{content:""}#loco.wrap .icon-clear:before,#loco.wrap a.icon.clear:before{content:""}#loco.wrap .icon-ok-sign:before{content:"✔"}#loco.wrap .icon-help:before{content:"?"}#loco.wrap .icon-info:before,#loco.wrap .notice-info>.has-icon:before,#loco.wrap .notice-info p>strong.has-icon:before{content:"ℹ"}#loco.wrap .icon-cancel:before{content:""}#loco.wrap .icon-warn:before,#loco.wrap .notice-error>.has-icon:before,#loco.wrap .notice-error p>strong.has-icon:before,#loco.wrap .notice-warning>.has-icon:before,#loco.wrap .notice-warning p>strong.has-icon:before{content:""}#loco.wrap .icon-comment:before{content:""}#loco.wrap .icon-bar-chart:before{content:""}#loco.wrap .icon-key:before{content:""}#loco.wrap .icon-cogs:before{content:""}#loco.wrap .icon-comments:before{content:""}#loco.wrap .icon-signout:before{content:""}#loco.wrap .icon-signin:before{content:""}#loco.wrap .icon-upload:before{content:""}#loco.wrap .icon-twitter:before{content:"🐦"}#loco.wrap .icon-facebook:before{content:""}#loco.wrap .icon-github:before{content:""}#loco.wrap .icon-feed:before{content:""}#loco.wrap .icon-globe:before{content:""}#loco.wrap .icon-wrench:before,#loco.wrap .notice-debug>.has-icon:before,#loco.wrap .notice-debug p>strong.has-icon:before{content:""}#loco.wrap .icon-group:before{content:""}#loco.wrap .icon-cloud:before{content:""}#loco.wrap .icon-copy:before{content:""}#loco.wrap .icon-save:before{content:""}#loco.wrap .icon-menu:before{content:""}#loco.wrap .icon-table:before{content:""}#loco.wrap .icon-caret-down:before{content:"▼"}#loco.wrap .icon-caret-up:before{content:"▲"}#loco.wrap .icon-caret-right:before{content:"▶"}#loco.wrap .icon-mail:before{content:""}#loco.wrap .icon-cloud-upload:before{content:""}#loco.wrap .icon-file:before{content:""}#loco.wrap .icon-circle-white:before{content:"⚬"}#loco.wrap .icon-circle-black:before{content:"●"}#loco.wrap .icon-eraser:before{content:""}#loco.wrap .icon-unlock:before{content:""}#loco.wrap .icon-apple:before{content:""}#loco.wrap .icon-android:before{content:""}#loco.wrap .icon-robot:before{content:"🤖"}#loco.wrap .icon-back:before{content:"⬅"}#loco.wrap .icon-next:before{content:"➔"}#loco.wrap .icon-arrow-up:before{content:""}#loco.wrap .icon-ccard:before{content:""}#loco.wrap .icon-caret-left:before{content:"◀"}#loco.wrap .icon-pro:before{content:"⚡"}#loco.wrap .icon-bell:before{content:""}#loco.wrap .icon-code:before{content:""}#loco.wrap .icon-privacy:before{content:"🛡"}#loco.wrap .icon-hellip:before{content:"…"}#loco.wrap .icon-vellip:before{content:"⁞"}#loco.wrap .icon-collapse:before{content:""}#loco.wrap .icon-expand:before{content:""}#loco.wrap .icon-wordpress:before{content:""}#loco.wrap .icon-database:before{content:""}#loco.wrap .icon-restore:before{content:""}#loco.wrap .icon-pilcrow:before{content:"¶"}#loco.wrap .icon-status.is-translated:before,#loco.wrap .is-translated>header>.icon-status:before{color:#2e892e;content:"✓";text-align:center}#loco.wrap .icon-status.is-untranslated:before,#loco.wrap .is-untranslated>header>.icon-status:before{color:#aaa;content:"×";text-align:center;font-size:1.1em}#loco.wrap .icon-status.is-flagged:before,#loco.wrap .is-flagged>header>.icon-status:before{color:#bd2c00;content:"";text-align:center}#loco.wrap .icon-status.is-translated.is-blank:before,#loco.wrap .icon-status.is-translated.is-inherit:before,#loco.wrap .is-translated.is-blank>header>.icon-status:before,#loco.wrap .is-translated.is-inherit>header>.icon-status:before{content:"🗌"}#loco.wrap .icon-status.is-fuzzy:before,#loco.wrap .is-fuzzy>header>.icon-status:before{color:#666;content:""}#loco.wrap .lang,#loco.wrap .region,#loco.wrap .variant-wales,#loco.wrap .region-gb.lang-cy,#loco.wrap .variant-scotland,#loco.wrap .region-gb.lang-gd,#loco.wrap .variant-valencia,#loco.wrap .region-es.variant-valencia,#loco.wrap .lang-ca,#loco.wrap .region-es.lang-ca,#loco.wrap .lang-eo,#loco.wrap .lang-eu{color:#fff;background:#2e892e;display:inline-block;text-transform:uppercase;overflow:hidden;font-family:Verdana,Arial,sans-serif;font-size:9px;font-weight:normal;font-style:normal;line-height:12px;text-align:center;white-space:normal;text-shadow:none}#loco.wrap .lang{width:20px;height:12px;line-height:12px;vertical-align:middle}#loco.wrap .lang:before{content:attr(lang);vertical-align:baseline}#loco.wrap .no-lang{width:18px;height:10px;border:solid 1px #2e892e;background:transparent}#loco.wrap .lang-el{background-color:#1d48a3}#loco.wrap .lang-el:before{content:"Ελ"}#loco.wrap .region,#loco.wrap .variant-wales,#loco.wrap .region-gb.lang-cy,#loco.wrap .variant-scotland,#loco.wrap .region-gb.lang-gd,#loco.wrap .variant-valencia,#loco.wrap .region-es.variant-valencia,#loco.wrap .lang-ca,#loco.wrap .region-es.lang-ca,#loco.wrap .lang-eo,#loco.wrap .lang-eu{width:16px;height:12px;margin:0 2px;background-image:url(../img/flags.png?v=2.4.0);background-repeat:no-repeat;background-color:transparent}#loco.wrap .region:before,#loco.wrap .variant-wales:before,#loco.wrap .region-gb.lang-cy:before,#loco.wrap .variant-scotland:before,#loco.wrap .region-gb.lang-gd:before,#loco.wrap .variant-valencia:before,#loco.wrap .region-es.variant-valencia:before,#loco.wrap .lang-ca:before,#loco.wrap .region-es.lang-ca:before,#loco.wrap .lang-eo:before,#loco.wrap .lang-eu:before{visibility:hidden}#loco.wrap .lang-zh{background-color:#b90000}#loco.wrap .lang-zh.script-hans:before{content:"中国"}#loco.wrap .lang-zh.script-hant:before{content:"中國"}#loco.wrap .__{background-position:0 0}#loco.wrap .lang-eo{background-position:0 -12px}#loco.wrap .lang-eu{background-position:0 -24px}#loco.wrap .lang-ca,#loco.wrap .region-es.lang-ca{background-position:0 -36px}#loco.wrap .region-tg{background-position:0 -48px}#loco.wrap .region-me{background-position:0 -60px}#loco.wrap .region-la{background-position:0 -73px}#loco.wrap .region-mr{background-position:0 -85px}#loco.wrap .region-ni{background-position:0 -97px}#loco.wrap .region-lv{background-position:0 -109px}#loco.wrap .region-om{background-position:0 -121px}#loco.wrap .region-af{background-position:0 -133px}#loco.wrap .region-cy{background-position:0 -145px}#loco.wrap .region-bj{background-position:0 -157px}#loco.wrap .region-aq{background-position:0 -169px}#loco.wrap .region-cn{background-position:0 -186px}#loco.wrap .region-co{background-position:0 -198px}#loco.wrap .region-cx{background-position:0 -210px}#loco.wrap .region-ag{background-position:0 -222px}#loco.wrap .region-ms{background-position:0 -234px}#loco.wrap .region-md{background-position:0 -246px}#loco.wrap .region-zm{background-position:0 -258px}#loco.wrap .region-vn{background-position:0 -270px}#loco.wrap .region-tf{background-position:0 -282px}#loco.wrap .region-td{background-position:0 -294px}#loco.wrap .region-yt{background-position:0 -306px}#loco.wrap .region-lb{background-position:0 -318px}#loco.wrap .region-mf{background-position:0 -330px}#loco.wrap .region-lu{background-position:0 -347px}#loco.wrap .region-mq{background-position:0 -359px}#loco.wrap .region-cz{background-position:0 -371px}#loco.wrap .region-ae{background-position:0 -383px}#loco.wrap .region-cm{background-position:0 -395px}#loco.wrap .region-bi{background-position:0 -407px}#loco.wrap .region-ar{background-position:0 -419px}#loco.wrap .region-as{background-position:0 -431px}#loco.wrap .region-bh{background-position:0 -443px}#loco.wrap .region-cl{background-position:0 -455px}#loco.wrap .region-ad{background-position:0 -467px}#loco.wrap .region-mp{background-position:0 -479px}#loco.wrap .region-lt{background-position:0 -491px}#loco.wrap .region-mg{background-position:0 -503px}#loco.wrap .region-lc{background-position:0 -515px}#loco.wrap .region-tr{background-position:0 -527px}#loco.wrap .region-ua{background-position:0 -539px}#loco.wrap .region-tv{background-position:0 -551px}#loco.wrap .region-vi{background-position:0 -563px}#loco.wrap .region-mt{background-position:0 -575px}#loco.wrap .region-no{background-position:0 -587px}#loco.wrap .region-mc{background-position:0 -599px}#loco.wrap .region-ch{background-position:0 -611px}#loco.wrap .region-bl{background-position:0 -623px}#loco.wrap .region-aw{background-position:0 -640px}#loco.wrap .region-bz{background-position:0 -652px}#loco.wrap .region-bm{background-position:0 -664px}#loco.wrap .region-ci{background-position:0 -676px}#loco.wrap .region-mu{background-position:0 -688px}#loco.wrap .region-us{background-position:0 -700px}#loco.wrap .region-tw{background-position:0 -712px}#loco.wrap .region-ye{background-position:0 -724px}#loco.wrap .region-mw{background-position:0 -736px}#loco.wrap .region-nl{background-position:0 -748px}#loco.wrap .region-ls{background-position:0 -760px}#loco.wrap .region-bo{background-position:0 -772px}#loco.wrap .region-at{background-position:0 -784px}#loco.wrap .region-ck{background-position:0 -796px}#loco.wrap .region-by{background-position:0 -808px}#loco.wrap .region-au{background-position:0 -820px}#loco.wrap .region-bn{background-position:0 -832px}#loco.wrap .region-ma{background-position:0 -844px}#loco.wrap .region-nz{background-position:0 -856px}#loco.wrap .region-lr{background-position:0 -868px}#loco.wrap .region-mv{background-position:0 -880px}#loco.wrap .region-tc{background-position:0 -892px}#loco.wrap .region-ug{background-position:0 -904px}#loco.wrap .region-tt{background-position:0 -916px}#loco.wrap .region-pl{background-position:0 -928px}#loco.wrap .region-rs{background-position:0 -940px}#loco.wrap .region-in{background-position:0 -952px}#loco.wrap .region-ge{background-position:0 -964px}#loco.wrap .region-gr{background-position:0 -976px}#loco.wrap .region-gs{background-position:0 -988px}#loco.wrap .region-gd{background-position:0 -1000px}#loco.wrap .region-io{background-position:0 -1012px}#loco.wrap .region-hk{background-position:0 -1024px}#loco.wrap .region-kp{background-position:0 -1036px}#loco.wrap .region-kg{background-position:0 -1048px}#loco.wrap .region-pm{background-position:0 -1060px}#loco.wrap .region-sv{background-position:0 -1072px}#loco.wrap .region-re{background-position:0 -1084px}#loco.wrap .region-sa{background-position:0 -1096px}#loco.wrap .region-sc{background-position:0 -1108px}#loco.wrap .region-st{background-position:0 -1120px}#loco.wrap .region-ke{background-position:0 -1132px}#loco.wrap .region-im{background-position:0 -1144px}#loco.wrap .region-kr{background-position:0 -1161px}#loco.wrap .region-gf{background-position:0 -1173px}#loco.wrap .region-dj{background-position:0 -1185px}#loco.wrap .region-gq{background-position:0 -1197px}#loco.wrap .region-gp{background-position:0 -1209px}#loco.wrap .region-dk{background-position:0 -1221px}#loco.wrap .region-gg{background-position:0 -1233px}#loco.wrap .region-il{background-position:0 -1250px}#loco.wrap .region-pn{background-position:0 -1262px}#loco.wrap .region-sb{background-position:0 -1274px}#loco.wrap .region-py{background-position:0 -1286px}#loco.wrap .region-ru{background-position:0 -1298px}#loco.wrap .region-kw{background-position:0 -1310px}#loco.wrap .region-do{background-position:0 -1322px}#loco.wrap .region-gt{background-position:0 -1334px}#loco.wrap .region-gb{background-position:0 -1346px}#loco.wrap .region-gu{background-position:0 -1358px}#loco.wrap .region-je{background-position:0 -1370px}#loco.wrap .region-hm{background-position:0 -1387px}#loco.wrap .region-sg{background-position:0 -1399px}#loco.wrap .region-pk{background-position:0 -1411px}#loco.wrap .region-sr{background-position:0 -1423px}#loco.wrap .region-se{background-position:0 -1435px}#loco.wrap .region-jp{background-position:0 -1447px}#loco.wrap .region-gw{background-position:0 -1459px}#loco.wrap .region-eh{background-position:0 -1471px}#loco.wrap .region-dz{background-position:0 -1483px}#loco.wrap .region-ga{background-position:0 -1495px}#loco.wrap .region-fr{background-position:0 -1507px}#loco.wrap .region-dm{background-position:0 -1519px}#loco.wrap .region-hn{background-position:0 -1531px}#loco.wrap .region-sd{background-position:0 -1543px}#loco.wrap .region-rw{background-position:0 -1555px}#loco.wrap .region-ph{background-position:0 -1567px}#loco.wrap .region-ss{background-position:0 -1579px}#loco.wrap .region-qa{background-position:0 -1596px}#loco.wrap .region-pe{background-position:0 -1608px}#loco.wrap .region-pr{background-position:0 -1620px}#loco.wrap .region-si{background-position:0 -1632px}#loco.wrap .region-ht{background-position:0 -1644px}#loco.wrap .region-es{background-position:0 -1656px}#loco.wrap .region-gl{background-position:0 -1668px}#loco.wrap .region-gm{background-position:0 -1680px}#loco.wrap .region-er{background-position:0 -1692px}#loco.wrap .region-fi{background-position:0 -1704px}#loco.wrap .region-ee{background-position:0 -1716px}#loco.wrap .region-kn{background-position:0 -1728px}#loco.wrap .region-hu{background-position:0 -1740px}#loco.wrap .region-iq{background-position:0 -1752px}#loco.wrap .region-ky{background-position:0 -1764px}#loco.wrap .region-sh{background-position:0 -1776px}#loco.wrap .region-ps{background-position:0 -1788px}#loco.wrap .region-pf{background-position:0 -1800px}#loco.wrap .region-sj{background-position:0 -1812px}#loco.wrap .region-id{background-position:0 -1824px}#loco.wrap .region-is{background-position:0 -1836px}#loco.wrap .region-eg{background-position:0 -1848px}#loco.wrap .region-fk{background-position:0 -1860px}#loco.wrap .region-fj{background-position:0 -1872px}#loco.wrap .region-gn{background-position:0 -1884px}#loco.wrap .region-gy{background-position:0 -1896px}#loco.wrap .region-ir{background-position:0 -1908px}#loco.wrap .region-km{background-position:0 -1920px}#loco.wrap .region-ie{background-position:0 -1932px}#loco.wrap .region-kz{background-position:0 -1944px}#loco.wrap .region-ro{background-position:0 -1956px}#loco.wrap .region-sk{background-position:0 -1968px}#loco.wrap .region-pg{background-position:0 -1980px}#loco.wrap .region-pt{background-position:0 -1992px}#loco.wrap .region-so{background-position:0 -2004px}#loco.wrap .region-sx{background-position:0 -2016px}#loco.wrap .region-hr{background-position:0 -2033px}#loco.wrap .region-ki{background-position:0 -2045px}#loco.wrap .region-jm{background-position:0 -2057px}#loco.wrap .region-ec{background-position:0 -2069px}#loco.wrap .region-et{background-position:0 -2081px}#loco.wrap .region-fo{background-position:0 -2093px}#loco.wrap .region-kh{background-position:0 -2105px}#loco.wrap .region-sy{background-position:0 -2117px}#loco.wrap .region-sn{background-position:0 -2129px}#loco.wrap .region-pw{background-position:0 -2141px}#loco.wrap .region-sl{background-position:0 -2153px}#loco.wrap .region-fm{background-position:0 -2165px}#loco.wrap .region-gi{background-position:0 -2177px}#loco.wrap .region-de{background-position:0 -2189px}#loco.wrap .region-gh{background-position:0 -2201px}#loco.wrap .region-jo{background-position:0 -2213px}#loco.wrap .region-it{background-position:0 -2225px}#loco.wrap .region-pa{background-position:0 -2237px}#loco.wrap .region-sz{background-position:0 -2249px}#loco.wrap .region-sm{background-position:0 -2261px}#loco.wrap .region-tn{background-position:0 -2273px}#loco.wrap .region-ml{background-position:0 -2285px}#loco.wrap .region-cg{background-position:0 -2297px}#loco.wrap .region-ax{background-position:0 -2309px}#loco.wrap .region-ao{background-position:0 -2321px}#loco.wrap .region-bt{background-position:0 -2333px}#loco.wrap .region-an{background-position:0 -2345px}#loco.wrap .region-bb{background-position:0 -2357px}#loco.wrap .region-cf{background-position:0 -2369px}#loco.wrap .region-mm{background-position:0 -2381px}#loco.wrap .region-li{background-position:0 -2393px}#loco.wrap .region-na{background-position:0 -2405px}#loco.wrap .region-mz{background-position:0 -2417px}#loco.wrap .region-to{background-position:0 -2429px}#loco.wrap .region-vg{background-position:0 -2441px}#loco.wrap .region-ve{background-position:0 -2453px}#loco.wrap .region-tz{background-position:0 -2465px}#loco.wrap .region-tm{background-position:0 -2477px}#loco.wrap .region-mx{background-position:0 -2489px}#loco.wrap .region-nc{background-position:0 -2501px}#loco.wrap .region-mo{background-position:0 -2513px}#loco.wrap .region-lk{background-position:0 -2525px}#loco.wrap .region-cd{background-position:0 -2537px}#loco.wrap .region-al{background-position:0 -2549px}#loco.wrap .region-bw{background-position:0 -2561px}#loco.wrap .region-cs{background-position:0 -2573px}#loco.wrap .region-cr{background-position:0 -2585px}#loco.wrap .region-bv{background-position:0 -2597px}#loco.wrap .region-am{background-position:0 -2609px}#loco.wrap .region-az{background-position:0 -2621px}#loco.wrap .region-ba{background-position:0 -2633px}#loco.wrap .region-mn{background-position:0 -2645px}#loco.wrap .region-nu{background-position:0 -2657px}#loco.wrap .region-my{background-position:0 -2669px}#loco.wrap .region-tl{background-position:0 -2681px}#loco.wrap .region-ws{background-position:0 -2693px}#loco.wrap .region-th{background-position:0 -2705px}#loco.wrap .region-nf{background-position:0 -2717px}#loco.wrap .region-ly{background-position:0 -2729px}#loco.wrap .region-ai{background-position:0 -2741px}#loco.wrap .region-br{background-position:0 -2753px}#loco.wrap .region-cv{background-position:0 -2765px}#loco.wrap .region-be{background-position:0 -2777px}#loco.wrap .region-ca{background-position:0 -2789px}#loco.wrap .region-bd{background-position:0 -2801px}#loco.wrap .region-cw{background-position:0 -2813px}#loco.wrap .region-bs{background-position:0 -2830px}#loco.wrap .region-ng{background-position:0 -2842px}#loco.wrap .region-mk{background-position:0 -2854px}#loco.wrap .region-np{background-position:0 -2866px}#loco.wrap .region-va{background-position:0 -2878px}#loco.wrap .region-uz{background-position:0 -2890px}#loco.wrap .region-um{background-position:0 -2902px}#loco.wrap .region-tk{background-position:0 -2914px}#loco.wrap .region-vc{background-position:0 -2926px}#loco.wrap .region-zw{background-position:0 -2938px}#loco.wrap .region-nr{background-position:0 -2950px}#loco.wrap .region-ne{background-position:0 -2962px}#loco.wrap .region-cu{background-position:0 -2974px}#loco.wrap .region-bq{background-position:0 -2986px}#loco.wrap .region-bf{background-position:0 -2998px}#loco.wrap .region-bg{background-position:0 -3010px}#loco.wrap .region-cc{background-position:0 -3022px}#loco.wrap .region-mh{background-position:0 -3034px}#loco.wrap .region-za{background-position:0 -3046px}#loco.wrap .region-uy{background-position:0 -3058px}#loco.wrap .region-wf{background-position:0 -3070px}#loco.wrap .region-vu{background-position:0 -3082px}#loco.wrap .region-tj{background-position:0 -3094px}#loco.wrap .variant-scotland,#loco.wrap .region-gb.lang-gd{background-position:0 -3106px}#loco.wrap .variant-valencia,#loco.wrap .region-es.variant-valencia{background-position:0 -3118px}#loco.wrap .variant-wales,#loco.wrap .region-gb.lang-cy{background-position:0 -3130px}#loco.wrap .x-eu{background-position:0 -3142px}#loco.wrap span.lang code{display:none}#loco.wrap .icon-notag:before{content:""}#loco.wrap .icon-python:before{content:"🐍"}#loco.wrap .icon-unicode:before{content:"u"}#loco.wrap .icon-json:before{content:"{"}#loco.wrap .icon-bullist:before{content:""}#loco.wrap .icon-numlist:before{content:""}#loco.wrap .icon-indent:before{content:""}#loco.wrap .icon-outdent:before{content:""}#loco.wrap .icon-link:before{content:""}#loco.wrap .icon-unlink:before{content:""}#loco.wrap .icon-bold:before{content:"B"}#loco.wrap .icon-italic:before{content:"I"}#loco.wrap .icon-translate:before{content:""}#loco.wrap .icon-proj:before{content:""}#loco.wrap .icon-plural:before{content:"᛬"}#loco.wrap .icon-max:before,#loco.wrap .icon-full-screen:before{content:""}#loco.wrap .icon-min:before{content:""}#loco.wrap .icon-sort:before{content:""}#loco.wrap .icon-ok:before,#loco.wrap .notice-success>.has-icon:before,#loco.wrap .notice-success p>strong.has-icon:before{content:"✓"}#loco.wrap .icon-ok-empty:before{content:"🗌"}#loco.wrap .icon-checkbox-checked:before,#loco.wrap .selector.multi li.checked .icon-checkbox:before{content:"☑"}#loco.wrap .icon-checkbox-unchecked:before{content:"☐"}#loco.wrap .icon-checkbox-partial:before{content:"☉"}#loco.wrap .icon-radio-checked:before{content:"⚫"}#loco.wrap .icon-radio-unchecked:before{content:"⚪"}#loco.wrap .icon-ext:before{content:"⬈"}#loco.wrap .icon-share:before{content:""}#loco.wrap .icon-star:before{content:""}#loco.wrap .icon-user:before{content:""}#loco.wrap .icon-remove:before{content:"×"}#loco.wrap .icon-cog:before{content:""}#loco.wrap .icon-trash:before{content:""}#loco.wrap .icon-time:before,#loco.wrap .icon-history:before{content:""}#loco.wrap .icon-download:before{content:""}#loco.wrap .icon-revert:before{content:""}#loco.wrap .icon-sync:before{content:""}#loco.wrap .icon-lock:before,#loco.wrap .notice-locked>.has-icon:before,#loco.wrap .notice-locked p>strong.has-icon:before{content:""}#loco.wrap .icon-flag:before{content:""}#loco.wrap .icon-tag:before{content:""}#loco.wrap .icon-tags:before{content:""}#loco.wrap .icon-print:before{content:""}#loco.wrap .icon-camera:before{content:""}#loco.wrap .icon-pencil:before{content:""}#loco.wrap .icon-add:before{content:""}#loco.wrap .icon-del:before{content:""}#loco.wrap .icon-clear:before,#loco.wrap a.icon.clear:before{content:""}#loco.wrap .icon-ok-sign:before{content:"✔"}#loco.wrap .icon-help:before{content:"?"}#loco.wrap .icon-info:before,#loco.wrap .notice-info>.has-icon:before,#loco.wrap .notice-info p>strong.has-icon:before{content:"ℹ"}#loco.wrap .icon-cancel:before{content:""}#loco.wrap .icon-warn:before,#loco.wrap .notice-error>.has-icon:before,#loco.wrap .notice-error p>strong.has-icon:before,#loco.wrap .notice-warning>.has-icon:before,#loco.wrap .notice-warning p>strong.has-icon:before{content:""}#loco.wrap .icon-comment:before{content:""}#loco.wrap .icon-bar-chart:before{content:""}#loco.wrap .icon-key:before{content:""}#loco.wrap .icon-cogs:before{content:""}#loco.wrap .icon-comments:before{content:""}#loco.wrap .icon-signout:before{content:""}#loco.wrap .icon-signin:before{content:""}#loco.wrap .icon-upload:before{content:""}#loco.wrap .icon-twitter:before{content:"🐦"}#loco.wrap .icon-facebook:before{content:""}#loco.wrap .icon-github:before{content:""}#loco.wrap .icon-feed:before{content:""}#loco.wrap .icon-globe:before{content:""}#loco.wrap .icon-wrench:before,#loco.wrap .notice-debug>.has-icon:before,#loco.wrap .notice-debug p>strong.has-icon:before{content:""}#loco.wrap .icon-group:before{content:""}#loco.wrap .icon-cloud:before{content:""}#loco.wrap .icon-copy:before{content:""}#loco.wrap .icon-save:before{content:""}#loco.wrap .icon-menu:before{content:""}#loco.wrap .icon-table:before{content:""}#loco.wrap .icon-caret-down:before{content:"▼"}#loco.wrap .icon-caret-up:before{content:"▲"}#loco.wrap .icon-caret-right:before{content:"▶"}#loco.wrap .icon-mail:before{content:""}#loco.wrap .icon-cloud-upload:before{content:""}#loco.wrap .icon-file:before{content:""}#loco.wrap .icon-circle-white:before{content:"⚬"}#loco.wrap .icon-circle-black:before{content:"●"}#loco.wrap .icon-eraser:before{content:""}#loco.wrap .icon-unlock:before{content:""}#loco.wrap .icon-apple:before{content:""}#loco.wrap .icon-android:before{content:""}#loco.wrap .icon-robot:before{content:"🤖"}#loco.wrap .icon-back:before{content:"⬅"}#loco.wrap .icon-next:before{content:"➔"}#loco.wrap .icon-arrow-up:before{content:""}#loco.wrap .icon-ccard:before{content:""}#loco.wrap .icon-caret-left:before{content:"◀"}#loco.wrap .icon-pro:before{content:"⚡"}#loco.wrap .icon-bell:before{content:""}#loco.wrap .icon-code:before{content:""}#loco.wrap .icon-privacy:before{content:"🛡"}#loco.wrap .icon-hellip:before{content:"…"}#loco.wrap .icon-vellip:before{content:"⁞"}#loco.wrap .icon-collapse:before{content:""}#loco.wrap .icon-expand:before{content:""}#loco.wrap .icon-wordpress:before{content:""}#loco.wrap .icon-database:before{content:""}#loco.wrap .icon-restore:before{content:""}#loco.wrap .icon-pilcrow:before{content:"¶"}#loco.wrap .icon,#loco.wrap .has-icon:before,#loco.wrap .has-dashicon:before{speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#loco.wrap .icon,#loco.wrap .has-icon:before{font-family:"loco"}#loco.wrap .has-dashicon:before{font-family:"dashicons";font-size:1.4em}#loco.wrap .has-icon:before,#loco.wrap .has-dashicon:before,#loco.wrap .has-icon>span{display:inline-block;vertical-align:middle}#loco.wrap .only-icon{text-align:center}#loco.wrap .only-icon:before{text-align:center;padding:0}#loco.wrap .only-icon span{display:none}#loco.wrap a,#loco.wrap .wp-core-ui .button-link{text-decoration:none}#loco.wrap h3:hover>a.loco-anchor{color:#ccc}#loco.wrap h3:hover>a.loco-anchor:before{content:"¶"}#loco.wrap .has-lang>span{display:inline-block;vertical-align:middle}#loco.wrap a.has-lang:hover>span:last-child{text-decoration:underline}#loco.wrap h1 ul,#loco.wrap h1 li{margin:0;padding:0}#loco.wrap h1 li{display:inline-block}#loco.wrap h1 li:after{content:"/";color:#999;text-shadow:none;display:inline-block}#loco.wrap h1 li:last-child:after{content:""}#loco.wrap h1 li:last-child a{color:inherit;pointer-events:none;cursor:auto}#loco.wrap h2 span{color:#999;font-weight:normal}#loco.wrap h2 .loco-meta,#loco.wrap h3 .loco-meta{color:inherit;font-size:14px;font-weight:normal;vertical-align:middle}#loco.wrap .wp-list-table td:first-child .icon{width:16px;display:inline-block;text-align:center}#loco.wrap .wp-list-table td{white-space:nowrap}#loco.wrap .wp-list-table td>a,#loco.wrap .wp-list-table td>time{display:inline-block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-o-text-overflow:ellipsis;-ms-text-overflow:ellipsis}#loco.wrap .wp-list-table th.loco-sort{cursor:pointer}#loco.wrap .wp-list-table th.loco-sort:hover{color:#000}#loco.wrap .wp-list-table th.loco-sort.loco-asc:after,#loco.wrap .wp-list-table th.loco-sort.loco-desc:after{padding:0 0 0 4px;color:#999}#loco.wrap .wp-list-table th.loco-sort.loco-desc:after{content:"▼"}#loco.wrap .wp-list-table th.loco-sort.loco-asc:after{content:"▲"}#loco.wrap .wp-list-table td.has-row-actions{overflow:visible}#loco.wrap form.loco-filter{display:block;margin-bottom:5px}#loco.wrap form.loco-filter .icon-filter{color:#999}#loco.wrap nav.above-list-table{margin-bottom:1em}#loco.wrap nav.above-list-table a{display:inline-block;margin-right:1em}#loco.wrap .wp-core-ui button.inverted,#loco.wrap .wp-core-ui button.inverted:hover,#loco.wrap .po-fuzzy button.icon-cloud{background:-moz-linear-gradient(top, #cccccc 0%, #e0e0e0 30%, #fefefe 100%);background:-webkit-linear-gradient(top, #cccccc 0%, #e0e0e0 30%, #fefefe 100%);background:linear-gradient(to bottom, #cccccc 0%, #e0e0e0 30%, #fefefe 100%);-webkit-box-shadow:0 1px 0 #fff;-moz-box-shadow:0 1px 0 #fff;box-shadow:0 1px 0 #fff;border-color:gray}#loco.wrap .wp-core-ui button:active,#loco.wrap .wp-core-ui button.inverted:active{border-color:#5b9dd9}#loco.wrap .loco-clearable{display:inline-block;vertical-align:middle;position:relative}#loco.wrap .loco-clearable a.clear,#loco.wrap .auto-comp-wrap a.clear{top:0;right:0;outline:none;margin:0;border:solid 1px transparent;padding:5px 5px;position:absolute;font-size:1em;line-height:normal}#loco.wrap .loco-clearable a.clear:before,#loco.wrap .auto-comp-wrap a.clear:before{vertical-align:middle;padding:0;color:#999}#loco.wrap .loco-clearable a.clear:hover:before,#loco.wrap .auto-comp-wrap a.clear:hover:before{color:#333}#loco.wrap .loco-clearable a.clear span,#loco.wrap .auto-comp-wrap a.clear span{display:none}#loco.wrap .loco-clearable ::-ms-clear,#loco.wrap .auto-comp-wrap ::-ms-clear{display:none}#loco.wrap div.progress{color:#000;background:transparent !important}#loco.wrap div.progress *{height:100%;overflow:hidden;white-space:nowrap}#loco.wrap div.progress .t{background-color:#ddd;border:1px solid #ccc}#loco.wrap div.progress .t .bar{float:left;clear:none;background-color:#3db63d}#loco.wrap div.progress .t .bar.f{background-color:#bd2c00}#loco.wrap div.progress .l{display:block}#loco.wrap td div.progress .t{border:none}#loco.wrap td div.progress .l{display:none}#loco.wrap code.path{color:#333;margin:0;padding:0;display:inline;background:transparent}#loco.wrap .loco-danger{color:#d54e21}#loco.wrap .notice,#loco.wrap .panel{background:#fff;position:relative;margin:1em 0;padding:1px 12px}#loco.wrap .notice-generic{border-color:#ddd}#loco.wrap .notice-success>.has-icon,#loco.wrap .notice-success p>strong.has-icon{color:#000}#loco.wrap .notice-warning{border-color:orange}#loco.wrap .notice-error{border-color:#dc3232}#loco.wrap .notice-debug{border-color:#00a0d2}#loco.wrap .notice-danger{border-color:#dc3232}#loco.wrap .notice-locked{border-color:orange}#loco.wrap .notice>.has-icon:before,#loco.wrap .notice p>strong.has-icon:before{padding-right:6px}#loco.wrap .notice>p>a.button.has-icon:before{width:1.2em}#loco.wrap .notice>p>em{color:#d54e21;font-style:normal}#loco.wrap .notice>p>em a{color:inherit}#loco.wrap .notice>p a:hover,#loco.wrap .notice>nav a:hover{text-decoration:underline}#loco.wrap .notice>p a.button,#loco.wrap .notice>nav a.button{text-decoration:inherit}#loco.wrap .notice.has-nav{display:flex;flex-direction:row}#loco.wrap .notice.has-nav p,#loco.wrap .notice.has-nav nav{line-height:22px;flex-grow:1}#loco.wrap .notice.has-nav nav{text-align:right;padding:2px;margin:.5em 0}#loco.wrap .notice.has-nav.is-dismissible{padding-right:38px}#loco.wrap .notice.has-nav a{white-space:nowrap}#loco.wrap .notice.has-nav nav>span{color:#666}#loco.wrap .notice>h3>span{display:inline-block;vertical-align:middle}#loco.wrap ul.problems li{font-style:italic}#loco.wrap label{position:relative}#loco.wrap label.for-disabled,#loco.wrap label.for-disabled>input{cursor:default !important}#loco.wrap input.regular-text,#loco.wrap textarea.regular-text{width:25em}#loco.wrap .button-link{padding:0 10px 1px}#loco.wrap .button-danger{background:#ba0000;border-color:#900 #600 #600;-webkit-box-shadow:0 1px 0 #600;-moz-box-shadow:0 1px 0 #600;box-shadow:0 1px 0 #600;color:#fff;text-shadow:0 -1px 1px #600,1px 0 1px #600,0 1px 1px #600,-1px 0 1px #600}#loco.wrap .button-success{background:#00b500;border-color:#090 #2e892e #2e892e;-webkit-box-shadow:0 1px 0 #2e892e;-moz-box-shadow:0 1px 0 #2e892e;box-shadow:0 1px 0 #2e892e;color:#fff;text-shadow:0 -1px 1px #2e892e,1px 0 1px #2e892e,0 1px 1px #2e892e,-1px 0 1px #2e892e}#loco.wrap .button-success:hover{background:#3db63d}#loco.wrap form button.loco-loading.button-large{padding-left:0}#loco.wrap form button.loco-loading.button-large:before{width:16px;height:16px;margin:0 4px;content:" ";font-size:16px;line-height:1;display:inline-block;vertical-align:sub}#loco.wrap ::placeholder{color:#ccc}#loco.wrap ::-webkit-input-placeholder{color:#ccc}#loco.wrap :-moz-placeholder{color:#ccc;opacity:1}#loco.wrap ::-moz-placeholder{color:#ccc;opacity:1}#loco.wrap :-ms-input-placeholder{color:#ccc}#loco.wrap .ielt10 .placeheld{color:#ccc}#loco.wrap a.has-raquo:after{content:" »"}#loco.wrap a.has-laquo:before{content:"« "}#loco.wrap span.inline-spinner{display:inline-block;min-width:16px;min-height:16px;background:transparent url(../img/spin-modal.gif?v=2.4.0) 0 0 no-repeat}.js #wpbody-content>.notice{display:none}.js #wpbody-content>.notice.inline{display:block}.js #loco.wrap .jshide,.no-js #loco.wrap .jsonly{display:none !important}#loco.wrap .invis{visibility:hidden}.form-table tr{vertical-align:top}.form-table tr.compact td{padding-top:0}.loco-modal{min-width:50%;min-height:100px}.loco-modal-wide{min-width:90% !important}.loco-modal.request-filesystem-credentials-dialog{top:15% !important;max-height:85% !important}.loco-modal.request-filesystem-credentials-dialog>.ui-dialog-content{background:inherit}.loco-modal.request-filesystem-credentials-dialog .ftp-password>label>em:last-child{display:none}.ui-dialog-content>div.loco-loading{height:100%;background:transparent url(../img/spin-modal.gif?v=2.4.0) center 20px no-repeat}#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}#loco-credit>*{vertical-align:middle}#loco-credit>a{display:inline-block;position:relative;overflow:hidden;background:transparent url(../img/logo-foot.gif?v=2.4.0) 0 0 no-repeat;height:30px;width:100px;text-indent:200px;-webkit-transition-duration:0s;transition-duration:0s}#loco-credit>a:hover{background-position:0 -35px}#loco-content{position:relative}#footer-upgrade span:before{color:#ccc;content:" | ";display:inline;padding-left:.5em;padding-right:.5em}#footer-upgrade span:first-child:before{content:"";display:none}.loco-clearfix:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}dl.debug dt{font-weight:bold}dl.debug dt,dl.debug dd{white-space:pre}.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(0,115,170,.05)}.wrap #loco-editor .wg-split-x>nav.wg-tabs>a.active,.wrap #loco-editor .is-table .wg-cols>div>div.selected{background-color:#0073aa}.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 .6em rgba(30,140,190,.8);-moz-box-shadow:inset 0 0 .6em rgba(30,140,190,.8);box-shadow:inset 0 0 .6em rgba(30,140,190,.8)}form button.loco-loading.button-primary[disabled]:before{background:transparent url(../img/skins/fresh/spin-primary-button.gif?v=2.4.0) 0 0 no-repeat !important}
|
1 |
+
._ajax_loader_f2{background-image:url(../img/ajax-loader-f2.gif?v=2.4.1);background-repeat:no-repeat;min-height:16px}._ajax_loader_f2x4{background:transparent url(../img/ajax-loader-f2-x4.gif?v=2.4.1) 0 0 no-repeat;min-height:75px}._ajax_loader_cc{background-image:url(../img/ajax-loader-cc.gif?v=2.4.1);background-repeat:no-repeat;min-height:16px}@media only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx){._ajax_loader_f2{background-image:url(../img/ajax-loader-f2-x2.gif?v=2.4.1);background-size:16px}._ajax_loader_cc{background-image:url(../img/ajax-loader-cc-x2.gif?v=2.4.1);background-size:16px}}._green_glow_inner{-webkit-box-shadow:inset 0 0 10px 0 #3db63d;-moz-box-shadow:inset 0 0 10px 0 #3db63d;box-shadow:inset 0 0 10px 0 #3db63d}._green_glow_outer{-webkit-box-shadow:0 0 .5em 0 #3db63d;-moz-box-shadow:0 0 .5em 0 #3db63d;box-shadow:0 0 .5em 0 #3db63d}.loco-font,#loco-admin.wrap .wp-list-table th.loco-sort.loco-asc:after,#loco-admin.wrap .wp-list-table th.loco-sort.loco-desc:after,#loco-admin.wrap .icon,#loco-admin.wrap .has-icon:before{font-family:"loco";speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@font-face{font-family:"loco";src:url("../font/loco.eot?v=2.4.1");src:url("../font/loco.eot?v=2.4.1?#iefix") format("embedded-opentype"),url("../font/loco.woff?v=2.4.1") format("woff"),url("../font/loco.ttf?v=2.4.1") format("truetype"),url("../font/loco.svg?v=2.4.1#loco") format("svg");font-weight:normal;font-style:normal}.tipsy{font-size:11px;position:absolute;padding:5px;z-index:500001;opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.tipsy.in{opacity:1}.tipsy-inner{background-color:#000;color:#fff;white-space:nowrap;padding:6px 8px;line-height:1.3em;text-align:center;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px;-webkit-font-smoothing:subpixel-antialiased}.tipsy-arrow{position:absolute;width:0;height:0;line-height:0;border:5px dashed #000}.tipsy-n .tipsy-arrow{top:0px;left:50%;margin-left:-5px;border-bottom-style:solid;border-top:none;border-left-color:transparent;border-right-color:transparent}.tipsy-nw .tipsy-arrow{top:0;left:10px;border-bottom-style:solid;border-top:none;border-left-color:transparent;border-right-color:transparent}.tipsy-ne .tipsy-arrow{top:0;right:10px;border-bottom-style:solid;border-top:none;border-left-color:transparent;border-right-color:transparent}.tipsy-s .tipsy-arrow{bottom:0;left:50%;margin-left:-5px;border-top-style:solid;border-bottom:none;border-left-color:transparent;border-right-color:transparent}.tipsy-sw .tipsy-arrow{bottom:0;left:10px;border-top-style:solid;border-bottom:none;border-left-color:transparent;border-right-color:transparent}.tipsy-se .tipsy-arrow{bottom:0;right:10px;border-top-style:solid;border-bottom:none;border-left-color:transparent;border-right-color:transparent}.tipsy-e .tipsy-arrow{right:0;top:50%;margin-top:-5px;border-left-style:solid;border-right:none;border-top-color:transparent;border-bottom-color:transparent}.tipsy-w .tipsy-arrow{left:0;top:50%;margin-top:-5px;border-right-style:solid;border-left:none;border-top-color:transparent;border-bottom-color:transparent}#loco-admin.wrap .selector li,#loco-admin.wrap .selector .handle,#loco-admin.wrap .selectoradd a,#loco-admin.wrap .selectorsep:before,#loco-admin.wrap .selectorsep span{padding:.3em .75em}#loco-admin.wrap .selector{text-align:left;display:inline-block;white-space:nowrap}#loco-admin.wrap .selectoradd a,#loco-admin.wrap .selector .handle{cursor:default;display:block;position:relative;border-top:solid 1px #fff;border-right:solid 1px #ddd;border-bottom:solid 1px #ddd;border-left:solid 1px #fff;color:#666;height:1.3em;overflow:hidden;white-space:normal}#loco-admin.wrap .selectorsep{display:inline-block;border:solid 1px transparent}#loco-admin.wrap .selectorsep:before{display:block;position:relative;color:#999;height:1.3em;overflow:hidden}#loco-admin.wrap .selectorsep>*{display:block;line-height:1em;color:#666;height:1.3em;overflow:hidden}#loco-admin.wrap .selector .handle{outline:none;white-space:nowrap;padding-right:2.3em;max-width:250px;text-overflow:ellipsis}#loco-admin.wrap .selector .handle .prefix{padding-right:.6ex}#loco-admin.wrap .selector .handle:after{font-family:loco;font-size:1.3em;color:#ccc;display:block;position:absolute;top:.25em;right:.6em;content:"▼"}#loco-admin.wrap .selector .handle:focus:after,#loco-admin.wrap .selector .handle:hover:after{color:#666}#loco-admin.wrap .selector.no-caret .handle{padding-right:.75em}#loco-admin.wrap .selector.no-caret .handle:after{display:none}#loco-admin.wrap .selector.no-title .handle{padding-left:.5em;padding-right:.5em}#loco-admin.wrap .selector.no-title .handle .label{display:none}#loco-admin.wrap .selector.no-title .handle .icon{margin-right:0px}#loco-admin.wrap .selector.dummy .handle{border-color:transparent}#loco-admin.wrap .selector.dummy .handle:after{display:none}#loco-admin.wrap .selectoradd{position:relative}#loco-admin.wrap .selectoradd>*{display:block;float:left;clear:none}#loco-admin.wrap .selectoradd>a.has-icon{width:1.3em}#loco-admin.wrap .selectoradd>a.has-icon:before{color:#999;display:inline;padding-left:0;padding-right:0;line-height:1.4em}#loco-admin.wrap .selectoradd>a.has-icon:hover:after{color:#2e892e}#loco-admin.wrap .selectorsep{display:inline-block}#loco-admin.wrap .selectorsep span{color:#666;height:1.3em}#loco-admin.wrap .selector ul{padding:0}#loco-admin.wrap .selector ul,#loco-admin.wrap .selector li{display:block;position:relative;cursor:default;margin:0}#loco-admin.wrap .selector ul{z-index:5;position:absolute;left:0;top:0;background:#f5f5f5;box-shadow:0 10px 5px rgba(0,0,0,.2);border:solid 1px #ccc;overflow:auto}#loco-admin.wrap .selector.up ul{margin-top:0}#loco-admin.wrap .selector.multi li input{display:none}#loco-admin.wrap .selector.multi li.checked{background:#e5e5e5}#loco-admin.wrap .selector li.active{background:#e5e5e5 !important}#loco-admin.wrap .selector li.over{background:#ccc !important;color:#fff;text-shadow:1px 1px #aaa}#loco-admin.wrap .selector li.over .label{color:#fff}#loco-admin.wrap .selector .label{font:inherit;color:inherit}#loco-admin.wrap .selector .icon{display:inline-block;min-width:1.2em;text-align:center;font-size:14px}#loco-admin.wrap .selector .icon.no-icon{display:none}#loco-admin.wrap .selector .icon:before{color:#666}#loco-admin.wrap .selector .avtr{width:18px;height:18px;background-size:18px;background-repeat:no-repeat}#loco-admin.wrap .selector .label{line-height:1}#loco-admin.wrap .selector .icon,#loco-admin.wrap .selector .icon-16{vertical-align:bottom}#loco-admin.wrap .selector .icon,#loco-admin.wrap .selector .lang,#loco-admin.wrap .selector .icon-16{margin-right:5px}#loco-admin.wrap .selector .region,#loco-admin.wrap .selector .variant-wales,#loco-admin.wrap .selector .region-gb.lang-cy,#loco-admin.wrap .selector .variant-scotland,#loco-admin.wrap .selector .region-gb.lang-gd,#loco-admin.wrap .selector .variant-valencia,#loco-admin.wrap .selector .region-es.variant-valencia,#loco-admin.wrap .selector .lang-ca,#loco-admin.wrap .selector .region-es.lang-ca,#loco-admin.wrap .selector .lang-eo,#loco-admin.wrap .selector .lang-eu{margin-left:2px;margin-right:7px}#loco-admin.wrap .selector.ticked .icon.no-icon{font-size:12px;display:inline-block}#loco-admin.wrap .selector.ticked .active .icon.no-icon:before{content:"✓"}#loco-admin.wrap .selectoradd a:hover,#loco-admin.wrap .selector a.handle:focus,#loco-admin.wrap .selector a.handle:hover{color:#000;border-color:#999}#loco-admin.wrap .selector.active .handle{border-color:#999;background-color:#eee;color:#999}#loco-admin.wrap .selector.active .handle:after{color:#999;content:"▲"}#loco-admin.wrap .selector.disabled{cursor:default;cursor:no-drop;cursor:not-allowed}#loco-admin.wrap .selector.disabled .handle{pointer-events:none;border-top:solid 1px #fff;border-right:solid 1px #ddd;border-bottom:solid 1px #ddd;border-left:solid 1px #fff;color:#999;padding-right:1em}#loco-admin.wrap .selector.disabled .handle:after{display:none}#loco-admin.wrap .selector.disabled .handle span.icon{color:#999 !important}#loco-admin.wrap .selector li.disabled,#loco-admin.wrap .selector li.disabled.over{color:#aaa;text-shadow:1px 1px #fff;pointer-events:none}#loco-admin.wrap .selector li.disabled *{cursor:text}#loco-admin.wrap .selector li.disabled .icon:before{color:#aaa}#loco-admin.wrap .selector li.disabled .flag,#loco-admin.wrap .selector li.disabled .icon-16{opacity:.4}#loco-admin.wrap .selector.lefty ul{left:auto;right:0}#loco-admin.wrap .selector.lefty ul .icon,#loco-admin.wrap .selector.lefty ul .icon-32{display:block;float:right;clear:none}#loco-admin.wrap .selector.lefty ul .label{padding-right:32px;padding-left:0}#loco-admin.wrap .selector ul>form{margin:0;display:block}#loco-admin.wrap .selector ul>form input{margin:0;-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0}#loco-admin.wrap .selector ul>form input:focus{-webkit-box-shadow:inset 0 0 5px 0 #3db63d;-moz-box-shadow:inset 0 0 5px 0 #3db63d;box-shadow:inset 0 0 5px 0 #3db63d}#loco-admin.wrap .selector ul>form input.error{border-color:#c00;-webkit-box-shadow:inset 0 0 5px 0 rgba(153,0,0,.5);-moz-box-shadow:inset 0 0 5px 0 rgba(153,0,0,.5);box-shadow:inset 0 0 5px 0 rgba(153,0,0,.5)}#loco-admin.wrap .selector ul>form a.clear{margin:0;border:none}#loco-admin.wrap .selector ul>form ::placeholder{color:gray;font-size:16px;font-family:"loco";text-align:right;display:block}#loco-admin.wrap .selector ul>form ::-webkit-input-placeholder{color:gray;font-size:16px;font-family:"loco";text-align:right;display:block}#loco-admin.wrap .selector ul>form :-moz-placeholder{color:gray;font-size:16px;font-family:"loco";text-align:right;display:block;opacity:1}#loco-admin.wrap .selector ul>form ::-moz-placeholder{color:gray;font-size:16px;font-family:"loco";text-align:right;display:block;opacity:1}#loco-admin.wrap .selector ul>form :-ms-input-placeholder{color:gray;font-size:16px;font-family:"loco";text-align:right;display:block}#loco-admin.wrap .selector ul>form .ielt10 .placeheld{color:gray;font-size:16px;font-family:"loco";text-align:right;display:block}#loco-admin.wrap div.auto-comp-wrap{width:100%}#loco-admin.wrap div.auto-comp-wrap input{display:inline-block}#loco-admin.wrap div.auto-comp-wrap.loading input{background:transparent url(../img/ajax-loader.gif?v=2.4.1) right 2px no-repeat}#loco-admin.wrap div.auto-comp-drop{color:#333;background:#fff;border-top:none;position:absolute;width:auto;top:0;left:0;z-index:99;-webkit-box-shadow:0 5px 5px rgba(0,0,0,.4);-moz-box-shadow:0 5px 5px rgba(0,0,0,.4);box-shadow:0 5px 5px rgba(0,0,0,.4)}#loco-admin.wrap div.auto-comp-result{padding:5px 10px;cursor:pointer;background:#f0f0f0;border-top:solid 1px #fff;border-bottom:solid 1px #ddd;white-space:nowrap}#loco-admin.wrap div.auto-comp-result:first-child{border-top:solid 1px #ddd}#loco-admin.wrap div.auto-comp-result>*{display:inline-block;vertical-align:middle;line-height:normal}#loco-admin.wrap div.auto-comp-result .icon:before{padding-right:5px}#loco-admin.wrap div.auto-comp-result:hover{background:#a8a8a8;color:#fff;border-top-color:#a8a8a8;border-bottom-color:#999}#loco-admin.wrap div.auto-comp-result.selected{background:#666 !important;color:#fff;border-top-color:#666;border-bottom-color:#666}#loco-admin.wrap div.auto-comp-result .lang,#loco-admin.wrap div.auto-comp-result .region,#loco-admin.wrap div.auto-comp-result .variant-wales,#loco-admin.wrap div.auto-comp-result .region-gb.lang-cy,#loco-admin.wrap div.auto-comp-result .variant-scotland,#loco-admin.wrap div.auto-comp-result .region-gb.lang-gd,#loco-admin.wrap div.auto-comp-result .variant-valencia,#loco-admin.wrap div.auto-comp-result .region-es.variant-valencia,#loco-admin.wrap div.auto-comp-result .lang-ca,#loco-admin.wrap div.auto-comp-result .region-es.lang-ca,#loco-admin.wrap div.auto-comp-result .lang-eo,#loco-admin.wrap div.auto-comp-result .lang-eu,#loco-admin.wrap div.auto-comp-result .avtr{margin-right:5px}#loco-admin.wrap div.auto-comp-wrap.error a.icon.clear:before{color:#c00;opacity:1}#loco-admin.wrap div.auto-comp-wrap.error input[type=text]{border-color:#c00;color:#c00}#loco-admin.wrap div.auto-comp-wrap.error input[type=text]:focus{-webkit-box-shadow:0 0 .5em 0 rgba(153,0,0,.5);-moz-box-shadow:0 0 .5em 0 rgba(153,0,0,.5);box-shadow:0 0 .5em 0 rgba(153,0,0,.5)}#loco-admin.wrap ._ajax_loader_f2{background-image:url(../img/ajax-loader-f2.gif?v=2.4.1);background-repeat:no-repeat;min-height:16px}#loco-admin.wrap ._ajax_loader_f2x4{background:transparent url(../img/ajax-loader-f2-x4.gif?v=2.4.1) 0 0 no-repeat;min-height:75px}#loco-admin.wrap ._ajax_loader_cc{background-image:url(../img/ajax-loader-cc.gif?v=2.4.1);background-repeat:no-repeat;min-height:16px}@media only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx){#loco-admin.wrap ._ajax_loader_f2{background-image:url(../img/ajax-loader-f2-x2.gif?v=2.4.1);background-size:16px}#loco-admin.wrap ._ajax_loader_cc{background-image:url(../img/ajax-loader-cc-x2.gif?v=2.4.1);background-size:16px}}#loco-admin.wrap ._green_glow_inner{-webkit-box-shadow:inset 0 0 10px 0 #3db63d;-moz-box-shadow:inset 0 0 10px 0 #3db63d;box-shadow:inset 0 0 10px 0 #3db63d}#loco-admin.wrap ._green_glow_outer{-webkit-box-shadow:0 0 .5em 0 #3db63d;-moz-box-shadow:0 0 .5em 0 #3db63d;box-shadow:0 0 .5em 0 #3db63d}#loco-admin.wrap .loco-font,#loco-admin.wrap .wp-list-table th.loco-sort.loco-asc:after,#loco-admin.wrap .wp-list-table th.loco-sort.loco-desc:after,#loco-admin.wrap .icon,#loco-admin.wrap .has-icon:before{font-family:"loco";speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#loco-admin.wrap .has-icon:before{display:inline-block;padding-right:.3em}#loco-admin.wrap a.icon-help{cursor:help}#loco-admin.wrap a.icon-help span{display:none}#loco-admin.wrap .icon-notag:before{content:""}#loco-admin.wrap .icon-python:before{content:"🐍"}#loco-admin.wrap .icon-unicode:before{content:"u"}#loco-admin.wrap .icon-json:before{content:"{"}#loco-admin.wrap .icon-bullist:before{content:""}#loco-admin.wrap .icon-numlist:before{content:""}#loco-admin.wrap .icon-indent:before{content:""}#loco-admin.wrap .icon-outdent:before{content:""}#loco-admin.wrap .icon-link:before{content:""}#loco-admin.wrap .icon-unlink:before{content:""}#loco-admin.wrap .icon-bold:before{content:"B"}#loco-admin.wrap .icon-italic:before{content:"I"}#loco-admin.wrap .icon-translate:before{content:""}#loco-admin.wrap .icon-proj:before{content:""}#loco-admin.wrap .icon-plural:before{content:"᛬"}#loco-admin.wrap .icon-max:before,#loco-admin.wrap .icon-full-screen:before{content:""}#loco-admin.wrap .icon-min:before{content:""}#loco-admin.wrap .icon-sort:before{content:""}#loco-admin.wrap .icon-ok:before,#loco-admin.wrap .notice-success>.has-icon:before,#loco-admin.wrap .notice-success p>strong.has-icon:before{content:"✓"}#loco-admin.wrap .icon-ok-empty:before{content:"🗌"}#loco-admin.wrap .icon-checkbox-checked:before,#loco-admin.wrap .selector.multi li.checked .icon-checkbox:before{content:"☑"}#loco-admin.wrap .icon-checkbox-unchecked:before{content:"☐"}#loco-admin.wrap .icon-checkbox-partial:before{content:"☉"}#loco-admin.wrap .icon-radio-checked:before{content:"⚫"}#loco-admin.wrap .icon-radio-unchecked:before{content:"⚪"}#loco-admin.wrap .icon-ext:before{content:"⬈"}#loco-admin.wrap .icon-share:before{content:""}#loco-admin.wrap .icon-star:before{content:""}#loco-admin.wrap .icon-user:before{content:""}#loco-admin.wrap .icon-remove:before{content:"×"}#loco-admin.wrap .icon-cog:before{content:""}#loco-admin.wrap .icon-trash:before{content:""}#loco-admin.wrap .icon-time:before,#loco-admin.wrap .icon-history:before{content:""}#loco-admin.wrap .icon-download:before{content:""}#loco-admin.wrap .icon-revert:before{content:""}#loco-admin.wrap .icon-sync:before{content:""}#loco-admin.wrap .icon-lock:before,#loco-admin.wrap .notice-locked>.has-icon:before,#loco-admin.wrap .notice-locked p>strong.has-icon:before{content:""}#loco-admin.wrap .icon-flag:before{content:""}#loco-admin.wrap .icon-tag:before{content:""}#loco-admin.wrap .icon-tags:before{content:""}#loco-admin.wrap .icon-print:before{content:""}#loco-admin.wrap .icon-camera:before{content:""}#loco-admin.wrap .icon-pencil:before{content:""}#loco-admin.wrap .icon-add:before{content:""}#loco-admin.wrap .icon-del:before{content:""}#loco-admin.wrap .icon-clear:before,#loco-admin.wrap a.icon.clear:before{content:""}#loco-admin.wrap .icon-ok-sign:before{content:"✔"}#loco-admin.wrap .icon-help:before{content:"?"}#loco-admin.wrap .icon-info:before,#loco-admin.wrap .notice-info>.has-icon:before,#loco-admin.wrap .notice-info p>strong.has-icon:before{content:"ℹ"}#loco-admin.wrap .icon-cancel:before{content:""}#loco-admin.wrap .icon-warn:before,#loco-admin.wrap .notice-error>.has-icon:before,#loco-admin.wrap .notice-error p>strong.has-icon:before,#loco-admin.wrap .notice-warning>.has-icon:before,#loco-admin.wrap .notice-warning p>strong.has-icon:before{content:""}#loco-admin.wrap .icon-comment:before{content:""}#loco-admin.wrap .icon-bar-chart:before{content:""}#loco-admin.wrap .icon-key:before{content:""}#loco-admin.wrap .icon-cogs:before{content:""}#loco-admin.wrap .icon-comments:before{content:""}#loco-admin.wrap .icon-signout:before{content:""}#loco-admin.wrap .icon-signin:before{content:""}#loco-admin.wrap .icon-upload:before{content:""}#loco-admin.wrap .icon-twitter:before{content:"🐦"}#loco-admin.wrap .icon-facebook:before{content:""}#loco-admin.wrap .icon-github:before{content:""}#loco-admin.wrap .icon-feed:before{content:""}#loco-admin.wrap .icon-globe:before{content:""}#loco-admin.wrap .icon-wrench:before,#loco-admin.wrap .notice-debug>.has-icon:before,#loco-admin.wrap .notice-debug p>strong.has-icon:before{content:""}#loco-admin.wrap .icon-group:before{content:""}#loco-admin.wrap .icon-cloud:before{content:""}#loco-admin.wrap .icon-copy:before{content:""}#loco-admin.wrap .icon-save:before{content:""}#loco-admin.wrap .icon-menu:before{content:""}#loco-admin.wrap .icon-table:before{content:""}#loco-admin.wrap .icon-caret-down:before{content:"▼"}#loco-admin.wrap .icon-caret-up:before{content:"▲"}#loco-admin.wrap .icon-caret-right:before{content:"▶"}#loco-admin.wrap .icon-mail:before{content:""}#loco-admin.wrap .icon-cloud-upload:before{content:""}#loco-admin.wrap .icon-file:before{content:""}#loco-admin.wrap .icon-circle-white:before{content:"⚬"}#loco-admin.wrap .icon-circle-black:before{content:"●"}#loco-admin.wrap .icon-eraser:before{content:""}#loco-admin.wrap .icon-unlock:before{content:""}#loco-admin.wrap .icon-apple:before{content:""}#loco-admin.wrap .icon-android:before{content:""}#loco-admin.wrap .icon-robot:before{content:"🤖"}#loco-admin.wrap .icon-back:before{content:"⬅"}#loco-admin.wrap .icon-next:before{content:"➔"}#loco-admin.wrap .icon-arrow-up:before{content:""}#loco-admin.wrap .icon-ccard:before{content:""}#loco-admin.wrap .icon-caret-left:before{content:"◀"}#loco-admin.wrap .icon-pro:before{content:"⚡"}#loco-admin.wrap .icon-bell:before{content:""}#loco-admin.wrap .icon-code:before{content:""}#loco-admin.wrap .icon-privacy:before{content:"🛡"}#loco-admin.wrap .icon-hellip:before{content:"…"}#loco-admin.wrap .icon-vellip:before{content:"⁞"}#loco-admin.wrap .icon-collapse:before{content:""}#loco-admin.wrap .icon-expand:before{content:""}#loco-admin.wrap .icon-wordpress:before{content:""}#loco-admin.wrap .icon-database:before{content:""}#loco-admin.wrap .icon-restore:before{content:""}#loco-admin.wrap .icon-pilcrow:before{content:"¶"}#loco-admin.wrap .icon-status.is-translated:before,#loco-admin.wrap .is-translated>header>.icon-status:before{color:#2e892e;content:"✓";text-align:center}#loco-admin.wrap .icon-status.is-untranslated:before,#loco-admin.wrap .is-untranslated>header>.icon-status:before{color:#aaa;content:"×";text-align:center;font-size:1.1em}#loco-admin.wrap .icon-status.is-flagged:before,#loco-admin.wrap .is-flagged>header>.icon-status:before{color:#bd2c00;content:"";text-align:center}#loco-admin.wrap .icon-status.is-translated.is-blank:before,#loco-admin.wrap .icon-status.is-translated.is-inherit:before,#loco-admin.wrap .is-translated.is-blank>header>.icon-status:before,#loco-admin.wrap .is-translated.is-inherit>header>.icon-status:before{content:"🗌"}#loco-admin.wrap .icon-status.is-fuzzy:before,#loco-admin.wrap .is-fuzzy>header>.icon-status:before{color:#666;content:""}#loco-admin.wrap .lang,#loco-admin.wrap .region,#loco-admin.wrap .variant-wales,#loco-admin.wrap .region-gb.lang-cy,#loco-admin.wrap .variant-scotland,#loco-admin.wrap .region-gb.lang-gd,#loco-admin.wrap .variant-valencia,#loco-admin.wrap .region-es.variant-valencia,#loco-admin.wrap .lang-ca,#loco-admin.wrap .region-es.lang-ca,#loco-admin.wrap .lang-eo,#loco-admin.wrap .lang-eu{color:#fff;background:#2e892e;display:inline-block;text-transform:uppercase;overflow:hidden;font-family:Verdana,Arial,sans-serif;font-size:9px;font-weight:normal;font-style:normal;line-height:12px;text-align:center;white-space:normal;text-shadow:none}#loco-admin.wrap .lang{width:20px;height:12px;line-height:12px;vertical-align:middle}#loco-admin.wrap .lang:before{content:attr(lang);vertical-align:baseline}#loco-admin.wrap .no-lang{width:18px;height:10px;border:solid 1px #2e892e;background:transparent}#loco-admin.wrap .lang-el{background-color:#1d48a3}#loco-admin.wrap .lang-el:before{content:"Ελ"}#loco-admin.wrap .region,#loco-admin.wrap .variant-wales,#loco-admin.wrap .region-gb.lang-cy,#loco-admin.wrap .variant-scotland,#loco-admin.wrap .region-gb.lang-gd,#loco-admin.wrap .variant-valencia,#loco-admin.wrap .region-es.variant-valencia,#loco-admin.wrap .lang-ca,#loco-admin.wrap .region-es.lang-ca,#loco-admin.wrap .lang-eo,#loco-admin.wrap .lang-eu{width:16px;height:12px;margin:0 2px;background-image:url(../img/flags.png?v=2.4.1);background-repeat:no-repeat;background-color:transparent}#loco-admin.wrap .region:before,#loco-admin.wrap .variant-wales:before,#loco-admin.wrap .region-gb.lang-cy:before,#loco-admin.wrap .variant-scotland:before,#loco-admin.wrap .region-gb.lang-gd:before,#loco-admin.wrap .variant-valencia:before,#loco-admin.wrap .region-es.variant-valencia:before,#loco-admin.wrap .lang-ca:before,#loco-admin.wrap .region-es.lang-ca:before,#loco-admin.wrap .lang-eo:before,#loco-admin.wrap .lang-eu:before{visibility:hidden}#loco-admin.wrap .lang-zh{background-color:#b90000}#loco-admin.wrap .lang-zh.script-hans:before{content:"中国"}#loco-admin.wrap .lang-zh.script-hant:before{content:"中國"}#loco-admin.wrap .__{background-position:0 0}#loco-admin.wrap .lang-eo{background-position:0 -12px}#loco-admin.wrap .lang-eu{background-position:0 -24px}#loco-admin.wrap .lang-ca,#loco-admin.wrap .region-es.lang-ca{background-position:0 -36px}#loco-admin.wrap .region-tg{background-position:0 -48px}#loco-admin.wrap .region-me{background-position:0 -60px}#loco-admin.wrap .region-la{background-position:0 -73px}#loco-admin.wrap .region-mr{background-position:0 -85px}#loco-admin.wrap .region-ni{background-position:0 -97px}#loco-admin.wrap .region-lv{background-position:0 -109px}#loco-admin.wrap .region-om{background-position:0 -121px}#loco-admin.wrap .region-af{background-position:0 -133px}#loco-admin.wrap .region-cy{background-position:0 -145px}#loco-admin.wrap .region-bj{background-position:0 -157px}#loco-admin.wrap .region-aq{background-position:0 -169px}#loco-admin.wrap .region-cn{background-position:0 -186px}#loco-admin.wrap .region-co{background-position:0 -198px}#loco-admin.wrap .region-cx{background-position:0 -210px}#loco-admin.wrap .region-ag{background-position:0 -222px}#loco-admin.wrap .region-ms{background-position:0 -234px}#loco-admin.wrap .region-md{background-position:0 -246px}#loco-admin.wrap .region-zm{background-position:0 -258px}#loco-admin.wrap .region-vn{background-position:0 -270px}#loco-admin.wrap .region-tf{background-position:0 -282px}#loco-admin.wrap .region-td{background-position:0 -294px}#loco-admin.wrap .region-yt{background-position:0 -306px}#loco-admin.wrap .region-lb{background-position:0 -318px}#loco-admin.wrap .region-mf{background-position:0 -330px}#loco-admin.wrap .region-lu{background-position:0 -347px}#loco-admin.wrap .region-mq{background-position:0 -359px}#loco-admin.wrap .region-cz{background-position:0 -371px}#loco-admin.wrap .region-ae{background-position:0 -383px}#loco-admin.wrap .region-cm{background-position:0 -395px}#loco-admin.wrap .region-bi{background-position:0 -407px}#loco-admin.wrap .region-ar{background-position:0 -419px}#loco-admin.wrap .region-as{background-position:0 -431px}#loco-admin.wrap .region-bh{background-position:0 -443px}#loco-admin.wrap .region-cl{background-position:0 -455px}#loco-admin.wrap .region-ad{background-position:0 -467px}#loco-admin.wrap .region-mp{background-position:0 -479px}#loco-admin.wrap .region-lt{background-position:0 -491px}#loco-admin.wrap .region-mg{background-position:0 -503px}#loco-admin.wrap .region-lc{background-position:0 -515px}#loco-admin.wrap .region-tr{background-position:0 -527px}#loco-admin.wrap .region-ua{background-position:0 -539px}#loco-admin.wrap .region-tv{background-position:0 -551px}#loco-admin.wrap .region-vi{background-position:0 -563px}#loco-admin.wrap .region-mt{background-position:0 -575px}#loco-admin.wrap .region-no{background-position:0 -587px}#loco-admin.wrap .region-mc{background-position:0 -599px}#loco-admin.wrap .region-ch{background-position:0 -611px}#loco-admin.wrap .region-bl{background-position:0 -623px}#loco-admin.wrap .region-aw{background-position:0 -640px}#loco-admin.wrap .region-bz{background-position:0 -652px}#loco-admin.wrap .region-bm{background-position:0 -664px}#loco-admin.wrap .region-ci{background-position:0 -676px}#loco-admin.wrap .region-mu{background-position:0 -688px}#loco-admin.wrap .region-us{background-position:0 -700px}#loco-admin.wrap .region-tw{background-position:0 -712px}#loco-admin.wrap .region-ye{background-position:0 -724px}#loco-admin.wrap .region-mw{background-position:0 -736px}#loco-admin.wrap .region-nl{background-position:0 -748px}#loco-admin.wrap .region-ls{background-position:0 -760px}#loco-admin.wrap .region-bo{background-position:0 -772px}#loco-admin.wrap .region-at{background-position:0 -784px}#loco-admin.wrap .region-ck{background-position:0 -796px}#loco-admin.wrap .region-by{background-position:0 -808px}#loco-admin.wrap .region-au{background-position:0 -820px}#loco-admin.wrap .region-bn{background-position:0 -832px}#loco-admin.wrap .region-ma{background-position:0 -844px}#loco-admin.wrap .region-nz{background-position:0 -856px}#loco-admin.wrap .region-lr{background-position:0 -868px}#loco-admin.wrap .region-mv{background-position:0 -880px}#loco-admin.wrap .region-tc{background-position:0 -892px}#loco-admin.wrap .region-ug{background-position:0 -904px}#loco-admin.wrap .region-tt{background-position:0 -916px}#loco-admin.wrap .region-pl{background-position:0 -928px}#loco-admin.wrap .region-rs{background-position:0 -940px}#loco-admin.wrap .region-in{background-position:0 -952px}#loco-admin.wrap .region-ge{background-position:0 -964px}#loco-admin.wrap .region-gr{background-position:0 -976px}#loco-admin.wrap .region-gs{background-position:0 -988px}#loco-admin.wrap .region-gd{background-position:0 -1000px}#loco-admin.wrap .region-io{background-position:0 -1012px}#loco-admin.wrap .region-hk{background-position:0 -1024px}#loco-admin.wrap .region-kp{background-position:0 -1036px}#loco-admin.wrap .region-kg{background-position:0 -1048px}#loco-admin.wrap .region-pm{background-position:0 -1060px}#loco-admin.wrap .region-sv{background-position:0 -1072px}#loco-admin.wrap .region-re{background-position:0 -1084px}#loco-admin.wrap .region-sa{background-position:0 -1096px}#loco-admin.wrap .region-sc{background-position:0 -1108px}#loco-admin.wrap .region-st{background-position:0 -1120px}#loco-admin.wrap .region-ke{background-position:0 -1132px}#loco-admin.wrap .region-im{background-position:0 -1144px}#loco-admin.wrap .region-kr{background-position:0 -1161px}#loco-admin.wrap .region-gf{background-position:0 -1173px}#loco-admin.wrap .region-dj{background-position:0 -1185px}#loco-admin.wrap .region-gq{background-position:0 -1197px}#loco-admin.wrap .region-gp{background-position:0 -1209px}#loco-admin.wrap .region-dk{background-position:0 -1221px}#loco-admin.wrap .region-gg{background-position:0 -1233px}#loco-admin.wrap .region-il{background-position:0 -1250px}#loco-admin.wrap .region-pn{background-position:0 -1262px}#loco-admin.wrap .region-sb{background-position:0 -1274px}#loco-admin.wrap .region-py{background-position:0 -1286px}#loco-admin.wrap .region-ru{background-position:0 -1298px}#loco-admin.wrap .region-kw{background-position:0 -1310px}#loco-admin.wrap .region-do{background-position:0 -1322px}#loco-admin.wrap .region-gt{background-position:0 -1334px}#loco-admin.wrap .region-gb{background-position:0 -1346px}#loco-admin.wrap .region-gu{background-position:0 -1358px}#loco-admin.wrap .region-je{background-position:0 -1370px}#loco-admin.wrap .region-hm{background-position:0 -1387px}#loco-admin.wrap .region-sg{background-position:0 -1399px}#loco-admin.wrap .region-pk{background-position:0 -1411px}#loco-admin.wrap .region-sr{background-position:0 -1423px}#loco-admin.wrap .region-se{background-position:0 -1435px}#loco-admin.wrap .region-jp{background-position:0 -1447px}#loco-admin.wrap .region-gw{background-position:0 -1459px}#loco-admin.wrap .region-eh{background-position:0 -1471px}#loco-admin.wrap .region-dz{background-position:0 -1483px}#loco-admin.wrap .region-ga{background-position:0 -1495px}#loco-admin.wrap .region-fr{background-position:0 -1507px}#loco-admin.wrap .region-dm{background-position:0 -1519px}#loco-admin.wrap .region-hn{background-position:0 -1531px}#loco-admin.wrap .region-sd{background-position:0 -1543px}#loco-admin.wrap .region-rw{background-position:0 -1555px}#loco-admin.wrap .region-ph{background-position:0 -1567px}#loco-admin.wrap .region-ss{background-position:0 -1579px}#loco-admin.wrap .region-qa{background-position:0 -1596px}#loco-admin.wrap .region-pe{background-position:0 -1608px}#loco-admin.wrap .region-pr{background-position:0 -1620px}#loco-admin.wrap .region-si{background-position:0 -1632px}#loco-admin.wrap .region-ht{background-position:0 -1644px}#loco-admin.wrap .region-es{background-position:0 -1656px}#loco-admin.wrap .region-gl{background-position:0 -1668px}#loco-admin.wrap .region-gm{background-position:0 -1680px}#loco-admin.wrap .region-er{background-position:0 -1692px}#loco-admin.wrap .region-fi{background-position:0 -1704px}#loco-admin.wrap .region-ee{background-position:0 -1716px}#loco-admin.wrap .region-kn{background-position:0 -1728px}#loco-admin.wrap .region-hu{background-position:0 -1740px}#loco-admin.wrap .region-iq{background-position:0 -1752px}#loco-admin.wrap .region-ky{background-position:0 -1764px}#loco-admin.wrap .region-sh{background-position:0 -1776px}#loco-admin.wrap .region-ps{background-position:0 -1788px}#loco-admin.wrap .region-pf{background-position:0 -1800px}#loco-admin.wrap .region-sj{background-position:0 -1812px}#loco-admin.wrap .region-id{background-position:0 -1824px}#loco-admin.wrap .region-is{background-position:0 -1836px}#loco-admin.wrap .region-eg{background-position:0 -1848px}#loco-admin.wrap .region-fk{background-position:0 -1860px}#loco-admin.wrap .region-fj{background-position:0 -1872px}#loco-admin.wrap .region-gn{background-position:0 -1884px}#loco-admin.wrap .region-gy{background-position:0 -1896px}#loco-admin.wrap .region-ir{background-position:0 -1908px}#loco-admin.wrap .region-km{background-position:0 -1920px}#loco-admin.wrap .region-ie{background-position:0 -1932px}#loco-admin.wrap .region-kz{background-position:0 -1944px}#loco-admin.wrap .region-ro{background-position:0 -1956px}#loco-admin.wrap .region-sk{background-position:0 -1968px}#loco-admin.wrap .region-pg{background-position:0 -1980px}#loco-admin.wrap .region-pt{background-position:0 -1992px}#loco-admin.wrap .region-so{background-position:0 -2004px}#loco-admin.wrap .region-sx{background-position:0 -2016px}#loco-admin.wrap .region-hr{background-position:0 -2033px}#loco-admin.wrap .region-ki{background-position:0 -2045px}#loco-admin.wrap .region-jm{background-position:0 -2057px}#loco-admin.wrap .region-ec{background-position:0 -2069px}#loco-admin.wrap .region-et{background-position:0 -2081px}#loco-admin.wrap .region-fo{background-position:0 -2093px}#loco-admin.wrap .region-kh{background-position:0 -2105px}#loco-admin.wrap .region-sy{background-position:0 -2117px}#loco-admin.wrap .region-sn{background-position:0 -2129px}#loco-admin.wrap .region-pw{background-position:0 -2141px}#loco-admin.wrap .region-sl{background-position:0 -2153px}#loco-admin.wrap .region-fm{background-position:0 -2165px}#loco-admin.wrap .region-gi{background-position:0 -2177px}#loco-admin.wrap .region-de{background-position:0 -2189px}#loco-admin.wrap .region-gh{background-position:0 -2201px}#loco-admin.wrap .region-jo{background-position:0 -2213px}#loco-admin.wrap .region-it{background-position:0 -2225px}#loco-admin.wrap .region-pa{background-position:0 -2237px}#loco-admin.wrap .region-sz{background-position:0 -2249px}#loco-admin.wrap .region-sm{background-position:0 -2261px}#loco-admin.wrap .region-tn{background-position:0 -2273px}#loco-admin.wrap .region-ml{background-position:0 -2285px}#loco-admin.wrap .region-cg{background-position:0 -2297px}#loco-admin.wrap .region-ax{background-position:0 -2309px}#loco-admin.wrap .region-ao{background-position:0 -2321px}#loco-admin.wrap .region-bt{background-position:0 -2333px}#loco-admin.wrap .region-an{background-position:0 -2345px}#loco-admin.wrap .region-bb{background-position:0 -2357px}#loco-admin.wrap .region-cf{background-position:0 -2369px}#loco-admin.wrap .region-mm{background-position:0 -2381px}#loco-admin.wrap .region-li{background-position:0 -2393px}#loco-admin.wrap .region-na{background-position:0 -2405px}#loco-admin.wrap .region-mz{background-position:0 -2417px}#loco-admin.wrap .region-to{background-position:0 -2429px}#loco-admin.wrap .region-vg{background-position:0 -2441px}#loco-admin.wrap .region-ve{background-position:0 -2453px}#loco-admin.wrap .region-tz{background-position:0 -2465px}#loco-admin.wrap .region-tm{background-position:0 -2477px}#loco-admin.wrap .region-mx{background-position:0 -2489px}#loco-admin.wrap .region-nc{background-position:0 -2501px}#loco-admin.wrap .region-mo{background-position:0 -2513px}#loco-admin.wrap .region-lk{background-position:0 -2525px}#loco-admin.wrap .region-cd{background-position:0 -2537px}#loco-admin.wrap .region-al{background-position:0 -2549px}#loco-admin.wrap .region-bw{background-position:0 -2561px}#loco-admin.wrap .region-cs{background-position:0 -2573px}#loco-admin.wrap .region-cr{background-position:0 -2585px}#loco-admin.wrap .region-bv{background-position:0 -2597px}#loco-admin.wrap .region-am{background-position:0 -2609px}#loco-admin.wrap .region-az{background-position:0 -2621px}#loco-admin.wrap .region-ba{background-position:0 -2633px}#loco-admin.wrap .region-mn{background-position:0 -2645px}#loco-admin.wrap .region-nu{background-position:0 -2657px}#loco-admin.wrap .region-my{background-position:0 -2669px}#loco-admin.wrap .region-tl{background-position:0 -2681px}#loco-admin.wrap .region-ws{background-position:0 -2693px}#loco-admin.wrap .region-th{background-position:0 -2705px}#loco-admin.wrap .region-nf{background-position:0 -2717px}#loco-admin.wrap .region-ly{background-position:0 -2729px}#loco-admin.wrap .region-ai{background-position:0 -2741px}#loco-admin.wrap .region-br{background-position:0 -2753px}#loco-admin.wrap .region-cv{background-position:0 -2765px}#loco-admin.wrap .region-be{background-position:0 -2777px}#loco-admin.wrap .region-ca{background-position:0 -2789px}#loco-admin.wrap .region-bd{background-position:0 -2801px}#loco-admin.wrap .region-cw{background-position:0 -2813px}#loco-admin.wrap .region-bs{background-position:0 -2830px}#loco-admin.wrap .region-ng{background-position:0 -2842px}#loco-admin.wrap .region-mk{background-position:0 -2854px}#loco-admin.wrap .region-np{background-position:0 -2866px}#loco-admin.wrap .region-va{background-position:0 -2878px}#loco-admin.wrap .region-uz{background-position:0 -2890px}#loco-admin.wrap .region-um{background-position:0 -2902px}#loco-admin.wrap .region-tk{background-position:0 -2914px}#loco-admin.wrap .region-vc{background-position:0 -2926px}#loco-admin.wrap .region-zw{background-position:0 -2938px}#loco-admin.wrap .region-nr{background-position:0 -2950px}#loco-admin.wrap .region-ne{background-position:0 -2962px}#loco-admin.wrap .region-cu{background-position:0 -2974px}#loco-admin.wrap .region-bq{background-position:0 -2986px}#loco-admin.wrap .region-bf{background-position:0 -2998px}#loco-admin.wrap .region-bg{background-position:0 -3010px}#loco-admin.wrap .region-cc{background-position:0 -3022px}#loco-admin.wrap .region-mh{background-position:0 -3034px}#loco-admin.wrap .region-za{background-position:0 -3046px}#loco-admin.wrap .region-uy{background-position:0 -3058px}#loco-admin.wrap .region-wf{background-position:0 -3070px}#loco-admin.wrap .region-vu{background-position:0 -3082px}#loco-admin.wrap .region-tj{background-position:0 -3094px}#loco-admin.wrap .variant-scotland,#loco-admin.wrap .region-gb.lang-gd{background-position:0 -3106px}#loco-admin.wrap .variant-valencia,#loco-admin.wrap .region-es.variant-valencia{background-position:0 -3118px}#loco-admin.wrap .variant-wales,#loco-admin.wrap .region-gb.lang-cy{background-position:0 -3130px}#loco-admin.wrap .x-eu{background-position:0 -3142px}#loco-admin.wrap span.lang code{display:none}#loco-admin.wrap .icon-notag:before{content:""}#loco-admin.wrap .icon-python:before{content:"🐍"}#loco-admin.wrap .icon-unicode:before{content:"u"}#loco-admin.wrap .icon-json:before{content:"{"}#loco-admin.wrap .icon-bullist:before{content:""}#loco-admin.wrap .icon-numlist:before{content:""}#loco-admin.wrap .icon-indent:before{content:""}#loco-admin.wrap .icon-outdent:before{content:""}#loco-admin.wrap .icon-link:before{content:""}#loco-admin.wrap .icon-unlink:before{content:""}#loco-admin.wrap .icon-bold:before{content:"B"}#loco-admin.wrap .icon-italic:before{content:"I"}#loco-admin.wrap .icon-translate:before{content:""}#loco-admin.wrap .icon-proj:before{content:""}#loco-admin.wrap .icon-plural:before{content:"᛬"}#loco-admin.wrap .icon-max:before,#loco-admin.wrap .icon-full-screen:before{content:""}#loco-admin.wrap .icon-min:before{content:""}#loco-admin.wrap .icon-sort:before{content:""}#loco-admin.wrap .icon-ok:before,#loco-admin.wrap .notice-success>.has-icon:before,#loco-admin.wrap .notice-success p>strong.has-icon:before{content:"✓"}#loco-admin.wrap .icon-ok-empty:before{content:"🗌"}#loco-admin.wrap .icon-checkbox-checked:before,#loco-admin.wrap .selector.multi li.checked .icon-checkbox:before{content:"☑"}#loco-admin.wrap .icon-checkbox-unchecked:before{content:"☐"}#loco-admin.wrap .icon-checkbox-partial:before{content:"☉"}#loco-admin.wrap .icon-radio-checked:before{content:"⚫"}#loco-admin.wrap .icon-radio-unchecked:before{content:"⚪"}#loco-admin.wrap .icon-ext:before{content:"⬈"}#loco-admin.wrap .icon-share:before{content:""}#loco-admin.wrap .icon-star:before{content:""}#loco-admin.wrap .icon-user:before{content:""}#loco-admin.wrap .icon-remove:before{content:"×"}#loco-admin.wrap .icon-cog:before{content:""}#loco-admin.wrap .icon-trash:before{content:""}#loco-admin.wrap .icon-time:before,#loco-admin.wrap .icon-history:before{content:""}#loco-admin.wrap .icon-download:before{content:""}#loco-admin.wrap .icon-revert:before{content:""}#loco-admin.wrap .icon-sync:before{content:""}#loco-admin.wrap .icon-lock:before,#loco-admin.wrap .notice-locked>.has-icon:before,#loco-admin.wrap .notice-locked p>strong.has-icon:before{content:""}#loco-admin.wrap .icon-flag:before{content:""}#loco-admin.wrap .icon-tag:before{content:""}#loco-admin.wrap .icon-tags:before{content:""}#loco-admin.wrap .icon-print:before{content:""}#loco-admin.wrap .icon-camera:before{content:""}#loco-admin.wrap .icon-pencil:before{content:""}#loco-admin.wrap .icon-add:before{content:""}#loco-admin.wrap .icon-del:before{content:""}#loco-admin.wrap .icon-clear:before,#loco-admin.wrap a.icon.clear:before{content:""}#loco-admin.wrap .icon-ok-sign:before{content:"✔"}#loco-admin.wrap .icon-help:before{content:"?"}#loco-admin.wrap .icon-info:before,#loco-admin.wrap .notice-info>.has-icon:before,#loco-admin.wrap .notice-info p>strong.has-icon:before{content:"ℹ"}#loco-admin.wrap .icon-cancel:before{content:""}#loco-admin.wrap .icon-warn:before,#loco-admin.wrap .notice-error>.has-icon:before,#loco-admin.wrap .notice-error p>strong.has-icon:before,#loco-admin.wrap .notice-warning>.has-icon:before,#loco-admin.wrap .notice-warning p>strong.has-icon:before{content:""}#loco-admin.wrap .icon-comment:before{content:""}#loco-admin.wrap .icon-bar-chart:before{content:""}#loco-admin.wrap .icon-key:before{content:""}#loco-admin.wrap .icon-cogs:before{content:""}#loco-admin.wrap .icon-comments:before{content:""}#loco-admin.wrap .icon-signout:before{content:""}#loco-admin.wrap .icon-signin:before{content:""}#loco-admin.wrap .icon-upload:before{content:""}#loco-admin.wrap .icon-twitter:before{content:"🐦"}#loco-admin.wrap .icon-facebook:before{content:""}#loco-admin.wrap .icon-github:before{content:""}#loco-admin.wrap .icon-feed:before{content:""}#loco-admin.wrap .icon-globe:before{content:""}#loco-admin.wrap .icon-wrench:before,#loco-admin.wrap .notice-debug>.has-icon:before,#loco-admin.wrap .notice-debug p>strong.has-icon:before{content:""}#loco-admin.wrap .icon-group:before{content:""}#loco-admin.wrap .icon-cloud:before{content:""}#loco-admin.wrap .icon-copy:before{content:""}#loco-admin.wrap .icon-save:before{content:""}#loco-admin.wrap .icon-menu:before{content:""}#loco-admin.wrap .icon-table:before{content:""}#loco-admin.wrap .icon-caret-down:before{content:"▼"}#loco-admin.wrap .icon-caret-up:before{content:"▲"}#loco-admin.wrap .icon-caret-right:before{content:"▶"}#loco-admin.wrap .icon-mail:before{content:""}#loco-admin.wrap .icon-cloud-upload:before{content:""}#loco-admin.wrap .icon-file:before{content:""}#loco-admin.wrap .icon-circle-white:before{content:"⚬"}#loco-admin.wrap .icon-circle-black:before{content:"●"}#loco-admin.wrap .icon-eraser:before{content:""}#loco-admin.wrap .icon-unlock:before{content:""}#loco-admin.wrap .icon-apple:before{content:""}#loco-admin.wrap .icon-android:before{content:""}#loco-admin.wrap .icon-robot:before{content:"🤖"}#loco-admin.wrap .icon-back:before{content:"⬅"}#loco-admin.wrap .icon-next:before{content:"➔"}#loco-admin.wrap .icon-arrow-up:before{content:""}#loco-admin.wrap .icon-ccard:before{content:""}#loco-admin.wrap .icon-caret-left:before{content:"◀"}#loco-admin.wrap .icon-pro:before{content:"⚡"}#loco-admin.wrap .icon-bell:before{content:""}#loco-admin.wrap .icon-code:before{content:""}#loco-admin.wrap .icon-privacy:before{content:"🛡"}#loco-admin.wrap .icon-hellip:before{content:"…"}#loco-admin.wrap .icon-vellip:before{content:"⁞"}#loco-admin.wrap .icon-collapse:before{content:""}#loco-admin.wrap .icon-expand:before{content:""}#loco-admin.wrap .icon-wordpress:before{content:""}#loco-admin.wrap .icon-database:before{content:""}#loco-admin.wrap .icon-restore:before{content:""}#loco-admin.wrap .icon-pilcrow:before{content:"¶"}#loco-admin.wrap .icon,#loco-admin.wrap .has-icon:before,#loco-admin.wrap .has-dashicon:before{speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#loco-admin.wrap .icon,#loco-admin.wrap .has-icon:before{font-family:"loco"}#loco-admin.wrap .has-dashicon:before{font-family:"dashicons";font-size:1.4em}#loco-admin.wrap .has-icon:before,#loco-admin.wrap .has-dashicon:before,#loco-admin.wrap .has-icon>span{display:inline-block;vertical-align:middle}#loco-admin.wrap .only-icon{text-align:center}#loco-admin.wrap .only-icon:before{text-align:center;padding:0}#loco-admin.wrap .only-icon span{display:none}#loco-admin.wrap a,#loco-admin.wrap .wp-core-ui .button-link{text-decoration:none}#loco-admin.wrap h3:hover>a.loco-anchor{color:#ccc}#loco-admin.wrap h3:hover>a.loco-anchor:before{content:"¶"}#loco-admin.wrap .has-lang>span{display:inline-block;vertical-align:middle}#loco-admin.wrap a.has-lang:hover>span:last-child{text-decoration:underline}#loco-admin.wrap h1 ul,#loco-admin.wrap h1 li{margin:0;padding:0}#loco-admin.wrap h1 li{display:inline-block}#loco-admin.wrap h1 li:after{content:"/";color:#999;text-shadow:none;display:inline-block}#loco-admin.wrap h1 li:last-child:after{content:""}#loco-admin.wrap h1 li:last-child a{color:inherit;pointer-events:none;cursor:auto}#loco-admin.wrap h2 span{color:#999;font-weight:normal}#loco-admin.wrap h2 .loco-meta,#loco-admin.wrap h3 .loco-meta{color:inherit;font-size:14px;font-weight:normal;vertical-align:middle}#loco-admin.wrap .wp-list-table td:first-child .icon{width:16px;display:inline-block;text-align:center}#loco-admin.wrap .wp-list-table td{white-space:nowrap}#loco-admin.wrap .wp-list-table td>a,#loco-admin.wrap .wp-list-table td>time{display:inline-block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-o-text-overflow:ellipsis;-ms-text-overflow:ellipsis}#loco-admin.wrap .wp-list-table th.loco-sort{cursor:pointer}#loco-admin.wrap .wp-list-table th.loco-sort:hover{color:#000}#loco-admin.wrap .wp-list-table th.loco-sort.loco-asc:after,#loco-admin.wrap .wp-list-table th.loco-sort.loco-desc:after{padding:0 0 0 4px;color:#999}#loco-admin.wrap .wp-list-table th.loco-sort.loco-desc:after{content:"▼"}#loco-admin.wrap .wp-list-table th.loco-sort.loco-asc:after{content:"▲"}#loco-admin.wrap .wp-list-table td.has-row-actions{overflow:visible}#loco-admin.wrap form.loco-filter{display:block;margin-bottom:5px}#loco-admin.wrap form.loco-filter .icon-filter{color:#999}#loco-admin.wrap nav.above-list-table{margin-bottom:1em}#loco-admin.wrap nav.above-list-table a{display:inline-block;margin-right:1em}#loco-admin.wrap .wp-core-ui button.inverted,#loco-admin.wrap .wp-core-ui button.inverted:hover,#loco-admin.wrap .po-fuzzy button.icon-cloud{background:-moz-linear-gradient(top, #cccccc 0%, #e0e0e0 30%, #fefefe 100%);background:-webkit-linear-gradient(top, #cccccc 0%, #e0e0e0 30%, #fefefe 100%);background:linear-gradient(to bottom, #cccccc 0%, #e0e0e0 30%, #fefefe 100%);-webkit-box-shadow:0 1px 0 #fff;-moz-box-shadow:0 1px 0 #fff;box-shadow:0 1px 0 #fff;border-color:gray}#loco-admin.wrap .wp-core-ui button:active,#loco-admin.wrap .wp-core-ui button.inverted:active{border-color:#5b9dd9}#loco-admin.wrap .loco-clearable{display:inline-block;vertical-align:middle;position:relative}#loco-admin.wrap .loco-clearable a.clear,#loco-admin.wrap .auto-comp-wrap a.clear{top:0;right:0;outline:none;margin:0;border:solid 1px transparent;padding:5px 5px;position:absolute;font-size:1em;line-height:normal}#loco-admin.wrap .loco-clearable a.clear:before,#loco-admin.wrap .auto-comp-wrap a.clear:before{vertical-align:middle;padding:0;color:#999}#loco-admin.wrap .loco-clearable a.clear:hover:before,#loco-admin.wrap .auto-comp-wrap a.clear:hover:before{color:#333}#loco-admin.wrap .loco-clearable a.clear span,#loco-admin.wrap .auto-comp-wrap a.clear span{display:none}#loco-admin.wrap .loco-clearable ::-ms-clear,#loco-admin.wrap .auto-comp-wrap ::-ms-clear{display:none}#loco-admin.wrap div.progress{color:#000;background:transparent !important}#loco-admin.wrap div.progress *{height:100%;overflow:hidden;white-space:nowrap}#loco-admin.wrap div.progress .t{background-color:#ddd;border:1px solid #ccc}#loco-admin.wrap div.progress .t .bar{float:left;clear:none;background-color:#3db63d}#loco-admin.wrap div.progress .t .bar.f{background-color:#bd2c00}#loco-admin.wrap div.progress .l{display:block}#loco-admin.wrap td div.progress .t{border:none}#loco-admin.wrap td div.progress .l{display:none}#loco-admin.wrap code.path{color:#333;margin:0;padding:0;display:inline;background:transparent}#loco-admin.wrap .loco-danger{color:#d54e21}#loco-admin.wrap .notice,#loco-admin.wrap .panel{background:#fff;position:relative;margin:1em 0;padding:1px 12px}#loco-admin.wrap .notice-generic{border-color:#ddd}#loco-admin.wrap .notice-success>.has-icon,#loco-admin.wrap .notice-success p>strong.has-icon{color:#000}#loco-admin.wrap .notice-warning{border-color:orange}#loco-admin.wrap .notice-error{border-color:#dc3232}#loco-admin.wrap .notice-debug{border-color:#00a0d2}#loco-admin.wrap .notice-danger{border-color:#dc3232}#loco-admin.wrap .notice-locked{border-color:orange}#loco-admin.wrap .notice>.has-icon:before,#loco-admin.wrap .notice p>strong.has-icon:before{padding-right:6px}#loco-admin.wrap .notice>p>a.button.has-icon:before{width:1.2em}#loco-admin.wrap .notice>p>em{color:#d54e21;font-style:normal}#loco-admin.wrap .notice>p>em a{color:inherit}#loco-admin.wrap .notice>p a:hover,#loco-admin.wrap .notice>nav a:hover{text-decoration:underline}#loco-admin.wrap .notice>p a.button,#loco-admin.wrap .notice>nav a.button{text-decoration:inherit}#loco-admin.wrap .notice.has-nav{display:flex;flex-direction:row}#loco-admin.wrap .notice.has-nav p,#loco-admin.wrap .notice.has-nav nav{line-height:22px;flex-grow:1}#loco-admin.wrap .notice.has-nav nav{text-align:right;padding:2px;margin:.5em 0}#loco-admin.wrap .notice.has-nav.is-dismissible{padding-right:38px}#loco-admin.wrap .notice.has-nav a{white-space:nowrap}#loco-admin.wrap .notice.has-nav nav>span{color:#666}#loco-admin.wrap .notice>h3>span{display:inline-block;vertical-align:middle}#loco-admin.wrap ul.problems li{font-style:italic}#loco-admin.wrap label{position:relative}#loco-admin.wrap label.for-disabled,#loco-admin.wrap label.for-disabled>input{cursor:default !important}#loco-admin.wrap input.regular-text,#loco-admin.wrap textarea.regular-text{width:25em}#loco-admin.wrap .button-link{padding:0 10px 1px}#loco-admin.wrap .button-danger{background:#ba0000;border-color:#900 #600 #600;-webkit-box-shadow:0 1px 0 #600;-moz-box-shadow:0 1px 0 #600;box-shadow:0 1px 0 #600;color:#fff;text-shadow:0 -1px 1px #600,1px 0 1px #600,0 1px 1px #600,-1px 0 1px #600}#loco-admin.wrap .button-success{background:#00b500;border-color:#090 #2e892e #2e892e;-webkit-box-shadow:0 1px 0 #2e892e;-moz-box-shadow:0 1px 0 #2e892e;box-shadow:0 1px 0 #2e892e;color:#fff;text-shadow:0 -1px 1px #2e892e,1px 0 1px #2e892e,0 1px 1px #2e892e,-1px 0 1px #2e892e}#loco-admin.wrap .button-success:hover{background:#3db63d}#loco-admin.wrap form button.loco-loading.button-large{padding-left:0}#loco-admin.wrap form button.loco-loading.button-large:before{width:16px;height:16px;margin:0 4px;content:" ";font-size:16px;line-height:1;display:inline-block;vertical-align:sub}#loco-admin.wrap ::placeholder{color:#ccc}#loco-admin.wrap ::-webkit-input-placeholder{color:#ccc}#loco-admin.wrap :-moz-placeholder{color:#ccc;opacity:1}#loco-admin.wrap ::-moz-placeholder{color:#ccc;opacity:1}#loco-admin.wrap :-ms-input-placeholder{color:#ccc}#loco-admin.wrap .ielt10 .placeheld{color:#ccc}#loco-admin.wrap a.has-raquo:after{content:" »"}#loco-admin.wrap a.has-laquo:before{content:"« "}#loco-admin.wrap span.inline-spinner{display:inline-block;min-width:16px;min-height:16px;background:transparent url(../img/spin-modal.gif?v=2.4.1) 0 0 no-repeat}.js #wpbody-content>.notice{display:none}.js #wpbody-content>.notice.inline{display:block}.js #loco-admin.wrap .jshide,.no-js #loco-admin.wrap .jsonly{display:none !important}#loco-admin.wrap .invis{visibility:hidden}.form-table tr{vertical-align:top}.form-table tr.compact td{padding-top:0}.loco-modal{min-width:50%;min-height:100px}.loco-modal-wide{min-width:90% !important}.loco-modal.request-filesystem-credentials-dialog{top:15% !important;max-height:85% !important}.loco-modal.request-filesystem-credentials-dialog>.ui-dialog-content{background:inherit}.loco-modal.request-filesystem-credentials-dialog .ftp-password>label>em:last-child{display:none}.ui-dialog-content>div.loco-loading{height:100%;background:transparent url(../img/spin-modal.gif?v=2.4.1) center 20px no-repeat}#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}#loco-credit>*{vertical-align:middle}#loco-credit>a{display:inline-block;position:relative;overflow:hidden;background:transparent url(../img/logo-foot.gif?v=2.4.1) 0 0 no-repeat;height:30px;width:100px;text-indent:200px;-webkit-transition-duration:0s;transition-duration:0s}#loco-credit>a:hover{background-position:0 -35px}#loco-content{position:relative}#footer-upgrade span:before{color:#ccc;content:" | ";display:inline;padding-left:.5em;padding-right:.5em}#footer-upgrade span:first-child:before{content:"";display:none}.loco-clearfix:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}dl.debug dt{font-weight:bold}dl.debug dt,dl.debug dd{white-space:pre}.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(0,115,170,.05)}.wrap #loco-editor .wg-split-x>nav.wg-tabs>a.active,.wrap #loco-editor .is-table .wg-cols>div>div.selected{background-color:#0073aa;foo:#0073aa}.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 .6em rgba(30,140,190,.8);-moz-box-shadow:inset 0 0 .6em rgba(30,140,190,.8);box-shadow:inset 0 0 .6em rgba(30,140,190,.8)}.wp-core-ui .button-primary.loco-loading[disabled]{color:#66c6e4 !important;background:#008ec2 !important;border-color:#008ec2 !important}.wp-core-ui .button-primary.loco-loading[disabled]:before{background:transparent url(../img/skins/fresh/spin-primary-button.gif?v=2.4.1) 0 0 no-repeat !important}
|
pub/css/editor.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
#loco-editor{border:solid 1px #ccc}#loco-editor ._ajax_loader_f2{background-image:url(../img/ajax-loader-f2.gif?v=2.4.0);background-repeat:no-repeat;min-height:16px}#loco-editor ._ajax_loader_f2x4{background:transparent url(../img/ajax-loader-f2-x4.gif?v=2.4.0) 0 0 no-repeat;min-height:75px}#loco-editor ._ajax_loader_cc{background-image:url(../img/ajax-loader-cc.gif?v=2.4.0);background-repeat:no-repeat;min-height:16px}@media only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx){#loco-editor ._ajax_loader_f2{background-image:url(../img/ajax-loader-f2-x2.gif?v=2.4.0);background-size:16px}#loco-editor ._ajax_loader_cc{background-image:url(../img/ajax-loader-cc-x2.gif?v=2.4.0);background-size:16px}}#loco-editor ._green_glow_inner,#loco-editor .is-editable>.wg-content>textarea:focus,#loco-editor .is-editable>.wg-content.has-focus .ace_scroller,#loco-editor .is-editable>.wg-content.has-focus .wysihtml-editor,#loco-editor .is-editable>.wg-content.has-focus .mce-content-body{-webkit-box-shadow:inset 0 0 10px 0 #3db63d;-moz-box-shadow:inset 0 0 10px 0 #3db63d;box-shadow:inset 0 0 10px 0 #3db63d}#loco-editor ._green_glow_outer{-webkit-box-shadow:0 0 .5em 0 #3db63d;-moz-box-shadow:0 0 .5em 0 #3db63d;box-shadow:0 0 .5em 0 #3db63d}#loco-editor .loco-font,#loco-editor .is-table .wg-thead .wg-sortable>header:after{font-family:"loco";speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#loco-editor div.ta-mirror{position:absolute;top:0;border:solid 1px transparent;color:transparent;padding:.4em .6em;pointer-events:none}#loco-editor div.ta-mirror span{position:relative}#loco-editor div.ta-mirror span:after{color:#ccc;white-space:pre;display:inline-block;position:absolute;top:0;line-height:normal}#loco-editor div.ta-mirror .crlf:after{content:"¬"}#loco-editor div.ta-mirror .eof:after{content:"¶"}#loco-editor div.ta-mirror .x20:after{content:"·";color:#aaa}#loco-editor div.ta-mirror .x9:after{content:"⟶"}#loco-editor div.ta-mirror,#loco-editor .has-mirror textarea{white-space:pre-wrap;word-wrap:break-word;word-spacing:0px}#loco-editor .has-mirror ::placeholder{color:transparent}#loco-editor .has-mirror ::-webkit-input-placeholder{color:transparent}#loco-editor .has-mirror :-moz-placeholder{color:transparent;opacity:1}#loco-editor .has-mirror ::-moz-placeholder{color:transparent;opacity:1}#loco-editor .has-mirror :-ms-input-placeholder{color:transparent}#loco-editor .has-mirror .ielt10 .placeheld{color:transparent}#loco-editor div.ta-mirror{left:0;text-align:left}#loco-editor div.ta-mirror span:after{left:0}#loco-editor div.ta-mirror .eol:after{padding-left:.2em}#loco-editor [dir=RTL] div.ta-mirror{left:auto;right:0;text-align:right}#loco-editor [dir=RTL] div.ta-mirror span:after{right:0}#loco-editor [dir=RTL] div.ta-mirror .eol:after{padding-left:0;padding-right:.2em}#loco-editor .has-proxy>textarea{display:none !important}#loco-editor .has-proxy .ace_editor{height:100%;font-size:13px !important;line-height:1.4 !important}#loco-editor .has-proxy .ace_editor .ace_marker-layer .ace_bracket{display:none}#loco-editor .has-proxy .ace_print-margin{display:none}#loco-editor .ace_printf{color:#b90690;background-color:#edf1be}#loco-editor .ace_locked{color:gray}#loco-editor .ace_icu-quoted{color:gray}#loco-editor .ace_icu{color:#697eb9}#loco-editor .ace_icu.ace_name{color:#b90600}#loco-editor .resizer{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0 0 6px 0;background:#f0f0f0 url(../img/wg/splity.png?v=2.4.0) center bottom no-repeat;border:1px solid #ddd;overflow:hidden;cursor:move;cursor:row-resize;cursor:s-resize}#loco-editor .resizer>*{height:100%;border:none}#loco-editor ._ajax_loader_f2{background-image:url(../img/ajax-loader-f2.gif?v=2.4.0);background-repeat:no-repeat;min-height:16px}#loco-editor ._ajax_loader_f2x4{background:transparent url(../img/ajax-loader-f2-x4.gif?v=2.4.0) 0 0 no-repeat;min-height:75px}#loco-editor ._ajax_loader_cc{background-image:url(../img/ajax-loader-cc.gif?v=2.4.0);background-repeat:no-repeat;min-height:16px}@media only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx){#loco-editor ._ajax_loader_f2{background-image:url(../img/ajax-loader-f2-x2.gif?v=2.4.0);background-size:16px}#loco-editor ._ajax_loader_cc{background-image:url(../img/ajax-loader-cc-x2.gif?v=2.4.0);background-size:16px}}#loco-editor ._green_glow_inner,#loco-editor .is-editable>.wg-content>textarea:focus,#loco-editor .is-editable>.wg-content.has-focus .ace_scroller,#loco-editor .is-editable>.wg-content.has-focus .wysihtml-editor,#loco-editor .is-editable>.wg-content.has-focus .mce-content-body{-webkit-box-shadow:inset 0 0 10px 0 #3db63d;-moz-box-shadow:inset 0 0 10px 0 #3db63d;box-shadow:inset 0 0 10px 0 #3db63d}#loco-editor ._green_glow_outer{-webkit-box-shadow:0 0 .5em 0 #3db63d;-moz-box-shadow:0 0 .5em 0 #3db63d;box-shadow:0 0 .5em 0 #3db63d}#loco-editor .loco-font,#loco-editor .is-table .wg-thead .wg-sortable>header:after{font-family:"loco";speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#loco-editor .wg-cell,#loco-editor .wg-cell>div{clear:both;position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;outline:none}#loco-editor .wg-cell{left:0;top:0;padding:0;margin:0;overflow:hidden}#loco-editor .wg-split{background:#eee}#loco-editor .wg-body:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}#loco-editor .wg-split-x>div>.not-first>*{margin-left:6px}#loco-editor .wg-split-y>div>.not-first>*{margin-top:6px}#loco-editor .wg-split>div>.has-title .wg-content{margin-top:0}#loco-editor .wg-split-x>div>.wg-cell{float:left;clear:none;height:100%}#loco-editor .wg-split-x>div{cursor:move;cursor:ew-resize;cursor:col-resize}#loco-editor .wg-split>div>.not-first:before{display:block;position:absolute;overflow:hidden;content:" "}#loco-editor .wg-split-x>div>.not-first:before{width:6px;height:100%;background:transparent url(../img/wg/splitx.png?v=2.4.0) center center no-repeat}#loco-editor .wg-split-y>div{cursor:move;cursor:ns-resize;cursor:row-resize}#loco-editor .wg-split-y>div>.not-first:before{height:6px;width:100%;background:transparent url(../img/wg/splity.png?v=2.4.0) center center no-repeat}#loco-editor .wg-split>div.locked{cursor:default}#loco-editor .wg-split-x>div.locked>.not-first>*{margin-left:0px}#loco-editor .wg-split-y>div.locked>.not-first>*{margin-top:0px}#loco-editor .wg-split>div.locked>.not-first:before{display:none}#loco-editor .has-title>header{background:#e2e2e2;cursor:default !important;margin:0;white-space:nowrap}#loco-editor .wg-content{background:#fff;cursor:default;padding:4px 6px;overflow:hidden;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#loco-editor .wg-toolbar{top:0;right:0;margin-top:6px;position:absolute}#loco-editor .wg-toolbar>span{color:#fff;background:#000;display:block;padding:0 6px;cursor:default !important}#loco-editor .wg-toolbar>span:active{color:#000;background-color:#fff}#loco-editor .wg-content,#loco-editor .wg-tbody>div{overflow:scroll;overflow-x:hidden;overflow-y:auto}#loco-editor .is-table{background-color:#fff}#loco-editor .is-table .wg-thead .has-title>header{font-weight:normal;background:transparent;padding:4px 0;margin:0 0 0 10px}#loco-editor .is-table .wg-thead>div>.not-first:before{background-position:center center}#loco-editor .is-table .wg-thead{background:#e2e2e2;border-bottom:solid 1px #ccc}#loco-editor .is-table .wg-tbody{background-image:url(data:image/gif;base64,R0lGODlhAQAsAIABAPz8/P///yH5BAEAAAEALAAAAAABACwAAAIIjI+pAe0PIygAOw==);position:relative}#loco-editor .is-table .wg-cols>div{float:left;clear:none}#loco-editor .is-table .wg-cols>div>div{white-space:nowrap;line-height:1.7em;padding-left:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-o-text-overflow:ellipsis;-ms-text-overflow:ellipsis;background-color:#fff}#loco-editor .is-table .wg-cols>div>div:nth-child(even){background-color:#f7f7f7}#loco-editor .is-table .wg-cols>div>div.selected{background-color:#3db63d;color:#fff}#loco-editor .is-table .wg-cols>div>div.selected::selection{background-color:#fff;color:#000}#loco-editor .is-table .wg-cols>div:first-child>div{padding-left:4px}#loco-editor .is-table .wg-dead{clear:both}#loco-editor .is-table .wg-thead .wg-sortable>header{cursor:pointer !important}#loco-editor .is-table .wg-thead .wg-sortable>header:after{padding:0 0 0 5px;color:#999}#loco-editor .is-table .wg-thead .wg-sortable.wg-asc>header:after{content:"▲"}#loco-editor .is-table .wg-thead .wg-sortable.wg-desc>header:after{content:"▼"}#loco-editor .is-table .wg-thead .wg-sortable:hover>header:after{color:#000}#loco-editor .is-field>.wg-content{cursor:text;padding:0;line-height:normal;overflow:hidden;overflow-y:hidden}#loco-editor .is-field>.wg-content>div,#loco-editor .is-field>.wg-content>textarea{font-size:14px;line-height:1.4;border:1px solid #ddd;width:100%;height:100%;padding:8px 10px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0}#loco-editor .is-field>.wg-content textarea{resize:none;overflow:auto;display:block}#loco-editor .is-field>.wg-content>.ace_editor{padding:0;border-width:0}#loco-editor .is-field>.wg-content>div[contenteditable]{overflow:scroll;overflow-x:hidden;overflow-y:auto}#loco-editor .is-readonly>.wg-content{cursor:default}#loco-editor .is-readonly>.wg-content>div,#loco-editor .is-readonly>.wg-content>textarea,#loco-editor .is-readonly>.wg-content>textarea[readonly]{background:#f8f8f8;text-shadow:0 1px #fff;color:inherit}#loco-editor .is-readonly>.wg-content .ace_scroller{cursor:default;background:#f8f8f8}#loco-editor .is-readonly>.wg-content .ace_cursor-layer{display:none}#loco-editor .is-readonly>.wg-content>textarea[readonly]{cursor:default}#loco-editor .is-editable>.wg-content[dir=RTL] .ace_editor .ace_line{direction:ltr;unicode-bidi:bidi-override}#loco-editor .wg-split-x>nav.wg-tabs{white-space:nowrap;text-align:center;cursor:default}#loco-editor .wg-split-x>nav.wg-tabs>a{display:inline-block;padding:.5em 1em;margin-top:.2em;color:#000;text-decoration:none;-webkit-border-radius:.2em .2em 0 0;-moz-border-radius:.2em .2em 0 0;-ms-border-radius:.2em .2em 0 0;-o-border-radius:.2em .2em 0 0;border-radius:.2em .2em 0 0;background-color:#f3f7fd}#loco-editor .wg-split-x>nav.wg-tabs>a:hover{background-color:#fff}#loco-editor .wg-split-x>nav.wg-tabs>a.active{background-color:#3db63d;color:#fff}#loco-editor .wg-split>div>.has-nav>.wg-body{margin-top:0px}#loco-editor .wg-dead{visibility:hidden}@media all and (max-width: 768px){#loco-editor .wg-split-x>div>.not-first>*{margin-left:20px}#loco-editor .wg-split-y>div>.not-first>*{margin-top:20px}#loco-editor .wg-split-x>div>.not-first:before{width:20px}#loco-editor .wg-split-y>div>.not-first:before{height:20px}#loco-editor .is-table .wg-thead header{padding-left:20px}}#loco-editor .is-table .po-fuzzy{color:#b59829;font-weight:bold}#loco-editor .is-table .po-empty{color:#1f507a;font-weight:bold}#loco-editor .is-table .po-flagged{color:#bd2c00}#loco-editor .is-table .wg-cols>div:first-child>div:before{font-family:loco;vertical-align:inherit;display:inline-block;content:" ";width:1.3em;line-height:1}#loco-editor .is-table .wg-cols>div:first-child>div.po-fuzzy:before{content:""}#loco-editor .is-table .wg-cols>div:first-child>div.po-flagged:before{content:""}#loco-editor .is-table .wg-cols>div:first-child>div.po-comment:before{content:"";color:#999}#loco-editor .is-table .wg-cols>div:first-child>div.po-unsaved:before{content:"";color:#f1d040}#loco-editor .is-table .wg-cols>div:first-child>div.selected:before{color:#fff !important}#loco-editor .wg-cell>.meta{color:#333;margin:0 !important;padding:6px 10px;font-weight:normal;font-size:13px;line-height:1.4em;cursor:default !important}#loco-editor .wg-cell>.meta>*{display:inline-block;margin-top:3px;margin-bottom:3px}#loco-editor .wg-cell>.meta>span{border:1px solid transparent;border-left:none}#loco-editor .wg-cell>.meta>mark{color:#fff;border-radius:2px;background-color:silver;border:1px solid silver;padding:0 .3em}#loco-editor .wg-cell>.meta>mark.tag{color:#999;background-color:#eee}#loco-editor .wg-cell>.meta>p{display:block;white-space:pre-line}#loco-editor .wg-cell>.meta .icon-warn{color:#c00}#loco-editor .wg-cell>.meta .has-icon:before{padding-right:0;width:17px}#loco-editor .wg-cell>.meta code{font-size:12px}#loco-editor .is-table .wg-cols>div>div>mark{display:inline-block;vertical-align:text-bottom;font:inherit;font-weight:normal;color:#fff;border-radius:2px;font-size:90%;line-height:1;padding:.2em .3em;background-color:rgba(0,0,0,.25)}#loco-editor .is-table .wg-cols>div>div.selected.po-flagged{background-color:#bd2c00}#loco-editor .is-table .wg-cols>div>div.selected.po-fuzzy{background-color:#b59829}#loco-editor .is-table .wg-cols>div>div.selected.po-empty{background-color:#999}#loco-editor #po-target header nav{display:block;position:absolute;right:0px;top:0px;padding:2px}#loco-editor #po-target header nav button{margin-left:5px}#loco-editor #po-target header nav.po-empty .icon-cloud{display:none !important}#loco-editor #po-list .wg-content{padding:0}#loco-editor #po-source>.wg-body>.has-title>header{background:transparent;font-weight:normal;float:left;clear:none;min-width:3.4em}#loco-editor #po-source>.wg-body>.has-title>.wg-content{clear:none}#loco-editor .has-title>header{line-height:normal;padding:6px}#loco-editor .has-title>header .lang{margin-right:6px;margin-bottom:1px}#loco-editor .trg-rtl #po-list-tbody .wg-cols>div[for=po-list-col-target]>div,#loco-editor .src-rtl #po-list-tbody .wg-cols>div[for=po-list-col-source]>div{direction:rtl;padding-left:0;padding-right:10px;text-align:right}#loco-editor #po-source>.wg-body>.has-title>h2{min-width:4.5em}#loco-editor .is-table .wg-td{font-size:13px}#loco-editor header,#loco-editor nav{display:block;position:relative}#loco-editor-inner{min-height:600px;font-size:14px;clear:both}#loco-editor-inner>div.loco-loading{height:100px;background:transparent url(../img/spin-editor-button.gif?v=2.4.0) center 20px no-repeat}#loco-editor-inner h2{color:#000;line-height:1}#loco-editor-inner .wg-cell>.meta code{padding:0;color:#0073aa;background:inherit;cursor:pointer}#loco-editor-inner .wg-cell>.meta code:hover{text-decoration:underline}#loco.wrap #loco-toolbar{font-size:14px;height:50px}#loco.wrap #loco-toolbar form{display:block;float:left;clear:none;padding:0;margin:0}#loco.wrap #loco-toolbar form.aux{float:right;margin-right:5px}#loco.wrap #loco-toolbar fieldset{display:block;position:relative;float:left;clear:none}#loco.wrap #loco-toolbar button,#loco.wrap #loco-toolbar input[type=text]{display:block;position:relative;float:left;clear:none;margin:5px 0 0 5px;height:36px;text-align:left;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#loco.wrap #loco-toolbar input[type=text]{padding:0 10px;font-size:14px;line-height:normal}#loco.wrap #loco-toolbar .invalid input[type=text]:focus{border-color:#c00;-webkit-box-shadow:0 0 2px rgba(153,0,0,.5);-moz-box-shadow:0 0 2px rgba(153,0,0,.5);box-shadow:0 0 2px rgba(153,0,0,.5)}#loco.wrap #loco-toolbar .loco-clearable{padding:0 20px}#loco.wrap #loco-toolbar .loco-clearable.invalid a.clear:before{color:#c00}#loco.wrap #loco-toolbar .loco-clearable a.clear{right:25px;line-height:2}#loco.wrap #loco-toolbar .loco-clearable a.clear:focus{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}#loco.wrap #loco-toolbar .loco-clearable a.clear:hover:before{color:#c00}#loco.wrap #loco-toolbar .loco-clearable a.clear:active:before{color:#000}#loco.wrap #loco-toolbar button.only-icon{width:40px}#loco.wrap button.has-icon:before{width:16px;padding:0}#loco.wrap button.has-icon.loco-loading:before{content:" ";height:16px;background:transparent url(../img/spin-editor-button.gif?v=2.4.0) 0 0 no-repeat}#loco.wrap .button,#loco.wrap .button-link,#loco.wrap input[type=text]{border-color:#aaa;color:#444}#loco.wrap .button-primary{color:#fff}#loco.wrap button.icon-translate:before{font-size:16px}.loco-modal .loco-api{position:relative;padding:10px;background:#f7f7f7;border:solid 1px #eee;font-size:14px;margin-bottom:16px}.loco-modal .loco-api p{padding:0;margin:0;font-size:inherit}.loco-modal .loco-api blockquote{font-weight:bold;margin:0;padding:10px 0}.loco-modal .loco-api a.loco-api-credit{padding:0;display:block;position:absolute;right:10px;bottom:10px;text-decoration:none;white-space:nowrap;overflow:hidden;font-size:12px}.loco-modal .loco-api a.loco-api-credit:hover{text-decoration:underline}.loco-modal .loco-api-loading{text-indent:20px;background:transparent url(../img/spin-modal.gif?v=2.4.0) 10px center no-repeat}.loco-modal .loco-alert p{margin-bottom:2em;font-size:14px}.loco-modal .loco-alert nav{display:block;position:relative;margin:1em 0}.loco-modal .loco-alert nav a{display:inline-block;margin-right:1em;padding:10px}#loco-auto{display:none;min-width:50%;min-height:300px;position:relative}#loco-auto form blockquote{margin:0;padding:1em 0;font-size:14px}.loco-api a.loco-api-credit{color:inherit}.loco-api-yandex a.loco-api-credit:before{content:"Powered by "}.loco-api-google a.loco-api-credit{text-indent:200px;width:122px;height:16px;background:transparent url(../img/api/google.png?v=2.4.0) 0 0 no-repeat}.loco-api-microsoft a.loco-api-credit{text-indent:200px;width:152px;height:16px;background:transparent url(../img/api/microsoft.png?v=2.4.0) 0 0 no-repeat}.loco-api-microsoft a.loco-api-credit:before{content:"Translated by "}
|
1 |
+
#loco-editor{border:solid 1px #ccc}#loco-editor ._ajax_loader_f2{background-image:url(../img/ajax-loader-f2.gif?v=2.4.1);background-repeat:no-repeat;min-height:16px}#loco-editor ._ajax_loader_f2x4{background:transparent url(../img/ajax-loader-f2-x4.gif?v=2.4.1) 0 0 no-repeat;min-height:75px}#loco-editor ._ajax_loader_cc{background-image:url(../img/ajax-loader-cc.gif?v=2.4.1);background-repeat:no-repeat;min-height:16px}@media only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx){#loco-editor ._ajax_loader_f2{background-image:url(../img/ajax-loader-f2-x2.gif?v=2.4.1);background-size:16px}#loco-editor ._ajax_loader_cc{background-image:url(../img/ajax-loader-cc-x2.gif?v=2.4.1);background-size:16px}}#loco-editor ._green_glow_inner,#loco-editor .is-editable>.wg-content>textarea:focus,#loco-editor .is-editable>.wg-content.has-focus .ace_scroller,#loco-editor .is-editable>.wg-content.has-focus .wysihtml-editor,#loco-editor .is-editable>.wg-content.has-focus .mce-content-body{-webkit-box-shadow:inset 0 0 10px 0 #3db63d;-moz-box-shadow:inset 0 0 10px 0 #3db63d;box-shadow:inset 0 0 10px 0 #3db63d}#loco-editor ._green_glow_outer{-webkit-box-shadow:0 0 .5em 0 #3db63d;-moz-box-shadow:0 0 .5em 0 #3db63d;box-shadow:0 0 .5em 0 #3db63d}#loco-editor .loco-font,#loco-editor .is-table .wg-thead .wg-sortable>header:after{font-family:"loco";speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#loco-editor div.ta-mirror{position:absolute;top:0;border:solid 1px transparent;color:transparent;padding:.4em .6em;pointer-events:none}#loco-editor div.ta-mirror span{position:relative}#loco-editor div.ta-mirror span:after{color:#ccc;white-space:pre;display:inline-block;position:absolute;top:0;line-height:normal}#loco-editor div.ta-mirror .crlf:after{content:"¬"}#loco-editor div.ta-mirror .eof:after{content:"¶"}#loco-editor div.ta-mirror .x20:after{content:"·";color:#aaa}#loco-editor div.ta-mirror .x9:after{content:"⟶"}#loco-editor div.ta-mirror,#loco-editor .has-mirror textarea{white-space:pre-wrap;word-wrap:break-word;word-spacing:0px}#loco-editor .has-mirror ::placeholder{color:transparent}#loco-editor .has-mirror ::-webkit-input-placeholder{color:transparent}#loco-editor .has-mirror :-moz-placeholder{color:transparent;opacity:1}#loco-editor .has-mirror ::-moz-placeholder{color:transparent;opacity:1}#loco-editor .has-mirror :-ms-input-placeholder{color:transparent}#loco-editor .has-mirror .ielt10 .placeheld{color:transparent}#loco-editor div.ta-mirror{left:0;text-align:left}#loco-editor div.ta-mirror span:after{left:0}#loco-editor div.ta-mirror .eol:after{padding-left:.2em}#loco-editor [dir=RTL] div.ta-mirror{left:auto;right:0;text-align:right}#loco-editor [dir=RTL] div.ta-mirror span:after{right:0}#loco-editor [dir=RTL] div.ta-mirror .eol:after{padding-left:0;padding-right:.2em}#loco-editor .has-proxy>textarea{display:none !important}#loco-editor .has-proxy .ace_editor{height:100%;font-size:13px !important;line-height:1.4 !important}#loco-editor .has-proxy .ace_editor .ace_marker-layer .ace_bracket{display:none}#loco-editor .has-proxy .ace_print-margin{display:none}#loco-editor .ace_printf{color:#b90690;background-color:#edf1be}#loco-editor .ace_locked{color:gray}#loco-editor .ace_icu-quoted{color:gray}#loco-editor .ace_icu{color:#697eb9}#loco-editor .ace_icu.ace_name{color:#b90600}#loco-editor .resizer{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0 0 6px 0;background:#f0f0f0 url(../img/wg/splity.png?v=2.4.1) center bottom no-repeat;border:1px solid #ddd;overflow:hidden;cursor:move;cursor:row-resize;cursor:s-resize}#loco-editor .resizer>*{height:100%;border:none}#loco-editor ._ajax_loader_f2{background-image:url(../img/ajax-loader-f2.gif?v=2.4.1);background-repeat:no-repeat;min-height:16px}#loco-editor ._ajax_loader_f2x4{background:transparent url(../img/ajax-loader-f2-x4.gif?v=2.4.1) 0 0 no-repeat;min-height:75px}#loco-editor ._ajax_loader_cc{background-image:url(../img/ajax-loader-cc.gif?v=2.4.1);background-repeat:no-repeat;min-height:16px}@media only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx){#loco-editor ._ajax_loader_f2{background-image:url(../img/ajax-loader-f2-x2.gif?v=2.4.1);background-size:16px}#loco-editor ._ajax_loader_cc{background-image:url(../img/ajax-loader-cc-x2.gif?v=2.4.1);background-size:16px}}#loco-editor ._green_glow_inner,#loco-editor .is-editable>.wg-content>textarea:focus,#loco-editor .is-editable>.wg-content.has-focus .ace_scroller,#loco-editor .is-editable>.wg-content.has-focus .wysihtml-editor,#loco-editor .is-editable>.wg-content.has-focus .mce-content-body{-webkit-box-shadow:inset 0 0 10px 0 #3db63d;-moz-box-shadow:inset 0 0 10px 0 #3db63d;box-shadow:inset 0 0 10px 0 #3db63d}#loco-editor ._green_glow_outer{-webkit-box-shadow:0 0 .5em 0 #3db63d;-moz-box-shadow:0 0 .5em 0 #3db63d;box-shadow:0 0 .5em 0 #3db63d}#loco-editor .loco-font,#loco-editor .is-table .wg-thead .wg-sortable>header:after{font-family:"loco";speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#loco-editor .wg-cell,#loco-editor .wg-cell>div{clear:both;position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;outline:none}#loco-editor .wg-cell{left:0;top:0;padding:0;margin:0;overflow:hidden}#loco-editor .wg-split{background:#eee}#loco-editor .wg-body:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}#loco-editor .wg-split-x>div>.not-first>*{margin-left:6px}#loco-editor .wg-split-y>div>.not-first>*{margin-top:6px}#loco-editor .wg-split>div>.has-title .wg-content{margin-top:0}#loco-editor .wg-split-x>div>.wg-cell{float:left;clear:none;height:100%}#loco-editor .wg-split-x>div{cursor:move;cursor:ew-resize;cursor:col-resize}#loco-editor .wg-split>div>.not-first:before{display:block;position:absolute;overflow:hidden;content:" "}#loco-editor .wg-split-x>div>.not-first:before{width:6px;height:100%;background:transparent url(../img/wg/splitx.png?v=2.4.1) center center no-repeat}#loco-editor .wg-split-y>div{cursor:move;cursor:ns-resize;cursor:row-resize}#loco-editor .wg-split-y>div>.not-first:before{height:6px;width:100%;background:transparent url(../img/wg/splity.png?v=2.4.1) center center no-repeat}#loco-editor .wg-split>div.locked{cursor:default}#loco-editor .wg-split-x>div.locked>.not-first>*{margin-left:0px}#loco-editor .wg-split-y>div.locked>.not-first>*{margin-top:0px}#loco-editor .wg-split>div.locked>.not-first:before{display:none}#loco-editor .has-title>header{background:#e2e2e2;cursor:default !important;margin:0;white-space:nowrap}#loco-editor .wg-content{background:#fff;cursor:default;padding:4px 6px;overflow:hidden;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#loco-editor .wg-toolbar{top:0;right:0;margin-top:6px;position:absolute}#loco-editor .wg-toolbar>span{color:#fff;background:#000;display:block;padding:0 6px;cursor:default !important}#loco-editor .wg-toolbar>span:active{color:#000;background-color:#fff}#loco-editor .wg-content,#loco-editor .wg-tbody>div{overflow:scroll;overflow-x:hidden;overflow-y:auto}#loco-editor .is-table{background-color:#fff}#loco-editor .is-table .wg-thead .has-title>header{font-weight:normal;background:transparent;padding:4px 0;margin:0 0 0 10px}#loco-editor .is-table .wg-thead>div>.not-first:before{background-position:center center}#loco-editor .is-table .wg-thead{background:#e2e2e2;border-bottom:solid 1px #ccc}#loco-editor .is-table .wg-tbody{background-image:url(data:image/gif;base64,R0lGODlhAQAsAIABAPz8/P///yH5BAEAAAEALAAAAAABACwAAAIIjI+pAe0PIygAOw==);position:relative}#loco-editor .is-table .wg-cols>div{float:left;clear:none}#loco-editor .is-table .wg-cols>div>div{white-space:nowrap;line-height:1.7em;padding-left:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-o-text-overflow:ellipsis;-ms-text-overflow:ellipsis;background-color:#fff}#loco-editor .is-table .wg-cols>div>div:nth-child(even){background-color:#f7f7f7}#loco-editor .is-table .wg-cols>div>div.selected{background-color:#3db63d;color:#fff}#loco-editor .is-table .wg-cols>div>div.selected::selection{background-color:#fff;color:#000}#loco-editor .is-table .wg-cols>div:first-child>div{padding-left:4px}#loco-editor .is-table .wg-dead{clear:both}#loco-editor .is-table .wg-thead .wg-sortable>header{cursor:pointer !important}#loco-editor .is-table .wg-thead .wg-sortable>header:after{padding:0 0 0 5px;color:#999}#loco-editor .is-table .wg-thead .wg-sortable.wg-asc>header:after{content:"▲"}#loco-editor .is-table .wg-thead .wg-sortable.wg-desc>header:after{content:"▼"}#loco-editor .is-table .wg-thead .wg-sortable:hover>header:after{color:#000}#loco-editor .is-field>.wg-content{cursor:text;padding:0;line-height:normal;overflow:hidden;overflow-y:hidden}#loco-editor .is-field>.wg-content>div,#loco-editor .is-field>.wg-content>textarea{font-size:14px;line-height:1.4;border:1px solid #ddd;width:100%;height:100%;padding:8px 10px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0}#loco-editor .is-field>.wg-content textarea{resize:none;overflow:auto;display:block}#loco-editor .is-field>.wg-content>.ace_editor{padding:0;border-width:0}#loco-editor .is-field>.wg-content>div[contenteditable]{overflow:scroll;overflow-x:hidden;overflow-y:auto}#loco-editor .is-readonly>.wg-content{cursor:default}#loco-editor .is-readonly>.wg-content>div,#loco-editor .is-readonly>.wg-content>textarea,#loco-editor .is-readonly>.wg-content>textarea[readonly]{background:#f8f8f8;text-shadow:0 1px #fff;color:inherit}#loco-editor .is-readonly>.wg-content .ace_scroller{cursor:default;background:#f8f8f8}#loco-editor .is-readonly>.wg-content .ace_cursor-layer{display:none}#loco-editor .is-readonly>.wg-content>textarea[readonly]{cursor:default}#loco-editor .is-editable>.wg-content[dir=RTL] .ace_editor .ace_line{direction:ltr;unicode-bidi:bidi-override}#loco-editor .wg-split-x>nav.wg-tabs{white-space:nowrap;text-align:center;cursor:default}#loco-editor .wg-split-x>nav.wg-tabs>a{display:inline-block;padding:.5em 1em;margin-top:.2em;color:#000;text-decoration:none;-webkit-border-radius:.2em .2em 0 0;-moz-border-radius:.2em .2em 0 0;-ms-border-radius:.2em .2em 0 0;-o-border-radius:.2em .2em 0 0;border-radius:.2em .2em 0 0;background-color:#f3f7fd}#loco-editor .wg-split-x>nav.wg-tabs>a:hover{background-color:#fff}#loco-editor .wg-split-x>nav.wg-tabs>a.active{background-color:#3db63d;color:#fff}#loco-editor .wg-split>div>.has-nav>.wg-body{margin-top:0px}#loco-editor .wg-dead{visibility:hidden}@media all and (max-width: 768px){#loco-editor .wg-split-x>div>.not-first>*{margin-left:20px}#loco-editor .wg-split-y>div>.not-first>*{margin-top:20px}#loco-editor .wg-split-x>div>.not-first:before{width:20px}#loco-editor .wg-split-y>div>.not-first:before{height:20px}#loco-editor .is-table .wg-thead header{padding-left:20px}}#loco-editor .is-table .po-fuzzy{color:#b59829;font-weight:bold}#loco-editor .is-table .po-empty{color:#1f507a;font-weight:bold}#loco-editor .is-table .po-flagged{color:#bd2c00}#loco-editor .is-table .wg-cols>div:first-child>div:before{font-family:loco;vertical-align:inherit;display:inline-block;content:" ";width:1.3em;line-height:1}#loco-editor .is-table .wg-cols>div:first-child>div.po-fuzzy:before{content:""}#loco-editor .is-table .wg-cols>div:first-child>div.po-flagged:before{content:""}#loco-editor .is-table .wg-cols>div:first-child>div.po-comment:before{content:"";color:#999}#loco-editor .is-table .wg-cols>div:first-child>div.po-unsaved:before{content:"";color:#f1d040}#loco-editor .is-table .wg-cols>div:first-child>div.selected:before{color:#fff !important}#loco-editor .wg-cell>.meta{color:#333;margin:0 !important;padding:6px 10px;font-weight:normal;font-size:13px;line-height:1.4em;cursor:default !important}#loco-editor .wg-cell>.meta>*{display:inline-block;margin-top:3px;margin-bottom:3px}#loco-editor .wg-cell>.meta>span{border:1px solid transparent;border-left:none}#loco-editor .wg-cell>.meta>mark{color:#fff;border-radius:2px;background-color:silver;border:1px solid silver;padding:0 .3em}#loco-editor .wg-cell>.meta>mark.tag{color:#999;background-color:#eee}#loco-editor .wg-cell>.meta>p{display:block;white-space:pre-line}#loco-editor .wg-cell>.meta .icon-warn{color:#c00}#loco-editor .wg-cell>.meta .has-icon:before{padding-right:0;width:17px}#loco-editor .wg-cell>.meta code{font-size:12px}#loco-editor .is-table .wg-cols>div>div>mark{display:inline-block;vertical-align:text-bottom;font:inherit;font-weight:normal;color:#fff;border-radius:2px;font-size:90%;line-height:1;padding:.2em .3em;background-color:rgba(0,0,0,.25)}#loco-editor .is-table .wg-cols>div>div.selected.po-flagged{background-color:#bd2c00}#loco-editor .is-table .wg-cols>div>div.selected.po-fuzzy{background-color:#b59829}#loco-editor .is-table .wg-cols>div>div.selected.po-empty{background-color:#999}#loco-editor #po-target header nav{display:block;position:absolute;right:0px;top:0px;padding:2px}#loco-editor #po-target header nav button{margin-left:5px}#loco-editor #po-target header nav.po-empty .icon-cloud{display:none !important}#loco-editor #po-list .wg-content{padding:0}#loco-editor #po-source>.wg-body>.has-title>header{background:transparent;font-weight:normal;float:left;clear:none;min-width:3.4em}#loco-editor #po-source>.wg-body>.has-title>.wg-content{clear:none}#loco-editor .has-title>header{line-height:normal;padding:6px}#loco-editor .has-title>header .lang{margin-right:6px;margin-bottom:1px}#loco-editor .trg-rtl #po-list-tbody .wg-cols>div[for=po-list-col-target]>div,#loco-editor .src-rtl #po-list-tbody .wg-cols>div[for=po-list-col-source]>div{direction:rtl;padding-left:0;padding-right:10px;text-align:right}#loco-editor #po-source>.wg-body>.has-title>h2{min-width:4.5em}#loco-editor .is-table .wg-td{font-size:13px}#loco-editor header,#loco-editor nav{display:block;position:relative}#loco-editor-inner{min-height:600px;font-size:14px;clear:both}#loco-editor-inner>div.loco-loading{height:100px;background:transparent url(../img/spin-editor-button.gif?v=2.4.1) center 20px no-repeat}#loco-editor-inner h2{color:#000;line-height:1}#loco-editor-inner .wg-cell>.meta code{padding:0;color:#0073aa;background:inherit;cursor:pointer}#loco-editor-inner .wg-cell>.meta code:hover{text-decoration:underline}#loco-admin.wrap #loco-toolbar{font-size:14px;height:50px}#loco-admin.wrap #loco-toolbar form{display:block;float:left;clear:none;padding:0;margin:0}#loco-admin.wrap #loco-toolbar form.aux{float:right;margin-right:5px}#loco-admin.wrap #loco-toolbar fieldset{display:block;position:relative;float:left;clear:none}#loco-admin.wrap #loco-toolbar button,#loco-admin.wrap #loco-toolbar input[type=text]{display:block;position:relative;float:left;clear:none;margin:5px 0 0 5px;height:36px;text-align:left;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#loco-admin.wrap #loco-toolbar input[type=text]{padding:0 10px;font-size:14px;line-height:normal}#loco-admin.wrap #loco-toolbar .invalid input[type=text]:focus{border-color:#c00;-webkit-box-shadow:0 0 2px rgba(153,0,0,.5);-moz-box-shadow:0 0 2px rgba(153,0,0,.5);box-shadow:0 0 2px rgba(153,0,0,.5)}#loco-admin.wrap #loco-toolbar .loco-clearable{padding:0 20px}#loco-admin.wrap #loco-toolbar .loco-clearable.invalid a.clear:before{color:#c00}#loco-admin.wrap #loco-toolbar .loco-clearable a.clear{right:25px;line-height:2}#loco-admin.wrap #loco-toolbar .loco-clearable a.clear:focus{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}#loco-admin.wrap #loco-toolbar .loco-clearable a.clear:hover:before{color:#c00}#loco-admin.wrap #loco-toolbar .loco-clearable a.clear:active:before{color:#000}#loco-admin.wrap #loco-toolbar button.only-icon{width:40px}#loco-admin.wrap button.has-icon:before{width:16px;padding:0}#loco-admin.wrap button.has-icon.loco-loading:before{content:" ";height:16px;background:transparent url(../img/spin-editor-button.gif?v=2.4.1) 0 0 no-repeat}#loco-admin.wrap .button,#loco-admin.wrap .button-link,#loco-admin.wrap input[type=text]{border-color:#aaa;color:#444}#loco-admin.wrap .button-primary{color:#fff}#loco-admin.wrap button.icon-translate:before{font-size:16px}.loco-modal .loco-api{position:relative;padding:10px;background:#f7f7f7;border:solid 1px #eee;font-size:14px;margin-bottom:16px}.loco-modal .loco-api p{padding:0;margin:0;font-size:inherit}.loco-modal .loco-api blockquote{font-weight:bold;margin:0;padding:10px 0}.loco-modal .loco-api a.loco-api-credit{padding:0;display:block;position:absolute;right:10px;bottom:10px;text-decoration:none;white-space:nowrap;overflow:hidden;font-size:12px}.loco-modal .loco-api a.loco-api-credit:hover{text-decoration:underline}.loco-modal .loco-api-loading{text-indent:20px;background:transparent url(../img/spin-modal.gif?v=2.4.1) 10px center no-repeat}.loco-modal .loco-alert p{margin-bottom:2em;font-size:14px}.loco-modal .loco-alert nav{display:block;position:relative;margin:1em 0}.loco-modal .loco-alert nav a{display:inline-block;margin-right:1em;padding:10px}#loco-auto{display:none;min-width:50%;min-height:300px;position:relative}#loco-auto form blockquote{margin:0;padding:1em 0;font-size:14px}.loco-api a.loco-api-credit{color:inherit}.loco-api-yandex a.loco-api-credit:before{content:"Powered by "}.loco-api-google a.loco-api-credit{text-indent:200px;width:122px;height:16px;background:transparent url(../img/api/google.png?v=2.4.1) 0 0 no-repeat}.loco-api-microsoft a.loco-api-credit{text-indent:200px;width:152px;height:16px;background:transparent url(../img/api/microsoft.png?v=2.4.1) 0 0 no-repeat}.loco-api-deepl a.loco-api-credit{text-indent:200px;width:122px;height:16px;background:transparent url(../img/api/deepl.png?v=2.4.1) 0 0 no-repeat}
|
pub/css/fileinfo.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
#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:.8em}#loco.wrap .notice-info dl div.progress .l{display:none}
|
1 |
+
#loco-admin.wrap .notice-info dl{margin-top:0;display:inline-block}#loco-admin.wrap .notice-info dl dt,#loco-admin.wrap .notice-info dl dd{line-height:1.4em}#loco-admin.wrap .notice-info dl dt{font-weight:bold;color:#555}#loco-admin.wrap .notice-info dl dd{margin-left:0;margin-bottom:.8em}#loco-admin.wrap .notice-info dl div.progress .l{display:none}
|
pub/css/locale.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
#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}
|
1 |
+
#loco-admin.wrap td.loco-not-active{color:#aaa}#loco-admin.wrap div.loco-projects>h3{float:left}#loco-admin.wrap div.loco-projects form.loco-filter{float:right;margin:1em 0}
|
pub/css/podiff.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
#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.4.
|
1 |
+
#loco-admin.wrap .revisions-diff{padding:10px;min-height:20px}#loco-admin.wrap table.diff{border-collapse:collapse}#loco-admin.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-admin.wrap table.diff td>span{color:#aaa}#loco-admin.wrap table.diff td>span:after{content:". "}#loco-admin.wrap table.diff tbody{border-top:1px dashed #ccc}#loco-admin.wrap table.diff tbody:first-child{border-top:none}#loco-admin.wrap .revisions.loading .diff-meta{color:#eee}#loco-admin.wrap .revisions.loading .loading-indicator span.spinner{visibility:visible;background:#fff url(../img/spin-modal.gif?v=2.4.1) center center no-repeat}#loco-admin.wrap .revisions-meta{clear:both;padding:10px 12px;margin:0;position:relative;top:10px}#loco-admin.wrap .revisions-meta .diff-meta{clear:none;float:left;width:50%;padding:0;min-height:auto}#loco-admin.wrap .revisions-meta .diff-meta button{margin-top:5px}#loco-admin.wrap .revisions-meta .diff-meta-current{float:right;text-align:right}#loco-admin.wrap .revisions-meta time{color:#72777c}#loco-admin.wrap .revisions-control-frame{margin:10px 0}#loco-admin.wrap .revisions-diff-frame{margin-top:20px}
|
pub/css/poview.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.js #loco.wrap .loco-loading{min-height:100px;background:#fff url(../img/spin-modal.gif?v=2.4.
|
1 |
+
.js #loco-admin.wrap .loco-loading{min-height:100px;background:#fff url(../img/spin-modal.gif?v=2.4.1) center center no-repeat}.js #loco-admin.wrap .loco-loading ol.msgcat{display:none}#loco-admin.wrap #loco-po{padding-right:0;overflow:auto}#loco-admin.wrap ol.msgcat{margin-left:3em;padding-top:1em;border-top:1px dashed #ccc}#loco-admin.wrap ol.msgcat:first-child{padding-top:0;border-top:none}#loco-admin.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-admin.wrap ol.msgcat li>*{color:#333;white-space:pre}#loco-admin.wrap ol.msgcat li>.po-comment{color:#3cc200}#loco-admin.wrap ol.msgcat li>.po-refs{color:#0073aa}#loco-admin.wrap ol.msgcat li>.po-refs a{color:inherit;text-decoration:none}#loco-admin.wrap ol.msgcat li>.po-refs a:hover{text-decoration:underline}#loco-admin.wrap ol.msgcat li>.po-flags{color:#77904a}#loco-admin.wrap ol.msgcat li>.po-flags em{font-style:normal}#loco-admin.wrap ol.msgcat li>.po-word{color:#000}#loco-admin.wrap ol.msgcat li>.po-junk{font-style:italic;color:#ccc}#loco-admin.wrap ol.msgcat li>.po-string>span{color:#c931c7}#loco-admin.wrap form.loco-filter{top:0;right:0;position:absolute}#loco-admin.wrap .loco-invalid form.loco-filter input[type=text]:focus{border-color:#c00;-webkit-box-shadow:0 0 2px rgba(153,0,0,.5);-moz-box-shadow:0 0 2px rgba(153,0,0,.5);box-shadow:0 0 2px rgba(153,0,0,.5)}#loco-admin.wrap .loco-invalid ol.msgcat{list-style-type:none}#loco-admin.wrap .loco-invalid ol.msgcat li{color:#000}
|
pub/css/skins/blue.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(9,100,132,.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 .6em rgba(30,140,190,.8);-moz-box-shadow:inset 0 0 .6em rgba(30,140,190,.8);box-shadow:inset 0 0 .6em rgba(30,140,190,.8)}
|
1 |
+
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(9,100,132,.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;foo:#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 .6em rgba(30,140,190,.8);-moz-box-shadow:inset 0 0 .6em rgba(30,140,190,.8);box-shadow:inset 0 0 .6em rgba(30,140,190,.8)}.wp-core-ui .button-primary.loco-loading[disabled]{color:#d1cdc7 !important;background:#db9925 !important;border-color:#db9925 !important}.wp-core-ui .button-primary.loco-loading[disabled]:before{background:transparent url(../../img/skins/blue/spin-primary-button.gif?v=2.4.1) 0 0 no-repeat !important}
|
pub/css/skins/coffee.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(199,165,137,.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 .6em rgba(30,140,190,.8);-moz-box-shadow:inset 0 0 .6em rgba(30,140,190,.8);box-shadow:inset 0 0 .6em rgba(30,140,190,.8)}
|
1 |
+
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(199,165,137,.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;foo:#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 .6em rgba(30,140,190,.8);-moz-box-shadow:inset 0 0 .6em rgba(30,140,190,.8);box-shadow:inset 0 0 .6em rgba(30,140,190,.8)}.wp-core-ui .button-primary.loco-loading[disabled]{color:#d1ccc7 !important;background:#ba906d !important;border-color:#ba906d !important}.wp-core-ui .button-primary.loco-loading[disabled]:before{background:transparent url(../../img/skins/coffee/spin-primary-button.gif?v=2.4.1) 0 0 no-repeat !important}
|
pub/css/skins/ectoplasm.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(163,183,69,.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 .6em rgba(30,140,190,.8);-moz-box-shadow:inset 0 0 .6em rgba(30,140,190,.8);box-shadow:inset 0 0 .6em rgba(30,140,190,.8)}
|
1 |
+
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(163,183,69,.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;foo:#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 .6em rgba(30,140,190,.8);-moz-box-shadow:inset 0 0 .6em rgba(30,140,190,.8);box-shadow:inset 0 0 .6em rgba(30,140,190,.8)}.wp-core-ui .button-primary.loco-loading[disabled]{color:#cfd1c7 !important;background:#89993a !important;border-color:#89993a !important}.wp-core-ui .button-primary.loco-loading[disabled]:before{background:transparent url(../../img/skins/ectoplasm/spin-primary-button.gif?v=2.4.1) 0 0 no-repeat !important}
|
pub/css/skins/light.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(136,136,136,.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 .6em rgba(30,140,190,.8);-moz-box-shadow:inset 0 0 .6em rgba(30,140,190,.8);box-shadow:inset 0 0 .6em rgba(30,140,190,.8)}
|
1 |
+
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(136,136,136,.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;foo:#04a4cc}.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 .6em rgba(30,140,190,.8);-moz-box-shadow:inset 0 0 .6em rgba(30,140,190,.8);box-shadow:inset 0 0 .6em rgba(30,140,190,.8)}.wp-core-ui .button-primary.loco-loading[disabled]{color:#c7cfd1 !important;background:#0384a4 !important;border-color:#0384a4 !important}.wp-core-ui .button-primary.loco-loading[disabled]:before{background:transparent url(../../img/skins/light/spin-primary-button.gif?v=2.4.1) 0 0 no-repeat !important}
|
pub/css/skins/midnight.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(225,77,67,.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 .6em rgba(30,140,190,.8);-moz-box-shadow:inset 0 0 .6em rgba(30,140,190,.8);box-shadow:inset 0 0 .6em rgba(30,140,190,.8)}
|
1 |
+
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(225,77,67,.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;foo:#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 .6em rgba(30,140,190,.8);-moz-box-shadow:inset 0 0 .6em rgba(30,140,190,.8);box-shadow:inset 0 0 .6em rgba(30,140,190,.8)}.wp-core-ui .button-primary.loco-loading[disabled]{color:#d1c8c7 !important;background:#d92e23 !important;border-color:#d92e23 !important}.wp-core-ui .button-primary.loco-loading[disabled]:before{background:transparent url(../../img/skins/midnight/spin-primary-button.gif?v=2.4.1) 0 0 no-repeat !important}
|
pub/css/skins/modern.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(56,88,233,.05)}.wrap #loco-editor .wg-split-x>nav.wg-tabs>a.active,.wrap #loco-editor .is-table .wg-cols>div>div.selected{background-color:#3858e9;foo:#3858e9}.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 .6em rgba(30,140,190,.8);-moz-box-shadow:inset 0 0 .6em rgba(30,140,190,.8);box-shadow:inset 0 0 .6em rgba(30,140,190,.8)}.wp-core-ui .button-primary.loco-loading[disabled]{color:#c7c9d1 !important;background:#193ddf !important;border-color:#193ddf !important}.wp-core-ui .button-primary.loco-loading[disabled]:before{background:transparent url(../../img/skins/modern/spin-primary-button.gif?v=2.4.1) 0 0 no-repeat !important}
|
pub/css/skins/ocean.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(158,186,160,.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 .6em rgba(30,140,190,.8);-moz-box-shadow:inset 0 0 .6em rgba(30,140,190,.8);box-shadow:inset 0 0 .6em rgba(30,140,190,.8)}
|
1 |
+
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(158,186,160,.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;foo:#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 .6em rgba(30,140,190,.8);-moz-box-shadow:inset 0 0 .6em rgba(30,140,190,.8);box-shadow:inset 0 0 .6em rgba(30,140,190,.8)}.wp-core-ui .button-primary.loco-loading[disabled]{color:#c7d1c8 !important;background:#86a989 !important;border-color:#86a989 !important}.wp-core-ui .button-primary.loco-loading[disabled]:before{background:transparent url(../../img/skins/ocean/spin-primary-button.gif?v=2.4.1) 0 0 no-repeat !important}
|
pub/css/skins/sunrise.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(221,130,59,.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 .6em rgba(30,140,190,.8);-moz-box-shadow:inset 0 0 .6em rgba(30,140,190,.8);box-shadow:inset 0 0 .6em rgba(30,140,190,.8)}
|
1 |
+
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(221,130,59,.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;foo:#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 .6em rgba(30,140,190,.8);-moz-box-shadow:inset 0 0 .6em rgba(30,140,190,.8);box-shadow:inset 0 0 .6em rgba(30,140,190,.8)}.wp-core-ui .button-primary.loco-loading[disabled]{color:#d1cbc7 !important;background:#cc6d23 !important;border-color:#cc6d23 !important}.wp-core-ui .button-primary.loco-loading[disabled]:before{background:transparent url(../../img/skins/sunrise/spin-primary-button.gif?v=2.4.1) 0 0 no-repeat !important}
|
pub/img/api/deepl.png
ADDED
Binary file
|
pub/img/skins/modern/spin-primary-button.gif
ADDED
Binary file
|
pub/js/min/admin.js
CHANGED
@@ -1,196 +1,199 @@
|
|
1 |
-
(function(
|
2 |
-
|
3 |
-
function(
|
4 |
-
c){c=Math.max(c,1E-4);do
|
5 |
-
c&&c[
|
6 |
-
0;(c=c.offsetParent)&&c!==(b||k.body);)a+=c[
|
7 |
-
0,function(){a.slideUp(b,function(){a.remove();k(
|
8 |
-
return{link:function(b,
|
9 |
-
c=k(
|
10 |
-
function(b){return a(b,
|
11 |
-
|
12 |
-
function c(a,b,
|
13 |
-
c&&(
|
14 |
-
f.init=function(a){
|
15 |
-
var
|
16 |
-
(z=!1,
|
17 |
-
he:1,nqo:1,ps:1,ur:1,yi:1});
|
18 |
-
b.toLowerCase();return a};
|
19 |
-
|
20 |
-
"\u010d":"c","\u010b":"c","\u00e7":"c","\u1e09":"c","\u010f":"d","\u1e0b":"d","\u1e11":"d","\u0111":"d","\u1e0d":"d","\u1e13":"d","\u1e0f":"d","\u00f0":"d","\ua77a":"d","\u01c6":"\u01f3","\u00e9":"e","\u00e8":"e","\u0115":"e","\u00ea":"e","\u1ebf":"e","\u1ec1":"e","\u1ec5":"e","\u1ec3":"e","\u011b":"e","\u00eb":"e","\u1ebd":"e","\u0117":"e","\u0229":"e","\u1e1d":"e","\u0119":"e","\u0113":"e","\u1e17":"e","\u1e15":"e",
|
21 |
-
"\u1e1f":"f","\ua77c":"f","\u01f5":"g","\u011f":"g","\u011d":"g","\u01e7":"g","\u0121":"g","\u0123":"g","\u1e21":"g","\ua7a1":"g","\u1d79":"g","\u0125":"h","\u021f":"h","\u1e27":"h","\u1e23":"h","\u1e29":"h","\u0127":"h","\u210f":"h","\u1e25":"h","\u1e2b":"h","\u1e96":"h","\u00ed":"i","\u00ec":"i","\u012d":"i","\u00ee":"i","\u01d0":"i","\u00ef":"i","\u1e2f":"i","\u0129":"i","\u012f":"i","\u012b":"i","\u1ec9":"i",
|
22 |
-
"\u01e9":"k","\u0137":"k","\ua7a3":"k","\u1e33":"k","\u1e35":"k","\u013a":"l","\u013e":"l","\u013c":"l","\u0142":"l","\u1e37":"l","\u1e39":"l","\u1e3d":"l","\u1e3b":"l","\u0140":"l","\u1e3f":"m","\u1e41":"m","\u1e43":"m","\u0144":"n","\u01f9":"n","\u0148":"n","\u00f1":"n","\u1e45":"n","\u0146":"n","\ua7a5":"n","\u1e47":"n","\u1e4b":"n","\u1e49":"n","\u00f3":"o","\u00f2":"o","\u014f":"o","\u00f4":"o","\u1ed1":"o",
|
23 |
-
"\
|
24 |
-
"\
|
25 |
-
"\u0215":"u","\u0217":"u","\u01b0":"u","\u1ee9":"u","\u1eeb":"u","\u1eef":"u","\u1eed":"u","\u1ef1":"u","\u1ee5":"u","\u1e73":"u","\u1e77":"u","\u1e75":"u","\u1e7d":"v","\u1e7f":"v","\u1e83":"w","\u1e81":"w","\u0175":"w","\u1e98":"w","\u1e85":"w","\u1e87":"w","\u1e89":"w","\u1e8d":"x","\u1e8b":"x","\u00fd":"y","\u1ef3":"y","\u0177":"y","\u1e99":"y","\u00ff":"y","\u1ef9":"y","\u1e8f":"y","\u0233":"y","\u1ef7":"y",
|
26 |
-
"\
|
27 |
-
"\
|
28 |
-
"\
|
29 |
-
"\
|
30 |
-
"\
|
31 |
-
|
32 |
-
(f=
|
33 |
-
[]},remove:function(a){
|
34 |
-
"";
|
35 |
-
|
36 |
-
"html":"text"](b);a[0].className="tipsy";a.remove().css({top:0,left:0}).prependTo(
|
37 |
-
|
38 |
-
this.options.className);a.addClass("in")}},hide:function(){this.tip().remove()},fixTitle:function(){var b=this.$element,a=b.attr("title")||"";(a||"string"!==typeof b.attr("original-title"))&&b.attr("original-title",a).removeAttr("title")},getTitle:function(){var b,a=this.$element,c=this.options;this.fixTitle();"string"==typeof c.title?b=a.attr("title"==c.title?"original-title":
|
39 |
-
this.$element;a.attr("default-title")||a.attr("default-title",this.getTitle());null==b&&(b=a.attr("default-title")||this.getTitle());a.attr("original-title",b);if(this.$tip)this.$tip.find(".tipsy-inner")[this.options.html?"html":"text"](b)},tip:function(){this.$tip||(this.$tip=k('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>'),
|
40 |
-
this.options=this.$element=null)},enable:function(){this.enabled=!0},disable:function(){this.hide();this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled}};k.fn.tipsy=function(b){function a(a){var c=k.data(a,"tipsy");c||(c=new
|
41 |
-
"out";0==
|
42 |
-
k.fn.tipsy.elementOptions=function(b,a){return k.metadata?k.extend({},a,k(b).metadata()):a};k.fn.tipsy.autoNS=function(){return k(this).offset().top>k(
|
43 |
-
|
44 |
-
b){return'<a href="'+a+'" target="'+(b.indexOf(
|
45 |
-
(c=/[-_+]/,
|
46 |
-
this.lang;return!(!a||"zxx"===a)};
|
47 |
-
|
48 |
-
l.length;0!==e--;)
|
49 |
-
timerId=
|
50 |
-
|
51 |
-
h(
|
52 |
-
c.scrollLeft;return!0};
|
53 |
-
"snapInterval(0px,"+a+"px)",c.style["-ms-scroll-snap-type"]="mandatory",c.style["-ms-scroll-chaining"]="none")},scroll:function(a,b,
|
54 |
-
"touch")===a.pointerType&&c(0,a);else for(var
|
55 |
-
a.charCodeAt(0).toString(16)+'">'+a+"</span>"}var a=
|
56 |
-
|
57 |
-
4E3),
|
58 |
-
a.on("change",function(a,c){return b.val(c.getValue())});a.on("focus",function(){return b.focus()});a.on("blur",function(){return b.blur()})}function
|
59 |
-
function a(a){return function(){var b={start:[{token:"empty_line",regex:/^$/},{token:"constant.language",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"},{token:"constant.language",regex:/<!\[CDATA\[/},{token:"constant.language",regex:/\]\]>/},{token:"locked",regex:/<(?:xliff:)?(?:g|ph)[^>]*>[^<]*<\/(?:xliff:)?(?:g|ph)>/},{token:"locked",regex:/<(?:xliff:)?(bx|ex|x)[^\/>]*\/>/},
|
60 |
-
regex:/'([{}][^']*)?'/},{token:"printf",regex:"{[^!-/:-@\\[-^{-~\u00a1\u00a2\u00a3\u00a4\u00a5\u00a6\u00a7\u00a9\u00ab\u00ac\u00ae\u00b0\u00b1\u00b6\u00bb\u00bf\u00d7\u00f7\\u2010-\\u2027\\u2030-\\u203E\\u2041-\\u2053\\u2055-\\u205E\\u2190-\\u245F\\u2500-\\u2775\\u2794-\\u2BFF\\u2E00-\\u2E7F\\u3001-\\u3003\\u3008-\\u3020\\u3030\\uFD3E\\uFD3F\\uFE45\\uFE46]+(,[\\s\\u0085\\u200E\\u200F\\u2028\\u2029]*(?:number|date|time|spellout|ordinal|duration)[\\s\\u0085\\u200E\\u200F\\u2028\\u2029]*(,[\\s\\u0085\\u200E\\u200F\\u2028\\u2029]*[^{}]+)?)?}"},
|
61 |
{token:"icu",regex:/{/,next:"icuName"},{token:"icu",regex:/}/,next:"icuType"}]),icuName:[{token:"icu",regex:"[\\s\\u0085\\u200E\\u200F\\u2028\\u2029]+"},{token:"icu.name",regex:"[^\\s\\u0085\\u200E\\u200F\\u2028\\u2029!-/:-@\\[-^{-~\u00a1\u00a2\u00a3\u00a4\u00a5\u00a6\u00a7\u00a9\u00ab\u00ac\u00ae\u00b0\u00b1\u00b6\u00bb\u00bf\u00d7\u00f7\\u2010-\\u2027\\u2030-\\u203E\\u2041-\\u2053\\u2055-\\u205E\\u2190-\\u245F\\u2500-\\u2775\\u2794-\\u2BFF\\u2E00-\\u2E7F\\u3001-\\u3003\\u3008-\\u3020\\u3030\\uFD3E\\uFD3F\\uFE45\\uFE46]+",
|
62 |
-
next:"icuType"},{defaultToken:"icu",next:"icuType"}],icuType:[{token:"icu",regex:/[{}]/,next:"start"},{defaultToken:"icu"}]}:c&&b.start.push({token:"printf",regex:c});this.$rules=b}}function
|
63 |
-
case "python":return/%(?:\([a-z]+\))?[-+0# ]*(?:\d+|\*)?(?:\.\d+|\.\*)?(?:[hlL])?[sdiouxXeEfFgGcra%]/;case "javascript":return/%(?:[1-9]\d*\$)?\+?(?:0|'[^$])?-?\d*(?:\.\d+)?[b-gijostTuvxX%]/;case "auto":return/%(?:\d+\$|\([a-z]+\))?(?:[-+0]?\d*(\.\d+)?[duxoefgaDUXOEFGA]|[@scSC%])/;case
|
64 |
-
function(
|
65 |
-
z=null);return this},disable:function(){
|
66 |
-
|
67 |
-
"</p>"===a.substr(-4);return a.replace(/(<\/?)script/ig,"$1loco:script")}function
|
68 |
-
|
69 |
block_formats:"Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h4;Heading 4=h4;Heading 5=h5;Heading 6=h6;",forced_root_block:"p",relative_urls:!1,convert_urls:!1,remove_script_host:!1,document_base_url:"",allow_script_urls:!1,formats:{alignleft:{classes:"alignleft"},alignright:{selector:"p,h1,h2,h3,h4,span,strong,em,a",classes:"alignright"},aligncenter:{selector:"p,h1,h2,h3,h4,span,strong,em,a",classes:"aligncenter"},strikethrough:{inline:"del"}},fix_list_elements:!0,extended_valid_elements:"span,b,i,u,loco:script",
|
70 |
-
entities:"38,amp,60,lt,62,gt,160,nbsp",entity_encoding:"named",keep_styles:!1,init_instance_callback:
|
71 |
-
focus:function(){h&&
|
72 |
-
|
73 |
-
b.readOnly?a.disable():a.enable();return a};TextAreaPrototype=
|
74 |
TextAreaPrototype.fire=function(){this.l&&this.l.fire();return this};TextAreaPrototype.ping=function(){this.l&&this.l.ping();return this};TextAreaPrototype.focus=function(){var b=this.p;b?b.focus():k(this.e).focus()};TextAreaPrototype.focused=function(){return c&&c===this.el};TextAreaPrototype.parent=function(){return this.e.parentNode};TextAreaPrototype.attr=function(b,a){var c=this.e;if(1===arguments.length)return c.getAttribute(b);null==a?c.removeAttribute(b):c.setAttribute(b,a);return this};TextAreaPrototype.editable=
|
75 |
-
function(){return!!this.l};TextAreaPrototype.enable=function(){var b=this.p;this.e.removeAttribute("readonly");this.listen();b&&b.enable&&b.enable(this.l);return this};TextAreaPrototype.disable=function(){var b=this.p;this.e.setAttribute("readonly",!0);this.unlisten();b&&b.disable&&b.disable();return this};TextAreaPrototype.listen=function(){var b=this.l;b&&b.kill();this.l=
|
76 |
-
function(b,a){var c=this.i||!1;if(a||c!==b)this._i&&(this._i.kill(),delete this._i),(c=this.p)?c.invs&&c.invs(b):b&&(this._i=
|
77 |
-
!0),c&&this.focus());return this};TextAreaPrototype.setStrf=function(b){this["%"]=b;"code"===this.m&&this.p.strf(b);return this};TextAreaPrototype.name=function(b){this.e.setAttribute("name",b);return this};TextAreaPrototype.placeholder=function(b){this.e.setAttribute("placeholder",b);return this};TextAreaPrototype.redraw=function(){var b=this.p;b&&b.resize&&b.resize()};TextAreaPrototype=null;return
|
78 |
-
function
|
79 |
-
b.ctrlKey||b.metaKey||b.altKey)return!0;a.selectNext(c);b.stopPropagation();b.preventDefault();return!1}}function
|
80 |
-
a||0;this.length=b.length}function D(a){this.live=a;this.rows=[]}
|
81 |
-
|
82 |
-
[],b=a.length;0!==b--;)a[b].destroy();this.pages=[];this.sy=this.mx=this.mn=this.vh=null;void 0;return this};q.render=function(){for(var a,b,c=[],
|
83 |
-
this.redrawDirty();this.redraw();null==
|
84 |
-
b.scrollTop,b=b.clientHeight;this.sy!==c&&(a=!0,this.sy=c);this.vh!==b&&(a=!0,this.vh=b);return a};q.redraw=function(){for(var a=0,b=-1,c=null,
|
85 |
-
|
86 |
-
(
|
87 |
-
this.w.cells[1];
|
88 |
-
function(a){this._idxs||(this._idxs=this.idxs);this.idxs=this._sort(a);return this.clear().render()};q.each=function(a){for(var b,c=-1,
|
89 |
-
function(a,b){b?(this.s=b,b(a)):(b=this.s)&&b(a);return a};q.sort=function(a,b){this._sort(this.idxs,
|
90 |
-
return this};q.activate=function(a,b){var c,
|
91 |
-
this.rendered=!0;return this};q.update=function(a,b){var c=b||this.c[a]||{},
|
92 |
-
q.insert=function(a){var b=this.h,c=
|
93 |
-
|
94 |
-
q.destroy=function(){var a=this.rendered?this.live:this.dead,b=this.rows,c=b.length;for(a.parentNode.removeChild(a);0!==c--;)b[c].destroy()};q=null;return
|
95 |
-
|
96 |
-
k(c).on("editFocus",function(){
|
97 |
-
return b};
|
98 |
-
return this};
|
99 |
-
this.rtl);
|
100 |
-
(
|
101 |
-
function(a){for(var b=-1,c=0,
|
102 |
-
this.field.editable()?a.push("is-editable"):a.push("is-readonly"));a=a.join(" ");a!==this._css&&(this._css=a,this.el.className=a);return this};
|
103 |
-
(
|
104 |
-
b);
|
105 |
-
b,
|
106 |
-
this.body;if(a.nodeType){var c=b.firstChild;
|
107 |
-
a||"",b;this.header(a);return this.t};
|
108 |
-
|
109 |
-
|
110 |
-
b.push("po-empty"),a.comment()&&b.push("po-comment"));return b.join(" ")}function
|
111 |
-
"number.js");var a="poUpdate",
|
112 |
-
this.editable={source:!0,target:!0};this.mode="";this.html=!1;return this};
|
113 |
-
this.labels=b;this.t=a;return this};
|
114 |
-
function(a,c,
|
115 |
-
function(){if(this.active)return this.targetCell&&this.targetCell.navigated()||0};
|
116 |
-
|
117 |
-
|
118 |
-
a)b.each(function(a,b){b.save()}),this.listCell.find("div.po-unsaved").removeClass("po-unsaved"),this.dirty=0,this.fire("poSave");return b};
|
119 |
-
!
|
120 |
-
|
121 |
-
this.updateListCell(a,"source");this.updateListCell(a,"target");return this};
|
122 |
-
|
123 |
-
c(this,
|
124 |
-
function(b){function c(a,b){var
|
125 |
-
c(D[k])+":";else q=[
|
126 |
-
a.eachTextarea(function(a){a.ping()});a.off();var
|
127 |
-
|
128 |
-
(
|
129 |
-
|
130 |
-
|
131 |
-
a.textarea("",!1);if(a=this.sourceCell)a.textarea("",!1).setStrf(
|
132 |
-
|
133 |
-
|
134 |
-
this.
|
135 |
-
|
136 |
-
this.sourceLocale={lang:"en",label:"English",plurals:["One","Other"]}}function
|
137 |
-
"base.js");
|
138 |
-
b=[a._x("Source text","Editor")];this.targetLocale&&(b[1]=a._x("Translation","Editor"));return b};
|
139 |
-
function(){var a=this.po,b=a.length,c=0,d=0,
|
140 |
-
a&&(this.targetLocale=a,delete this._unlocked,this.po&&this.po.lock(a),this.editable={source:!1,context:!1,target:!0},this.targetCell=this.contextCell,delete this.contextCell,this.reload(),this.fire("poLock",[!0,a]),this.active&&this.loadMessage(this.active))};
|
141 |
-
[];a.translated()?a.fuzzy()&&
|
142 |
-
40:!0,73:!0},c={66:function(b,a){var c=a.current();c&&(c.normalize(),a.focus().pasteMessage(c))},75:function(b,a){var c=a.current();c&&(c.untranslate(),a.focus().pasteMessage(c))},85:function(b,a){a.focus().fuzzy(!a.fuzzy())},13:function(b,a){a.getFirstEditable()&&a.next(1,!0,!0)},40:function(b,a){var c=b.shiftKey;a.next(1,c,c)},38:function(b,a){var c=b.shiftKey;a.next(-1,c,c)},73:function(b,a){if(!b.shiftKey)return!1;a.setInvs(!a.getInvs())}};
|
143 |
-
!a.metaKey&&!a.ctrlKey)return!0;var
|
144 |
-
|
145 |
-
this.length++);this[b]=c;return b};
|
146 |
-
b){return d(a[0],b[0])});for(c=0;c<b;c++)a=
|
147 |
-
a,
|
148 |
-
return
|
149 |
-
|
150 |
-
|
151 |
-
b?b:-1!==
|
152 |
-
"%s")}function b(a){return a.replace(/[^\sa-z0-9]+/ig," ")}function a(a){return a.trim().replace(/\s+/g," ")}function f
|
153 |
-
if(u!==
|
154 |
-
b.get(a),
|
155 |
-
d
|
156 |
-
|
157 |
-
|
158 |
-
b.length;for(c=0;c<a;c++)if(!b[c])return!1;return!0};
|
159 |
-
this.ctx).join(" ")};
|
160 |
-
c--;)if(b[c])return!1;return!0};
|
161 |
-
"","Last-Translator":"","Language-Team":"",Language:"","Plural-Forms":"","MIME-Version":"1.0","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"8bit"}}function
|
162 |
-
k=
|
163 |
-
k.headers=function(a){var b,c=this.now(),
|
164 |
-
a["X-Generator"]="Loco https://localise.biz/";return a};k.get=function(a,b){var c=
|
165 |
-
g),
|
166 |
-
|
167 |
-
k,
|
168 |
-
|
169 |
-
d)return 1;if(c<d)return-1;if(b){c=this.hash().toLowerCase();d=a.hash().toLowerCase();if(c<d)return 1;if(c>d)return-1}return 0};k.merge=function(a){var b=!1;this.rf=a.rf;this.fmt=a.fmt;this.cmt=a.cmt;this.xcmt=a.xcmt;a.src.join("\x00")!==this.src.join("\x00")&&(this._src=this.src,this.src=a.src.concat(),this.msg=(this.msg||["",""]).slice(0,this.src.length),b=!0);a.ctx!==this.ctx&&(this._ctx=this.ctx,this.ctx=a.ctx,b=!0);b&&this.translated()&&this.fuzzy(0,!0)};k.copy=function(){var a=new
|
170 |
-
((c=this[b])&&c.concat&&(c=c.concat()),a[b]=c);return a};k=k=null;return
|
171 |
-
|
172 |
-
|
173 |
-
q>
|
174 |
-
|
175 |
-
|
176 |
-
d.getUrl=function(){return"https://translate.yandex.com/"};d.parseError=function(c){return c&&c.code&&200!==c.code&&c.message?String(this)+" error "+c.code+": "+c.message:""};d.batch=function(c,b,a,d){function
|
177 |
-
[]):(
|
178 |
-
"");return String(this)+" error "+c.error.code+": "+b.join(";")}return""};d.batch=function(c,b,a,d){function
|
179 |
-
f.odderr(
|
180 |
-
d.parseError=function(c){return c&&c.error?c.error.message:""};d.batch=function(c,b,a,d){function
|
181 |
-
"Ocp-Apim-Subscription-Key":this.key(),"Ocp-Apim-Subscription-Region":
|
182 |
-
|
183 |
-
a
|
184 |
-
f
|
185 |
-
c.
|
186 |
-
return
|
187 |
-
function
|
188 |
-
|
189 |
-
"
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
"")
|
195 |
-
|
196 |
-
"
|
|
|
|
|
|
1 |
+
(function(y,w,k,S){var m=function(){function g(e){throw Error("Failed to require "+e);}var e={};return{register:function(g,l){e[g]=l},require:function(k,l){return e[k]||g(l)},include:function(k,l,d){return e[k]||(d?g(l):null)}}}();m.register("$1",function(g,e,k){function l(d){var c=typeof d;if("string"===c)if(/[^ <>!=()%^&|?:n0-9]/.test(d))console.error("Invalid plural: "+d);else return new Function("n","return "+d);"function"!==c&&(d=function(b){return 1!=b});return d}g.init=function(d){function c(a,
|
2 |
+
h,c){return(a=b[a])&&a[c]?a[c]:h||""}d=l(d);var b={};return{_:function(a){return c(a,a,0)},_x:function(a,b){return c(b+"\u0004"+a,a,0)},_n:function(a,b,f){f=Number(d(f));isNaN(f)&&(f=0);return c(a,f?b:a,f)},load:function(a){b=a||{};return this},pluraleq:function(a){d=l(a);return this}}};return g}({},y,w));m.register("$2",function(g,e,m){g.ie=function(){var e=k&&k.browser||{},d=e.msie&&11>Number(e.version),e=null;return function(){return d}}();g.init=function(){return g};return g}({},y,w));m.register("$3",
|
3 |
+
function(g,e,k){Number.prototype.format=function(e){e=Math.pow(10,e||0);var d=Math.round(e*this)/e;e=[];var d=String(d),c=d.split("."),d=c[0],c=c[1],b=d.length;do e.unshift(d.substring(b-3,b));while(0<(b-=3));d=e.join(",");if(e=c){e=c;for(var a,c=e.length;"0"===e.charAt(--c);)a=c;a&&(e=e.substring(0,a));e=c=e}e&&(d+="."+c);return d};Number.prototype.percent=function(e){var d=0,c=this&&e?100*(this/e):0;if(0===c)return"0";if(100===c)return"100";if(99<c)c=Math.min(c,99.9),e=c.format(++d);else if(0.5>
|
4 |
+
c){c=Math.max(c,1E-4);do e=c.format(++d);while("0"===e&&4>d);e=e.substr(1)}else e=c.format(0);return e};return g}({},y,w));m.register("$4",function(g,e,k){Array.prototype.indexOf||(Array.prototype.indexOf=function(e){if(null==this)throw new TypeError;var d,c=Object(this),b=c.length>>>0;if(0===b)return-1;d=0;1<arguments.length&&(d=Number(arguments[1]),d!=d?d=0:0!=d&&Infinity!=d&&-Infinity!=d&&(d=(0<d||-1)*Math.floor(Math.abs(d))));if(d>=b)return-1;for(d=0<=d?d:Math.max(b-Math.abs(d),0);d<b;d++)if(d in
|
5 |
+
c&&c[d]===e)return d;return-1});return g}({},y,w));m.register("$5",function(g,e,m){e.JSON||(e.JSON={parse:k.parseJSON,stringify:null});return g=e.JSON}({},y,w));m.register("$6",function(g,e,k){g.trim=function(e,d){for(d||(d=" \n");e&&-1!==d.indexOf(e.substr(0,1));)e=e.substr(1);for(;e&&-1!==d.indexOf(e.substr(-1));)e=e.substr(0,e.length-1);return e};g.sprintf=function(e){var d=0,c,b=[].slice.call(arguments,1);return e.replace(/%([sud%])/g,function(a,h){if("%"===h)return"%";c=b[d++];return String(c)||
|
6 |
+
""})};return g}({},y,w));m.register("$21",function(g,e,k){function l(d){return function(c,b){for(var a=c[d]||0;(c=c.offsetParent)&&c!==(b||k.body);)a+=c[d]||0;return a}}g.top=l("offsetTop");g.left=l("offsetLeft");g.el=function(d,c){var b=k.createElement(d||"div");c&&(b.className=c);return b};g.txt=function(d){return k.createTextNode(d||"")};return g}({},y,w));m.register("$7",function(g,e,x){function l(a,b,c){function h(){f();v=setTimeout(b,c)}function f(){v&&clearTimeout(v);v=null}var v;h();k(a).mouseenter(f).mouseleave(h);
|
7 |
+
return{die:function(){f();k(a).off("mouseenter mouseleave")}}}function d(a,b){a.fadeTo(b,0,function(){a.slideUp(b,function(){a.remove();k(e).triggerHandler("resize")})});return a}function c(a,b){function c(b){r[v]=null;d(k(a),250);f&&f.die();var h;if(h=b)b.stopPropagation(),b.preventDefault(),h=!1;return h}function h(b){f&&f.die();return f=l(a,c,b)}var f,v,A,s=k(a),q=s.find("button");0===q.length&&(s.addClass("is-dismissible"),q=k('<button type="button" class="notice-dismiss"> </a>').appendTo(s));
|
8 |
+
q.off("click").click(c);k(e).triggerHandler("resize");n();v=r.length;r.push(c);b&&(f=h(b));return{link:function(b,h){var c=h||b,f=k(a).find("nav"),c=k("<nav></nav>").append(k("<a></a>").attr("href",b).text(c));A?(A.push(c.html()),f.html(A.join("<span> | </span>"))):(A=[c.html()],k(a).addClass("has-nav").append(c));return this},stick:function(){f&&f.die();f=null;r[v]=null;return this},slow:function(a){h(a||1E4);return this}}}function b(a,b,c){var h=m.require("$21","dom.js").el;a=k('<div class="notice notice-'+
|
9 |
+
a+' loco-notice inline"></div>').prependTo(k("#loco-notices"));var f=k(h("p"));c=k(h("span")).text(c);b=k(h("strong","has-icon")).text(b+": ");f.append(b).append(c).appendTo(a);return a}function a(a,h,f,v){a=b(f,h,a).css("opacity","0").fadeTo(500,1);k(e).triggerHandler("resize");return c(a,v)}function h(b){return a(b,D,"warning")}function f(){k("#loco-notices").find("div.notice").each(function(a,b){if(-1===b.className.indexOf("jshide")){var h=-1===b.className.indexOf("notice-success")?null:5E3;c(b,
|
10 |
+
h)}})}var r=[],n=Date.now||function(){return(new Date).getTime()},s,D,q,v;g.error=function(b){return a(b,s,"error")};g.warn=h;g.info=function(b){return a(b,q,"info")};g.success=function(b){return a(b,v,"success",5E3)};g.warning=h;g.log=function(){e.console&&console.log&&console.log.apply(console,arguments)};g.debug=function(a,b){e.console&&console.error&&(console.error("Loco Error: "+a),b&&console.debug&&console.debug(b))};g.clear=function(){for(var a=-1,b,h=r,c=h.length;++a<c;)(b=h[a])&&b.call&&
|
11 |
+
b();r=[];return g};g.create=b;g.raise=function(a){(g[a.type]||g.error).call(g,a.message)};g.convert=c;g.init=function(a){s=a._("Error");D=a._("Warning");q=a._("Notice");v=a._("OK");setTimeout(f,1E3);return g};return g}({},y,w));m.register("$8",function(g,e,x){function l(a){var b=k("<pre>"+a+"</pre>").text();b&&(b=b.replace(/[\r\n]+/g,"\n").replace(/(^|\n)\s+/g,"$1").replace(/\s+$/,""));b||(b=a)||(b="Blank response from server");return b}function d(a){return(a=a.split(/[\r\n]/)[0])?(a=a.replace(/ +in +\S+ on line \d+/,
|
12 |
+
""),a=a.replace(/^[()! ]+Fatal error:\s*/,"")):t._("Server returned invalid data")}function c(a,b,h){a[b]=h}function b(a,b,h){a.push({name:b,value:h})}function a(a,b,h){a.append(b,h)}function h(a,b,h,c){function f(b,c,s){if("abort"!==c){var A=r||{_:function(a){return a}},e=b.status,q=b.responseText,u=l(q),B=b.getResponseHeader("Content-Type")||"text/html",g=b.getResponseHeader("Content-Length")||q.length;"success"===c&&s?z.error(s):(z.error(d(u)+".\n"+A._("Check console output for debugging information")),
|
13 |
+
z.debug("Ajax failure for "+a,{status:e,error:c,message:s,output:q}),"parsererror"===c&&(s="Response not JSON"),z.log([A._("Provide the following text when reporting a problem")+":","----","Status "+e+' "'+(s||A._("Unknown error"))+'" ('+B+" "+g+" bytes)",u,"===="].join("\n")));h&&h.call&&h(b,c,s);n=b}}c.url=s;c.dataType="json";var z=m.require("$7","notices.js").clear();n=null;return k.ajax(c).fail(f).done(function(a,h,c){var A=a&&a.data,v=a&&a.notices,n=v&&v.length;for(!A||a.error?f(c,h,a&&a.error&&
|
14 |
+
a.error.message):b&&b(A,h,c);n--;)z.raise(v[n])})}var f={},r,n,s=e.ajaxurl||"/wp-admin/admin-ajax.php";g.init=function(a){f=a.nonces||f;return g};g.localise=function(a){r=a;return g};g.xhr=function(){return n};g.strip=l;g.parse=d;g.submit=function(a,b,c){function f(a,b){b.disabled?b.setAttribute("data-was-disabled","true"):b.disabled=!0}function n(a,b){b.getAttribute("data-was-disabled")||(b.disabled=!1)}function s(a){a.find(".button-primary").removeClass("loading");a.find("button").each(n);a.find("input").each(n);
|
15 |
+
a.find("select").each(n);a.find("textarea").each(n);a.removeClass("disabled loading")}var d=k(a),r=d.serialize();(function(a){a.find(".button-primary").addClass("loading");a.find("button").each(f);a.find("input").each(f);a.find("select").each(f);a.find("textarea").each(f);a.addClass("disabled loading")})(d);return h(a.route.value,function(a,c,h){s(d);b&&b(a,c,h)},function(a,b,h){s(d);c&&c(a,b,h)},{type:a.method,data:r})};g.post=function(n,s,v,d){var r,z=!0;s=s||{};(r=f[n])||(e.console&&console.error&&
|
16 |
+
console.error('No nonce for "'+n+'"'),r="");var J=r;e.FormData&&s instanceof FormData?(z=!1,r=a):r=Array.isArray(s)?b:c;r(s,"action","loco_json");r(s,"route",n);r(s,"loco-nonce",J);return h(n,v,d,{type:"post",data:s,processData:z,contentType:z?"application/x-www-form-urlencoded; charset=UTF-8":!1})};g.setNonce=function(a,b){f[a]=b;return g};return g}({},y,w));m.register("$22",{arab:1,aran:1,hebr:1,nkoo:1,syrc:1,syrn:1,syrj:1,syre:1,samr:1,mand:1,mend:1,thaa:1,adlm:1,cprt:1,phnx:1,armi:1,prti:1,phli:1,
|
17 |
+
phlp:1,phlv:1,avst:1,mani:1,khar:1,orkh:1,ital:1,lydi:1,ar:1,ary:1,ckb:1,dv:1,fa:1,he:1,nqo:1,ps:1,ur:1,yi:1});m.register("$9",function(g,e,k){function l(){}var d,c=m.require("$22","rtl.json");g.init=function(){return new l};g.cast=function(b){return b instanceof l?b:"string"===typeof b?g.parse(b):g.clone(b)};g.clone=function(b){var a,h=new l;for(a in b)h[a]=b[a];return h};g.parse=function(b){if(!(d||(d=/^([a-z]{2,3})(?:[-_]([a-z]{2}))?(?:[-_]([a-z0-9]{3,8}))?$/i)).exec(b))return null;var a=new l;
|
18 |
+
a.lang=RegExp.$1.toLowerCase();if(b=RegExp.$2)a.region=b.toUpperCase();if(b=RegExp.$3)a.variant=b.toLowerCase();return a};e=l.prototype;e.isValid=function(){return!!this.lang};e.isKnown=function(){var b=this.lang;return!(!b||"zxx"===b)};e.toString=function(b){b=b||"_";var a,h=this.lang||"zxx";if(a=this.region)h+=b+a;if(a=this.variant)h+=b+a;return h};e.getIcon=function(){for(var b=3,a,h,c=["variant","region","lang"],d=[];0!==b--;)if(a=c[b],h=this[a])d.push(a),d.push(a+"-"+h.toLowerCase());return d.join(" ")};
|
19 |
+
e.isRTL=function(){return!!c[String(this.lang).toLowerCase()]};e=null;return g}({},y,w));m.register("$23",{"\u00e1":"a","\u00e0":"a","\u0103":"a","\u1eaf":"a","\u1eb1":"a","\u1eb5":"a","\u1eb3":"a","\u00e2":"a","\u1ea5":"a","\u1ea7":"a","\u1eab":"a","\u1ea9":"a","\u01ce":"a","\u00e5":"a","\u01fb":"a","\u00e4":"a","\u01df":"a","\u00e3":"a","\u0227":"a","\u01e1":"a","\u0105":"a","\u0101":"a","\u1ea3":"a","\u0201":"a","\u0203":"a","\u1ea1":"a","\u1eb7":"a","\u1ead":"a","\u1e01":"a","\u01fd":"\u00e6",
|
20 |
+
"\u01e3":"\u00e6","\u1e03":"b","\u1e05":"b","\u1e07":"b","\u0107":"c","\u0109":"c","\u010d":"c","\u010b":"c","\u00e7":"c","\u1e09":"c","\u010f":"d","\u1e0b":"d","\u1e11":"d","\u0111":"d","\u1e0d":"d","\u1e13":"d","\u1e0f":"d","\u00f0":"d","\ua77a":"d","\u01c6":"\u01f3","\u00e9":"e","\u00e8":"e","\u0115":"e","\u00ea":"e","\u1ebf":"e","\u1ec1":"e","\u1ec5":"e","\u1ec3":"e","\u011b":"e","\u00eb":"e","\u1ebd":"e","\u0117":"e","\u0229":"e","\u1e1d":"e","\u0119":"e","\u0113":"e","\u1e17":"e","\u1e15":"e",
|
21 |
+
"\u1ebb":"e","\u0205":"e","\u0207":"e","\u1eb9":"e","\u1ec7":"e","\u1e19":"e","\u1e1b":"e","\u1e1f":"f","\ua77c":"f","\u01f5":"g","\u011f":"g","\u011d":"g","\u01e7":"g","\u0121":"g","\u0123":"g","\u1e21":"g","\ua7a1":"g","\u1d79":"g","\u0125":"h","\u021f":"h","\u1e27":"h","\u1e23":"h","\u1e29":"h","\u0127":"h","\u210f":"h","\u1e25":"h","\u1e2b":"h","\u1e96":"h","\u00ed":"i","\u00ec":"i","\u012d":"i","\u00ee":"i","\u01d0":"i","\u00ef":"i","\u1e2f":"i","\u0129":"i","\u012f":"i","\u012b":"i","\u1ec9":"i",
|
22 |
+
"\u0209":"i","\u020b":"i","\u1ecb":"i","\u1e2d":"i","\u0135":"j","\u01f0":"j","\u1e31":"k","\u01e9":"k","\u0137":"k","\ua7a3":"k","\u1e33":"k","\u1e35":"k","\u013a":"l","\u013e":"l","\u013c":"l","\u0142":"l","\u1e37":"l","\u1e39":"l","\u1e3d":"l","\u1e3b":"l","\u0140":"l","\u1e3f":"m","\u1e41":"m","\u1e43":"m","\u0144":"n","\u01f9":"n","\u0148":"n","\u00f1":"n","\u1e45":"n","\u0146":"n","\ua7a5":"n","\u1e47":"n","\u1e4b":"n","\u1e49":"n","\u00f3":"o","\u00f2":"o","\u014f":"o","\u00f4":"o","\u1ed1":"o",
|
23 |
+
"\u1ed3":"o","\u1ed7":"o","\u1ed5":"o","\u01d2":"o","\u00f6":"o","\u022b":"o","\u0151":"o","\u00f5":"o","\u1e4d":"o","\u1e4f":"o","\u022d":"o","\u022f":"o","\u0231":"o","\u00f8":"o","\u01ff":"o","\u01eb":"o","\u01ed":"o","\u014d":"o","\u1e53":"o","\u1e51":"o","\u1ecf":"o","\u020d":"o","\u020f":"o","\u01a1":"o","\u1edb":"o","\u1edd":"o","\u1ee1":"o","\u1edf":"o","\u1ee3":"o","\u1ecd":"o","\u1ed9":"o","\u1e55":"p","\u1e57":"p","\u0155":"r","\u0159":"r","\u1e59":"r","\u0157":"r","\ua7a7":"r","\u0211":"r",
|
24 |
+
"\u0213":"r","\u1e5b":"r","\u1e5d":"r","\u1e5f":"r","\ua783":"r","\u015b":"s","\u1e65":"s","\u015d":"s","\u0161":"s","\u1e67":"s","\u1e61":"s","\u015f":"s","\ua7a9":"s","\u1e63":"s","\u1e69":"s","\u0219":"s","\u017f":"s","\ua785":"s","\u1e9b":"s","\u0165":"t","\u1e97":"t","\u1e6b":"t","\u0163":"t","\u1e6d":"t","\u021b":"t","\u1e71":"t","\u1e6f":"t","\ua787":"t","\u00fa":"u","\u00f9":"u","\u016d":"u","\u00fb":"u","\u01d4":"u","\u016f":"u","\u00fc":"u","\u01d8":"u","\u01dc":"u","\u01da":"u","\u01d6":"u",
|
25 |
+
"\u0171":"u","\u0169":"u","\u1e79":"u","\u0173":"u","\u016b":"u","\u1e7b":"u","\u1ee7":"u","\u0215":"u","\u0217":"u","\u01b0":"u","\u1ee9":"u","\u1eeb":"u","\u1eef":"u","\u1eed":"u","\u1ef1":"u","\u1ee5":"u","\u1e73":"u","\u1e77":"u","\u1e75":"u","\u1e7d":"v","\u1e7f":"v","\u1e83":"w","\u1e81":"w","\u0175":"w","\u1e98":"w","\u1e85":"w","\u1e87":"w","\u1e89":"w","\u1e8d":"x","\u1e8b":"x","\u00fd":"y","\u1ef3":"y","\u0177":"y","\u1e99":"y","\u00ff":"y","\u1ef9":"y","\u1e8f":"y","\u0233":"y","\u1ef7":"y",
|
26 |
+
"\u1ef5":"y","\u017a":"z","\u1e91":"z","\u017e":"z","\u017c":"z","\u1e93":"z","\u1e95":"z","\u01ef":"\u0292","\u1f00":"\u03b1","\u1f04":"\u03b1","\u1f84":"\u03b1","\u1f02":"\u03b1","\u1f82":"\u03b1","\u1f06":"\u03b1","\u1f86":"\u03b1","\u1f80":"\u03b1","\u1f01":"\u03b1","\u1f05":"\u03b1","\u1f85":"\u03b1","\u1f03":"\u03b1","\u1f83":"\u03b1","\u1f07":"\u03b1","\u1f87":"\u03b1","\u1f81":"\u03b1","\u03ac":"\u03b1","\u1f71":"\u03b1","\u1fb4":"\u03b1","\u1f70":"\u03b1","\u1fb2":"\u03b1","\u1fb0":"\u03b1",
|
27 |
+
"\u1fb6":"\u03b1","\u1fb7":"\u03b1","\u1fb1":"\u03b1","\u1fb3":"\u03b1","\u1f10":"\u03b5","\u1f14":"\u03b5","\u1f12":"\u03b5","\u1f11":"\u03b5","\u1f15":"\u03b5","\u1f13":"\u03b5","\u03ad":"\u03b5","\u1f73":"\u03b5","\u1f72":"\u03b5","\u1f20":"\u03b7","\u1f24":"\u03b7","\u1f94":"\u03b7","\u1f22":"\u03b7","\u1f92":"\u03b7","\u1f26":"\u03b7","\u1f96":"\u03b7","\u1f90":"\u03b7","\u1f21":"\u03b7","\u1f25":"\u03b7","\u1f95":"\u03b7","\u1f23":"\u03b7","\u1f93":"\u03b7","\u1f27":"\u03b7","\u1f97":"\u03b7",
|
28 |
+
"\u1f91":"\u03b7","\u03ae":"\u03b7","\u1f75":"\u03b7","\u1fc4":"\u03b7","\u1f74":"\u03b7","\u1fc2":"\u03b7","\u1fc6":"\u03b7","\u1fc7":"\u03b7","\u1fc3":"\u03b7","\u1f30":"\u03b9","\u1f34":"\u03b9","\u1f32":"\u03b9","\u1f36":"\u03b9","\u1f31":"\u03b9","\u1f35":"\u03b9","\u1f33":"\u03b9","\u1f37":"\u03b9","\u03af":"\u03b9","\u1f77":"\u03b9","\u1f76":"\u03b9","\u1fd0":"\u03b9","\u1fd6":"\u03b9","\u03ca":"\u03b9","\u0390":"\u03b9","\u1fd3":"\u03b9","\u1fd2":"\u03b9","\u1fd7":"\u03b9","\u1fd1":"\u03b9",
|
29 |
+
"\u1f40":"\u03bf","\u1f44":"\u03bf","\u1f42":"\u03bf","\u1f41":"\u03bf","\u1f45":"\u03bf","\u1f43":"\u03bf","\u03cc":"\u03bf","\u1f79":"\u03bf","\u1f78":"\u03bf","\u1fe4":"\u03c1","\u1fe5":"\u03c1","\u1f50":"\u03c5","\u1f54":"\u03c5","\u1f52":"\u03c5","\u1f56":"\u03c5","\u1f51":"\u03c5","\u1f55":"\u03c5","\u1f53":"\u03c5","\u1f57":"\u03c5","\u03cd":"\u03c5","\u1f7b":"\u03c5","\u1f7a":"\u03c5","\u1fe0":"\u03c5","\u1fe6":"\u03c5","\u03cb":"\u03c5","\u03b0":"\u03c5","\u1fe3":"\u03c5","\u1fe2":"\u03c5",
|
30 |
+
"\u1fe7":"\u03c5","\u1fe1":"\u03c5","\u1f60":"\u03c9","\u1f64":"\u03c9","\u1fa4":"\u03c9","\u1f62":"\u03c9","\u1fa2":"\u03c9","\u1f66":"\u03c9","\u1fa6":"\u03c9","\u1fa0":"\u03c9","\u1f61":"\u03c9","\u1f65":"\u03c9","\u1fa5":"\u03c9","\u1f63":"\u03c9","\u1fa3":"\u03c9","\u1f67":"\u03c9","\u1fa7":"\u03c9","\u1fa1":"\u03c9","\u03ce":"\u03c9","\u1f7d":"\u03c9","\u1ff4":"\u03c9","\u1f7c":"\u03c9","\u1ff2":"\u03c9","\u1ff6":"\u03c9","\u1ff7":"\u03c9","\u1ff3":"\u03c9","\u0491":"\u0433","\u0450":"\u0435",
|
31 |
+
"\u0451":"\u0435","\u04c2":"\u0436","\u045d":"\u0438","\u04e3":"\u0438","\u04ef":"\u0443"});m.register("$10",function(g,e,k){g.init=function(){function e(a){return n[a]||a}function d(a,b,c,h){b=a.split(b);for(var f=b.length;0!==f--;)(a=b[f])&&null==h[a]&&(c.push(a),h[a]=!0);return c}function c(a){return d(String(a||"").toLowerCase().replace(f,e),r,[],{})}function b(a,b){for(var c=[],n={},B,u=b.length,z=r;0!==u--;)(B=b[u])&&d(String(B||"").toLowerCase().replace(f,e),z,c,n);h[a]=c}function a(a,b){var c=
|
32 |
+
[],f=-1,n=h,d=n.length,r,e,g,p,A,F,l=a.length,k=b?!0:!1;a:for(;++f<d;)if(g=n[f],null!=g&&(p=g.length)){A=0;b:for(;A<l;A++){F=a[A];for(r=0;r<p;r++)if(e=g[r],0===e.indexOf(F))continue b;continue a}c.push(k?b[f]:f)}return c}var h=[],f=/[^a-z0-9]/g,r=/[\-_\s.?!;:,*^+=~`"(){}<>\[\]\/\\\u00a0\u1680\u180e\u2000-\u206f\u2e00-\u2e7f\u3000-\u303f]+/,n=m.require("$23","flatten.json");return{split:c,pull:function(b,c){return a(b,c)},find:function(b,h){return a(c(b),h)},add:function(a,b){h[a]=c(b)},push:function(a){b(h.length,
|
33 |
+
a)},index:function(a,c){b(a,c)},size:function(){return h.length},clear:function(){h=[]},remove:function(a){h[a]=null}}};return g}({},y,w));m.register("$11",function(g,e,m){g.listen=function(g,d){function c(){q[f?"show":"hide"]()}function b(a){D&&g.setAttribute("size",2+a.length);f=a;c();return a}function a(){r=null;d(f)}function h(){var c=g.value;s&&c===s&&(c="");c!==f&&(r&&clearTimeout(r),b(c),n?r=setTimeout(a,n):a())}g instanceof jQuery&&(g=g[0]);var f,r,n=150,s=e.attachEvent&&g.getAttribute("placeholder"),
|
34 |
+
D=1===Number(g.size),q=k('<a href="#clear" tabindex="-1" class="icon clear"><span>clear</span></a>').click(function(){g.value="";h();return!1});b(g.value);k(g).on("input blur focus",function(){h();return!0}).after(q);c();return{delay:function(a){n=a},ping:function(c){c?(r&&clearTimeout(r),c=g.value,s&&c===s&&(c=""),b(c),a(),c=void 0):c=h();return c},val:function(a){if(null==a)return f;r&&clearTimeout(r);g.value=b(a);c()},el:function(){return g},blur:function(a){return k(g).on("blur",a)}}};return g}({},
|
35 |
+
y,w));m.register("$12",function(g,e,m){function l(b,a){this.$element=k(b);this.options=a;this.enabled=!0;this.fixTitle()}g.init=function(b,a){var h={fade:!0,offset:5,delayIn:d,delayOut:c,anchor:b.attr("data-anchor"),gravity:b.attr("data-gravity")||"s"};a&&(h=k.extend({},h,a));b.tipsy(h)};g.delays=function(b,a){d=b||150;c=a||100};g.kill=function(){k("div.tipsy").remove()};g.text=function(b,a){a.data("tipsy").setTitle(b)};var d,c;g.delays();k(m.body).on("overlayOpened overlayClosing",function(b){g.kill();
|
36 |
+
return!0});l.prototype={show:function(){var b=this.getTitle();if(b&&this.enabled){var a=this.tip();a.find(".tipsy-inner")[this.options.html?"html":"text"](b);a[0].className="tipsy";a.remove().css({top:0,left:0}).prependTo(m.body);var b=(b=this.options.anchor)?this.$element.find(b):this.$element,b=k.extend({},b.offset(),{width:b[0].offsetWidth,height:b[0].offsetHeight}),c=a[0].offsetWidth,f=a[0].offsetHeight,d="function"==typeof this.options.gravity?this.options.gravity.call(this.$element[0]):this.options.gravity,
|
37 |
+
n;switch(d.charAt(0)){case "n":n={top:b.top+b.height+this.options.offset,left:b.left+b.width/2-c/2};break;case "s":n={top:b.top-f-this.options.offset,left:b.left+b.width/2-c/2};break;case "e":n={top:b.top+b.height/2-f/2,left:b.left-c-this.options.offset};break;case "w":n={top:b.top+b.height/2-f/2,left:b.left+b.width+this.options.offset}}2==d.length&&("w"==d.charAt(1)?n.left=b.left+b.width/2-15:n.left=b.left+b.width/2-c+15);a.css(n).addClass("tipsy-"+d);a.find(".tipsy-arrow")[0].className="tipsy-arrow tipsy-arrow-"+
|
38 |
+
d.charAt(0);this.options.className&&a.addClass("function"==typeof this.options.className?this.options.className.call(this.$element[0]):this.options.className);a.addClass("in")}},hide:function(){this.tip().remove()},fixTitle:function(){var b=this.$element,a=b.attr("title")||"";(a||"string"!==typeof b.attr("original-title"))&&b.attr("original-title",a).removeAttr("title")},getTitle:function(){var b,a=this.$element,c=this.options;this.fixTitle();"string"==typeof c.title?b=a.attr("title"==c.title?"original-title":
|
39 |
+
c.title):"function"==typeof c.title&&(b=c.title.call(a[0]));return(b=(""+b).replace(/(^\s*|\s*$)/,""))||c.fallback},setTitle:function(b){var a=this.$element;a.attr("default-title")||a.attr("default-title",this.getTitle());null==b&&(b=a.attr("default-title")||this.getTitle());a.attr("original-title",b);if(this.$tip)this.$tip.find(".tipsy-inner")[this.options.html?"html":"text"](b)},tip:function(){this.$tip||(this.$tip=k('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>'),
|
40 |
+
this.$tip.data("tipsy-pointee",this.$element[0]));return this.$tip},validate:function(){this.$element[0].parentNode||(this.hide(),this.options=this.$element=null)},enable:function(){this.enabled=!0},disable:function(){this.hide();this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled}};k.fn.tipsy=function(b){function a(a){var c=k.data(a,"tipsy");c||(c=new l(a,k.fn.tipsy.elementOptions(a,b)),k.data(a,"tipsy",c));return c}function c(){var h=a(this),f=b.delayIn;h.hoverState="in";0==f?h.show():
|
41 |
+
(h.fixTitle(),setTimeout(function(){"in"==h.hoverState&&h.show()},f))}function f(){var c=a(this),h=b.delayOut;c.hoverState="out";0==h?c.hide():(c.tip().removeClass("in"),setTimeout(function(){"out"==c.hoverState&&c.hide()},h))}b=k.extend({},k.fn.tipsy.defaults,b);b.live||this.each(function(){a(this)});if("manual"!=b.trigger){var d=b.live?"live":"bind",n="hover"==b.trigger?"mouseleave":"blur";this[d]("hover"==b.trigger?"mouseenter":"focus",c)[d](n,f)}return this};k.fn.tipsy.defaults={className:null,
|
42 |
+
delayIn:0,delayOut:0,fade:!1,fallback:"",gravity:"n",html:!1,live:!1,offset:0,opacity:0.8,title:"title",trigger:"hover",anchor:null};k.fn.tipsy.elementOptions=function(b,a){return k.metadata?k.extend({},a,k(b).metadata()):a};k.fn.tipsy.autoNS=function(){return k(this).offset().top>k(m).scrollTop()+k(e).height()/2?"s":"n"};k.fn.tipsy.autoWE=function(){return k(this).offset().left>k(m).scrollLeft()+k(e).width()/2?"e":"w"};k.fn.tipsy.autoBounds=function(b,a){return function(){var c=a[0],f=1<a.length?
|
43 |
+
a[1]:!1,d=k(m).scrollTop()+b,n=k(m).scrollLeft()+b,s=k(this);s.offset().top<d&&(c="n");s.offset().left<n&&(f="w");k(e).width()+k(m).scrollLeft()-s.offset().left<b&&(f="e");k(e).height()+k(m).scrollTop()-s.offset().top<b&&(c="s");return c+(f?f:"")}};return g}({},y,w));m.register("$37",function(g,e,k){"".localeCompare||(String.prototype.localeCompare=function(){return 0});"".trim||(String.prototype.trim=function(){return m.require("$6","string.js").trim(this," \n\r\t")});g.html=function(){function e(){b=
|
44 |
+
/[<>&]/g;a=/(\r\n|\n|\r)/g;h=/(?:https?):\/\/(\S+)/ig;f=location.hostname;e=null}function d(a){return"&#"+a.charCodeAt(0)+";"}function c(a,b){return'<a href="'+a+'" target="'+(b.indexOf(f)?"_blank":"_top")+'">'+b+"</a>"}var b,a,h,f;return function(f,n){e&&e();var s=f.replace(b,d);n&&(s=s.replace(h,c).replace(a,"<br />"));return s}}();return g}({},y,w));m.register("$38",function(g,e,k){function l(){}var d,c,b=m.require("$22","rtl.json");g.init=function(){return new l};g.cast=function(a){return a instanceof
|
45 |
+
l?a:"string"===typeof a?g.parse(a):g.clone(a)};g.clone=function(a){var b,c=new l;for(b in a)c[b]=a[b];return c};g.parse=function(a){d||(c=/[-_+]/,d=/^([a-z]{2,3})(?:-([a-z]{4}))?(?:-([a-z]{2}|[0-9]{3}))?(?:-([0-9][a-z0-9]{3,8}|[a-z0-9]{5,8}))?(?:-([a-z]-[-a-z]+))?$/i);a=String(a).split(c).join("-");if(!d.exec(a))return null;var b=new l;b.lang=RegExp.$1.toLowerCase();if(a=RegExp.$2)b.script=a.charAt(0).toUpperCase()+a.substr(1).toLowerCase();if(a=RegExp.$3)b.region=a.toUpperCase();if(a=RegExp.$4)b.variant=
|
46 |
+
a.toLowerCase();if(a=RegExp.$5)b.extension=a;return b};e=l.prototype;e.isValid=function(){return!!this.lang};e.isKnown=function(){var a=this.lang;return!(!a||"zxx"===a)};e.toString=function(a){a=a||"-";var b,c=this.lang||"zxx";if(b=this.script)c+=a+b;if(b=this.region)c+=a+b;if(b=this.variant)c+=a+b;if(b=this.extension)c+=a+b;return c};e.getIcon=function(){for(var a=4,b,c,d=["variant","region","script","lang"],n=[];0!==a--;)if(b=d[a],c=this[b])c.join&&(c=c.join("-")),1===a&&3===c.length?n.push("region-m49"):
|
47 |
+
n=n.concat([b,b+"-"+c.toLowerCase()]);return n.join(" ")};e.isRTL=function(){return!!b[String(this.script||this.lang).toLowerCase()]};e=null;return g}({},y,w));m.register("$39",function(g,e,k){function l(a){e.console&&console.error&&console.error(a)}function d(){l("Method not implemented")}function c(){}function b(a){}c.prototype.toString=function(){return"[Undefined]"};b.prototype._validate=function(a){var b,f,e=!0;for(b in this)f=this[b],f===d?(l(a+"."+b+"() must be implemented"),e=!1):f instanceof
|
48 |
+
c&&(l(a+"."+b+" must be defined"),e=!1);return e};g.init=function(a,h){var f,e=new b;if(a)for(f=a.length;0!==f--;)e[a[f]]=d;if(h)for(f=h.length;0!==f--;)e[h[f]]=new c;return e};g.validate=function(a){var b=/function (\w+)\(/.exec(a.toString())?RegExp.$1:"";a.prototype._validate(b||"Object")};return g}({},y,w));m.register("$50",function(g,e,k){var l=e.requestAnimationFrame,d=e.cancelAnimationFrame,c=0;if(!l||!d)for(var b in{ms:1,moz:1,webkit:1,o:1})if(l=e[b+"RequestAnimationFrame"])if(d=e[b+"CancelAnimationFrame"]||
|
49 |
+
e[b+"CancelRequestAnimationFrame"])break;l&&d||(l=function(b){var f=a();timeToCall=Math.max(0,16-(f-c));nextTime=f+timeToCall;timerId=e.setTimeout(function(){b(nextTime)},timeToCall);c=nextTime;return timerId},d=function(a){clearTimeout(a)});var a=Date.now||function(){return(new Date).getTime()};g.loop=function(a,b){function c(){e=l(c,b);a(n++)}var n=0,e;c();return{stop:function(){e&&d(e);e=null}}};return g}({},y,w));m.register("$47",function(g,e,k){function l(a,c,f,h){if(b){var n=f;f=function(a){if((a.MSPOINTER_TYPE_TOUCH||
|
50 |
+
"touch")===a.pointerType)return n(a)}}a.addEventListener(c,f,h);return{unbind:function(){a.removeEventListener(c,f,h)}}}function d(a){a.preventDefault();a.stopPropagation();return!1}var c,b=!!e.navigator.msPointerEnabled,a=b?"MSPointerDown":"touchstart",h=b?"MSPointerMove":"touchmove",f=b?"MSPointerUp":"touchend";g.ok=function(a){null==c&&(c="function"===typeof k.body.addEventListener);c&&a&&a(g);return c};g.ms=function(){return b};g.dragger=function(b,c){function n(a){b.addEventListener(a,g[a],!1)}
|
51 |
+
function e(a){b.removeEventListener(a,g[a],!1)}var g={};g[a]=function(b){r(b,function(f,h){h.type=a;c(b,h,u)});n(h);n(f);return!0};g[f]=function(a){e(h);e(f);r(a,function(b,h){h.type=f;c(a,h,u)});return!0};g[h]=function(a){r(a,function(b,f){f.type=h;c(a,f,u)});return d(a)};n(a);var u={kill:function(){e(a);e(h);e(f);b=u=c=null}};return u};g.swiper=function(c,e,g){function v(a){c.addEventListener(a,p[a],!1)}function B(a){c.removeEventListener(a,p[a],!1)}function u(){z&&z.stop();z=null}var z,J,E,p={},
|
52 |
+
A=[],F=[],k=[];p[a]=function(a){J=!1;u();var b=n();r(a,function(a,c){A[a]=b;F[a]=c.clientX;k[a]=c.clientY});E=c.scrollLeft;return!0};p[f]=function(a){r(a,function(a,b){var c=n()-A[a],f=F[a]-b.clientX,c=Math.abs(f)/c;e(c,f?0>f?-1:1:0)});E=null;return!0};p[h]=function(a){var b,f;null==E||r(a,function(a,c){b=F[a]-c.clientX;f=k[a]-c.clientY});if(f&&Math.abs(f)>Math.abs(b))return J=!0;b&&(J=!0,c.scrollLeft=Math.max(0,E+b));return d(a)};if(!b||g)v(a),v(h),v(f),b&&(c.className+=" mstouch");return{kill:function(){B(a);
|
53 |
+
B(h);B(f);u()},swiped:function(){return J},ms:function(){return b},snap:function(a){b&&!g&&(c.style["-ms-scroll-snap-points-x"]="snapInterval(0px,"+a+"px)",c.style["-ms-scroll-snap-type"]="mandatory",c.style["-ms-scroll-chaining"]="none")},scroll:function(a,b,f){u();var h=c.scrollLeft,n=a>h?1:-1,A=Math[1===n?"min":"max"],d=Math.round(16*b*n);return z=m.require("$50","fps.js").loop(function(b){b&&(h=Math.max(0,A(a,h+d)),c.scrollLeft=h,a===h&&(u(),f&&f(h)))},c)}}};g.start=function(b,c){return l(b,a,
|
54 |
+
c,!1)};g.move=function(a,b){return l(a,h,b,!1)};g.end=function(a,b){return l(a,f,b,!1)};var r=g.each=function(a,c){if(b)(a.MSPOINTER_TYPE_TOUCH||"touch")===a.pointerType&&c(0,a);else for(var f=-1,h=(a.originalEvent||a).changedTouches||[];++f<h.length;)c(f,h[f])},n=Date.now||function(){return(new Date).getTime()};return g}({},y,w));m.register("$51",function(g,e,m){g.init=function(e){function d(){h.style.top=String(-e.scrollTop)+"px";return!0}function c(){var a=h;a.textContent=e.value;a.innerHTML=a.innerHTML.replace(/[ \t]/g,
|
55 |
+
b).split(/(?:\n|\r\n?)/).join('<span class="eol crlf"></span>\r\n')+'<span class="eol eof"></span>';return!0}function b(a){return'<span class="x'+a.charCodeAt(0).toString(16)+'">'+a+"</span>"}var a=e.parentNode,h=a.insertBefore(m.createElement("div"),e);k(e).on("input",c).on("scroll",d);k(a).addClass("has-mirror");h.className="ta-mirror";var f=e.offsetWidth-e.clientWidth;2<f&&(h.style.marginRight=String(f-2)+"px");c();d();return{kill:function(){k(e).off("input",c).off("scroll",d);a.removeChild(h);
|
56 |
+
h=null;k(a).removeClass("has-mirror")}}};return g}({},y,w));m.register("$30",function(g,e,k){function l(b,a){for(var c=0,f=-1,r=a&&e[a],n=d[b]||[],s=n.length;++f<s;)callback=n[f],"function"===typeof callback&&(callback(r),c++);return c}var d={},c;g.load=function(b,a,c){function f(){s&&(clearTimeout(s),s=null);g&&(g.onreadystatechange=null,g=g=g.onload=null);b&&(delete d[b],b=null)}function r(a,n){var d=g&&g.readyState;if(n||!d||"loaded"===d||"complete"===d)n||l(b,c),f()}function n(){if(0===l(b))throw Error('Failed to load "'+
|
57 |
+
(c||b)+'"');f()}if(c&&e[c])"function"===typeof a&&a(e[c]);else if(null!=d[b])d[b].push(a);else{d[b]=[a];var s=setTimeout(n,4E3),g=k.createElement("script");g.setAttribute("src",b);g.setAttribute("async","true");g.onreadystatechange=r;g.onload=r;g.onerror=n;g.onabort=f;k.getElementsByTagName("head")[0].appendChild(g)}};g.stat=function(b){var a;if(!(a=c)){for(var h,f,d=k.getElementsByTagName("script"),n=-1,e=d.length;++n<e;)if(a=d[n].getAttribute("src"))if(h=a.indexOf("/lib/vendor"),-1!==h){f=a.substr(0,
|
58 |
+
h);break}a=c=f||"/static"}return a+b};return g}({},y,w));m.register("$16",function(g,e,x){function l(a,b){a.setReadOnly(!1);a.on("change",function(a,c){return b.val(c.getValue())});a.on("focus",function(){return b.focus()});a.on("blur",function(){return b.blur()})}function d(a){a.off("change");a.off("focus");a.off("blur")}function c(a){d(a);a.setReadOnly(!0);a.setHighlightGutterLine(!1);a.setHighlightActiveLine(!1)}function b(b,c){function f(){this.HighlightRules=h}var h=a(c),d=b.require,e=d("ace/lib/oop");
|
59 |
+
e.inherits(h,d("ace/mode/text_highlight_rules").TextHighlightRules);e.inherits(f,d("ace/mode/text").Mode);return new f}function a(a){return function(){var b={start:[{token:"empty_line",regex:/^$/},{token:"constant.language",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"},{token:"constant.language",regex:/<!\[CDATA\[/},{token:"constant.language",regex:/\]\]>/},{token:"locked",regex:/<(?:xliff:)?(?:g|ph)[^>]*>[^<]*<\/(?:xliff:)?(?:g|ph)>/},{token:"locked",regex:/<(?:xliff:)?(bx|ex|x)[^\/>]*\/>/},
|
60 |
+
{token:"constant.language",regex:/<\/?[:a-z]+[^>]*>/}]},c=h(a);"icu"===a?b={start:b.start.concat([{token:"icu-quoted",regex:/'([{}][^']*)?'/},{token:"printf",regex:"{[^!-/:-@\\[-^{-~\u00a1\u00a2\u00a3\u00a4\u00a5\u00a6\u00a7\u00a9\u00ab\u00ac\u00ae\u00b0\u00b1\u00b6\u00bb\u00bf\u00d7\u00f7\\u2010-\\u2027\\u2030-\\u203E\\u2041-\\u2053\\u2055-\\u205E\\u2190-\\u245F\\u2500-\\u2775\\u2794-\\u2BFF\\u2E00-\\u2E7F\\u3001-\\u3003\\u3008-\\u3020\\u3030\\uFD3E\\uFD3F\\uFE45\\uFE46]+(,[\\s\\u0085\\u200E\\u200F\\u2028\\u2029]*(?:number|date|time|spellout|ordinal|duration)[\\s\\u0085\\u200E\\u200F\\u2028\\u2029]*(,[\\s\\u0085\\u200E\\u200F\\u2028\\u2029]*[^{}]+)?)?}"},
|
61 |
{token:"icu",regex:/{/,next:"icuName"},{token:"icu",regex:/}/,next:"icuType"}]),icuName:[{token:"icu",regex:"[\\s\\u0085\\u200E\\u200F\\u2028\\u2029]+"},{token:"icu.name",regex:"[^\\s\\u0085\\u200E\\u200F\\u2028\\u2029!-/:-@\\[-^{-~\u00a1\u00a2\u00a3\u00a4\u00a5\u00a6\u00a7\u00a9\u00ab\u00ac\u00ae\u00b0\u00b1\u00b6\u00bb\u00bf\u00d7\u00f7\\u2010-\\u2027\\u2030-\\u203E\\u2041-\\u2053\\u2055-\\u205E\\u2190-\\u245F\\u2500-\\u2775\\u2794-\\u2BFF\\u2E00-\\u2E7F\\u3001-\\u3003\\u3008-\\u3020\\u3030\\uFD3E\\uFD3F\\uFE45\\uFE46]+",
|
62 |
+
next:"icuType"},{defaultToken:"icu",next:"icuType"}],icuType:[{token:"icu",regex:/[{}]/,next:"start"},{defaultToken:"icu"}]}:c&&b.start.push({token:"printf",regex:c});this.$rules=b}}function h(a){switch(a){case "objc":return/%(?:\d+\$)?[-+'0# ]*\d*(?:\.\d+|\.\*(?:\d+\$)?)?(?:hh?|ll?|[qjzTL])?[sScCdDioOuUxXfFeEgGaAp%@]/;case "java":return/%(?:\d+\$)?[-+,(0# ]*\d*(?:\.\d+)?(?:[bBhHsScCdoxXeEfgGaA%n]|[tT][HIklMSLNpzZsQBbhAaCYyjmdeRTrDFc])/;case "php":return/%(?:\d+\$)?(?:'.|[-+0 ])*\d*(?:\.\d+)?[suxXbcdeEfFgGo%]/;
|
63 |
+
case "python":return/%(?:\([a-z]+\))?[-+0# ]*(?:\d+|\*)?(?:\.\d+|\.\*)?(?:[hlL])?[sdiouxXeEfFgGcra%]/;case "javascript":return/%(?:[1-9]\d*\$)?\+?(?:0|'[^$])?-?\d*(?:\.\d+)?[b-gijostTuvxX%]/;case "auto":return/%(?:\d+\$|\([a-z]+\))?(?:[-+0]?\d*(\.\d+)?[duxoefgaDUXOEFGA]|[@scSC%])/;case r:return f||"%%"}}var f,r="auto";g.init=function(a,f,h){var g,v=!1,B=h||r,u=a.parentNode,z=u.appendChild(x.createElement("div"));k(u).addClass("has-proxy has-ace");m.require("$30","remote.js").load("https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.1/ace.js",
|
64 |
+
function(h){if(z){if(!h)throw Error("Failed to load code editor");g=h.edit(z);var d=g.session,e=g.renderer;g.$blockScrolling=Infinity;g.setShowInvisibles(v);g.setWrapBehavioursEnabled(!1);g.setBehavioursEnabled(!1);g.setHighlightActiveLine(!1);d.setUseSoftTabs(!1);e.setShowGutter(!0);e.setPadding(10);e.setScrollMargin(8);d.setMode(b(h,B));g.setValue(a.value,-1);d.setUseWrapMode(!0);f?l(g,f):c(g)}},"ace");return{kill:function(){g&&(d(g),g.destroy(),g=null);z&&(u.removeChild(z),k(u).removeClass("has-proxy has-ace"),
|
65 |
+
z=null);return this},disable:function(){g&&c(g);f=null;return this},enable:function(a){f=a;g&&l(g,a);return this},resize:function(){g&&g.resize();return this},val:function(a){g&&a!==g.getValue()&&g.setValue(a,-1);return this},invs:function(a){a=a||!1;v!==a&&(v=a,g&&g.setShowInvisibles(a));return this},strf:function(a){a=a||r;a!==B&&(B=a,g&&g.session.setMode(b(e.ace,a)));return this},focus:function(){return this}}};g.strf=function(a,b){r=a;f=b;return g};return g}({},y,w));m.register("$52",function(g,
|
66 |
+
e,x){function l(a,b){function c(){return b.val(a.getContent())}a.on("input",c);a.on("change",c);a.on("focus",function(){return b.focus()});a.on("blur",function(){return b.blur()});a.setMode("design")}function d(a){a.off("input");a.off("change");a.off("focus");a.off("blur")}function c(a){d(a);a.setMode("readonly")}var b=0;g.load=function(a){var b=m.require("$30","remote.js");b.load(b.stat("/lib/tinymce.min.js"),a,"tinymce");return g};g.init=function(a,h){function f(a){D=a;q="<p>"===a.substr(0,3)&&
|
67 |
+
"</p>"===a.substr(-4);return a.replace(/(<\/?)script/ig,"$1loco:script")}function e(a){n=a;a._getContent=a.getContent;a.getContent=function(a){a=this._getContent(a);a=a.replace(/(<\/?)loco:script/ig,"$1script");if(!q&&"<p>"===a.substr(0,3)&&"</p>"===a.substr(-4)){var b=a.substr(3,a.length-7);if(b===D||-1===b.indexOf("</p>"))a=b}return a};a._setContent=a.setContent;a.setContent=function(a,b){return this._setContent(f(a),b)};h?(l(a,h),h.reset()):c(a);k(u).removeClass("loading")}var n,s=!1,D="",q=!1,
|
68 |
+
v=a.parentNode,B=v.parentNode,u=v.appendChild(x.createElement("div")),z=B.insertBefore(x.createElement("nav"),v);z.id="_tb"+String(++b);k(v).addClass("has-proxy has-mce");k(u).addClass("mce-content-body loading").html(f(a.value));g.load(function(a){if(!a)throw Error("Failed to load HTML editor");u&&a.init({inline:!0,target:u,hidden_input:!1,theme:"modern",skin:!1,plugins:"link lists",browser_spellcheck:!0,menubar:!1,fixed_toolbar_container:"#"+z.id,toolbar:"formatselect | bold italic link unlink | bullist numlist outdent indent",
|
69 |
block_formats:"Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h4;Heading 4=h4;Heading 5=h5;Heading 6=h6;",forced_root_block:"p",relative_urls:!1,convert_urls:!1,remove_script_host:!1,document_base_url:"",allow_script_urls:!1,formats:{alignleft:{classes:"alignleft"},alignright:{selector:"p,h1,h2,h3,h4,span,strong,em,a",classes:"alignright"},aligncenter:{selector:"p,h1,h2,h3,h4,span,strong,em,a",classes:"aligncenter"},strikethrough:{inline:"del"}},fix_list_elements:!0,extended_valid_elements:"span,b,i,u,loco:script",
|
70 |
+
entities:"38,amp,60,lt,62,gt,160,nbsp",entity_encoding:"named",keep_styles:!1,init_instance_callback:e})});return{val:function(b){b=f(b);null==n?(a.value=b,k(u).html(b)):n.getContent()!==b&&n.setContent(b);h&&h.val(b);return this},kill:function(){n&&(h&&h.val(n.getContent()),d(n),n.destroy(),n=null);u&&(v.removeChild(u),k(v).removeClass("has-proxy has-mce"),u=null);z&&(B.removeChild(z),z=null);return this},enable:function(a){h=a;n&&l(n,a);return this},disable:function(){n&&c(n);h=null;return this},
|
71 |
+
focus:function(){n&&h&&n.focus();return this},invs:function(a){a=a||!1;s!==a&&(s=a,k(v)[a?"addClass":"removeClass"]("show-invs"));return this}}};return g}({},y,w));m.register("$48",function(g,e,x){function l(b){function a(){g&&(l.off("input",h),g=!1)}function h(){var a=b.value;a!==v&&(l.trigger("changing",[a,v]),v=a)}function f(){h();g&&B!==v&&l.trigger("changed",[v])}function d(){c=b;B=v;g||(l.on("input",h),g=!0);l.trigger("editFocus");q.addClass("has-focus");return!0}function e(){c===b&&(c=null);
|
72 |
+
l.trigger("editBlur");q.removeClass("has-focus");g&&(f(),a());return!0}var g=!1,l=k(b),q=k(b.parentNode),v=b.value,B;l.blur(e).focus(d);return{val:function(a){v!==a&&(b.value=a,l.triggerHandler("input"),v=a);return!0},kill:function(){a();l.off("blur",e).off("focus",d)},fire:function(){v=null;h()},ping:f,blur:e,focus:d,reset:function(){B=v=b.value}}}function d(b){this.e=b}var c;g._new=function(b){return new d(b)};g.init=function(b){var a=new d(b);b.disabled?(b.removeAttribute("disabled"),a.disable()):
|
73 |
+
b.readOnly?a.disable():a.enable();return a};TextAreaPrototype=d.prototype;TextAreaPrototype.destroy=function(){this.unlisten();var b=this.p;b&&(b.kill(),this.p=null);this.e=null};TextAreaPrototype.reload=function(b,a){var c=this.l;c&&!a&&(this.disable(),c=null);this.val(b||"");a&&!c&&this.enable();return this};TextAreaPrototype.val=function(b){var a=this.e;if(null==b)return a.value;var c=this.l,f=this.p;f&&f.val(b);c&&c.val(b);c||a.value===b||(a.value=b,k(a).triggerHandler("input"));return this};
|
74 |
TextAreaPrototype.fire=function(){this.l&&this.l.fire();return this};TextAreaPrototype.ping=function(){this.l&&this.l.ping();return this};TextAreaPrototype.focus=function(){var b=this.p;b?b.focus():k(this.e).focus()};TextAreaPrototype.focused=function(){return c&&c===this.el};TextAreaPrototype.parent=function(){return this.e.parentNode};TextAreaPrototype.attr=function(b,a){var c=this.e;if(1===arguments.length)return c.getAttribute(b);null==a?c.removeAttribute(b):c.setAttribute(b,a);return this};TextAreaPrototype.editable=
|
75 |
+
function(){return!!this.l};TextAreaPrototype.enable=function(){var b=this.p;this.e.removeAttribute("readonly");this.listen();b&&b.enable&&b.enable(this.l);return this};TextAreaPrototype.disable=function(){var b=this.p;this.e.setAttribute("readonly",!0);this.unlisten();b&&b.disable&&b.disable();return this};TextAreaPrototype.listen=function(){var b=this.l;b&&b.kill();this.l=l(this.e);return this};TextAreaPrototype.unlisten=function(){var b=this.l;b&&(b.kill(),this.l=null);return this};TextAreaPrototype.setInvs=
|
76 |
+
function(b,a){var c=this.i||!1;if(a||c!==b)this._i&&(this._i.kill(),delete this._i),(c=this.p)?c.invs&&c.invs(b):b&&(this._i=m.require("$51","mirror.js").init(this.e)),this.i=b;return this};TextAreaPrototype.getInvs=function(){return this.i||!1};TextAreaPrototype.setMode=function(b){var a=this.p,d=this.i||!1;b!==(this.m||"")&&(this.m=b,a&&a.kill(),this.p=a="code"===b?m.require("$16","ace.js").init(this.e,this.l,this["%"]):"html"===b?m.require("$52","mce.js").init(this.e,this.l):null,this.setInvs(d,
|
77 |
+
!0),c&&this.focus());return this};TextAreaPrototype.setStrf=function(b){this["%"]=b;"code"===this.m&&this.p.strf(b);return this};TextAreaPrototype.name=function(b){this.e.setAttribute("name",b);return this};TextAreaPrototype.placeholder=function(b){this.e.setAttribute("placeholder",b);return this};TextAreaPrototype.redraw=function(){var b=this.p;b&&b.resize&&b.resize()};TextAreaPrototype=null;return g}({},y,w));m.register("$49",function(g,e,m){function l(a){var b=e.console;b&&b.error&&b.error(a)}
|
78 |
+
function d(a){var b=m.createElement("div");a&&b.setAttribute("class",a);return b}function c(a){return function(){a.resize();return this}}function b(a){return function(b){for(var c=b.target,f=c.$index;null==f&&"DIV"!==c.nodeName&&(c=c.parentElement);)f=c.$index;null!=f&&(b.stopImmediatePropagation(),a.select(f));return!0}}function a(a){return function(){a.redrawDirty()&&a.redraw();return!0}}function h(a){return function(b){var c;c=b.keyCode;if(40===c)c=1;else if(38===c)c=-1;else return!0;if(b.shiftKey||
|
79 |
+
b.ctrlKey||b.metaKey||b.altKey)return!0;a.selectNext(c);b.stopPropagation();b.preventDefault();return!1}}function f(a,b,c){function f(a){l("row["+a+"] disappeared");return{cellVal:function(){return""}}}return function(d){var h=b||0,e=c?-1:1,A=a.rows||[];d.sort(function(a,b){return e*(A[a]||f(a)).cellVal(h).localeCompare((A[b]||f(b)).cellVal(h))})}}function r(a){this.w=a}function n(a){this.t=a;this.length=0}function s(a,b,c){var f=m.createElement("div");f.className=c||"";this._=f;this.d=b||[];this.i=
|
80 |
+
a||0;this.length=b.length}function D(a){this.live=a;this.rows=[]}g.create=function(a){return new r(a)};var q=r.prototype;q.init=function(f){var e=this.w,n=e.id,g=e.splity(n+"-thead",n+"-tbody"),r=g[0],g=g[1],q=[],p=[],A=[],F=[];if(f)this.ds=f,this.idxs=p,this._idxs=null;else if(!(f=this.ds))throw Error("No datasource");r.css.push("wg-thead");g.css.push("wg-tbody");f.eachCol(function(a,b,c){A[a]=n+"-col-"+b;F[a]=c||b});for(var N=d(),l=-1,m=A.length,D=d("wg-cols"),x=r.splitx.apply(r,A);++l<m;)x[l].header(F[l]),
|
81 |
+
D.appendChild(N.cloneNode(!1)).setAttribute("for",A[l]);f.eachRow(function(a,b,c){q[a]=new s(a,b,c);p[a]=a});this.rows=q;this.cols=D;this.ww=null;this.root=N=g.body;this.head=r;r.redraw=c(this);r=g.fixed=x[0].bodyY()||20;e.lock().resize(r,g);e.css.push("is-table");e.restyle();this.sc?this._re_sort(m):f.sort&&f.sort(p);this.redrawDirty();this.render();k(N).attr("tabindex","-1").on("keydown",h(this)).on("mousedown",b(this)).on("scroll",a(this));return this};q.clear=function(){for(var a=this.pages||
|
82 |
+
[],b=a.length;0!==b--;)a[b].destroy();this.pages=[];this.sy=this.mx=this.mn=this.vh=null;void 0;return this};q.render=function(){for(var a,b,c=[],f=this.rows||[],d=-1,e,h=this.idxs,A=h.length,n=this.idxr={},g=this.r,r=this._r,s=this.root,k=this.cols;++d<A;){0===d%100&&(a=k.cloneNode(!0),b=new D(a),b.h=2200,b.insert(s),c.push(b));e=h[d];n[e]=d;a=f[e];if(null==a)throw Error("Render error, no data at ["+e+"]");a.page=b;b.rows.push(a)}b&&100!==b.size()&&b.sleepH(22);this.pages=c;this.mx=this.mn=null;
|
83 |
+
this.redrawDirty();this.redraw();null==g?null!=r&&(a=f[r])&&a.page&&(delete this._r,this.select(r,!0)):(a=f[g])&&a.page?this.select(g,!0):(this.deselect(),this._r=g);return this};q.resize=function(){var a=-1,b=this.ww||(this.ww=[]),c=this.w,f=c.cells[0],d=f.body.childNodes,e=d.length,h=this.pages||[],A=h.length;for(c.redraw.call(f);++a<e;)b[a]=d[a].style.width;if(A){c=this.mx;for(a=this.mn;a<=c;a++)h[a].widths(b);this.redrawDirty()&&this.redraw()}};q.redrawDirty=function(){var a=!1,b=this.root,c=
|
84 |
+
b.scrollTop,b=b.clientHeight;this.sy!==c&&(a=!0,this.sy=c);this.vh!==b&&(a=!0,this.vh=b);return a};q.redraw=function(){for(var a=0,b=-1,c=null,f=null,d=this.ww,e=this.sy,h=this.vh,A=this.mn,n=this.mx,g=Math.max(0,e-100),e=h+e+100,r=this.pages||[],s=r.length;++b<s&&!(a>e);)h=r[b],a+=h.height(),a<g||(null===c&&(c=b),f=b,h.rendered||h.render(d));if(A!==c){if(null!==A&&c>A)for(b=A;b<c;b++){h=r[b];if(!h)throw Error("Shit!");h.rendered&&h.sleep()}this.mn=c}if(n!==f){if(null!==n&&f<n)for(b=n;b>f;b--)h=r[b],
|
85 |
+
h.rendered&&h.sleep();this.mx=f}};q.selected=function(){return this.r};q.thead=function(){return this.w.cells[0]};q.tbody=function(){return this.w.cells[1]};q.tr=function(a){return(a=this.row(a))?a.cells():[]};q.row=function(a){return this.rows[a]};q.td=function(a,b){return this.tr(a)[b]};q.next=function(a,b,c){null==c&&(c=this.r||0);var f=this.idxs,d=f.length,h=(this.idxr||{})[c];for(c=h;c!==(h+=a)&&!(0<=h&&d>h);)if(b&&d)h=1===a?-1:d,b=!1;else return null;c=f[h];return null==c||null==this.rows[c]?
|
86 |
+
(l("Bad next: ["+h+"] does not map to data row"),null):c};q.selectNext=function(a,b,c){a=this.next(a,b);null!=a&&this.r!==a&&this.select(a,c);return this};q.deselect=function(a){var b=this.r;null!=b&&(this.r=null,k(this.tr(b)).removeClass("selected"),this.w.fire("wgRowDeselect",[b,a]));return this};q.selectRow=function(a,b){return this.select(this.idxs[a])};q.select=function(a,b){var c=this.rows[a],f=c&&c.page;if(!f)return this.deselect(!1),l("Row is filtered out"),this;this.deselect(!0);var h,d=
|
87 |
+
this.w.cells[1];f.rendered||(h=f.top(),d.scrollY(h),this.redrawDirty()&&this.redraw());if(!c.rendered)return f.rendered||l("Failed to render page"),l("Row ["+c.i+"] not rendered"),this;f=c.cells();k(f).addClass("selected");this.r=a;b||(h=d.scrollY(),k(this.root).focus(),h!==d.scrollY()&&d.scrollY(h));d.scrollTo(f[0],!0);this.w.fire("wgRowSelect",[a,c.data()]);return this};q.unfilter=function(){this._idxs&&(this.idxs=this._sort(this._idxs),this._idxs=null,this.clear().render());return this};q.filter=
|
88 |
+
function(a){this._idxs||(this._idxs=this.idxs);this.idxs=this._sort(a);return this.clear().render()};q.each=function(a){for(var b,c=-1,f=this.rows||[],h=this.idxs||[],d=h.length;++c<d;)b=h[c],a(f[b],c,b);return this};q.sortable=function(a){var b=this.sc||(this.sc=new n(this));b.has(a)||b.add(a);return this};q._re_sort=function(a){var b=-1,c=this.sc,f=c.active;for(this.sc=c=new n(this);++b<a;)c.add(b);f&&(b=this.head.indexOf(f.id),-1===b&&(b=Math.min(f.idx,a-1)),this.sort(b,f.desc));return this};q._sort=
|
89 |
+
function(a,b){b?(this.s=b,b(a)):(b=this.s)&&b(a);return a};q.sort=function(a,b){this._sort(this.idxs,f(this,a,b));this.sc.activate(a,b);return this};q=null;q=n.prototype;q.has=function(a){return null!=this[a]};q.add=function(a){var b=this,c=b.t.head.cells[a];b[a]={desc:null,idx:a,id:c.id};b.length++;c.addClass("wg-sortable").on("click",function(c){if("header"===c.target.nodeName.toLowerCase())return c.stopImmediatePropagation(),b.toggle(a),!1});return b};q.toggle=function(a){this.t.sort(a,!this[a].desc).clear().render();
|
90 |
+
return this};q.activate=function(a,b){var c,f;c=this.active;var h=this[a],d=this.t.head.cells;c&&(f=d[c.idx])&&(f.removeClass(c.css),c!==h&&f.restyle());(f=d[a])?(h.desc=b,this.active=h,c="wg-"+(b?"desc":"asc"),f.addClass(c).restyle(),h.css=c):this.active=null;return this};q=null;q=s.prototype;q.render=function(a){var b,c=[],f=this._,h=this.length;if(f){for(this.c=c;0!==h--;)b=f.cloneNode(!1),c[h]=this.update(h,b),b.$index=this.i,a[h].appendChild(b);this._=null}else for(c=this.c;0!==h--;)a[h].appendChild(c[h]);
|
91 |
+
this.rendered=!0;return this};q.update=function(a,b){var c=b||this.c[a]||{},f=(this.d[a]||function(){})()||"\u00a0";null==f.innerHTML?c.textContent=f:c.innerHTML=f.innerHTML;return c};q.cells=function(){return this.c||[this._]};q.data=function(){for(var a=-1,b=[],c=this.length;++a<c;)b[a]=this.cellVal(a);return b};q.destroy=function(){this.page=null;this.rendered=!1};q.cellVal=function(a){a=this.d[a]()||"";return String(a.textContent||a)};q=null;q=D.prototype;q.size=function(){return this.rows.length};
|
92 |
+
q.insert=function(a){var b=this.h,c=d("wg-dead");c.style.height=String(b)+"px";a.appendChild(c);return this.dead=c};q.top=function(){return(this.rendered?this.live:this.dead).offsetTop};q.height=function(){var a=this.h;null==a&&(this.h=a=this.rendered?this.live.firstChild.offsetHeight:this.dead.offsetHight);a||l("row has zero height");return a};q.render=function(a){for(var b,c=-1,f=this.rows,h=f.length,d=this.dead,e=this.live,A=e.childNodes;++c<h;)b=f[c],b.rendered||b.render(A);h=a.length;for(c=0;c<
|
93 |
+
h;c++)A[c].style.width=a[c];d.parentNode.replaceChild(e,d);this.rendered=!0;this.h=null;return this};q.sleep=function(){var a=this.height(),b=this.live,c=this.dead;c.style.height=String(a)+"px";b.parentNode.replaceChild(c,b);this.rendered=!1;this.h=a;return this};q.sleepH=function(a){a*=this.rows.length;var b=this.dead;b&&(b.style.height=String(a)+"px");this.rendered||(this.h=a);return this};q.widths=function(a){for(var b=this.live.childNodes,c=a.length;0!==c--;)b[c].style.width=a[c];return this};
|
94 |
+
q.destroy=function(){var a=this.rendered?this.live:this.dead,b=this.rows,c=b.length;for(a.parentNode.removeChild(a);0!==c--;)b[c].destroy()};q=null;return g}({},y,w));m.register("$40",function(g,e,x){function l(a,b){var c=a.id,f=c&&v[c],h=f&&f.parent();if(!f||!h)return null;var d=h.dir===q,c=d?"X":"Y",e="page"+c,d=d?D:s,n=d(h.el),c=b["offset"+c],g=h.el,r=g.className;null==c&&(c=b[e]-d(a));c&&(n+=c);g.className=r+" is-resizing";return{done:function(){g.className=r},move:function(a){h.resize(a[e]-n,
|
95 |
+
f);return!0}}}function d(a,c){function f(){k(x).off("mousemove",h);u&&(u.done(),u=null);return!0}function h(a){u?u.move(a):f();return!0}if(u)return!0;u=l(a.target,a);if(!u)return!0;k(x).one("mouseup",f).on("mousemove",h);return b(a)}function c(a,b){var c=b.type;"touchmove"===c?u&&u.move(b):"touchstart"===c?u=l(a.target,b):"touchend"===c&&u&&(u.done(),u=null)}function b(a){a.stopPropagation();a.preventDefault();return!1}function a(a){var b=B;b&&b.redraw();a&&a.redraw();return B=a}function h(b,c){var f=
|
96 |
+
k(c).on("editFocus",function(){f.trigger("wgFocus",[a(b)])}).on("editBlur",function(){f.trigger("wgBlur",[a(null)])})}function f(a){var b=a.id,c=a.className;this.id=b;this.el=a;this.pos=this.index=0;this.css=[c||"wg-root","wg-cell"];this._cn=c;v[b]=this;this.clear()}var r=m.include("$46","html.js")||m.include("$2","html.js",!0),n=m.require("$21","dom.js"),s=n.top,D=n.left,q=1,v={},B,u=!1;g.init=function(a){var b=new f(a);b.redraw();m.require("$47","touch.js").ok(function(b){b.dragger(a,c)});k(a).mousedown(d);
|
97 |
+
return b};e=f.prototype;e.fire=function(a,b){var c=k.Event(a);c.cell=this;k(this.el).trigger(c,b);return this};e.each=function(a){for(var b=-1,c=this.cells,f=c.length;++b<f;)a(c[b],b);return this};e.indexOf=function(a){return(a=v[a.id||String(a)])&&a.pid===this.id?a.index:-1};e.on=function(){return this.$("on",arguments)};e.off=function(){return this.$("off",arguments)};e.find=function(a){return k(this.el).find(a)};e.$=function(a,b){k.fn[a].apply(k(this.el),b);return this};e.addClass=function(a){this.css.push(a);
|
98 |
+
return this};e.removeClass=function(a){a=this.css.indexOf(a);-1!==a&&this.css.splice(a,1);return this};e.parent=function(){return this.pid&&v[this.pid]};e.splitx=function(){return this._split(q,arguments)};e.splity=function(){return this._split(2,arguments)};e._split=function(a,b){(this.length||this.field)&&this.clear();for(var c=-1,h,d=b.length,e=1/d,g=0;++c<d;){h=n.el();this.body.appendChild(h);for(var r=h,s=b[c],k=s,q=1;v[s];)s=k+"-"+ ++q;r.id=s;h=new f(h);h.index=c;h.pid=this.id;h._locale(this.lang,
|
99 |
+
this.rtl);h.pos=g;g+=e;this.cells.push(h);this.length++}this.dir=a;this.redraw();return this.cells};e.destroy=function(){this.clear();delete v[this.id];var a=this.el;a.innerHTML="";this.body=null;a.className=this._cn||"";k(a).off();return this};e.exists=function(){return this===v[this.id]};e.clear=function(){for(var a=this.el,b=this.cells,c=this.field,f=this.body,h=this.nav,d=this.length||0;0!==d--;)delete v[b[d].destroy().id];this.cells=[];this.length=0;h&&(a.removeChild(h),this.nav=null);f&&(c&&
|
100 |
+
(r.ie()&&k(f).triggerHandler("blur"),c.destroy(),this.field=null),this.table&&(this.table=null),a===f.parentNode&&a.removeChild(f));this.body=a.appendChild(n.el("","wg-body"));this._h=null;return this};e.resize=function(a,b){if(!b&&(b=this.cells[1],!b))return;var c=b.index,f=this.cells,h=k(this.el)[this.dir===q?"width":"height"](),d=f[c+1],c=f[c-1];pad=(b.body||b.el.firstChild).offsetTop||0;max=(d?d.pos*h:h)-pad;min=c?c.pos*h:0;b.pos=Math.min(max,Math.max(min,a))/h;this.redraw();return this};e.distribute=
|
101 |
+
function(a){for(var b=-1,c=0,f,h=this.cells,d=a.length;++b<d&&(f=h[++c]);)f.pos=Math.max(0,Math.min(1,a[b]));this.redraw();return this};e.distribution=function(){for(var a=[],b=0,c=this.cells,f=c.length-1;b<f;)a[b]=c[++b].pos;return a};e.restyle=function(){var a=this.css.concat();0===this.index?a.push("first"):a.push("not-first");this.dir&&(a.push("wg-split"),2===this.dir?a.push("wg-split-y"):a.push("wg-split-x"));this.t&&a.push("has-title");this.nav&&a.push("has-nav");this.field&&(a.push("is-field"),
|
102 |
+
this.field.editable()?a.push("is-editable"):a.push("is-readonly"));a=a.join(" ");a!==this._css&&(this._css=a,this.el.className=a);return this};e.redraw=function(a){this.restyle();var b=this.el,c=this.body,f=this.field;if(c){var h,d=b.clientWidth||0,e=b.clientHeight||0,n=c.offsetTop||0,e=n>e?0:e-n;this._h!==e&&(this._h=e,c.style.height=String(e)+"px",h=f);this._w!==d&&(this._w=d,h=f);h&&h.redraw()}c=this.length;d=1;e=this.nav;for(n=2===this.dir?"height":"width";0!==c--;)f=this.cells[c],e?h=1:(f.fixed&&
|
103 |
+
(f.pos=f.fixed/k(b)[n]()),h=d-f.pos,d=f.pos),f.el.style[n]=String(100*h)+"%",f.redraw(a);return this};e.contents=function(a,b){var c=this.el,f=this.body;if(null==a)return f.innerHTML;this.length?this.clear():f&&(c.removeChild(f),f=null);f||(this.body=f=c.appendChild(n.el("",b||"wg-content")),this._h=null,(c=this.lang)&&this._locale(c,this.rtl,!0));"string"===typeof a?k(f)._html(a):a&&this.append(a);this.redraw();return this};e.textarea=function(a,b){var c=this.field;if(c){var f=c.editable();c.reload(a,
|
104 |
+
b);f!==b&&this.restyle()}else this.length&&this.clear(),f=n.el("textarea"),f.setAttribute("wrap","virtual"),f.value=a,this.contents(f),c=m.require("$48","field.js")._new(f)[b?"enable":"disable"](),h(this,f),this.field=c,this.restyle();this.lang||this.locale("en");return c};e.locale=function(a){a=m.require("$38","locale.js").cast(a);return this._locale(String(a),a.isRTL())};e._locale=function(a,b,c){var f=this.body;if(c||a!==this.lang)this.lang=a,f&&f.setAttribute("lang",a);if(c||b!==this.rtl)this.rtl=
|
105 |
+
b,f&&f.setAttribute("dir",b?"RTL":"LTR");return this};e.editable=function(){var a=this.field;if(a)return a.editable()?a:null;var b=this.cells,c=b.length,f=this.navigated();if(null!=f)return b[f].editable();for(;++f<c;){for(f=0;f<c;c++);if(a=b[f].editable())return a}};e.eachTextarea=function(a){var b=this.field;b?a(b):this.each(function(b){b.eachTextarea(a)});return this};e.append=function(a){a&&(a.nodeType?r.init(this.body.appendChild(a)):r.init(k(a).appendTo(this.body)));return this};e.prepend=function(a){var b=
|
106 |
+
this.body;if(a.nodeType){var c=b.firstChild;r.init(c?b.insertBefore(a,c):b.appendChild(a))}else r.init(k(a).prependTo(b));return this};e.before=function(a){var b=this.body;a.nodeType?r.init(this.el.insertBefore(a,b)):r.init(k(a).insertBefore(b));return this};e.header=function(a,b){if(null==a&&null==b)return this.el.getElementsByTagName("header")[0];this.t=n.txt(a||"");this.el.insertBefore(n.el("header",b),this.body).appendChild(this.t);this.redraw();return this};e.title=function(a){var b=this.t;if(b)return b.nodeValue=
|
107 |
+
a||"",b;this.header(a);return this.t};e.titled=function(){var a=this.t;return a&&a.nodeValue};e.bodyY=function(){return s(this.body,this.el)};e.scrollY=function(a){if(S===a)return this.body.scrollTop;this.body.scrollTop=a};e.tabulate=function(a){var b=this.table;b?b.clear():b=m.require("$49","wgtable.js").create(this);b.init(a);return this.table=b};e.lock=function(){this.body.className+=" locked";return this};e.scrollTo=function(a,b){var c,f=this.body;c=f.scrollTop;var h=s(a,f);if(c>h)c=h;else{var d=
|
108 |
+
f.clientHeight,h=h+k(a).outerHeight();if(d+c<h)c=h-d;else return}b?f.scrollTop=c:k(f).stop(!0).animate({scrollTop:c},250)};e.navigize=function(a,c){function f(a){var b=d[a],c=r[a],h=k(b.el).show();c.addClass("active");g=a;s.data("idx",a);b.fire("wgTabSelect",[a]);return h}var h=this,d=h.cells,e=h.nav,g,r=[];e&&h.el.removeChild(e);var e=h.nav=h.el.insertBefore(n.el("nav","wg-tabs"),h.body),s=k(e).on("click",function(a){var c=k(a.target).data("idx");if(null==c)return!0;if(null!=g){var e=r[g];k(d[g].el).hide();
|
109 |
+
e.removeClass("active")}f(c);h.redraw();return b(a)});null==c&&(c=s.data("idx")||0);h.each(function(b,c){r[c]=k('<a href="#'+b.id+'"></a>').data("idx",c).text(a[c]).appendTo(s);b.pos=0;k(b.el).hide()});f(d[c]?c:0);h.lock();h.redraw();return h};e.navigated=function(){var a=this.nav;if(a)return k(a).data("idx")};e=null;return g}({},y,w));m.register("$24",function(g,e,x){function l(a){var b=[];a&&(a.saved()||b.push("po-unsaved"),a.fuzzy()?b.push("po-fuzzy"):a.flagged()&&b.push("po-flagged"),a.translation()||
|
110 |
+
b.push("po-empty"),a.comment()&&b.push("po-comment"));return b.join(" ")}function d(a,b,c){b=k(a.title(b).parentNode);var f=b.find("span.lang");c?(c=m.require("$38","locale.js").cast(c),f.length||(f=k("<span></span>").prependTo(b)),f.attr("lang",c.lang).attr("class",c.getIcon()||"lang region region-"+(c.region||"zz").toLowerCase())):(f.remove(),c="en");a.locale(c);return b}function c(a,b,c){b.click(function(b){var f=a.fire(c,[b.target]);f||b.preventDefault();return f})}function b(){this.dirty=0}m.require("$3",
|
111 |
+
"number.js");var a="poUpdate",h="changing",f="changed",r=0,n=1,s=2,D=3,q=4,v=5,B,u,z=m.require("$37","string.js").html,y=m.require("$6","string.js").sprintf;g.extend=function(a){return a.prototype=new b};g.localise=function(a){u=a;return g};var w=function(){var a=x.createElement("p");return function(b){a.innerHTML=b.replace("src=","x=");return a.textContent.trim()||b.trim()}}(),p=b.prototype=m.require("$39","abstract.js").init(["getListColumns","getListHeadings","getListEntry"],["editable","t"]);
|
112 |
+
p.init=function(){this.localise();this.editable={source:!0,target:!0};this.mode="";this.html=!1;return this};p.localise=function(a){a||(a=u||m.require("$1","t.js").init());var b=[];b[r]=a._x("Source text","Editor")+":";b[D]=a._x("%s translation","Editor")+":";b[q]=a._x("Context","Editor")+":";b[v]=a._x("Comments","Editor")+":";b[n]=a._x("Single","Editor")+":";b[s]=a._x("Plural","Editor")+":";b[6]=a._x("Untranslated","Editor");b[7]=a._x("Translated","Editor");b[8]=a._x("Toggle Fuzzy","Editor");b[9]=
|
113 |
+
a._x("Suggest translation","Editor");this.labels=b;this.t=a;return this};p.setRootCell=function(a){function b(a){c.redraw(!0,a);return!0}var c=m.require("$40","wingrid.js").init(a);k(e).on("resize",b);this.redraw=b;k(a).on("wgFocus wgBlur",function(a,b){a.stopPropagation();B=b});this.destroy=function(){c.destroy();k(e).off("resize",b)};this.rootDiv=a;return c};p.$=function(){return k(this.rootDiv)};p.setListCell=function(a){var b=this;b.listCell=a;a.on("wgRowSelect",function(a,c){b.loadMessage(b.po.row(c));
|
114 |
+
return!0}).on("wgRowDeselect",function(a,c,f){f||b.loadNothing();return!0})};p.setSourceCell=function(a){this.sourceCell=a};p.setTargetCell=function(a){this.targetCell=a};p.next=function(a,b,c){for(var f=this.listTable,h=f.selected(),d=h,e,n=this.po;null!=(h=f.next(a,c,h));){if(d===h){h=null;break}if(b&&(e=n.row(h),e.translated(0)))continue;break}null!=h&&f.select(h,!0);return h};p.current=function(a){var b=this.active;if(null==a)return b;a?a.is(b)?this.reloadMessage(a):this.loadMessage(a):this.unloadActive();
|
115 |
+
return this};p.getTargetOffset=function(){if(this.active)return this.targetCell&&this.targetCell.navigated()||0};p.getTargetEditable=function(){return this.editable.target&&this.targetCell&&this.targetCell.editable()};p.getSourceEditable=function(){return this.editable.source&&this.sourceCell&&this.sourceCell.editable()};p.getContextEditable=function(){return this.editable.context&&this.contextCell&&this.contextCell.editable()};p.getFirstEditable=function(){return this.getTargetEditable()||this.getSourceEditable()||
|
116 |
+
this.getContextEditable()};p.searchable=function(a){a&&(this.dict=a,this.po&&this.rebuildSearch());return this.dict&&!0};p.rebuildSearch=function(){var a=-1,b=this.po.rows,c=b.length,f=this.dict;for(f.clear();++a<c;)f.add(a,b[a].toText())};p.filtered=function(){return this.lastSearch||""};p.filter=function(a,b){var c,f=this.listTable,h=this.lastFound,d=this.lastSearch;if(a){if(d===a)return h||0;if(d&&!h&&0===a.indexOf(d))return 0;c=this.dict.find(a)}this.lastSearch=d=a;this.lastFound=h=c?c.length:
|
117 |
+
this.po.length;c?f.filter(c):f.unfilter();b||this.fire("poFilter",[d,h]);return h};p.countFiltered=function(){return this.lastSearch?this.lastFound:this.po.length};p.unsave=function(a,b){var c=!1;if(a){if(c=a.saved(b))this.dirty++,a.unsave(b),this.fire("poUnsaved",[a,b]);this.markUnsaved(a)}return c};p.markUnsaved=function(a){var b=this.po.indexOf(a);if((b=this.listTable.tr(b))&&b.length){var c=b[0].className;a=c.replace(/(?:^| +)po-[a-z]+/g,"")+" "+l(a);a!==c&&k(b).attr("class",a)}};p.save=function(a){var b=
|
118 |
+
this.po;if(this.dirty||a)b.each(function(a,b){b.save()}),this.listCell.find("div.po-unsaved").removeClass("po-unsaved"),this.dirty=0,this.fire("poSave");return b};p.fire=function(a,b){var c=this.handle;if(c&&c[a]&&(c=c[a].apply(this,b||[]),!1===c))return!1;c=k.Event(a);this.$().trigger(c,b);return!c.isDefaultPrevented()};p.on=function(a,b){this.$().on(a,b);return this};p.getSorter=function(){return null};p.reload=function(){var a=this,b,c=a.listCell,f=a.listTable,h=a.po,d=h&&h.locale(),e=d&&d.isRTL(),
|
119 |
+
n=h&&h.length||0;if(!h||!h.row)return c&&c.clear().header("Error").contents("Invalid messages list"),!1;a.targetLocale=d;a.lastSearch&&(a.lastSearch="",a.lastFound=n,a.fire("poFilter",["",n]));f&&(b=f.thead().distribution());a.listTable=f=c.tabulate({eachCol:function(b){var c,f,h=a.getListColumns(),d=a.getListHeadings();for(f in h)c=h[f],b(c,f,d[c])},eachRow:function(b){h.each(function(c,f){b(f.idx,a.getListEntry(f),l(f))})},sort:a.getSorter()});var g,c=a.getListColumns();for(g in c)f.sortable(c[g]);
|
120 |
+
b&&f.thead().distribute(b);f.tbody().$(e?"addClass":"removeClass",["is-rtl"]);a.fire("poLoad");return!!n};p.load=function(a,b){this.po=a;this.dict&&this.rebuildSearch();this.reload()&&(-1!==b?this.listTable.selectRow(b||0):this.active&&this.unloadActive())};p.pasteMessage=function(a){var b,c=0;this.active===a&&((b=this.sourceCell)&&b.eachTextarea(function(b){b.val(a.source(null,c++))}),(b=this.contextCell)&&b.eachTextarea(function(b){b.val(a.context())}),b=this.targetCell)&&(c=0,b.eachTextarea(function(b){b.val(a.translation(c++))}));
|
121 |
+
this.updateListCell(a,"source");this.updateListCell(a,"target");return this};p.reloadMessage=function(a){var b=this.sourceCell,c=this.targetCell,f;this.pasteMessage(a);b&&this.setSrcMeta(a,b)&&b.redraw();c&&(f=c.navigated()||0,f=this.setTrgMeta(a,f,c),!b&&this.setSrcMeta(a,c)&&(f=!0),f&&c.redraw());return this};p.setStatus=function(){return null};p.setSrcMeta=function(a,b){var f=[],h,d=!1,e=this.$smeta,n=this.labels,g=[],r=a.tags(),s=r&&r.length;if(h=a.context())g.push("<span>"+z(n[q])+"</span>"),
|
122 |
+
g.push("<mark>"+z(h)+"</mark>");if(s&&this.getTag)for(g.push("<span>Tagged:</span>");0<=--s;)(h=this.getTag(r[s]))&&g.push('<mark class="tag">'+z(h.mod_name)+"</mark>");g.length&&f.push(g.join(" "));if(this.getMono()&&(h=a.refs())&&(r=h.split(/\s/),s=r.length)){for(g=[];0<=--s;)h=r[s],g.push("<code>"+z(h)+"</code>");f.push('<p class="has-icon icon-file">'+g.join(" ")+"</p>")}(h=a.notes())&&f.push('<p class="has-icon icon-info">'+z(h,!0)+"</p>");f.length?(e||(e=b.find("div.meta"),e.length||(e=k('<div class="meta"></div>').insertAfter(b.header())),
|
123 |
+
c(this,e,"poMeta"),this.$smeta=e),e.html(f.join("\n")).show(),d=!0):e&&e.text()&&(e.text("").hide(),d=!0);return d};p.setTrgMeta=function(a,b,c){var f=[],h=!1,d=this.$tmeta;b=(a=a.errors(b))&&a.length;var e;if(b)for(e=0;e<b;e++)f.push('<p class="has-icon icon-warn">'+z(a[e],!0)+".</p>");f.length?(d||(d=c.find("div.meta"),d.length||(d=k('<div class="meta"></div>').insertAfter(c.header())),this.$tmeta=d),d.html(f.join("\n")).show(),h=!0):d&&d.text()&&(d.text("").hide(),h=!0);return h};p.loadMessage=
|
124 |
+
function(b){function c(a,b){var f=b?a.split(" "):a.split(" ",1);a=f[0];"="===a.charAt(0)&&(a=a.substr(1),a=["zero","one","two"][Number(a)]||a);f[0]=a.charAt(0).toUpperCase()+a.substr(1).toLowerCase();return f.join(" ")}function e(a,f){var h=S,k=L[r];a.off();a.titled()!==k&&d(a,k,f||"en");k=!1;p.setSrcMeta(b,a)&&(k=!0);if(b.plural()){var k=-1,q=[],l=[],m=a.id+"-",D=b.sourceForms()||f&&f.plurals||["One","Other"],v=D.length;if(2!==v||"="===D[0].charAt(0)&&"=1"!==D[0])for(;++k<v;)q[k]=m+String(k),l[k]=
|
125 |
+
c(D[k])+":";else q=[m+"-0",m+"-1"],l=[L[n],L[s]];a.splity.apply(a,q);a.each(function(a,c){a.header(l[c]).textarea(b.source(null,c),h).setStrf(C).setMode(z).setInvs(w)});a.lock();h&&a.each(function(a,b){g(a,b)})}else k&&a.redraw(),a.textarea(b.source(),h).setStrf(C).setMode(z).setInvs(w),h&&g(a,0)}function g(c,d){c.on(h,function(a,c){b.source(c,d);0===d&&p.updateListCell(b,"source");p.unsave(b,d)}).on(f,function(){0===d&&p.po.reIndex(b);p.dict&&p.rebuildSearch();p.fire(a,[b])})}function k(a,f,h){M&&
|
126 |
+
a.eachTextarea(function(a){a.ping()});a.off();var e=f.isKnown()&&f.label||"Target",e=y(L[D],e);a.titled()!==e&&d(a,e,f);e=!1;!this.sourceCell&&p.setSrcMeta(b,a)&&(e=!0);p.setTrgMeta(b,h,a)&&(e=!0);p.setStatus(b,h);if(b.pluralized()){var n=[],g=[],r=a.id+"-",s=b.targetForms()||f.plurals||["One","Other"],e=s.length,q=function(a){var b=s[a];g.push(b?c(b,!0):"Form "+a);n.push(r+String(a))};for(b.each(q);(f=n.length)<e;)q(f);a.splitx.apply(a,n);a.each(function(a,c){var f=M&&!b.disabled(c);a.textarea(b.translation(c),
|
127 |
+
f).setStrf(C).setMode(z).setInvs(w);M&&l(a,c)});a.navigize(g,h||null).on("wgTabSelect",function(c,f){var h=M&&c.cell.editable();h&&h.focus();p.setTrgMeta(b,f,a);p.setStatus(b,f);p.fire("poTab",[f])})}else e&&a.redraw(),a.textarea(b.translation(),M&&!b.disabled(0)).setStrf(C).setMode(z).setInvs(w),M&&l(a,0)}function l(c,d){c.on(h,function(a,c,f){b.translate(c,d);0===d&&p.updateListCell(b,"target");b.fuzzy(d)?p.fuzzy(!1,b,d):p.unsave(b,d);""===c?(p.fire("poEmpty",[!0,b,d]),p.setStatus(b,d)):""===f&&
|
128 |
+
(p.fire("poEmpty",[!1,b,d]),p.setStatus(b,d))}).on(f,function(){p.dict&&p.rebuildSearch();p.fire(a,[b])})}function m(c){c.off();var e=L[q];c.titled()!==e&&(d(c,e),p.setStatus(null));c.textarea(b.context(),!0).setMode(z).setInvs(w);X&&c.on(h,function(a,c){b.context(c);p.updateListCell(b,"source");p.unsave(b,O)}).on(f,function(){p.po.reIndex(b);p.dict&&p.rebuildSearch();p.fire(a,[b])})}function u(a){var c=L[v];a.titled()!==c&&d(a,c);a.off().on(h,function(a,c){b.comment(c);p.fire("poComment",[b,c]);
|
129 |
+
p.unsave(b,O)}).textarea(b.comment(),!0)}var p=this,z=p.mode,x=b.isHTML(),w=p.inv||!1,E=this.fmt||null,C=b.format()||null,I=b.is(p.active),O=0,G=p.sourceCell,T=p.targetCell,U=p.contextCell,V=p.commentCell,M=p.editable.target,S=p.editable.source,X=p.editable.context,P=B,Y=p.sourceLocale,W=p.targetLocale,L=p.labels;p.html!==x&&(p.html=x,"code"!==p.mode&&(z=x?"html":"",p.setMode(z)));p.active=b;G&&e(G,Y);U&&m(U);T&&W&&(O=T.navigated()||0,k(T,W,O));V&&u(V);P&&(P.exists()||(P=P.parent()),(x=P.editable())&&
|
130 |
+
x.focus());E!==C&&(this.fmt=C);I||p.fire("poSelected",[b,O])};p.unloadActive=function(){function a(b){b&&b.text("").hide()}function b(a){a&&a.off().clear()}a(this.$smeta);a(this.$tmeta);b(this.sourceCell);b(this.contextCell);b(this.targetCell);this.commentCell&&this.commentCell.off();this.active&&(this.fire("poDeselected",[this.active]),this.active=null);return this};p.loadNothing=function(){var a,b=this.t,c=this.mode||"",f=this.inv||!1,h=this.fmt;this.unloadActive();this.setStatus(null);(a=this.commentCell)&&
|
131 |
+
a.textarea("",!1);if(a=this.sourceCell)a.textarea("",!1).setStrf(h).setMode(c).setInvs(f),a.title(b._x("Source text not loaded","Editor")+":");if(a=this.contextCell)a.textarea("",!1).setMode(c).setInvs(f),a.title(b._x("Context not loaded","Editor")+":");if(a=this.targetCell)a.textarea("",!1).setStrf(h).setMode(c).setInvs(f),a.title(b._x("Translation not loaded","Editor")+":");this.fire("poSelected",[null])};p.updateListCell=function(a,b){var c=this.getListColumns()[b],f=this.po.indexOf(a);(f=this.listTable.row(f))&&
|
132 |
+
f.rendered&&f.update(c)};p.cellText=function(a){return(a=-1!==a.indexOf("<")||-1!==a.indexOf("&")?w(a):a.trim())||"\u00a0"};p.fuzzy=function(a,b,c){b=b||this.active;var f=b.fuzzy(c);!0!==a||f?!1===a&&f&&this.flag(0,b,c)&&this.fire("poFuzzy",[b,!1,c]):this.flag(4,b,c)&&this.fire("poFuzzy",[b,!0,c]);return f};p.flag=function(b,c,f){if(!c){c=this.active;f=this.getTargetOffset();if(null==f)return null;f&&c.targetForms()&&(f=0)}var h=c.flagged(f);if(null==b)return h;if(h===b||b&&!c.translated(f)||!this.fire("poFlag",
|
133 |
+
[b,h,c,f]))return!1;c.flag(b,f);this.fire(a,[c])&&this.unsave(c,f);this.setStatus(c,f);return!0};p.add=function(b,c){var f,h=this.po.get(b,c);h?f=this.po.indexOf(h):(f=this.po.length,h=this.po.add(b,c),this.load(this.po,-1),this.fire("poAdd",[h]),this.fire(a,[h]));this.lastSearch&&this.filter("");this.listTable.select(f);return h};p.del=function(b){if(b=b||this.active){var c=this.lastSearch,f=this.po.del(b);null!=f&&(this.unsave(b),this.fire("poDel",[b]),this.fire(a,[b]),this.reload(),this.dict&&
|
134 |
+
this.rebuildSearch(),this.active&&this.active.equals(b)&&this.unloadActive(),this.po.length&&(c&&this.filter(c),this.active||(f=Math.min(f,this.po.length-1),this.listTable.select(f))))}};p.setMono=function(a){return this.setMode(a?"code":this.html?"html":"")};p.setMode=function(a){if(this.mode!==a){this.mode=a;this.callTextareas(function(b){b.setMode(a)});var b=this.active,c=this.sourceCell;b&&b.refs()&&c&&this.setSrcMeta(b,c)&&c.redraw()}return this};p.getMono=function(){return"code"===this.mode};
|
135 |
+
p.setInvs=function(a){(this.inv||!1)!==a&&(this.inv=a,this.callTextareas(function(b){b.setInvs(a)}),this.fire("poInvs",[a]));return this};p.getInvs=function(){return this.inv||!1};p.callTextareas=function(a){var b=this.targetCell;b&&b.eachTextarea(a);(b=this.contextCell)&&b.eachTextarea(a);(b=this.sourceCell)&&b.eachTextarea(a);return this};p.focus=function(){var a=this.getTargetEditable();a&&a.focus();return this};p=null;return g}({},y,w));m.register("$13",function(g,e,x){function l(){this.init()._validate();
|
136 |
+
this.sourceLocale={lang:"en",label:"English",plurals:["One","Other"]}}function d(a){a=k('<button type="button" class="button button-small icon icon-'+a+' hastip"></button>');m.require("$12","tooltip.js").init(a);return a}function c(a){return d("cloud").attr("title",a.labels[8]+" (Ctrl-U)").click(function(b){b.preventDefault();a.focus().fuzzy(!a.fuzzy())})}function b(a){return d("robot").attr("title",a.labels[9]+" (Ctrl-J)").click(function(b){b.preventDefault();a.fire("poHint")})}e=m.require("$24",
|
137 |
+
"base.js");g.init=function(a){var b=new l;a=b.setRootCell(a);var c=a.splity("po-list","po-edit"),d=c[0],e=c[1],c=e.splitx("po-trans","po-comment"),g=c[0],k=c[1].header("Loading.."),c=g.splity("po-source","po-target"),g=c[0].header("Loading.."),c=c[1].header("Loading..");a.distribute([0.34]);e.distribute([0.8]);b.setListCell(d);b.setSourceCell(g);b.setTargetCell(c);b.commentCell=k;b.editable.source=!1;return b};e=l.prototype=e.extend(l);e.getListHeadings=function(){var a=this.t||{_x:function(a){return a}},
|
138 |
+
b=[a._x("Source text","Editor")];this.targetLocale&&(b[1]=a._x("Translation","Editor"));return b};e.getListColumns=function(){var a={source:0};this.targetLocale&&(a.target=1);return a};e.getListEntry=function(a){var b=this.cellText,c=[function(){var c,f=b(a.source()||""),d=a.context();return d?(c=x.createElement("p"),c.appendChild(x.createElement("mark")).innerText=d,c.appendChild(x.createTextNode("\u00a0"+f)),c):f}];this.targetLocale&&(c[1]=function(){return b(a.translation()||"")});return c};e.stats=
|
139 |
+
function(){var a=this.po,b=a.length,c=0,d=0,e=0;a.each(function(a,b){b.fuzzy()?e++:b.translated()?c++:d++});return{t:b,p:c.percent(b)+"%",f:e,u:d}};e.unlock=function(){var a=this.targetLocale;this._unlocked||(this.editable={source:!0,context:!0,target:!1},this.po&&this.po.unlock(),this.contextCell=this.targetCell,delete this.targetCell,a&&(this._unlocked=a,delete this.targetLocale,this.reload(),this.fire("poLock",[!1])),this.active&&this.loadMessage(this.active))};e.lock=function(){var a=this._unlocked;
|
140 |
+
a&&(this.targetLocale=a,delete this._unlocked,this.po&&this.po.lock(a),this.editable={source:!1,context:!1,target:!0},this.targetCell=this.contextCell,delete this.contextCell,this.reload(),this.fire("poLock",[!0,a]),this.active&&this.loadMessage(this.active))};e.locked=function(){return!this._unlocked};e.setStatus=function(a){var h=this.$tnav;if(null==a)h&&(h.remove(),this.$tnav=null);else{h||(this.$tnav=h=k("<nav></nav>").append(c(this)).append(b(this)).appendTo(this.targetCell.header()));var f=
|
141 |
+
[];a.translated()?a.fuzzy()&&f.push("po-fuzzy"):f.push("po-empty");h.attr("class",f.join(" "))}};e.getSorter=function(){function a(a,c){var f=a.weight(),d=c.weight();return f===d?b(a,c):f>d?-1:1}function b(a,c){return a.hash().localeCompare(c.hash())}var c=this;return function(d){var e=c.po,g=c.locked()?a:b;d.sort(function(a,b){return g(e.row(a),e.row(b))})}};return g}({},y,w));m.register("$14",function(g,e,m){var l={copy:66,clear:75,save:83,fuzzy:85,next:40,prev:38,enter:13,invis:73,hint:74},d={38:!0,
|
142 |
+
40:!0,73:!0},c={66:function(b,a){var c=a.current();c&&(c.normalize(),a.focus().pasteMessage(c))},75:function(b,a){var c=a.current();c&&(c.untranslate(),a.focus().pasteMessage(c))},85:function(b,a){a.focus().fuzzy(!a.fuzzy())},13:function(b,a){a.getFirstEditable()&&a.next(1,!0,!0)},40:function(b,a){var c=b.shiftKey;a.next(1,c,c)},38:function(b,a){var c=b.shiftKey;a.next(-1,c,c)},73:function(b,a){if(!b.shiftKey)return!1;a.setInvs(!a.getInvs())}};g.init=function(b,a){function h(a){if(a.isDefaultPrevented()||
|
143 |
+
!a.metaKey&&!a.ctrlKey)return!0;var h=a.which;if(!f[h])return!0;var e=c[h];if(!e)throw Error("command undefined #"+h);if(a.altKey||a.shiftKey&&!d[h]||!1===e(a,b))return!0;a.stopPropagation();a.preventDefault();return!1}var f={};k(a||e).on("keydown",h);return{add:function(a,b){c[l[a]]=b;return this},enable:function(){var a,b;for(b in arguments)a=l[arguments[b]],f[a]=!0;return this},disable:function(){k(a||e).off("keydown",h);b=a=f=null}}};return g}({},y,w));m.register("$25",function(g,e,k){function l(){this.reIndex([])}
|
144 |
+
g.init=function(){return new l};e=l.prototype;e.reIndex=function(d){for(var c={},b=-1,a=d.length;++b<a;)c[d[b]]=b;this.keys=d;this.length=b;this.ords=c};e.key=function(d,c){if(null==c)return this.keys[d];var b=this.keys[d],a=this.ords[c];if(c!==b){if(null!=a)throw Error("Clash with item at ["+a+"]");this.keys[d]=c;delete this.ords[b];this.ords[c]=d}return d};e.indexOf=function(d){d=this.ords[d];return null==d?-1:d};e.add=function(d,c){var b=this.ords[d];null==b&&(this.keys[this.length]=d,b=this.ords[d]=
|
145 |
+
this.length++);this[b]=c;return b};e.get=function(d){return this[this.ords[d]]};e.has=function(d){return null!=this.ords[d]};e.del=function(d){this.cut(this.ords[d],1)};e.cut=function(d,c){c=c||1;var b=[].splice.call(this,d,c);this.keys.splice(d,c);this.reIndex(this.keys);return b};e.each=function(d){for(var c=-1,b=this.keys,a=this.length;++c<a;)d(b[c],this[c],c);return this};e.sort=function(d){for(var c=-1,b=this.length,a,h=this.keys,f=this.ords,e=[];++c<b;)e[c]=[this[c],h[c]];e.sort(function(a,
|
146 |
+
b){return d(a[0],b[0])});for(c=0;c<b;c++)a=e[c],this[c]=a[0],a=a[1],h[c]=a,f[a]=c;return this};e.join=function(d){return[].join.call(this,d)};e=null;return g}({},y,w));m.register("$26",function(g,e,k){function l(d,c){var b=RegExp("^.{0,"+(d-1)+"}["+c+"]"),a=RegExp("^[^"+c+"]+");return function(c,f){for(var e=c.length,g;e>d;){g=b.exec(c)||a.exec(c);if(null==g)break;g=g[0];f.push(g);g=g.length;e-=g;c=c.substr(g)}0!==e&&f.push(c);return f}}g.create=function(d){function c(a){return g[a]||"\\"+a}var b,
|
147 |
+
a,h=/(?:\r\n|[\r\n\v\f\u2028\u2029])/g,f=/[ \r\n]+/g,e=/[\t\v\f\x07\x08\\\"]/g,g={"\t":"\\t","\v":"\\v","\f":"\\f","\u0007":"\\a","\b":"\\b"};if(null==d||isNaN(d=Number(d)))d=79;0<d&&(b=l(d-3," "),a=l(d-2,"-\u2013 \\.,:;\\?!\\)\\]\\}\\>"));return{pair:function(b,f){if(!f)return b+' ""';f=f.replace(e,c);var g=0;f=f.replace(h,function(){g++;return"\\n\n"});if(!(g||d&&d<f.length+b.length+3))return b+' "'+f+'"';var n=[b+' "'],k=f.split("\n");if(a)for(var l=-1,m=k.length;++l<m;)a(k[l],n);else n=n.concat(k);
|
148 |
+
return n.join('"\n"')+'"'},prefix:function(a,b){var c=a.split(h);return b+c.join("\n"+b)},refs:function(a){a=a.replace(f," ",a);b&&(a=b(a,[]).join("\n#: "));return"#: "+a}}};return g}({},y,w));m.register("$41",function(g,e,k){function l(){this.length=0}g.init=function(){return new l};e=l.prototype;e.push=function(d){this[this.length++]=d;return this};e.sort=function(d){[].sort.call(this,d);return this};e.each=function(d){for(var c=-1,b=this.length;++c<b;)d(c,this[c]);return this};return g}({},y,w));
|
149 |
+
m.register("$27",function(g,e,k){function l(){}g.extend=function(d){return d.prototype=new l};e=l.prototype=m.require("$39","abstract.js").init(["add","load"]);e.row=function(d){return this.rows[d]};e.lock=function(d){return this.locale(d||{lang:"zxx",label:"Unknown",nplurals:1,pluraleq:"n!=1"})};e.unlock=function(){var d=this.loc;this.loc=null;return d};e.locale=function(d){null==d?d=this.loc:this.loc=d=m.require("$38","locale.js").cast(d);return d};e.each=function(d){this.rows.each(d);return this};
|
150 |
+
e.indexOf=function(d){"object"!==typeof d&&(d=this.get(d));if(!d)return-1;null==d.idx&&(d.idx=this.rows.indexOf(d.hash()));return d.idx};e.get=function(d){return this.rows&&this.rows.get(d)};e.has=function(d){return this.rows&&this.rows.has(d)};e.del=function(d){d=this.indexOf(d);if(-1!==d){var c=this.rows.cut(d,1);if(c&&c.length)return this.length=this.rows.length,this.rows.each(function(b,a,c){a.idx=c}),d}};e.reIndex=function(d,c){var b=this.indexOf(d),a=d.hash(),h=this.rows.indexOf(a);return h===
|
151 |
+
b?b:-1!==h?(c=(c||0)+1,d.source("Error, duplicate "+String(c)+": "+d.source()),this.reIndex(d,c)):this.rows.key(b,a)};e.sort=function(d){this.rows.sort(d);return this};e["export"]=function(){for(var d=-1,c=this.rows,b=c.length,a=m.require("$41","list.js").init();++d<b;)a.push(c[d]);return a};e=null;return g}({},y,w));m.register("$28",function(g,e,m){function l(){function d(a){return/<[a-z]+[^>]*>/i.test(a)||/&(#\d+|#x[0-9a-f]|[a-z]+);/i.test(a)?k("<p></p>").html(a).text():a}function c(a){return a.replace(/%(?:\d+\$)?(?:'.|[-+0 ])*\d*(?:\.\d+)?[suxXbcdeEfFgGo]/g,
|
152 |
+
"%s")}function b(a){return a.replace(/[^\sa-z0-9]+/ig," ")}function a(a){return a.trim().replace(/\s+/g," ")}function h(f){return a(b(d(c(f).toLowerCase())))}var f={},e={};return{add:function(a){var b=h(a.source());(f[b]||(f[b]=[])).push(a);e[a.hash()]=a},match:function(g){var k=h(g.source()),k=f[k],l;if(l=k){l=k.length;var q=k[0];if(1!==l)for(var m=7,B,u=g.source(),z=g.context(),x;0<=--l;)if(g=0,B=k[l],!(B.context()!==z&&++g>=m)){x=B.source();if(u!==x){if(++g>=m)continue;u=u.toLowerCase();x=x.toLowerCase();
|
153 |
+
if(u!==x){if(++g>=m)continue;u=c(u);x=c(x);if(u!==x){if(++g>=m)continue;u=d(u);x=d(x);if(u!==x){if(++g>=m)continue;u=b(u);x=b(x);if(u!==x){if(++g>=m)continue;u=a(u);x=a(x);if(u!==x&&++g>=m)continue}}}}}m=g;q=B;if(0===g)break}delete e[q.hash()];l=q.copy()}return l},unmatched:function(){var a,b,c=[];for(a in e)b=e[a],c.push(b);return c}}}g.merge=function(d,c){var b=d.rows,a=c.rows,h=[],f=[],g=[],n=l();b.each(function(b,c){a.has(b)||(c.translated()?n.add(c):g.push(c))});d.clear();a.each(function(a,c){try{var g=
|
154 |
+
b.get(a),r;g?(r=g.flagged(0),g.merge(c),g.flagged(0)!==r&&f.push(g)):(g=n.match(c))?(g.merge(c),f.push(g)):(g=c.copy(),h.push(g));d.add(g,"")}catch(k){e.console&&console.error(String(k))}});d.header("POT-Creation-Date",c.header("POT-Creation-Date")||d.now());return{add:h,fuz:f,del:g.concat(n.unmatched())}};return g}({},y,w));m.register("$29",function(g,e,k){function l(c,b,a){if(null==a)return c[b]||"";c[b]=a||"";return c}function d(){this._id=this.id=""}g.extend=function(c){return c.prototype=new d};
|
155 |
+
e=d.prototype;e.flag=function(c,b){var a=this.flg||(this.flg=[]);if(null!=b)a[b]=c;else for(var h=Math.max(a.length,this.src.length,this.msg.length);0!==h--;)a[h]=c;return this};e.flagged=function(c){var b=this.flg||[];if(null!=c)return b[c]||0;for(c=b.length;0!==c--;)if(b[c])return!0;return!1};e.flags=function(){for(var c,b={},a=[],h=this.flg||[],f=h.length;0!==f--;)c=h[f],b[c]||(b[c]=!0,a.push(c));return a};e.flaggedAs=function(c,b){var a=this.flg||[];if(null!=b)return c===a[b]||0;for(var h=a.length;0!==
|
156 |
+
h--;)if(a[h]===c)return!0;return!1};e.fuzzy=function(c,b){var a=this.flaggedAs(4,c);null!=b&&this.flag(b?4:0,c);return a};e.source=function(c,b){if(null==c)return this.src[b||0]||"";this.src[b||0]=c;return this};e.plural=function(c,b){if(null==c)return this.src[b||1]||"";this.src[b||1]=c||"";return this};e.sourceForms=function(){return this.srcF};e.targetForms=function(){return this.msgF};e.each=function(c){for(var b=-1,a=this.src,h=this.msg,f=Math.max(a.length,h.length);++b<f;)c(b,a[b],h[b]);return this};
|
157 |
+
e.count=function(){return Math.max(this.src.length,this.msg.length)};e.pluralized=function(){return 1<this.src.length||1<this.msg.length};e.translate=function(c,b){this.msg[b||0]=c||"";return this};e.untranslate=function(c){if(null!=c)this.msg[c]="";else{var b=this.msg,a=b.length;for(c=0;c<a;c++)b[c]=""}return this};e.translation=function(c){return this.msg[c||0]||""};e.errors=function(c){return this.err&&this.err[c||0]||[]};e.translated=function(c){if(null!=c)return!!this.msg[c];var b=this.msg,a=
|
158 |
+
b.length;for(c=0;c<a;c++)if(!b[c])return!1;return!0};e.untranslated=function(c){if(null!=c)return!this.msg[c];var b=this.msg,a=b.length;for(c=0;c<a;c++)if(b[c])return!1;return!0};e.comment=function(c){return l(this,"cmt",c)};e.notes=function(c){return l(this,"xcmt",c)};e.refs=function(c){return l(this,"rf",c)};e.format=function(c){return l(this,"fmt",c)};e.context=function(c){return l(this,"ctx",c)};e.tags=function(){return this.tg};e.toString=e.toText=function(){return this.src.concat(this.msg,this.id,
|
159 |
+
this.ctx).join(" ")};e.weight=function(){var c=0;this.translation()||(c+=2);this.fuzzy()&&(c+=1);return c};e.equals=function(c){return this===c||this.hash()===c.hash()};e.hash=function(){return this.id};e.normalize=function(){for(var c=this.msg.length;0!==c--;)this.msg[c]=this.src[c]||""};e.disabled=function(c){return!!(this.lck||[])[c||0]};e.disable=function(c){(this.lck||(this.lck=[]))[c||0]=!0;return this};e.saved=function(c){var b=this.drt;if(null==b)return!0;if(null!=c)return!b[c];for(c=b.length;0!==
|
160 |
+
c--;)if(b[c])return!1;return!0};e.unsave=function(c){(this.drt||(this.drt=[]))[c||0]=!0;return this};e.save=function(c){null==c?this.drt=null:(this.drt||(this.drt=[]))[c]=!1;return this};e.is=function(c){return c&&(c===this||c.idx===this.idx)};e.isHTML=function(c){if(null==c)return this.htm||!1;this.htm=c};e=null;return g}({},y,w));m.register("$15",function(g,e,k){function l(a){return{"Project-Id-Version":"PACKAGE VERSION","Report-Msgid-Bugs-To":"","POT-Creation-Date":a||"","PO-Revision-Date":a||
|
161 |
+
"","Last-Translator":"","Language-Team":"",Language:"","Plural-Forms":"","MIME-Version":"1.0","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"8bit"}}function d(a,b){var c=a||"";b&&(c+="\x00"+b);return c}function c(a){var b=e.console;b&&b.error&&b.error(a.message||String(a))}function b(a){return m.require("$26","format.js").create(a)}function a(a){this.locale(a);this.clear();this.head=l(this.now())}function h(a,b){this.src=[a||""];this.msg=[b||""]}g.create=function(b){return new a(b)};
|
162 |
+
k=m.require("$27","messages.js").extend(a);k.clear=function(){this.rows=m.require("$25","collection.js").init();this.length=0};k.now=function(){function a(b,c){for(var f=String(b);f.length<c;)f="0"+f;return f}var b=new Date,c=b.getUTCFullYear(),h=b.getUTCMonth()+1,d=b.getUTCDate(),e=b.getUTCHours(),b=b.getUTCMinutes();return a(c,4)+"-"+a(h,2)+"-"+a(d,2)+" "+a(e,2)+":"+a(b,2)+"+0000"};k.header=function(a,b){var c=this.head||(this.head={});if(null==b)return this.headers()[a]||"";c[a]=b||"";return this};
|
163 |
+
k.headers=function(a){var b,c=this.now(),h=this.head||(this.head=l(c));if(null!=a){for(b in a)h[b]=a[b];return this}var d=this.locale();a={};for(b in h)a[b]=String(h[b]);d?(a.Language=String(d)||"zxx",a["Language-Team"]=d.label||a.Language,a["Plural-Forms"]="nplurals="+(d.nplurals||"2")+"; plural="+(d.pluraleq||"n!=1")+";",b="PO-Revision-Date"):(a.Language="",a["Plural-Forms"]="nplurals=INTEGER; plural=EXPRESSION;",a["PO-Revision-Date"]="YEAR-MO-DA HO:MI+ZONE",b="POT-Creation-Date");a[b]||(a[b]=c);
|
164 |
+
a["X-Generator"]="Loco https://localise.biz/";return a};k.get=function(a,b){var c=d(a,b);return this.rows.get(c)};k.add=function(a,b){a instanceof h||(a=new h(a));b&&a.context(b);var d=a.hash();this.rows.get(d)?c("Duplicate message at index "+this.indexOf(a)):(a.idx=this.rows.add(d,a),this.length=this.rows.length);return a};k.load=function(a){for(var b=-1,d,e,g,k,l,m,u=(g=this.locale())&&g.nplurals||2,z=[];++b<a.length;)d=a[b],null==d.parent?(e=d.source||d.id,g=d.target||"",k=d.context,e||k?(l=new h(e,
|
165 |
+
g),l._id=d._id,k&&l.context(k),d.flag&&l.flag(d.flag,0),d.comment&&l.comment(d.comment),d.notes&&l.notes(d.notes),d.refs&&l.refs(d.refs),l.format(d.format),d.message=l,this.add(l)):0===b&&"object"===typeof g&&(this.head=g,this.headcmt=d.comment)):z.push(d);for(b=-1;++b<z.length;)try{d=z[b];e=d.source||d.id;l=a[d.parent]&&a[d.parent].message;if(!l)throw Error("parent missing for plural "+e);m=d.plural;1===m&&l.plural(e);m>=u||(d.flag&&l.flag(d.flag,m),l.translate(d.target||"",m),d.format&&!l.format()&&
|
166 |
+
l.format(d.format))}catch(x){c(x)}return this};k.merge=function(a){return m.require("$28","merge.js").merge(this,a)};k.wrap=function(a){this.fmtr=b(a);return this};k.toString=function(){var a,c=this.locale(),d=[],e=[],g=this.headers(),k=!c,l=c&&c.nplurals||2,m=this.fmtr||b();g[c?"PO-Revision-Date":"POT-Creation-Date"]=this.now();for(a in g)e.push(a+": "+g[a]);e=new h("",e.join("\n"));e.comment(this.headcmt||"");k&&e.fuzzy(0,!0);d.push(e.toString());d.push("");this.rows.each(function(a,b){a&&(d.push(b.cat(m,
|
167 |
+
k,l)),d.push(""))});return d.join("\n")};k=m.require("$29","message.js").extend(h);k.hash=function(){return d(this.source(),this.context())};k.toString=function(){return this.cat(b())};k.cat=function(a,b,c){var d,h=[],e;(e=this.cmt)&&h.push(a.prefix(e,"# "));(e=this.xcmt)&&h.push(a.prefix(e,"#. "));d=this.rf;if(e=this._id)d+=(d?" ":"")+"loco:"+e;d&&/\S/.test(d)&&h.push(a.refs(d));!b&&this.fuzzy()&&h.push("#, fuzzy");(e=this.fmt)&&h.push("#, "+e+"-format");(e=this._ctx)&&h.push(a.prefix(a.pair("msgctxt",
|
168 |
+
e),"#| "));if(e=this._src)e[0]&&h.push(a.prefix(a.pair("msgid",e[0]),"#| ")),e[1]&&h.push(a.prefix(a.pair("msgid_plural",e[1]),"#| "));(e=this.ctx)&&h.push(a.pair("msgctxt",e));h.push(a.pair("msgid",this.src[0]));if(null==this.src[1])h.push(a.pair("msgstr",b?"":this.msg[0]));else for(d=-1,h.push(a.pair("msgid_plural",this.src[1])),e=this.msg||["",""],c=c||e.length;++d<c;)h.push(a.pair("msgstr["+d+"]",b?"":e[d]||""));return h.join("\n")};k.compare=function(a,b){var c=this.weight(),d=a.weight();if(c>
|
169 |
+
d)return 1;if(c<d)return-1;if(b){c=this.hash().toLowerCase();d=a.hash().toLowerCase();if(c<d)return 1;if(c>d)return-1}return 0};k.merge=function(a){var b=!1;this.rf=a.rf;this.fmt=a.fmt;this.cmt=a.cmt;this.xcmt=a.xcmt;a.src.join("\x00")!==this.src.join("\x00")&&(this._src=this.src,this.src=a.src.concat(),this.msg=(this.msg||["",""]).slice(0,this.src.length),b=!0);a.ctx!==this.ctx&&(this._ctx=this.ctx,this.ctx=a.ctx,b=!0);b&&this.translated()&&this.fuzzy(0,!0)};k.copy=function(){var a=new h,b,c;for(b in this)this.hasOwnProperty(b)&&
|
170 |
+
((c=this[b])&&c.concat&&(c=c.concat()),a[b]=c);return a};k=k=null;return g}({},y,w));m.register("$17",function(g,e,m){g.init=function(e,d){function c(){return f||(f=k('<div id="loco-po-ref"></div>').dialog({dialogClass:"loco-modal loco-modal-wide",modal:!0,autoOpen:!1,closeOnEscape:!0,resizable:!1,height:500}))}function b(a,b,d){a=k("<p></p>").text(d);c().dialog("close").html("").dialog("option","title","Error").append(a).dialog("open")}function a(a){var b=a&&a.code;if(b){for(var d=-1,f=b.length,
|
171 |
+
h=k("<ol></ol>").attr("class",a.type);++d<f;)k("<li></li>").html(b[d]).appendTo(h);h.find("li").eq(a.line-1).attr("class","highlighted");c().dialog("close").html("").dialog("option","title",a.path+":"+a.line).append(h).dialog("open")}}function h(a){a=a.target;var b=k(a).find("li.highlighted")[0],b=Math.max(0,(b&&b.offsetTop||0)-Math.floor(a.clientHeight/2));a.scrollTop=b}var f;return{load:function(f){c().html('<div class="loco-loading"></div>').dialog("option","title","Loading..").off("dialogopen").dialog("open").on("dialogopen",
|
172 |
+
h);f=k.extend({ref:f,path:d.popath},d.project||{});e.ajax.post("fsReference",f,a,b)}}};return g}({},y,w));m.register("$31",function(g,e,k){function l(d){this.api=d;this.chars=0}g.create=function(d){return new l(d)};e=l.prototype;e.init=function(d,c){function b(a){var b={length:0,html:a.html,sources:[]};m.push(b);return v[a.html?1:0]=b}function a(a,d){var m=a.source(null,d);if(m&&(a.untranslated(d)||c)){var q=l[m];if(q)q.push(a);else{var q=m.length,x=h.isHtml(m),x=v[x?1:0],p=x.sources;if(x.length+
|
173 |
+
q>k||p.length===g)x=b(x),p=x.sources;p.push(m);l[m]=[a];x.length+=q;f+=q;e+=1}}}var h=this.api,f=0,e=0,g=50,k=5E3,l={},m=[],v=[];b({html:!1});b({html:!0});d.each(function(b,c){a(c,0);a(c,1)});v=null;this.map=l;this.chars=f;this.length=e;this.batches=m;this.locale=d.locale()};e.abort=function(){this.state="abort";return this};e.dispatch=function(){function d(a,b){function d(c,h,e){b!==e&&(a===h||1<c&&f.source(null,1)===a)&&(f.translate(b,c),n++,z++);return n}if(!c())return!1;if(!b)return!0;var f,h=
|
174 |
+
l[a]||[],g=h.length,k=-1,n;for(x++;++k<g;)if(f=h[k])n=0,f.each(d),n&&e("each",[f]);return!0}function c(){return"abort"===g.state?(k&&(k.abort(),f()),!1):!0}function b(){var b=m.shift(),c;b?(c=b.sources)&&c.length?k.batch(c,v,b.html,d).fail(a).always(h):h():f()}function a(){g.abort();f()}function h(){u++;e("prog",[u,w]);c()&&b()}function f(){k=m=null;e("done")}function e(a,b){for(var c=p[a]||[],f=c.length;0<=--f;)c[f].apply(null,b)}var g=this,k=g.api,l=g.map,m=g.batches||[],v=g.locale,x=0,u=0,z=0,
|
175 |
+
y=g.length,w=m.length,p={done:[],each:[],prog:[]};g.state="";b();return{done:function(a){p.done.push(a);return this},each:function(a){p.each.push(a);return this},prog:function(a){p.prog.push(a);return this},stat:function(){return{todo:function(){return Math.max(y-x,0)},did:function(){return x}}}}};return g}({},y,w));m.register("$42",{nn:["no"]});m.register("$32",function(g,e,k){function l(){}g.create=function(d){d=l.prototype=new d;d.toString=function(){return"Yandex.Translate"};d.getId=function(){return"yandex"};
|
176 |
+
d.getUrl=function(){return"https://translate.yandex.com/"};d.parseError=function(c){return c&&c.code&&200!==c.code&&c.message?String(this)+" error "+c.code+": "+c.message:""};d.batch=function(c,b,a,d){function f(a){for(var f=c.length,e=-1;++e<f&&!1!==d(c[e],a[e]||"",b););}var e=this;a=a?"html":"plain";var g=this.mapLang(b,m.require("$42","yandex.json"));return e._call({url:"https://translate.yandex.net/api/v1.5/tr.json/translate?format="+a+"&lang=en-"+g,method:"POST",traditional:!0,data:{key:e.key(),
|
177 |
+
text:c}}).done(function(a,b,c){a&&200===a.code?f(a.text||[]):(e.stderr(e.parseError(a)||e.odderr(c)),f([]))}).fail(function(){f([])})};return new l};return g}({},y,w));m.register("$43",{zh:["zh","zh-CN","zh-TW"],he:["iw"],jv:["jw"]});m.register("$33",function(g,e,k){function l(){}g.create=function(d){d=l.prototype=new d;d.toString=function(){return"Google Translate"};d.getId=function(){return"google"};d.getUrl=function(){return"https://translate.google.com/"};d.parseError=function(c){if(c.error){for(var b=
|
178 |
+
[],a=c.error.errors||[],d=a.length,f=-1;++f<d;)b.push(a[f].message||"");return String(this)+" error "+c.error.code+": "+b.join(";")}return""};d.batch=function(c,b,a,d){function f(a){for(var f=c.length,e=-1,g;++e<f&&(g=a[e]||{},!1!==d(c[e],g.translatedText||"",b)););}var e=this;a=a?"html":"text";var g=e.mapLang(b,m.require("$43","google.json"));return e._call({url:"https://translation.googleapis.com/language/translate/v2?source=en&target="+g+"&format="+a,method:"POST",traditional:!0,data:{key:e.key(),
|
179 |
+
q:c}}).done(function(a,b,c){a.data?f(a.data.translations||[]):(e.stderr(e.parseError(a)||e.odderr(c)),f([]))}).fail(function(){f([])})};return new l};return g}({},y,w));m.register("$44",{nn:["no"],pt:["pt","pt-pt"],sr:["sr-Cyrl","sr-Latn"],sr_RS:["sr-Cyrl"],tlh:["tlh-Latn","tlh-Piqd"],zh:["zh-Hans","zh-Hant"],zh_CN:["zh-Hans"],zh_HK:["zh-Hans"],zh_SG:["zh-Hans"],zh_TW:["zh-Hant"]});m.register("$34",function(g,e,k){function l(){}g.create=function(d){d=l.prototype=new d;d.toString=function(){return"Microsoft Translator text API"};
|
180 |
+
d.getId=function(){return"microsoft"};d.getUrl=function(){return"https://aka.ms/MicrosoftTranslatorAttribution"};d.parseError=function(c){return c&&c.error?c.error.message:""};d.batch=function(c,b,a,d){function f(a){for(var f=-1,e;++f<k&&(e=a[f]||{},e=e.translations||[],e=e[0]||{},!1!==d(c[f],e.text||"",b)););}var e=this,g=[],k=c.length,l=-1;a=a?"html":"plain";for(var q=e.mapLang(b,m.require("$44","ms.json"));++l<k;)g.push({text:c[l]});return e._call({url:"https://api.cognitive.microsofttranslator.com/translate?api-version=3.0&from=en&to="+
|
181 |
+
q+"&textType="+a,method:"POST",data:JSON.stringify(g),headers:{"Content-Type":"application/json; charset=UTF-8","Ocp-Apim-Subscription-Key":this.key(),"Ocp-Apim-Subscription-Region":e.param("region")||"global"}}).done(function(a,b,c){a&&a.length?f(a):(e.stderr(e.parseError(a)||e.odderr(c)),f([]))}).fail(function(){f([])})};return new l};return g}({},y,w));m.register("$45",{pt:["pt-PT","pt-BR"]});m.register("$35",function(g,e,k){function l(){}g.create=function(d){d=l.prototype=new d;d.toString=function(){return"DeepL Translator"};
|
182 |
+
d.getId=function(){return"deepl"};d.getUrl=function(){return"https://www.deepl.com/translator"};d.parseError=function(c){return c.message};d.batch=function(c,b,a,d){function f(a){for(var f=c.length,e=-1,g;++e<f&&(g=a[e]||{},!1!==d(c[e],g.text||"",b)););}var e=this;a=e.mapLang(b,m.require("$45","deepl.json"));return e._call({url:"https://api.deepl.com/v2/translate",method:"POST",traditional:!0,data:{source_lang:"EN",target_lang:a.toUpperCase(),preserve_formatting:"1",auth_key:e.key(),text:c}}).done(function(a,
|
183 |
+
b,c){a.translations?f(a.translations):(e.stderr(e.parseError(a)||e.odderr(c)),f([]))}).fail(function(){f([])})};return new l};return g}({},y,w));m.register("$36",function(g,e,m){function l(){}g.create=function(d){(l.prototype=new d).batch=function(c,b,a,d){function f(a){for(var f=c.length,e=-1;++e<f&&!1!==d(c[e],a[e],b););}var g=e.loco.ajax;a={hook:this.getId(),type:a?"html":"text",locale:String(b),sources:c};var l=k.Deferred();this.abortable(g.post("apis",a,function(a){f(a&&a.targets||[]);l.resolve()},
|
184 |
+
function(){f([]);l.reject()}));return l.promise()};return new l};return g}({},y,w));m.register("$18",function(g,e,x){function l(){this.inf={}}function d(){var a=x.createElement("p"),b=/&(#\d+|#x[0-9a-f]|[a-z]+);/i,c=/<[a-z]+\s/i,d,e;return{sniff:function(g){if(g===d)return e;d=g;if(b.test(g)||c.test(g))if(a.innerHTML=g,a.textContent!==g)return e=!0;return e=!1}}}var c=l.prototype;c.init=function(a){this.inf=a||{}};c.param=function(a){return this.inf[a]||""};c.key=function(){return this.param("key")};
|
185 |
+
c.getId=function(){return this.param("id")||"none"};c.getUrl=function(){return this.param("url")||"#"};c.toString=function(){return this.param("name")||this.getId()};c.stderr=function(a){var b=(e.loco||{}).notices||e.console;b&&b.error&&b.error(String(a))};c.odderr=function(a){var b=String(this);return(a=a&&a.status)&&200!==a?b+(": Responded status "+a):b+": Unknown error"};c.parseError=function(a){return""};c.mapLang=function(a,b){var c=String(a).replace("-","_"),d=a.lang,e=b[c]||b[d]||[],g=e.length;
|
186 |
+
if(0===g)return d;if(1<g)for(var c=c.toLowerCase(),d=-1,k;++d<g;)if(k=e[d],k.toLowerCase().replace("-","_")===c)return k;return e[0]};c.translate=function(a,b,c){return this.batch([a],b,this.isHtml(a),c)};c.batch=function(){return{always:function(a){a()}}};c._call=function(a){var b=this;b.state=null;a.cache=!0;a.dataType="json";a.error=function(a,c,d){try{var e=a.responseText,g=e&&m.require("$5","json.js").parse(e);d=g&&b.parseError(g)||d}catch(k){}b.stderr(d?String(b)+": "+d:b.odderr(a))};return b.abortable(k.ajax(a))};
|
187 |
+
c.abortable=function(a){var b=this;a.always(function(){b.$r===a&&(b.$r=null)});return b.$r=a};c.abort=function(){var a=this.$r;a&&a.abort()};c.isHtml=function(a){return(b||(b=d())).sniff(a)};c.createJob=function(){return m.require("$31","job.js").create(this)};g.create=function(a){var b;b=a.id;b="yandex"===b?m.require("$32","yandex.js").create(l):"google"===b?m.require("$33","google.js").create(l):"microsoft"===b?m.require("$34","ms.js").create(l):"deepl"===b?m.require("$35","deepl.js").create(l):
|
188 |
+
m.require("$36","custom.js").create(l);b.init(a);return b};g.suggest=function(a,b,c,d){var e,g,k=a.length;for(e=0;e<k;e++)g=a[e],g.translate(b,c,d)};var b;return g}({},y,w));m.register("$19",function(g,e,m){g.init=function(g){function d(){H||(I.click(n),H=k('<div id="loco-fs-creds"></div>').dialog({dialogClass:"request-filesystem-credentials-dialog loco-modal",minWidth:580,modal:!0,autoOpen:!1,closeOnEscape:!0}).on("change",'input[name="connection_type"]',function(){this.checked&&k("#ssh-keys").toggleClass("hidden",
|
189 |
+
"ssh"!==k(this).val())}));return H}function c(){R&&(b(k(u)),R=!1);if(E&&G){var a=G,c=k(Q);c.find("span.loco-msg").text(a);K||(c.removeClass("jshide").hide().fadeIn(500),K=!0)}else K&&(b(k(Q)),K=!1)}function b(a){a.slideUp(250).fadeOut(250,function(){k(this).addClass("jshide")})}function a(){if(E)return H&&H.dialog("close"),c(),k(g).find('button[type="submit"]').attr("disabled",!1),k(e).triggerHandler("resize"),w&&w(!0),!0;A&&H?(R||(k(u).removeClass("jshide").hide().fadeIn(500),R=!0),K&&(b(k(Q)),K=
|
190 |
+
!1)):c();k(g).find('input[type="submit"]').attr("disabled",!0);w&&w(!1);return!1}function h(a){var b,c,d=v||{};for(b in d)d.hasOwnProperty(b)&&(c=d[b],a[b]?a[b].value=c:k('<input type="hidden" />').attr("name",b).appendTo(a).val(c))}function f(a){a.preventDefault();a=k(a.target).serializeArray();q(a);C=!0;return!1}function r(a){a.preventDefault();H.dialog("close");return!1}function n(a){a.preventDefault();H.dialog("open").find('input[name="connection_type"]').change();return!1}function s(b){E=b.authed;
|
191 |
+
z=b.method;k(u).find("span.loco-msg").text(b.message||"Something went wrong.");G=b.warning||"";b.notice&&p.notices.info(b.notice);if(E)"direct"!==z&&(v=b.creds,h(g),C&&b.success&&p.notices.success(b.success)),a();else if(b.reason)p.notices.info(b.reason);else if(b=b.prompt){var c=d();c.html(b).find("form").submit(f);c.dialog("option","title",c.find("h2").remove().text());c.find("button.cancel-button").show().click(r);c.find('input[type="submit"]').addClass("button-primary");a();k(e).triggerHandler("resize")}else p.notices.error("Server didn't return credentials, nor a prompt for credentials")}
|
192 |
+
function y(){a()}function q(a){C=!1;p.ajax.setNonce("fsConnect",N).post("fsConnect",a,s,y);return a}var v,w,u=g,z=null,C=!1,E=!1,p=e.loco,A=g.path.value,F=g.auth.value,N=g["loco-nonce"].value,I=k(u).find("button.button-primary"),Q=m.getElementById(u.id+"-warn"),R=!1,K=!1,G="",H;p.notices.convert(Q).stick();g.connection_type?(v={},v.connection_type=g.connection_type.value,E=!0):A&&F&&q({path:A,auth:F});a();return{applyCreds:function(a){if(a.nodeType)h(a);else{var b,c=v||{};for(b in c)c.hasOwnProperty(b)&&
|
193 |
+
(a[b]=c[b])}return this},setForm:function(b){g=b;a();h(b);return this},connect:function(){A=g.path.value;F=g.auth.value;q(k(g).serializeArray());return this},listen:function(a){w=a;E&&a(!0);return this}}};return g}({},y,w));m.register("$20",function(g,e,x){function l(e,f,g,k){f="n"===g?c(f):b(f);k&&(f=a(f));return d([].sort,[f])(e)}function d(a,b){return function(c){a.apply(c,b);return c}}function c(a){return function(b,c){var d=b&&b[a]||0,e=c&&c[a]||0;return d===e?0:d>e?1:-1}}function b(a){return function(b,
|
194 |
+
c){return(b&&b[a]||"").localeCompare(c&&c[a]||"")}}function a(a){return function(b,c){return-1*a(b,c)}}g.init=function(a){function b(a){var c=-1,d=a.length;for(k("tr",u).remove();++c<d;)u.appendChild(a[c].$)}function c(a){q=a?y.find(a,d):d.slice(0);x&&(a=e[x],q=l(q,x,a.type,a.desc));b(q)}var d=[],e=[],g=0,q,v,x,u=a.getElementsByTagName("tbody")[0],w=a.getElementsByTagName("thead")[0],y=m.require("$10","fulltext.js").init();w&&u&&(k("th",w).each(function(a,c){var h=c.getAttribute("data-sort-type");
|
195 |
+
h&&(a=g,k(c).addClass("loco-sort").click(function(c){c.preventDefault();c=a;var g=e[c],h=g.type,m=!(g.desc=!g.desc);q=l(q||d.slice(0),c,h,m);b(q);v&&v.removeClass("loco-desc loco-asc");v=k(g.$).addClass(m?"loco-desc":"loco-asc").removeClass(m?"loco-asc":"loco-desc");x=c;return!1}),e[g]={$:c,type:h});c.hasAttribute("colspan")?g+=Number(c.getAttribute("colspan")):g++}),k("tr",u).each(function(a,b){var c,f,g,h=[],k={_:a,$:b},l=b.getElementsByTagName("td");for(f in e){c=l[f];(g=c.textContent.replace(/(^\s+|\s+$)/g,
|
196 |
+
""))&&h.push(g);c.hasAttribute("data-sort-value")&&(g=c.getAttribute("data-sort-value"));switch(e[f].type){case "n":g=Number(g)}k[f]=g}d[a]=k;y.index(a,h)}),a=k('form.loco-filter input[type="text"]',a.parentNode),a.length&&(a=a[0],w=k(a.form),1<d.length?m.require("$11","LocoTextListener.js").listen(a,c):w.hide(),w.on("submit",function(a){a.preventDefault();return!1})))};return g}({},y,w));var C=y.loco||{},I=C.conf||{$v:[0,0]};y=m.require("$1","t.js").init();var G=I.wplang;C.version=function(g){return I.$v[g||
|
197 |
+
0]};m.require("$2","html.js");m.require("$3","number.js");m.require("$4","array.js");m.require("$5","json.js");C.l10n=y;y.load(I.wpl10n);G&&y.pluraleq(G.pluraleq);C.string=m.require("$6","string.js");C.notices=m.require("$7","notices.js").init(y);C.ajax=m.require("$8","ajax.js").init(I).localise(y);C.locale=m.require("$9","wplocale.js");C.fulltext=m.require("$10","fulltext.js");C.watchtext=m.require("$11","LocoTextListener.js").listen;C.tooltip=m.require("$12","tooltip.js");C.po={ed:m.require("$13",
|
198 |
+
"poedit.js"),kbd:m.require("$14","hotkeys.js"),init:m.require("$15","po.js").create,ace:m.require("$16","ace.js").strf("php"),ref:m.require("$17","refs.js")};C.apis=m.require("$18","apis.js");C.fs=m.require("$19","fsconn.js");k("#loco-admin.wrap table.wp-list-table").each(function(g,e){m.require("$20","tables.js").init(e)});C.validate=function(g,e){if("2.4.1"!==(/^\d+\.\d+\.\d+/.exec(g&&g[0]||"")&&RegExp.lastMatch))return C.notices.warn("admin.js is the wrong version (2.4.1). Please empty all relevant caches and reload this page."),
|
199 |
+
!1;for(var k=e.length,l,d,c=!0;0!==k--;)l=e[k],d=w.getElementById(l),null===d&&(C.notices.warn("Script element missing ("+l+")"),c=!1);return c}})(window,document,window.jQuery);
|
pub/js/min/debug.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(n,
|
1 |
+
!function(n,r){var e=n.conf,o=r("#loco-utf8-check")[0].textContent;function t(e,o,a){"success"!==o&&(a=n.ajax.parse(n.ajax.strip(e.responseText))),r("#loco-ajax-check").text("FAILED: "+a).addClass("loco-danger")}1===o.length&&10003===o.charCodeAt(0)||n.notices.warn("This page has a problem rendering UTF-8").stick(),window.ajaxurl&&r("#loco-ajax-url").text(window.ajaxurl),r("#loco-vers-jquery").text([r.fn&&r.fn.jquery||"unknown","ui/"+(r.ui&&r.ui.version||"none"),"migrate/"+(r.migrateVersion||"none")].join("; ")),n.ajax.post("ping",{echo:"ΟΚ ✓"},function(e,o,a){e&&e.ping?r("#loco-ajax-check").text(e.ping):t(a,o,e&&e.error&&e.error.message)},t);var a,i=e.apis,c=i.length,s=-1,l=n.locale.parse("fr");function u(e,o){return r("#loco-api-"+e).text(o)}function d(e){var a=e.getId();e.key()?e.translate("OK",l,function(e,o){o?u(a,"OK ✓"):u(a,"FAILED").addClass("loco-danger")}):u(a,"No API key")}if(n.apis)for(;++s<c;){a=i[s];try{d(n.apis.create(a))}catch(e){u(a.id,String(e))}}else n.notices.error("admin.js is out of date. Please empty your browser cache.")}(window.loco,window.jQuery);
|
pub/js/min/delete.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e
|
1 |
+
!function(o,e){var n=e.getElementById("loco-fs"),t=e.getElementById("loco-del");n&&t&&o.loco.fs.init(n).setForm(t)}(window,document,window.jQuery);
|
pub/js/min/editor.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(w,S){var C,t,_,n,D=w.locoScope,i=w.locoConf,p=!!i.WP_DEBUG,r=D.po.ref.init(D,i),l=null,a=null,o=i.multipart,z=D.l10n,b=D.string.sprintf,T=i.locale,m=D.po.init(T).wrap(i.powrap),s=!T,e=document.getElementById("loco-actions"),c=i.popath,u=i.potpath,d=document.getElementById("loco-fs"),f=d&&D.fs.init(d),g=!i.readonly,v=document.getElementById("loco-editor-inner"),h=i.apis||[],I={};function y(d){D.ajax.post("sync",l,function(t){var n=[],o=m,e=t.po,a=t.pot,i=D.po.init().load(e),r=o.merge(i),l=r.add.length,s=r.del.length,c=r.fuz.length,u=z;C.load(o),l||s||c?(a?n.push(b(u._("Merged from %s"),a)):n.push(u._("Merged from source code")),l&&n.push(b(u._n("1 new string added","%s new strings added",l),l)),s&&n.push(b(u._n("1 obsolete string removed","%s obsolete strings removed",s),s)),c&&n.push(b(u._n("1 string marked Fuzzy","%s strings marked Fuzzy",c),c)),S(v).trigger("poUnsaved",[]),F(),p&&w.console&&function(t,n){function o(t){var n=t.source(),o=t.context();return o?"["+o+"] "+n:n}var e=-1,a=n.add.length;for(;++e<a;)t.log(" + "+o(n.add[e]));for(a=n.del.length,e=0;e<a;e++)t.log(" - "+o(n.del[e]));for(a=n.fuz.length,e=0;e<a;e++)t.log(" ~ "+o(n.fuz[e]))}(console,r)):a?n.push(b(u._("Strings up to date with %s"),a)):n.push(u._("Strings up to date with source code")),D.notices.success(n.join(". ")),S(v).trigger("poMerge",[t]),d&&d()},d)}function j(){return t=t||function(){for(var t,n=-1,o=[],e=h,a=e.length;++n<a;)try{t=e[n],o.push(D.apis.create(t))}catch(t){D.notices.error(String(t))}return o}()}function x(){h.length?function(){var c=z,t=C.current(),n=C.getTargetOffset(),o=t&&t.source(null,n),u='lang="'+String(T)+'" dir="'+(T.isRTL()?"RTL":"LTR")+'"',d=99;if(!o)return;function e(t){return!t.isDefaultPrevented()&&(0<=(n=t.which-49)&&n<10&&(o=f&&f.find("button.button-primary").eq(n))&&1===o.length&&(t.stopPropagation(),o.click()),!0);var n,o}function a(t,n,o,e){var a=e.getId(),i=e.getUrl(),r=String(e),l=m&&m[a],s=S('<button class="button button-primary"></button>').attr("tabindex",String(++d)).text(c._("Use this translation")).on("click",function(e,a){return function(t){t.preventDefault(),t.stopPropagation(),p();var n=C.current(),o=C.getTargetOffset();n&&n.source(null,o)===e?(n.translate(a,o),C.focus().reloadMessage(n)):D.notices.warn("Source changed since suggestion")}}(t,n));l&&l.replaceWith(S('<div class="loco-api loco-api-'+a+'"></div>').append(S('<a class="loco-api-credit" target="_blank" tabindex="-1"></a>').attr("href",i).text(r)).append(S("<blockquote "+u+"></blockquote>").text(n||"FAILED")).append(s)),f.dialog("option","position",{my:"center",at:"center",of:w}),++y===v&&f&&f.dialog("option","title",c._("Suggested translations")+" — "+o.label),1===y&&s.focus(),s.attr("accesskey",String(y))}function p(t){f&&null==t&&f.dialog("close"),m=f=null,S(w).off("keydown",e)}function i(e){return function(t,n,o){a(t,b[e.getId()]=n,o,e)}}var f=(_=_||S('<div id="loco-hint"></div>').dialog({dialogClass:"loco-modal",modal:!0,autoOpen:!1,closeOnEscape:!0,resizable:!1,minHeight:400})).html("").append(S('<div class="loco-api"><p>Source text:</p></div>').append(S('<blockquote lang="en"></blockquote>').text(o))).dialog("option","title",c._("Loading suggestions")+"...").off("dialogclose").on("dialogclose",p).dialog("open"),r=t.translation(n);r&&S('<div class="loco-api"><p>Current translation:</p></div>').append(S("<blockquote "+u+"></blockquote>").text(r)).append(S('<button class="button"></button>').attr("tabindex",String(++d)).text(c._("Keep this translation")).on("click",function(t){t.preventDefault(),p()})).appendTo(f);var l,s,g=j(),v=g.length,h=-1,b=I[o]||(I[o]={}),m={},y=0;for(;++h<v;)l=g[h],f.append((x=l,void 0,k=S('<div class="loco-api loco-api-loading"></div>').text("Calling "+x+" ..."),m[x.getId()]=k)),s=l.getId(),b[s]?a(o,b[s],T,l):l.translate(o,T,i(l));var x,k;S(w).on("keydown",e)}():E()}function k(t){return t.preventDefault(),h.length?function(){var e,a,i,r=0,l=z,n=!1,s=M().dialog("open"),t=s.find("form"),c=t.find("button.button-primary"),o=S("#loco-job-progress");function u(){c[0].disabled=!0}function d(){c.removeClass("loco-loading")}function p(t){o.text(t)}function f(t){var n=function(t){for(var n,o=j(),e=o.length,a=-1;++a<e;)if((n=o[a]).getId()===t)return n;D.notices.error("No "+t+" client")}(S(t.api).val()),o=t.existing.checked;p("Calculating...."),(e=n.createJob()).init(m,o),a=n.toString(),p(b(l._("%s unique source strings."),e.length.format(0))+" "+b(l._("%s characters will be sent for translation."),e.chars.format(0))),e.length?c[0].disabled=!1:u(),i=null}function g(t){e&&(n&&t.fuzzy(0,!0),C.pasteMessage(t),t===C.active&&C.setStatus(t),C.unsave(t,0),r++)}function v(t,n){var o=n?100*t/n:0;p(b(l._("Translation progress %s%%"),o.format(0)))}function h(){if(d(),e&&i){var t=i.todo();t&&D.notices.warn(b(l._n("Translation job aborted with one string remaining","Translation job aborted with %s strings remaining",t),t.format(0))).slow();var n=[],o=i.did();o&&n.push(b(l._n("%s string translated via %s","%s strings translated via %s",o),o.format(0),a)),r?n.push(b(l._n("%s string updated","%s strings updated",r),r.format(0))):n.push(l._("Nothing needed updating")),D.notices.success(n.join(". ")).slow(),i=e=null}r&&(F(),C.rebuildSearch()),s&&(s.off("dialogclose").dialog("close"),s=null),C.fire("poAuto")}d(),u(),D.notices.clear(),t.off("submit change"),f(t[0]),t.on("change",function(t){var n=t.target,o=n.name;return"api"!==o&&"existing"!==o||f(n.form),!0}).on("submit",function(t){t.preventDefault(),c.addClass("loco-loading"),u(),v(r=0),n=t.target.fuzzy.checked,i=e.dispatch().done(h).each(g).prog(v).stat()}),s.off("dialogclose").on("dialogclose",function(){e.abort(),s=null,h()})}():E(),!1}function M(){return n||(n=S("#loco-auto")).dialog({dialogClass:"loco-modal",appendTo:"#loco.wrap",title:n.attr("title"),modal:!0,closeOnEscape:!0,resizable:!1,position:{my:"top",at:"top",of:"#loco-content"}}),n}function E(){M().dialog("open")}function U(n){var t=S.extend({locale:String(m.locale()||"")},a||{});f&&f.applyCreds(t),o?(t=function(t){var n,o=new FormData;for(n in t)t.hasOwnProperty(n)&&o.append(n,t[n]);return o}(t)).append("po",new Blob([String(m)],{type:"application/x-gettext"}),String(t.path).split("/").pop()||"untitled.po"):t.data=String(m),D.ajax.post("save",t,function(t){n&&n(),C.save(!0),S("#loco-po-modified").text(t.datetime||"[datetime error]")},n)}function q(){return z._("Your changes will be lost if you continue without saving")}function B(e,a){return e.disabled=!1,S(e).click(function(t){var n=e.form,o=c;return"binary"===a&&(o=o.replace(/\.po$/,".mo")),n.path.value=o,n.source.value=m.toString(),!0}),!0}function L(t){return t.preventDefault(),!1}function F(){var t=z,n=C.stats(),o=n.t,e=n.f,a=n.u,i=b(t._n("1 string","%s strings",o),o.format(0)),r=[];T&&(i=b(t._("%s%% translated"),n.p.replace("%",""))+", "+i,e&&r.push(b(t._("%s fuzzy"),e.format(0))),a&&r.push(b(t._("%s untranslated"),a.format(0))),r.length&&(i+=" ("+r.join(", ")+")")),S("#loco-po-status").text(i)}!o||w.FormData&&w.Blob||(o=!1,D.notices.warn("Your browser doesn't support Ajax file uploads. Falling back to standard postdata"));var N,O,P=(O=parseInt(S(v).css("min-height")||0),function(){var t=function(t,n){for(var o=t.offsetTop||0;(t=t.offsetParent)&&t!==n;)o+=t.offsetTop||0;return o}(v,document.body),n=w.innerHeight,o=Math.max(O,n-t-20);N!==o&&(v.style.height=String(o)+"px",N=o)});P(),S(w).resize(P),v.innerHTML="",C=D.po.ed.init(v).localise(z),D.po.kbd.init(C).add("save",function(){C.dirty&&U()}).add("hint",T&&g&&x||L).enable("copy","clear","enter","next","prev","fuzzy","save","invis","hint");var A={save:g&&function(n){function o(){n.disabled=!0}function t(){n.disabled=!1}function e(){t(),S(n).removeClass("loco-loading")}return n,C.on("poUnsaved",function(){t(),S(n).addClass("button-primary loco-flagged")}).on("poSave",function(){o(),S(n).removeClass("button-primary loco-flagged")}),a=S.extend({path:c},i.project||{}),S(n).click(function(t){return t.preventDefault(),o(),S(n).addClass("loco-loading"),U(e),!1}),!0},sync:g&&function(n){var t=i.project;if(t){function o(){n.disabled=!0}function e(){n.disabled=!1}function a(){e(),S(n).removeClass("loco-loading")}C.on("poUnsaved",function(){o()}).on("poSave",function(){e()}),l={bundle:t.bundle,domain:t.domain,type:s?"pot":"po",sync:u||""},S(n).click(function(t){return t.preventDefault(),o(),S(n).addClass("loco-loading"),y(a),!1}),e()}return!0},revert:function(t){return C.on("poUnsaved",function(){t.disabled=!1}).on("poSave",function(){t.disabled=!0}),S(t).click(function(t){return t.preventDefault(),location.reload(),!1}),!0},invs:function(t){var o=S(t);return t.disabled=!1,C.on("poInvs",function(t,n){o[n?"addClass":"removeClass"]("inverted")}),o.click(function(t){return t.preventDefault(),C.setInvs(!C.getInvs()),!1}),locoScope.tooltip.init(o),!0},code:function(t){var o=S(t);return t.disabled=!1,o.click(function(t){t.preventDefault();var n=!C.getMono();return o[n?"addClass":"removeClass"]("inverted"),C.setMono(n),!1}),locoScope.tooltip.init(o),!0},source:B,binary:s?null:B};s?(A.add=g&&function(t){return t.disabled=!1,S(t).click(function(t){t.preventDefault();var n,o=1,e=/(\d+)$/;for(n="New message";m.get(n);)o=e.exec(n)?Math.max(o,RegExp.$1):o,n="New message "+ ++o;return C.add(n),!1}),!0},A.del=g&&function(t){return t.disabled=!1,S(t).click(function(t){return t.preventDefault(),C.del(),!1}),!0}):A.auto=function(t){function n(){t.disabled=!1}return C.on("poUnsaved",function(){t.disabled=!0}).on("poSave poAuto",function(){n()}),S(t).click(k),n(),!0},S("#loco-toolbar").find("button").each(function(t,n){var o=n.getAttribute("data-loco"),e=A[o];e&&e(n,o)||S(n).hide()}),S(e).submit(L),function(n){function e(t){S(n.parentNode)[t||null==t?"removeClass":"addClass"]("invalid")}C.searchable(D.fulltext.init()),n.disabled=!1,n.value="";var a=D.watchtext(n,function(t){e(C.filter(t,!0))});C.on("poFilter",function(t,n,o){a.val(n||""),e(o)}).on("poMerge",function(t,n){var o=a.val();o&&C.filter(o)})}(document.getElementById("loco-search")),C.on("poUnsaved",function(){w.onbeforeunload=q}).on("poSave",function(){F(),w.onbeforeunload=null}).on("poHint",x).on("poUpdate",F).on("poMeta",function(t,n){var o,e,a=(e="CODE",(o=n).tagName===e?o:o.getElementsByTagName(e)[0]);return!a||(r.load(a.textContent),t.preventDefault(),!1)}),m.load(i.podata),C.load(m),(T=C.targetLocale)?T.isRTL()&&S(v).addClass("trg-rtl"):C.unlock(),F(),delete w.locoConf,i=A=null}(window,jQuery);
|
1 |
+
!function(k,S){var _=k.loco,i=_&&_.conf,p=document.getElementById("loco-editor-inner");if(_&&i&&p){var C,t,D,n,f=!!i.WP_DEBUG,r=_.po.ref&&_.po.ref.init(_,i),l=null,a=null,o=i.multipart,z=_.l10n,b=_.string.sprintf,T=i.locale,m=_.po.init(T).wrap(i.powrap),s=!T,e=document.getElementById("loco-actions"),c=i.popath,u=i.potpath,d=document.getElementById("loco-fs"),g=d&&_.fs.init(d),v=!i.readonly,h=i.apis||[],I={};!o||k.FormData&&k.Blob||(o=!1,_.notices.warn("Your browser doesn't support Ajax file uploads. Falling back to standard postdata")),r||_.notices.warn("admin.js is out of date. Please empty your browser cache and reload the page.");var y,w,x=(w=parseInt(S(p).css("min-height")||0),function(){var t=function(t,n){for(var o=t.offsetTop||0;(t=t.offsetParent)&&t!==n;)o+=t.offsetTop||0;return o}(p,document.body),n=k.innerHeight,o=Math.max(w,n-t-20);y!==o&&(p.style.height=String(o)+"px",y=o)});x(),S(k).resize(x),p.innerHTML="",C=_.po.ed.init(p).localise(z),_.po.kbd.init(C).add("save",v?function(){C.dirty&&F()}:P).add("hint",T&&v&&U||P).enable("copy","clear","enter","next","prev","fuzzy","save","invis","hint");var j={save:v&&function(n){function o(){n.disabled=!0}function t(){n.disabled=!1}function e(){t(),S(n).removeClass("loco-loading")}return n,C.on("poUnsaved",function(){t(),S(n).addClass("button-primary")}).on("poSave",function(){o(),S(n).removeClass("button-primary")}),a=S.extend({path:c},i.project||{}),S(n).click(function(t){return t.preventDefault(),o(),S(n).addClass("loco-loading"),F(e),!1}),!0},sync:v&&function(n){var t=i.project;if(t){function o(){n.disabled=!0}function e(){n.disabled=!1}function a(){e(),S(n).removeClass("loco-loading")}C.on("poUnsaved",function(){o()}).on("poSave",function(){e()}),l={bundle:t.bundle,domain:t.domain,type:s?"pot":"po",sync:u||""},S(n).click(function(t){return t.preventDefault(),o(),S(n).addClass("loco-loading"),M(a),!1}),e()}return!0},revert:function(t){return C.on("poUnsaved",function(){t.disabled=!1}).on("poSave",function(){t.disabled=!0}),S(t).click(function(t){return t.preventDefault(),location.reload(),!1}),!0},invs:function(t){var o=S(t);return t.disabled=!1,C.on("poInvs",function(t,n){o[n?"addClass":"removeClass"]("inverted")}),o.click(function(t){return t.preventDefault(),C.setInvs(!C.getInvs()),!1}),_.tooltip.init(o),!0},code:function(t){var o=S(t);return t.disabled=!1,o.click(function(t){t.preventDefault();var n=!C.getMono();return o[n?"addClass":"removeClass"]("inverted"),C.setMono(n),!1}),_.tooltip.init(o),!0},source:O,binary:s?null:O};s?(j.add=v&&function(t){return t.disabled=!1,S(t).click(function(t){t.preventDefault();var n,o=1,e=/(\d+)$/;for(n="New message";m.get(n);)o=e.exec(n)?Math.max(o,RegExp.$1):o,n="New message "+ ++o;return C.add(n),!1}),!0},j.del=v&&function(t){return t.disabled=!1,S(t).click(function(t){return t.preventDefault(),C.del(),!1}),!0}):j.auto=function(t){function n(){t.disabled=!1}return C.on("poUnsaved",function(){t.disabled=!0}).on("poSave poAuto",function(){n()}),S(t).click(q),n(),!0},S("#loco-toolbar").find("button").each(function(t,n){var o=n.getAttribute("data-loco"),e=j[o];e&&e(n,o)||S(n).addClass("loco-noop")}),S(e).submit(P),function(n){function e(t){S(n.parentNode)[t||null==t?"removeClass":"addClass"]("invalid")}C.searchable(_.fulltext.init()),n.disabled=!1,n.value="";var a=_.watchtext(n,function(t){e(C.filter(t,!0))});C.on("poFilter",function(t,n,o){a.val(n||""),e(o)}).on("poMerge",function(t,n){var o=a.val();o&&C.filter(o)})}(document.getElementById("loco-search")),C.on("poUnsaved",function(){k.onbeforeunload=N}).on("poSave",function(){A(),k.onbeforeunload=null}).on("poHint",U).on("poUpdate",A).on("poMeta",function(t,n){var o,e,a=(e="CODE",(o=n).tagName===e?o:o.getElementsByTagName(e)[0]);return!a||!r||(r.load(a.textContent),t.preventDefault(),!1)}),m.load(i.podata),C.load(m),(T=C.targetLocale)?T.isRTL()&&S(p).addClass("trg-rtl"):C.unlock(),A(),delete _.conf,i=j=null}function M(d){_.ajax.post("sync",l,function(t){var n=[],o=m,e=t.po,a=t.pot,i=_.po.init().load(e),r=o.merge(i),l=r.add.length,s=r.del.length,c=r.fuz.length,u=z;C.load(o),l||s||c?(a?n.push(b(u._("Merged from %s"),a)):n.push(u._("Merged from source code")),l&&n.push(b(u._n("1 new string added","%s new strings added",l),l)),s&&n.push(b(u._n("1 obsolete string removed","%s obsolete strings removed",s),s)),c&&n.push(b(u._n("1 string marked Fuzzy","%s strings marked Fuzzy",c),c)),S(p).trigger("poUnsaved",[]),A(),f&&k.console&&function(t,n){function o(t){var n=t.source(),o=t.context();return o?"["+o+"] "+n:n}var e=-1,a=n.add.length;for(;++e<a;)t.log(" + "+o(n.add[e]));for(a=n.del.length,e=0;e<a;e++)t.log(" - "+o(n.del[e]));for(a=n.fuz.length,e=0;e<a;e++)t.log(" ~ "+o(n.fuz[e]))}(console,r)):a?n.push(b(u._("Strings up to date with %s"),a)):n.push(u._("Strings up to date with source code")),_.notices.success(n.join(". ")),S(p).trigger("poMerge",[t]),d&&d()},d)}function E(){return t=t||function(){for(var t,n=-1,o=[],e=h,a=e.length;++n<a;)try{t=e[n],o.push(_.apis.create(t))}catch(t){_.notices.error(String(t))}return o}()}function U(){h.length?function(){var c=z,t=C.current(),n=C.getTargetOffset(),o=t&&t.source(null,n),u='lang="'+String(T)+'" dir="'+(T.isRTL()?"RTL":"LTR")+'"',d=99;if(!o)return;function e(t){return!t.isDefaultPrevented()&&(0<=(n=t.which-49)&&n<10&&(o=f&&f.find("button.button-primary").eq(n))&&1===o.length&&(t.stopPropagation(),o.click()),!0);var n,o}function a(t,n,o,e){var a=e.getId(),i=e.getUrl(),r=String(e),l=m&&m[a],s=S('<button class="button button-primary"></button>').attr("tabindex",String(++d)).text(c._("Use this translation")).on("click",function(e,a){return function(t){t.preventDefault(),t.stopPropagation(),p();var n=C.current(),o=C.getTargetOffset();n&&n.source(null,o)===e?(n.translate(a,o),C.focus().reloadMessage(n)):_.notices.warn("Source changed since suggestion")}}(t,n));l&&l.replaceWith(S('<div class="loco-api loco-api-'+a+'"></div>').append(S('<a class="loco-api-credit" target="_blank" tabindex="-1"></a>').attr("href",i).text(r)).append(S("<blockquote "+u+"></blockquote>").text(n||"FAILED")).append(s)),f.dialog("option","position",{my:"center",at:"center",of:k}),++y===v&&f&&f.dialog("option","title",c._("Suggested translations")+" — "+o.label),1===y&&s.focus(),s.attr("accesskey",String(y))}function p(t){f&&null==t&&f.dialog("close"),m=f=null,S(k).off("keydown",e)}function i(e){return function(t,n,o){a(t,b[e.getId()]=n,o,e)}}var f=(D=D||S('<div id="loco-hint"></div>').dialog({dialogClass:"loco-modal",modal:!0,autoOpen:!1,closeOnEscape:!0,resizable:!1,minHeight:400})).html("").append(S('<div class="loco-api"><p>Source text:</p></div>').append(S('<blockquote lang="en"></blockquote>').text(o))).dialog("option","title",c._("Loading suggestions")+"...").off("dialogclose").on("dialogclose",p).dialog("open"),r=t.translation(n);r&&S('<div class="loco-api"><p>Current translation:</p></div>').append(S("<blockquote "+u+"></blockquote>").text(r)).append(S('<button class="button"></button>').attr("tabindex",String(++d)).text(c._("Keep this translation")).on("click",function(t){t.preventDefault(),p()})).appendTo(f);var l,s,g=E(),v=g.length,h=-1,b=I[o]||(I[o]={}),m={},y=0;for(;++h<v;)l=g[h],f.append((w=l,void 0,x=S('<div class="loco-api loco-api-loading"></div>').text("Calling "+w+" ..."),m[w.getId()]=x)),s=l.getId(),b[s]?a(o,b[s],T,l):l.translate(o,T,i(l));var w,x;S(k).on("keydown",e)}():L()}function q(t){return t.preventDefault(),h.length?function(){var e,a,i,r=0,l=z,n=!1,s=B().dialog("open"),t=s.find("form"),c=t.find("button.button-primary"),o=S("#loco-job-progress");function u(){c[0].disabled=!0}function d(){c.removeClass("loco-loading")}function p(t){o.text(t)}function f(t){var n=function(t){for(var n,o=E(),e=o.length,a=-1;++a<e;)if((n=o[a]).getId()===t)return n;_.notices.error("No "+t+" client")}(S(t.api).val()),o=t.existing.checked;p("Calculating...."),(e=n.createJob()).init(m,o),a=n.toString(),p(b(l._("%s unique source strings."),e.length.format(0))+" "+b(l._("%s characters will be sent for translation."),e.chars.format(0))),e.length?c[0].disabled=!1:u(),i=null}function g(t){e&&(n&&t.fuzzy(0,!0),C.pasteMessage(t),t===C.active&&C.setStatus(t),C.unsave(t,0),r++)}function v(t,n){var o=n?100*t/n:0;p(b(l._("Translation progress %s%%"),o.format(0)))}function h(){if(d(),e&&i){var t=i.todo();t&&_.notices.warn(b(l._n("Translation job aborted with one string remaining","Translation job aborted with %s strings remaining",t),t.format(0))).slow();var n=[],o=i.did();o&&n.push(b(l._n("%s string translated via %s","%s strings translated via %s",o),o.format(0),a)),r?n.push(b(l._n("%s string updated","%s strings updated",r),r.format(0))):n.push(l._("Nothing needed updating")),_.notices.success(n.join(". ")).slow(),i=e=null}r&&(A(),C.rebuildSearch()),s&&(s.off("dialogclose").dialog("close"),s=null),C.fire("poAuto")}d(),u(),_.notices.clear(),t.off("submit change"),f(t[0]),t.on("change",function(t){var n=t.target,o=n.name;return"api"!==o&&"existing"!==o||f(n.form),!0}).on("submit",function(t){t.preventDefault(),c.addClass("loco-loading"),u(),v(r=0),n=t.target.fuzzy.checked,i=e.dispatch().done(h).each(g).prog(v).stat()}),s.off("dialogclose").on("dialogclose",function(){e.abort(),s=null,h()})}():L(),!1}function B(){return n||(n=S("#loco-auto")).dialog({dialogClass:"loco-modal",appendTo:"#loco-admin.wrap",title:n.attr("title"),modal:!0,closeOnEscape:!0,resizable:!1,position:{my:"top",at:"top",of:"#loco-content"}}),n}function L(){B().dialog("open")}function F(n){var t=S.extend({locale:String(m.locale()||"")},a||{});g&&g.applyCreds(t),o?(t=function(t){var n,o=new FormData;for(n in t)t.hasOwnProperty(n)&&o.append(n,t[n]);return o}(t)).append("po",new Blob([String(m)],{type:"application/x-gettext"}),String(t.path).split("/").pop()||"untitled.po"):t.data=String(m),_.ajax.post("save",t,function(t){n&&n(),C.save(!0),S("#loco-po-modified").text(t.datetime||"[datetime error]")},n)}function N(){return z._("Your changes will be lost if you continue without saving")}function O(e,a){return e.disabled=!1,S(e).click(function(t){var n=e.form,o=c;return"binary"===a&&(o=o.replace(/\.po$/,".mo")),n.path.value=o,n.source.value=m.toString(),!0}),!0}function P(t){return t.preventDefault(),!1}function A(){var t=z,n=C.stats(),o=n.t,e=n.f,a=n.u,i=b(t._n("1 string","%s strings",o),o.format(0)),r=[];T&&(i=b(t._("%s%% translated"),n.p.replace("%",""))+", "+i,e&&r.push(b(t._("%s fuzzy"),e.format(0))),a&&r.push(b(t._("%s untranslated"),a.format(0))),r.length&&(i+=" ("+r.join(", ")+")")),S("#loco-po-status").text(i)}}(window,window.jQuery);
|
pub/js/min/move.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e,
|
1 |
+
!function(t,e,o){var c,u,i=e.getElementById("loco-fs"),a=e.getElementById("loco-move"),l=a.path.value;function d(n){o(a).find("button.button-primary").each(function(t,e){e.disabled=n})}i&&a&&(c=t.loco.fs.init(i).setForm(a).listen(function(t){d(!(t&&u))}),o(a).change(function(t){var e,n=t.target||{};"dest"!==n.name||!n.checked&&"text"!==n.type||(e=n.value)&&e!==u&&(u=e,d(!0),l!==e&&(i.dest.value=e,c.connect()))}).submit(function(t){return!!u||(t.preventDefault(),!1)}))}(window,document,jQuery);
|
pub/js/min/podiff.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e,t,u){var i,o=[],n=e.
|
1 |
+
!function(e,t,u){var i,o=[],n=e.loco,s=n.conf,a=0,r=s.paths.length-2,d=t.getElementById("loco-ui"),f=t.getElementById("loco-fs"),l=d.getElementsByTagName("form").item(0),m=d.getElementsByTagName("button"),c=u(d).find("div.diff-meta"),g=m.item(0),p=m.item(1);function h(){return u(d).removeClass("loading")}function v(e){return u(d).find("div.diff").html(e)}function C(e){return h(),u('<p class="error"></p>').text(e).appendTo(v(""))}function y(e,t){var n,a=t.getElementsByTagName("tr"),r=a.length,i=t.getAttribute("data-diff").split(/\D+/),o=i[0],s=i[1],d=i[2],f=i[3];function l(e,t,n){t<=n&&u("<span></span>").text(String(t)).prependTo(e)}for(e=0;e<r;e++)l((n=a[e].getElementsByTagName("td"))[0],o++,s),l(n[2],d++,f)}function j(a){i&&i.abort();var r=o[a];if(null!=r)return v(r),void h();v(""),u(d).addClass("loading"),i=n.ajax.post("diff",{lhs:s.paths[a],rhs:s.paths[a+1]},function(e,t,n){n===i&&((r=e&&e.html)?(v(o[a]=r).find("tbody").each(y),h()):C(e&&e.error||"Unknown error"))},function(e,t,n){e===i&&(i=null,C("Failed to generate diff"))})}function b(e){0<=e&&e<=r&&(j(a=e),function(){var e=a,t=e+1;g.disabled=r<=e,p.disabled=e<=0,c.addClass("jshide").removeClass("diff-meta-current"),c.eq(e).removeClass("jshide").addClass("diff-meta-current"),c.eq(t).removeClass("jshide")}())}f&&l&&n.fs.init(f).setForm(l),r&&(u(g).click(function(e){return e.preventDefault(),b(a+1),!1}).parent().removeClass("jshide"),u(p).click(function(e){return e.preventDefault(),b(a-1),!1}).parent().removeClass("jshide")),b(0)}(window,document,jQuery);
|
pub/js/min/poinit.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(t,
|
1 |
+
!function(t,n,c){var i,e,a,l,o,r,u,s=t.loco,f=n.getElementById("loco-fs"),d=n.getElementById("loco-poinit"),v=f&&s.fs.init(f),g=(a=(e=d)["select-locale"],l=e["custom-locale"],o=e["use-selector"],r=c(a).focus(p).closest("fieldset").click(p)[0],u=c(l).focus(x).closest("fieldset").click(x)[0],c(o).change(m),m(),s.watchtext(l,function(t){c(l.form).triggerHandler("change")}),{val:function(){var t=b();return t?s.locale.parse(t):s.locale.clone({lang:"zxx"})}});function h(){return o[0].checked}function p(){y(o[0].checked=!0)}function x(){l.value||(l.value=b()),y(!(o[1].checked=!0))}function b(){var t=c(h()?a:l).serializeArray();return t[0]&&t[0].value||""}function m(){return y(h()),!0}function y(t){l.disabled=t,a.disabled=!t,u.className=t?"disabled":"active",r.className=t?"active":"disabled",I()}var z,A=(z=d["select-path"],{val:function(){var t=k("path");return t&&t.value},txt:function(){var t=k("path");return t&&c(t.parentNode).find("code.path").text()}});function k(t){var n=function(){var t=c(z).serializeArray()[0];return t&&t.value||null}();return n&&d[t+"["+n+"]"]}function w(e){c(d).find("button.button-primary").each(function(t,n){n.disabled=e})}function I(){var t=g&&g.val(),n=t&&t.isValid()&&"zxx"!==t.lang,e=A&&A.val(),a=n&&e;if(j(t),w(!0),a){var c=A.txt();c!==i?(i=c,f.path.value=i,v.listen(N).connect()):w(!1)}}function N(t){w(!t)}function j(e){var t=c(d),n=e&&e.toString("_")||"",a=n?"zxx"===n?"<locale>":n:"<invalid>";t.find("code.path span").each(function(t,n){n.textContent=a}),t.find("span.lang").each(function(t,n){!function(t,n){n&&"zxx"!==n.lang?(t.setAttribute("lang",n.lang),t.setAttribute("class",n.getIcon())):(t.setAttribute("lang",""),t.setAttribute("class","lang nolang"))}(n,e)})}function B(t){var n=t&&t.redirect;n&&location.assign(n)}c(d).change(I).submit(function(t){return t.preventDefault(),v.applyCreds(d),s.ajax.submit(t.target,B),!1}),j(g.val())}(window,document,jQuery);
|
pub/js/min/potinit.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(t,e,n){var o=t.
|
1 |
+
!function(t,e,n){var o=t.loco,i=e.getElementById("loco-fs"),r=e.getElementById("loco-potinit");function c(t){var e=t&&t.redirect;e&&location.assign(e)}n(r).submit(function(t){return t.preventDefault(),o.ajax.submit(t.target,c),!1}),i&&o.fs.init(i).setForm(r)}(window,document,jQuery);
|
pub/js/min/poview.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(
|
1 |
+
!function(e,o,f){var a,c,i,l,r,p,n,s,u,d=e.loco,t=d.conf,h=d.po.ref.init(d,t),v=o.getElementById("loco-po");function g(){r.length&&(p.push([i,l]),c.push(r),r=[]),i=null}function m(t){return f('<ol class="msgcat"></ol>').attr("start",t).appendTo(a)}function x(t){n!==t&&(f("#loco-content")[t?"removeClass":"addClass"]("loco-invalid"),n=t)}a=v,c=d.fulltext.init(),r=[],p=[],s=!(n=!0),(u=f(a).find("li")).each(function(t,n){var e,o=f(n);o.find("span.po-none").length?g():(l=t,null==i&&(i=t),(e=o.find(".po-text").text())&&(r=r.concat(e.replace(/\\[ntvfab\\"]/g," ").split(" "))))}),g(),d.watchtext(f(a.parentNode).find("form.loco-filter")[0].q,function(t){t?function(t){var n,e,o,i=c.find(t),l=-1,r=i.length;if(f("ol",a).remove(),r){for(;++l<r;)for(o=m((n=(e=p[i[l]])[0])+1);n<=e[1];n++)o.append(u[n]);x(!0)}else x(!1),m(0).append(f("<li></li>").text(d.l10n._("Nothing matches the text filter")));s=!0,C()}(t):s&&(x(!0),s=!1,f("ol",a).remove(),m(1).append(u),C())}),f(v).removeClass("loco-loading");var w,y,C=(y=v.clientHeight-2,function(){var t=function(t,n){for(var e=t.offsetTop||0;(t=t.offsetParent)&&t!==n;)e+=t.offsetTop||0;return e}(v,o.body),n=e.innerHeight-t-20;w!==n&&(v.style.height=n<y?String(n)+"px":"",w=n)});C(),f(e).resize(C),f(v).click(function(t){var n=t.target;if(n.hasAttribute("href"))return t.preventDefault(),h.load(n.textContent),!1})}(window,document,window.jQuery);
|
pub/js/min/setup.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e,o,a){function n(e,o,n){function r(){i("Failed to contact remote API"),c=null}function u(){c&&(clearTimeout(c),c=null)}var c=setTimeout(r,3e3);return i(""),a.ajax({url:s.apiUrl+"/"+e+"/"+o+".jsonp?version="+encodeURIComponent(n),dataType:"jsonp",success:function(e,o,n){if(c){u();var t=e&&e.exact;o=e&&e.status;t?function(e){d["json-content"].value=e,a("#loco-remote-empty").hide(),a("#loco-remote-found").show()}(t):404===o?i("Sorry, we don't know a bundle by this name"):(l.notices.debug(e.error||"Unknown server error"),r())}},error:function(){c&&(u(),r())},cache:!0}),{abort:u}}function i(e){d["json-content"].value="",a("#loco-remote-empty").show().find("span").text(e),a("#loco-remote-found").hide().removeClass("jshide")}var t,l=e.
|
1 |
+
!function(e,o,a){function n(e,o,n){function r(){i("Failed to contact remote API"),c=null}function u(){c&&(clearTimeout(c),c=null)}var c=setTimeout(r,3e3);return i(""),a.ajax({url:s.apiUrl+"/"+e+"/"+o+".jsonp?version="+encodeURIComponent(n),dataType:"jsonp",success:function(e,o,n){if(c){u();var t=e&&e.exact;o=e&&e.status;t?function(e){d["json-content"].value=e,a("#loco-remote-empty").hide(),a("#loco-remote-found").show()}(t):404===o?i("Sorry, we don't know a bundle by this name"):(l.notices.debug(e.error||"Unknown server error"),r())}},error:function(){c&&(u(),r())},cache:!0}),{abort:u}}function i(e){d["json-content"].value="",a("#loco-remote-empty").show().find("span").text(e),a("#loco-remote-found").hide().removeClass("jshide")}var t,l=e.loco,s=l.conf,d=o.getElementById("loco-remote");a(d).find('button[type="button"]').click(function(e){return e.preventDefault(),t&&t.abort(),t=n(d.vendor.value,d.slug.value,d.version.value),!1}),a(d).find('input[type="reset"]').click(function(e){return e.preventDefault(),i(""),!1});a.ajax({url:s.apiUrl+"/vendors.jsonp",dataType:"jsonp",success:function(e){for(var o,n,t=-1,r=e.length,u=a(d.vendor).html("");++t<r;)o=e[t][0],n=e[t][1],u.append(a("<option></option>").attr("value",o).text(n))},cache:!0})}(window,document,jQuery);
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: timwhitlock
|
|
3 |
Tags: translation, translators, localization, localisation, l10n, i18n, Gettext, PO, MO, productivity, multilingual, internationalization
|
4 |
Requires at least: 4.1
|
5 |
Requires PHP: 5.2.4
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 2.4.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -20,7 +20,7 @@ It also provides localization tools for developers, such as extracting strings a
|
|
20 |
Features include:
|
21 |
|
22 |
* Built-in translation editor within WordPress admin
|
23 |
-
* Integration with automatic translation APIs
|
24 |
* Create and update language files directly in your theme or plugin
|
25 |
* Extraction of translatable strings from your source code
|
26 |
* Native MO file compilation without the need for Gettext on your system
|
@@ -100,6 +100,16 @@ We don't collect your data or snoop on you. See the [plugin privacy notice](http
|
|
100 |
|
101 |
== Changelog ==
|
102 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
= 2.4.0
|
104 |
* Added support for third party translation APIs
|
105 |
* Added file references to editor source pane in code view
|
@@ -343,8 +353,8 @@ We don't collect your data or snoop on you. See the [plugin privacy notice](http
|
|
343 |
|
344 |
== Upgrade Notice ==
|
345 |
|
346 |
-
= 2.4.
|
347 |
-
* Various improvements
|
348 |
|
349 |
|
350 |
|
3 |
Tags: translation, translators, localization, localisation, l10n, i18n, Gettext, PO, MO, productivity, multilingual, internationalization
|
4 |
Requires at least: 4.1
|
5 |
Requires PHP: 5.2.4
|
6 |
+
Tested up to: 5.5
|
7 |
+
Stable tag: 2.4.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
20 |
Features include:
|
21 |
|
22 |
* Built-in translation editor within WordPress admin
|
23 |
+
* Integration with multiple automatic translation APIs
|
24 |
* Create and update language files directly in your theme or plugin
|
25 |
* Extraction of translatable strings from your source code
|
26 |
* Native MO file compilation without the need for Gettext on your system
|
100 |
|
101 |
== Changelog ==
|
102 |
|
103 |
+
= 2.4.1
|
104 |
+
* Fixed mapping of some API languages
|
105 |
+
* Added locale filter to user preferences
|
106 |
+
* Added debugging for credential form failures
|
107 |
+
* Fixed deprecated use of array_key_exists
|
108 |
+
* Added DeepL API service provider
|
109 |
+
* Improved script tampering detection
|
110 |
+
* Bumped WordPress version to 5.5
|
111 |
+
* Added "modern" skin styles
|
112 |
+
|
113 |
= 2.4.0
|
114 |
* Added support for third party translation APIs
|
115 |
* Added file references to editor source pane in code view
|
353 |
|
354 |
== Upgrade Notice ==
|
355 |
|
356 |
+
= 2.4.1 =
|
357 |
+
* Various improvements and bugfixes
|
358 |
|
359 |
|
360 |
|
src/Locale.php
CHANGED
@@ -76,14 +76,18 @@ class Loco_Locale implements JsonSerializable {
|
|
76 |
* @param string
|
77 |
*/
|
78 |
public function __construct( $lang = '', $region = '', $variant = '' ){
|
|
|
|
|
|
|
79 |
$this->tag = compact('lang','region','variant');
|
80 |
}
|
81 |
|
82 |
|
83 |
-
|
84 |
/**
|
85 |
-
* @internal
|
86 |
* Allow read access to subtags
|
|
|
|
|
|
|
87 |
*/
|
88 |
public function __get( $t ){
|
89 |
return isset($this->tag[$t]) ? $this->tag[$t] : '';
|
@@ -91,8 +95,11 @@ class Loco_Locale implements JsonSerializable {
|
|
91 |
|
92 |
|
93 |
/**
|
94 |
-
* @internal
|
95 |
* Allow write access to subtags
|
|
|
|
|
|
|
|
|
96 |
*/
|
97 |
public function __set( $t, $s ){
|
98 |
if( isset($this->tag[$t]) ){
|
@@ -104,6 +111,7 @@ class Loco_Locale implements JsonSerializable {
|
|
104 |
|
105 |
/**
|
106 |
* Set subtags as produced from loco_parse_wp_locale
|
|
|
107 |
* @return Loco_Locale
|
108 |
*/
|
109 |
public function setSubtags( array $tag ){
|
@@ -176,7 +184,8 @@ class Loco_Locale implements JsonSerializable {
|
|
176 |
* @return string | null
|
177 |
*/
|
178 |
public function getName(){
|
179 |
-
|
|
|
180 |
// use canonical native name only when current language matches
|
181 |
// deliberately not matching whole tag such that fr_CA would show native name of fr_FR
|
182 |
if( $_name = $this->getNativeName() ){
|
@@ -187,6 +196,7 @@ class Loco_Locale implements JsonSerializable {
|
|
187 |
}
|
188 |
return $name;
|
189 |
}
|
|
|
190 |
}
|
191 |
|
192 |
|
@@ -195,9 +205,11 @@ class Loco_Locale implements JsonSerializable {
|
|
195 |
* @return string | null
|
196 |
*/
|
197 |
public function getNativeName(){
|
198 |
-
|
|
|
199 |
return $name;
|
200 |
}
|
|
|
201 |
}
|
202 |
|
203 |
|
@@ -224,6 +236,7 @@ class Loco_Locale implements JsonSerializable {
|
|
224 |
|
225 |
|
226 |
/**
|
|
|
227 |
* @return Loco_Locale
|
228 |
*/
|
229 |
public function setIcon( $css ){
|
@@ -238,6 +251,8 @@ class Loco_Locale implements JsonSerializable {
|
|
238 |
|
239 |
|
240 |
/**
|
|
|
|
|
241 |
* @return Loco_Locale
|
242 |
*/
|
243 |
public function setName( $english_name, $native_name = '' ){
|
@@ -249,6 +264,7 @@ class Loco_Locale implements JsonSerializable {
|
|
249 |
|
250 |
/**
|
251 |
* Test whether locale is valid
|
|
|
252 |
*/
|
253 |
public function isValid(){
|
254 |
if( is_null($this->valid) ){
|
@@ -260,6 +276,7 @@ class Loco_Locale implements JsonSerializable {
|
|
260 |
|
261 |
/**
|
262 |
* Resolve this locale's "official" name from WordPress's translation api
|
|
|
263 |
* @return string English name currently set
|
264 |
*/
|
265 |
public function fetchName( Loco_api_WordPressTranslations $api ){
|
@@ -277,7 +294,6 @@ class Loco_Locale implements JsonSerializable {
|
|
277 |
* @return string English name currently set
|
278 |
*/
|
279 |
public function buildName(){
|
280 |
-
$names = array();
|
281 |
// should at least have a language or not valid
|
282 |
if( $this->isValid() ){
|
283 |
$code = $this->tag['lang'];
|
@@ -309,6 +325,7 @@ class Loco_Locale implements JsonSerializable {
|
|
309 |
|
310 |
/**
|
311 |
* Ensure locale has a label, even if it has to fall back to language code or error
|
|
|
312 |
* @return string
|
313 |
*/
|
314 |
public function ensureName( Loco_api_WordPressTranslations $api ){
|
@@ -373,6 +390,7 @@ class Loco_Locale implements JsonSerializable {
|
|
373 |
|
374 |
|
375 |
/**
|
|
|
376 |
* @return array
|
377 |
*/
|
378 |
private function setPlurals( array $raw ){
|
76 |
* @param string
|
77 |
*/
|
78 |
public function __construct( $lang = '', $region = '', $variant = '' ){
|
79 |
+
if( 1 == func_num_args() && isset($lang[3]) ){
|
80 |
+
throw new BadMethodCallException('Did you mean Loco_Locale::parse('.var_export($lang,1).') ?');
|
81 |
+
}
|
82 |
$this->tag = compact('lang','region','variant');
|
83 |
}
|
84 |
|
85 |
|
|
|
86 |
/**
|
|
|
87 |
* Allow read access to subtags
|
88 |
+
* @internal
|
89 |
+
* @param string
|
90 |
+
* @return string
|
91 |
*/
|
92 |
public function __get( $t ){
|
93 |
return isset($this->tag[$t]) ? $this->tag[$t] : '';
|
95 |
|
96 |
|
97 |
/**
|
|
|
98 |
* Allow write access to subtags
|
99 |
+
* @internal
|
100 |
+
* @param string
|
101 |
+
* @param string
|
102 |
+
* @return void
|
103 |
*/
|
104 |
public function __set( $t, $s ){
|
105 |
if( isset($this->tag[$t]) ){
|
111 |
|
112 |
/**
|
113 |
* Set subtags as produced from loco_parse_wp_locale
|
114 |
+
* @param string[]
|
115 |
* @return Loco_Locale
|
116 |
*/
|
117 |
public function setSubtags( array $tag ){
|
184 |
* @return string | null
|
185 |
*/
|
186 |
public function getName(){
|
187 |
+
$name = $this->name;
|
188 |
+
if( is_string($name) && '' !== $name ){
|
189 |
// use canonical native name only when current language matches
|
190 |
// deliberately not matching whole tag such that fr_CA would show native name of fr_FR
|
191 |
if( $_name = $this->getNativeName() ){
|
196 |
}
|
197 |
return $name;
|
198 |
}
|
199 |
+
return null;
|
200 |
}
|
201 |
|
202 |
|
205 |
* @return string | null
|
206 |
*/
|
207 |
public function getNativeName(){
|
208 |
+
$name = $this->_name;
|
209 |
+
if( is_string($name) && '' !== $name ){
|
210 |
return $name;
|
211 |
}
|
212 |
+
return null;
|
213 |
}
|
214 |
|
215 |
|
236 |
|
237 |
|
238 |
/**
|
239 |
+
* @param string CSS icon name
|
240 |
* @return Loco_Locale
|
241 |
*/
|
242 |
public function setIcon( $css ){
|
251 |
|
252 |
|
253 |
/**
|
254 |
+
* @param string
|
255 |
+
* @param string
|
256 |
* @return Loco_Locale
|
257 |
*/
|
258 |
public function setName( $english_name, $native_name = '' ){
|
264 |
|
265 |
/**
|
266 |
* Test whether locale is valid
|
267 |
+
* @return bool
|
268 |
*/
|
269 |
public function isValid(){
|
270 |
if( is_null($this->valid) ){
|
276 |
|
277 |
/**
|
278 |
* Resolve this locale's "official" name from WordPress's translation api
|
279 |
+
* @param Loco_api_WordPressTranslations
|
280 |
* @return string English name currently set
|
281 |
*/
|
282 |
public function fetchName( Loco_api_WordPressTranslations $api ){
|
294 |
* @return string English name currently set
|
295 |
*/
|
296 |
public function buildName(){
|
|
|
297 |
// should at least have a language or not valid
|
298 |
if( $this->isValid() ){
|
299 |
$code = $this->tag['lang'];
|
325 |
|
326 |
/**
|
327 |
* Ensure locale has a label, even if it has to fall back to language code or error
|
328 |
+
* @param Loco_api_WordPressTranslations
|
329 |
* @return string
|
330 |
*/
|
331 |
public function ensureName( Loco_api_WordPressTranslations $api ){
|
390 |
|
391 |
|
392 |
/**
|
393 |
+
* @param array[]
|
394 |
* @return array
|
395 |
*/
|
396 |
private function setPlurals( array $raw ){
|
src/admin/bundle/ViewController.php
CHANGED
@@ -135,6 +135,10 @@ class Loco_admin_bundle_ViewController extends Loco_admin_bundle_BaseController
|
|
135 |
|
136 |
/**
|
137 |
* Collect PO/MO pairings, ignoring any PO that is in use as a template
|
|
|
|
|
|
|
|
|
138 |
*/
|
139 |
private function createPairs( Loco_fs_FileList $po, Loco_fs_FileList $mo, Loco_fs_File $pot = null ){
|
140 |
$pairs = array();
|
@@ -166,6 +170,9 @@ class Loco_admin_bundle_ViewController extends Loco_admin_bundle_BaseController
|
|
166 |
|
167 |
/**
|
168 |
* Initialize view parameters for each row representing a localized resource pair
|
|
|
|
|
|
|
169 |
* @return array collection of entries corresponding to available PO/MO pair.
|
170 |
*/
|
171 |
private function createProjectPairs( Loco_package_Project $project, Loco_fs_LocaleFileList $po, Loco_fs_LocaleFileList $mo ){
|
@@ -289,15 +296,22 @@ class Loco_admin_bundle_ViewController extends Loco_admin_bundle_BaseController
|
|
289 |
$prefixes = array();
|
290 |
$po = new Loco_fs_LocaleFileList;
|
291 |
$mo = new Loco_fs_LocaleFileList;
|
|
|
292 |
foreach( Loco_package_Inverter::export($bundle) as $ext => $files ){
|
293 |
$list = 'mo' === $ext ? $mo : $po;
|
294 |
foreach( $files as $file ){
|
295 |
$file = new Loco_fs_LocaleFile($file);
|
|
|
|
|
|
|
|
|
296 |
$list->addLocalized( $file );
|
297 |
// Only look in system locations if locale is valid and domain/prefix available
|
298 |
-
$locale
|
299 |
-
|
300 |
-
$
|
|
|
|
|
301 |
}
|
302 |
}
|
303 |
}
|
135 |
|
136 |
/**
|
137 |
* Collect PO/MO pairings, ignoring any PO that is in use as a template
|
138 |
+
* @param Loco_fs_FileList PO files
|
139 |
+
* @param Loco_fs_FileList MO files
|
140 |
+
* @param Loco_fs_File POT file
|
141 |
+
* @return array[]
|
142 |
*/
|
143 |
private function createPairs( Loco_fs_FileList $po, Loco_fs_FileList $mo, Loco_fs_File $pot = null ){
|
144 |
$pairs = array();
|
170 |
|
171 |
/**
|
172 |
* Initialize view parameters for each row representing a localized resource pair
|
173 |
+
* @param Loco_package_Project
|
174 |
+
* @param Loco_fs_LocaleFileList localized PO files
|
175 |
+
* @param Loco_fs_LocaleFileList localized MO files
|
176 |
* @return array collection of entries corresponding to available PO/MO pair.
|
177 |
*/
|
178 |
private function createProjectPairs( Loco_package_Project $project, Loco_fs_LocaleFileList $po, Loco_fs_LocaleFileList $mo ){
|
296 |
$prefixes = array();
|
297 |
$po = new Loco_fs_LocaleFileList;
|
298 |
$mo = new Loco_fs_LocaleFileList;
|
299 |
+
$prefs = Loco_data_Preferences::get();
|
300 |
foreach( Loco_package_Inverter::export($bundle) as $ext => $files ){
|
301 |
$list = 'mo' === $ext ? $mo : $po;
|
302 |
foreach( $files as $file ){
|
303 |
$file = new Loco_fs_LocaleFile($file);
|
304 |
+
$locale = $file->getLocale();
|
305 |
+
if( $prefs && ! $prefs->has_locale($locale) ){
|
306 |
+
continue;
|
307 |
+
}
|
308 |
$list->addLocalized( $file );
|
309 |
// Only look in system locations if locale is valid and domain/prefix available
|
310 |
+
if( $locale->isValid() ){
|
311 |
+
$domain = $file->getPrefix();
|
312 |
+
if( $domain ) {
|
313 |
+
$prefixes[$domain] = true;
|
314 |
+
}
|
315 |
}
|
316 |
}
|
317 |
}
|
src/admin/config/ApisController.php
CHANGED
@@ -59,6 +59,12 @@ class Loco_admin_config_ApisController extends Loco_admin_config_BaseController
|
|
59 |
$title = __('Plugin settings','loco-translate');
|
60 |
$breadcrumb = new Loco_admin_Navigation;
|
61 |
$breadcrumb->add( $title );
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
|
63 |
return $this->view('admin/config/apis', compact('breadcrumb') );
|
64 |
}
|
59 |
$title = __('Plugin settings','loco-translate');
|
60 |
$breadcrumb = new Loco_admin_Navigation;
|
61 |
$breadcrumb->add( $title );
|
62 |
+
|
63 |
+
// common ui elements / labels
|
64 |
+
$this->set( 'ui', new Loco_mvc_ViewParams( array(
|
65 |
+
'api_key' => __('API key','loco-translate'),
|
66 |
+
'api_region' => __('API region','loco-translate'),
|
67 |
+
) ) );
|
68 |
|
69 |
return $this->view('admin/config/apis', compact('breadcrumb') );
|
70 |
}
|
src/admin/config/DebugController.php
CHANGED
@@ -58,6 +58,7 @@ class Loco_admin_config_DebugController extends Loco_admin_config_BaseController
|
|
58 |
'WordPress' => $GLOBALS['wp_version'],
|
59 |
'PHP' => phpversion().' ('.PHP_SAPI.')',
|
60 |
'Server' => isset($_SERVER['SERVER_SOFTWARE']) ? $_SERVER['SERVER_SOFTWARE'] : ( function_exists('apache_get_version') ? apache_get_version() : '' ),
|
|
|
61 |
) );
|
62 |
// we want to know about modules in case there are security mods installed known to break functionality
|
63 |
if( function_exists('apache_get_modules') && ( $mods = preg_grep('/^mod_/',apache_get_modules() ) ) ){
|
58 |
'WordPress' => $GLOBALS['wp_version'],
|
59 |
'PHP' => phpversion().' ('.PHP_SAPI.')',
|
60 |
'Server' => isset($_SERVER['SERVER_SOFTWARE']) ? $_SERVER['SERVER_SOFTWARE'] : ( function_exists('apache_get_version') ? apache_get_version() : '' ),
|
61 |
+
'jQuery' => '...',
|
62 |
) );
|
63 |
// we want to know about modules in case there are security mods installed known to break functionality
|
64 |
if( function_exists('apache_get_modules') && ( $mods = preg_grep('/^mod_/',apache_get_modules() ) ) ){
|
src/admin/file/EditController.php
CHANGED
@@ -44,10 +44,15 @@ class Loco_admin_file_EditController extends Loco_admin_file_BaseController {
|
|
44 |
|
45 |
/**
|
46 |
* @param bool whether po files is in read-only mode
|
47 |
-
* @return array
|
48 |
*/
|
49 |
private function getApiProviders( $readonly ){
|
50 |
-
|
|
|
|
|
|
|
|
|
|
|
51 |
}
|
52 |
|
53 |
|
@@ -60,6 +65,16 @@ class Loco_admin_file_EditController extends Loco_admin_file_BaseController {
|
|
60 |
return (bool) $api['key'];
|
61 |
}
|
62 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
|
64 |
/**
|
65 |
* {@inheritdoc}
|
44 |
|
45 |
/**
|
46 |
* @param bool whether po files is in read-only mode
|
47 |
+
* @return array[]|null
|
48 |
*/
|
49 |
private function getApiProviders( $readonly ){
|
50 |
+
if( $readonly ){
|
51 |
+
return null;
|
52 |
+
}
|
53 |
+
$apis = array_filter( Loco_api_Providers::export(), array(__CLASS__,'filterApiProvider') );
|
54 |
+
usort($apis,array(__CLASS__,'sortApiProviders') );
|
55 |
+
return $apis;
|
56 |
}
|
57 |
|
58 |
|
65 |
return (bool) $api['key'];
|
66 |
}
|
67 |
|
68 |
+
/**
|
69 |
+
* @internal
|
70 |
+
* @param string[]
|
71 |
+
* @param string[]
|
72 |
+
* @return bool
|
73 |
+
*/
|
74 |
+
private static function sortApiProviders( array $a, array $b ){
|
75 |
+
return strcasecmp($a['name'],$b['name']);
|
76 |
+
}
|
77 |
+
|
78 |
|
79 |
/**
|
80 |
* {@inheritdoc}
|
src/admin/init/InitPoController.php
CHANGED
@@ -147,10 +147,11 @@ class Loco_admin_init_InitPoController extends Loco_admin_bundle_BaseController
|
|
147 |
$locales = array();
|
148 |
$installed = array();
|
149 |
$api = new Loco_api_WordPressTranslations;
|
|
|
150 |
// pull installed list first, this will include en_US and any non-standard languages installed
|
151 |
foreach( $api->getInstalledCore() as $tag ){
|
152 |
$locale = Loco_Locale::parse($tag);
|
153 |
-
if( $locale->isValid() ){
|
154 |
$tag = (string) $tag;
|
155 |
// We may not have names for these, so just the language tag will show
|
156 |
$installed[$tag] = new Loco_mvc_ViewParams( array(
|
@@ -161,9 +162,8 @@ class Loco_admin_init_InitPoController extends Loco_admin_bundle_BaseController
|
|
161 |
}
|
162 |
}
|
163 |
// pull the same list of "available" languages as used in WordPress settings
|
164 |
-
/* @var $locale Loco_Locale */
|
165 |
foreach( $api->getAvailableCore() as $tag => $locale ){
|
166 |
-
if( ! array_key_exists($tag,$installed) ){
|
167 |
$locales[$tag] = new Loco_mvc_ViewParams( array(
|
168 |
'value' => $tag,
|
169 |
'icon' => $locale->getIcon(),
|
147 |
$locales = array();
|
148 |
$installed = array();
|
149 |
$api = new Loco_api_WordPressTranslations;
|
150 |
+
$prefs = Loco_data_Preferences::get();
|
151 |
// pull installed list first, this will include en_US and any non-standard languages installed
|
152 |
foreach( $api->getInstalledCore() as $tag ){
|
153 |
$locale = Loco_Locale::parse($tag);
|
154 |
+
if( $locale->isValid() && $prefs->has_locale($locale) ){
|
155 |
$tag = (string) $tag;
|
156 |
// We may not have names for these, so just the language tag will show
|
157 |
$installed[$tag] = new Loco_mvc_ViewParams( array(
|
162 |
}
|
163 |
}
|
164 |
// pull the same list of "available" languages as used in WordPress settings
|
|
|
165 |
foreach( $api->getAvailableCore() as $tag => $locale ){
|
166 |
+
if( ! array_key_exists($tag,$installed) && $prefs->has_locale($locale) ){
|
167 |
$locales[$tag] = new Loco_mvc_ViewParams( array(
|
168 |
'value' => $tag,
|
169 |
'icon' => $locale->getIcon(),
|
src/admin/list/LocalesController.php
CHANGED
@@ -80,7 +80,6 @@ class Loco_admin_list_LocalesController extends Loco_mvc_AdminController {
|
|
80 |
}
|
81 |
$this->set('locales', $locales );
|
82 |
|
83 |
-
|
84 |
// Count up unique PO files
|
85 |
foreach( $finder->findLocaleFiles() as $file ){
|
86 |
if( preg_match('/(?:^|-)([_a-zA-Z]+).po$/', $file->basename(), $r ) ){
|
@@ -95,14 +94,14 @@ class Loco_admin_list_LocalesController extends Loco_mvc_AdminController {
|
|
95 |
|
96 |
// POT files are in en_US locale
|
97 |
$tag = 'en_US';
|
98 |
-
|
99 |
-
$
|
100 |
-
|
|
|
|
|
101 |
}
|
102 |
|
103 |
-
|
104 |
-
return $this->view( 'admin/list/locales' );
|
105 |
-
|
106 |
}
|
107 |
|
108 |
|
80 |
}
|
81 |
$this->set('locales', $locales );
|
82 |
|
|
|
83 |
// Count up unique PO files
|
84 |
foreach( $finder->findLocaleFiles() as $file ){
|
85 |
if( preg_match('/(?:^|-)([_a-zA-Z]+).po$/', $file->basename(), $r ) ){
|
94 |
|
95 |
// POT files are in en_US locale
|
96 |
$tag = 'en_US';
|
97 |
+
if( array_key_exists($tag,$locales) ){
|
98 |
+
foreach( $finder->findTemplateFiles() as $file ){
|
99 |
+
$locales[$tag]['nfiles']++;
|
100 |
+
$locales[$tag]['time'] = max( $locales[$tag]['time'], $file->modified() );
|
101 |
+
}
|
102 |
}
|
103 |
|
104 |
+
return $this->view( 'admin/list/locales' );
|
|
|
|
|
105 |
}
|
106 |
|
107 |
|
src/ajax/ApisController.php
CHANGED
@@ -15,7 +15,7 @@ class Loco_ajax_ApisController extends Loco_mvc_AjaxController {
|
|
15 |
|
16 |
// API client id should be posted
|
17 |
$hook = (string) $post->hook;
|
18 |
-
|
19 |
// API client must be hooked in using loco_api_providers filter
|
20 |
// this normally filters on Loco_api_Providers::export() but should do the same with an empty array.
|
21 |
$config = null;
|
15 |
|
16 |
// API client id should be posted
|
17 |
$hook = (string) $post->hook;
|
18 |
+
|
19 |
// API client must be hooked in using loco_api_providers filter
|
20 |
// this normally filters on Loco_api_Providers::export() but should do the same with an empty array.
|
21 |
$config = null;
|
src/ajax/FsConnectController.php
CHANGED
@@ -116,8 +116,22 @@ class Loco_ajax_FsConnectController extends Loco_mvc_AjaxController {
|
|
116 |
$this->set('warning',$message);
|
117 |
}
|
118 |
}
|
119 |
-
else
|
120 |
$this->set( 'authed', false );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
$this->set( 'prompt', $html );
|
122 |
// supporting text based on file operation type explains why auth is required
|
123 |
if( 'create' === $type ){
|
@@ -135,9 +149,6 @@ class Loco_ajax_FsConnectController extends Loco_mvc_AjaxController {
|
|
135 |
// message is printed before default text, so needs delimiting.
|
136 |
$this->set('message',$message.'.');
|
137 |
}
|
138 |
-
else {
|
139 |
-
throw new Loco_error_Exception('Failed to get credentials form');
|
140 |
-
}
|
141 |
}
|
142 |
catch( Loco_error_WriteException $e ){
|
143 |
$this->set('authed', false );
|
116 |
$this->set('warning',$message);
|
117 |
}
|
118 |
}
|
119 |
+
else {
|
120 |
$this->set( 'authed', false );
|
121 |
+
// HTML form should be set when authorization failed
|
122 |
+
$html = $this->api->getForm();
|
123 |
+
if( '' === $html || ! is_string($html) ){
|
124 |
+
// this is the only non-error case where form will not be set.
|
125 |
+
if( 'direct' === loco_constant('FS_METHOD') ){
|
126 |
+
$html = 'Remote connections are prevented by your WordPress configuration. Direct access only.';
|
127 |
+
}
|
128 |
+
// else an unknown error occurred when fetching output from request_filesystem_credentials
|
129 |
+
else {
|
130 |
+
$html = 'Failed to get credentials form';
|
131 |
+
}
|
132 |
+
// displaying error after clicking "connect" to avoid unnecessary warnings when operation may not be required
|
133 |
+
$html = '<form><h2>Connection problem</h2><p>'.$html.'.</p></form>';
|
134 |
+
}
|
135 |
$this->set( 'prompt', $html );
|
136 |
// supporting text based on file operation type explains why auth is required
|
137 |
if( 'create' === $type ){
|
149 |
// message is printed before default text, so needs delimiting.
|
150 |
$this->set('message',$message.'.');
|
151 |
}
|
|
|
|
|
|
|
152 |
}
|
153 |
catch( Loco_error_WriteException $e ){
|
154 |
$this->set('authed', false );
|
src/api/Providers.php
CHANGED
@@ -20,6 +20,11 @@ abstract class Loco_api_Providers {
|
|
20 |
public static function builtin(){
|
21 |
$settings = Loco_data_Settings::get();
|
22 |
return array (
|
|
|
|
|
|
|
|
|
|
|
23 |
array (
|
24 |
'id' => 'google',
|
25 |
'name' => 'Google Translate',
|
20 |
public static function builtin(){
|
21 |
$settings = Loco_data_Settings::get();
|
22 |
return array (
|
23 |
+
array (
|
24 |
+
'id' => 'deepl',
|
25 |
+
'name' => 'DeepL Translator',
|
26 |
+
'key' => $settings->offsetGet('deepl_api_key'),
|
27 |
+
),
|
28 |
array (
|
29 |
'id' => 'google',
|
30 |
'name' => 'Google Translate',
|
src/api/WordPressFileSystem.php
CHANGED
@@ -231,6 +231,7 @@ class Loco_api_WordPressFileSystem {
|
|
231 |
$type = FS_METHOD;
|
232 |
// forcing direct access means request_filesystem_credentials will never give us a form :(
|
233 |
if( 'direct' === $type ){
|
|
|
234 |
return false;
|
235 |
}
|
236 |
}
|
@@ -286,8 +287,11 @@ class Loco_api_WordPressFileSystem {
|
|
286 |
request_filesystem_credentials( '', $type, $error, $context, $extra );
|
287 |
}
|
288 |
|
289 |
-
// now have unauthorized remote connection
|
290 |
$this->form = (string) $buffer->close();
|
|
|
|
|
|
|
291 |
return false;
|
292 |
}
|
293 |
|
231 |
$type = FS_METHOD;
|
232 |
// forcing direct access means request_filesystem_credentials will never give us a form :(
|
233 |
if( 'direct' === $type ){
|
234 |
+
Loco_error_AdminNotices::debug('Cannot connect remotely when FS_METHOD is "direct"');
|
235 |
return false;
|
236 |
}
|
237 |
}
|
287 |
request_filesystem_credentials( '', $type, $error, $context, $extra );
|
288 |
}
|
289 |
|
290 |
+
// should now have unauthorized remote connection form
|
291 |
$this->form = (string) $buffer->close();
|
292 |
+
if( '' === $this->form ){
|
293 |
+
Loco_error_AdminNotices::debug('Unknown error capturing output from request_filesystem_credentials');
|
294 |
+
}
|
295 |
return false;
|
296 |
}
|
297 |
|
src/api/WordPressTranslations.php
CHANGED
@@ -12,7 +12,7 @@ class Loco_api_WordPressTranslations {
|
|
12 |
|
13 |
/**
|
14 |
* Cache of core locale objects
|
15 |
-
* @var
|
16 |
*/
|
17 |
private $locales;
|
18 |
|
@@ -44,7 +44,7 @@ class Loco_api_WordPressTranslations {
|
|
44 |
|
45 |
/**
|
46 |
* Get fully fledged locale objects from available core translation data
|
47 |
-
* @return
|
48 |
*/
|
49 |
public function getAvailableCore(){
|
50 |
$locales = $this->locales;
|
@@ -84,7 +84,7 @@ class Loco_api_WordPressTranslations {
|
|
84 |
|
85 |
/**
|
86 |
* Wrap get_available_languages
|
87 |
-
* @return
|
88 |
*/
|
89 |
public function getInstalledCore(){
|
90 |
// wp-includes/l10n.php should always be included at runtime
|
12 |
|
13 |
/**
|
14 |
* Cache of core locale objects
|
15 |
+
* @var Loco_Locale[]
|
16 |
*/
|
17 |
private $locales;
|
18 |
|
44 |
|
45 |
/**
|
46 |
* Get fully fledged locale objects from available core translation data
|
47 |
+
* @return Loco_Locale[]
|
48 |
*/
|
49 |
public function getAvailableCore(){
|
50 |
$locales = $this->locales;
|
84 |
|
85 |
/**
|
86 |
* Wrap get_available_languages
|
87 |
+
* @return string[]
|
88 |
*/
|
89 |
public function getInstalledCore(){
|
90 |
// wp-includes/l10n.php should always be included at runtime
|
src/data/Preferences.php
CHANGED
@@ -3,6 +3,7 @@
|
|
3 |
* Data object persisted as a WordPress user meta entry under the loco_prefs key
|
4 |
*
|
5 |
* @property string $credit Last-Translator credit, defaults to current display name
|
|
|
6 |
*/
|
7 |
class Loco_data_Preferences extends Loco_data_Serializable {
|
8 |
|
@@ -24,6 +25,7 @@ class Loco_data_Preferences extends Loco_data_Serializable {
|
|
24 |
*/
|
25 |
private static $defaults = array (
|
26 |
'credit' => '',
|
|
|
27 |
);
|
28 |
|
29 |
|
@@ -34,7 +36,11 @@ class Loco_data_Preferences extends Loco_data_Serializable {
|
|
34 |
public static function get(){
|
35 |
$id = get_current_user_id();
|
36 |
if( ! $id ){
|
37 |
-
|
|
|
|
|
|
|
|
|
38 |
}
|
39 |
if( isset(self::$current[$id]) ){
|
40 |
return self::$current[$id];
|
@@ -48,6 +54,7 @@ class Loco_data_Preferences extends Loco_data_Serializable {
|
|
48 |
|
49 |
/**
|
50 |
* Create default settings instance
|
|
|
51 |
* @return Loco_data_Preferences
|
52 |
*/
|
53 |
public static function create( $id ){
|
@@ -57,6 +64,15 @@ class Loco_data_Preferences extends Loco_data_Serializable {
|
|
57 |
}
|
58 |
|
59 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
/**
|
61 |
* Persist object in WordPress usermeta table
|
62 |
* @return bool
|
@@ -110,8 +126,17 @@ class Loco_data_Preferences extends Loco_data_Serializable {
|
|
110 |
}
|
111 |
return $this;
|
112 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
|
114 |
-
|
115 |
/**
|
116 |
* Get default Last-Translator credit
|
117 |
* @return string
|
@@ -124,5 +149,30 @@ class Loco_data_Preferences extends Loco_data_Serializable {
|
|
124 |
}
|
125 |
return $name;
|
126 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
|
128 |
}
|
3 |
* Data object persisted as a WordPress user meta entry under the loco_prefs key
|
4 |
*
|
5 |
* @property string $credit Last-Translator credit, defaults to current display name
|
6 |
+
* @property string[] $locales List of locales user wants to be restricted to seeing.
|
7 |
*/
|
8 |
class Loco_data_Preferences extends Loco_data_Serializable {
|
9 |
|
25 |
*/
|
26 |
private static $defaults = array (
|
27 |
'credit' => '',
|
28 |
+
'locales' => array(),
|
29 |
);
|
30 |
|
31 |
|
36 |
public static function get(){
|
37 |
$id = get_current_user_id();
|
38 |
if( ! $id ){
|
39 |
+
// allow null return only in tests, because all real users must be logged in
|
40 |
+
if( defined('LOCO_TEST') && LOCO_TEST ) {
|
41 |
+
return null;
|
42 |
+
}
|
43 |
+
throw new Exception( 'No current user' ); // @codeCoverageIgnore
|
44 |
}
|
45 |
if( isset(self::$current[$id]) ){
|
46 |
return self::$current[$id];
|
54 |
|
55 |
/**
|
56 |
* Create default settings instance
|
57 |
+
* @param int User ID
|
58 |
* @return Loco_data_Preferences
|
59 |
*/
|
60 |
public static function create( $id ){
|
64 |
}
|
65 |
|
66 |
|
67 |
+
/**
|
68 |
+
* Destroy current user's preferences
|
69 |
+
* @return void
|
70 |
+
*/
|
71 |
+
public static function clear(){
|
72 |
+
get_current_user_id() && self::get()->remove();
|
73 |
+
}
|
74 |
+
|
75 |
+
|
76 |
/**
|
77 |
* Persist object in WordPress usermeta table
|
78 |
* @return bool
|
126 |
}
|
127 |
return $this;
|
128 |
}
|
129 |
+
|
130 |
+
|
131 |
+
/**
|
132 |
+
* {@inheritdoc}
|
133 |
+
*/
|
134 |
+
public function offsetSet( $prop, $value ){
|
135 |
+
$value = parent::cast($prop,$value,self::$defaults);
|
136 |
+
parent::offsetSet( $prop, $value );
|
137 |
+
}
|
138 |
|
139 |
+
|
140 |
/**
|
141 |
* Get default Last-Translator credit
|
142 |
* @return string
|
149 |
}
|
150 |
return $name;
|
151 |
}
|
152 |
+
|
153 |
+
|
154 |
+
/**
|
155 |
+
* Check if user wants to know about this locale
|
156 |
+
* @param Loco_Locale locale to match in whitelist
|
157 |
+
* @return bool
|
158 |
+
*/
|
159 |
+
public function has_locale( Loco_Locale $locale ){
|
160 |
+
$haystack = $this->locales;
|
161 |
+
if( $haystack ){
|
162 |
+
foreach( $haystack as $tag ){
|
163 |
+
$tag = strtolower($tag);
|
164 |
+
// allow language wildcard. en_GB allowed by "en"
|
165 |
+
if( $locale->lang === $tag ){
|
166 |
+
return true;
|
167 |
+
}
|
168 |
+
// else normalize whitelist before comparison
|
169 |
+
if( Loco_Locale::parse($tag)->__toString() === $locale->__toString() ){
|
170 |
+
return true;
|
171 |
+
}
|
172 |
+
}
|
173 |
+
return false;
|
174 |
+
}
|
175 |
+
return true;
|
176 |
+
}
|
177 |
|
178 |
}
|
src/data/Serializable.php
CHANGED
@@ -200,6 +200,36 @@ abstract class Loco_data_Serializable extends ArrayObject {
|
|
200 |
$this->dirty = false;
|
201 |
|
202 |
return $this;
|
203 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
204 |
|
205 |
}
|
200 |
$this->dirty = false;
|
201 |
|
202 |
return $this;
|
203 |
+
}
|
204 |
+
|
205 |
+
|
206 |
+
/**
|
207 |
+
* @param string
|
208 |
+
* @param mixed
|
209 |
+
* @param mixed[]
|
210 |
+
* @return mixed
|
211 |
+
*/
|
212 |
+
protected static function cast( $prop, $value, array $defaults ){
|
213 |
+
if( ! array_key_exists($prop,$defaults) ){
|
214 |
+
throw new InvalidArgumentException('Invalid option, '.$prop );
|
215 |
+
}
|
216 |
+
$default = $defaults[$prop];
|
217 |
+
// cast to same type as default
|
218 |
+
if( is_bool($default) ){
|
219 |
+
$value = (bool) $value;
|
220 |
+
}
|
221 |
+
else if( is_int($default) ){
|
222 |
+
$value = (int) $value;
|
223 |
+
}
|
224 |
+
else if( is_array($default) ){
|
225 |
+
if( ! is_array($value) ){
|
226 |
+
$value = preg_split( '/[\\s,]+/', trim($value), -1, PREG_SPLIT_NO_EMPTY );
|
227 |
+
}
|
228 |
+
}
|
229 |
+
else {
|
230 |
+
$value = (string) $value;
|
231 |
+
}
|
232 |
+
return $value;
|
233 |
+
}
|
234 |
|
235 |
}
|
src/data/Settings.php
CHANGED
@@ -17,7 +17,8 @@
|
|
17 |
* @property string $po_width PO/POT file maximum line width (wrapping) zero to disable
|
18 |
* @property bool $jed_pretty Whether to pretty print JSON JED files
|
19 |
* @property bool $ajax_files Whether to submit PO data as concrete files (requires Blob support in Ajax)
|
20 |
-
*
|
|
|
21 |
* @property string $google_api_key API key for Google Translate
|
22 |
* @property string $yandex_api_key API key for Yandex.Translate
|
23 |
* @property string $microsoft_api_key API key for Microsoft Translator text API
|
@@ -53,6 +54,7 @@ class Loco_data_Settings extends Loco_data_Serializable {
|
|
53 |
'po_width' => '79',
|
54 |
'jed_pretty' => false,
|
55 |
'ajax_files' => true,
|
|
|
56 |
'google_api_key' => '',
|
57 |
'yandex_api_key' => '',
|
58 |
'microsoft_api_key' => '',
|
@@ -112,25 +114,7 @@ class Loco_data_Settings extends Loco_data_Serializable {
|
|
112 |
* {@inheritdoc}
|
113 |
*/
|
114 |
public function offsetSet( $prop, $value ){
|
115 |
-
|
116 |
-
throw new InvalidArgumentException('Invalid option, '.$prop );
|
117 |
-
}
|
118 |
-
$default = self::$defaults[$prop];
|
119 |
-
// cast to same type as default
|
120 |
-
if( is_bool($default) ){
|
121 |
-
$value = (bool) $value;
|
122 |
-
}
|
123 |
-
else if( is_int($default) ){
|
124 |
-
$value = (int) $value;
|
125 |
-
}
|
126 |
-
else if( is_array($default) ){
|
127 |
-
if( ! is_array($value) ){
|
128 |
-
$value = preg_split( '/[\\s,]+/', trim($value), -1, PREG_SPLIT_NO_EMPTY );
|
129 |
-
}
|
130 |
-
}
|
131 |
-
else {
|
132 |
-
$value = (string) $value;
|
133 |
-
}
|
134 |
parent::offsetSet( $prop, $value );
|
135 |
}
|
136 |
|
17 |
* @property string $po_width PO/POT file maximum line width (wrapping) zero to disable
|
18 |
* @property bool $jed_pretty Whether to pretty print JSON JED files
|
19 |
* @property bool $ajax_files Whether to submit PO data as concrete files (requires Blob support in Ajax)
|
20 |
+
*
|
21 |
+
* @property string $deepl_api_key API key for DeepL Translator
|
22 |
* @property string $google_api_key API key for Google Translate
|
23 |
* @property string $yandex_api_key API key for Yandex.Translate
|
24 |
* @property string $microsoft_api_key API key for Microsoft Translator text API
|
54 |
'po_width' => '79',
|
55 |
'jed_pretty' => false,
|
56 |
'ajax_files' => true,
|
57 |
+
'deepl_api_key' => '',
|
58 |
'google_api_key' => '',
|
59 |
'yandex_api_key' => '',
|
60 |
'microsoft_api_key' => '',
|
114 |
* {@inheritdoc}
|
115 |
*/
|
116 |
public function offsetSet( $prop, $value ){
|
117 |
+
$value = parent::cast($prop,$value,self::$defaults);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
parent::offsetSet( $prop, $value );
|
119 |
}
|
120 |
|
src/js/Strings.php
CHANGED
@@ -94,29 +94,29 @@ class Loco_js_Strings extends Loco_hooks_TranslateBuffer {
|
|
94 |
* xgettext: javascript-format */
|
95 |
__("%s untranslated",'loco-translate');
|
96 |
|
97 |
-
// Generic error when external process broke an Ajax request
|
98 |
-
__("Server returned invalid data",'loco-translate');
|
99 |
-
|
100 |
//
|
101 |
-
__("
|
102 |
|
103 |
//
|
104 |
-
__("
|
105 |
|
106 |
//
|
107 |
-
__("
|
108 |
|
109 |
//
|
110 |
-
__("
|
|
|
|
|
|
|
111 |
|
112 |
//
|
113 |
-
__("
|
114 |
|
115 |
//
|
116 |
-
__("
|
117 |
|
118 |
//
|
119 |
-
__("
|
120 |
|
121 |
/* Label for the window pane holding the original English text
|
122 |
* List heading showing preview of English text for each item */
|
94 |
* xgettext: javascript-format */
|
95 |
__("%s untranslated",'loco-translate');
|
96 |
|
|
|
|
|
|
|
97 |
//
|
98 |
+
__("Error",'loco-translate');
|
99 |
|
100 |
//
|
101 |
+
__("Warning",'loco-translate');
|
102 |
|
103 |
//
|
104 |
+
__("Notice",'loco-translate');
|
105 |
|
106 |
//
|
107 |
+
__("OK",'loco-translate');
|
108 |
+
|
109 |
+
// Generic error when external process broke an Ajax request
|
110 |
+
__("Server returned invalid data",'loco-translate');
|
111 |
|
112 |
//
|
113 |
+
__("Check console output for debugging information",'loco-translate');
|
114 |
|
115 |
//
|
116 |
+
__("Provide the following text when reporting a problem",'loco-translate');
|
117 |
|
118 |
//
|
119 |
+
__("Unknown error",'loco-translate');
|
120 |
|
121 |
/* Label for the window pane holding the original English text
|
122 |
* List heading showing preview of English text for each item */
|
src/mvc/AdminController.php
CHANGED
@@ -192,40 +192,40 @@ abstract class Loco_mvc_AdminController extends Loco_mvc_Controller {
|
|
192 |
foreach( $args as $prop => $value ){
|
193 |
$view->set( $prop, $value );
|
194 |
}
|
195 |
-
// ensure JavaScript config
|
196 |
-
if( $view->has('js') ){
|
197 |
-
$jsConf = $view->get('js');
|
198 |
-
if( ! $jsConf instanceof Loco_mvc_ViewParams ){
|
199 |
-
throw new InvalidArgumentException('Bad "js" view parameter');
|
200 |
-
}
|
201 |
}
|
202 |
-
else {
|
203 |
$jsConf = new Loco_mvc_ViewParams;
|
204 |
-
$
|
|
|
|
|
|
|
205 |
}
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
|
|
|
|
221 |
}
|
222 |
// take benchmark for debugger to be rendered in footer
|
223 |
if( $this->bench ){
|
224 |
$this->set('_debug', new Loco_mvc_ViewParams( array(
|
225 |
'time' => microtime(true) - $this->bench,
|
226 |
) ) );
|
227 |
-
// additional debugging info when enabled
|
228 |
-
$jsConf['WP_DEBUG'] = true;
|
229 |
}
|
230 |
return $view->render( $tpl );
|
231 |
}
|
@@ -270,7 +270,7 @@ abstract class Loco_mvc_AdminController extends Loco_mvc_Controller {
|
|
270 |
public function enqueueScript( $name, array $deps = array() ){
|
271 |
$base = $this->baseurl;
|
272 |
if( ! $base ){
|
273 |
-
throw new Loco_error_Exception('Too early to enqueueScript('.
|
274 |
}
|
275 |
// use minimized javascript file. hook into script_loader_src to point at development source
|
276 |
$href = $base.'/pub/js/min/'.$name.'.js';
|
@@ -283,25 +283,20 @@ abstract class Loco_mvc_AdminController extends Loco_mvc_Controller {
|
|
283 |
|
284 |
|
285 |
/**
|
286 |
-
* @internal
|
287 |
* @param string
|
288 |
* @param string
|
289 |
* @param string
|
290 |
* @return string
|
291 |
*/
|
292 |
-
public function filter_script_loader_tag( $tag, $
|
293 |
-
if( array_key_exists($
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
Loco_error_AdminNotices::warn('Another plugin attempted to modify scripts on this page. If you experience problems, please let us know.');
|
298 |
-
Loco_error_AdminNotices::debug( $src.' does not belong to this plugin. It could be a hack attempt' );
|
299 |
-
// this will lose any legitimate filters we've added ourselves. (likely only under local dev)
|
300 |
-
$tag = str_replace($src,$this->scripts[$handle],$tag);
|
301 |
}
|
302 |
}
|
303 |
return $tag;
|
304 |
}
|
305 |
-
|
306 |
|
307 |
-
}
|
192 |
foreach( $args as $prop => $value ){
|
193 |
$view->set( $prop, $value );
|
194 |
}
|
195 |
+
// ensure JavaScript config present if any scripts are loaded
|
196 |
+
if( $view->has('js') ) {
|
197 |
+
$jsConf = $view->get( 'js' );
|
|
|
|
|
|
|
198 |
}
|
199 |
+
else if( $this->scripts ){
|
200 |
$jsConf = new Loco_mvc_ViewParams;
|
201 |
+
$this->set('js',$jsConf);
|
202 |
+
}
|
203 |
+
else {
|
204 |
+
$jsConf = null;
|
205 |
}
|
206 |
+
if( $jsConf instanceof Loco_mvc_ViewParams ){
|
207 |
+
// ensure config has access to latest version information
|
208 |
+
// we will use this to ensure scripts are not cached by browser, or hijacked by other plugins
|
209 |
+
$jsConf->offsetSet('$v', array( loco_plugin_version(), $GLOBALS['wp_version']) );
|
210 |
+
$jsConf->offsetSet('$js', array_keys($this->scripts) );
|
211 |
+
// localize script if translations in memory
|
212 |
+
if( is_textdomain_loaded('loco-translate') ){
|
213 |
+
$strings = new Loco_js_Strings;
|
214 |
+
$jsConf['wpl10n'] = $strings->compile();
|
215 |
+
$strings->unhook();
|
216 |
+
unset( $strings );
|
217 |
+
// add currently loaded locale for passing plural equation into js.
|
218 |
+
// note that plural rules come from our data, because MO is not trusted.
|
219 |
+
$tag = apply_filters( 'plugin_locale', get_locale(), 'loco-translate' );
|
220 |
+
$jsConf['wplang'] = Loco_Locale::parse($tag);
|
221 |
+
$jsConf['WP_DEBUG'] = loco_debugging();
|
222 |
+
}
|
223 |
}
|
224 |
// take benchmark for debugger to be rendered in footer
|
225 |
if( $this->bench ){
|
226 |
$this->set('_debug', new Loco_mvc_ViewParams( array(
|
227 |
'time' => microtime(true) - $this->bench,
|
228 |
) ) );
|
|
|
|
|
229 |
}
|
230 |
return $view->render( $tpl );
|
231 |
}
|
270 |
public function enqueueScript( $name, array $deps = array() ){
|
271 |
$base = $this->baseurl;
|
272 |
if( ! $base ){
|
273 |
+
throw new Loco_error_Exception('Too early to enqueueScript('.json_encode($name).')');
|
274 |
}
|
275 |
// use minimized javascript file. hook into script_loader_src to point at development source
|
276 |
$href = $base.'/pub/js/min/'.$name.'.js';
|
283 |
|
284 |
|
285 |
/**
|
286 |
+
* @internal
|
287 |
* @param string
|
288 |
* @param string
|
289 |
* @param string
|
290 |
* @return string
|
291 |
*/
|
292 |
+
public function filter_script_loader_tag( $tag, $id, $src ) {
|
293 |
+
if( array_key_exists($id,$this->scripts) ) {
|
294 |
+
// Add element id for in-dom verification of expected scripts
|
295 |
+
if( '<script ' === substr($tag,0,8) ){
|
296 |
+
$tag = '<script id="'.$id.'" '.substr($tag,8);
|
|
|
|
|
|
|
|
|
297 |
}
|
298 |
}
|
299 |
return $tag;
|
300 |
}
|
|
|
301 |
|
302 |
+
}
|
src/mvc/ViewParams.php
CHANGED
@@ -122,6 +122,17 @@ class Loco_mvc_ViewParams extends ArrayObject implements JsonSerializable {
|
|
122 |
}
|
123 |
|
124 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
/**
|
126 |
* @return array
|
127 |
*/
|
122 |
}
|
123 |
|
124 |
|
125 |
+
/**
|
126 |
+
* Print property value for JavaScript
|
127 |
+
* @param string property name
|
128 |
+
* @return string empty string
|
129 |
+
*/
|
130 |
+
public function j( $p ){
|
131 |
+
echo json_encode($this->__get($p) );
|
132 |
+
return '';
|
133 |
+
}
|
134 |
+
|
135 |
+
|
136 |
/**
|
137 |
* @return array
|
138 |
*/
|
src/package/Project.php
CHANGED
@@ -668,9 +668,14 @@ class Loco_package_Project {
|
|
668 |
$prefix = $this->getSlug();
|
669 |
$domain = $this->domain->getName();
|
670 |
$default = $this->isDomainDefault();
|
|
|
671 |
/* @var $file Loco_fs_File */
|
672 |
foreach( $files[$ext] as $file ){
|
673 |
$file = new Loco_fs_LocaleFile( $file );
|
|
|
|
|
|
|
|
|
674 |
// add file if prefix matches and has a suffix. locale will be validated later
|
675 |
if( $file->getPrefix() === $prefix && $file->getSuffix() ){
|
676 |
$list->addLocalized( $file );
|
668 |
$prefix = $this->getSlug();
|
669 |
$domain = $this->domain->getName();
|
670 |
$default = $this->isDomainDefault();
|
671 |
+
$prefs = Loco_data_Preferences::get();
|
672 |
/* @var $file Loco_fs_File */
|
673 |
foreach( $files[$ext] as $file ){
|
674 |
$file = new Loco_fs_LocaleFile( $file );
|
675 |
+
// restrict locale by user preference
|
676 |
+
if( $prefs && ! $prefs->has_locale( $file->getLocale() ) ){
|
677 |
+
continue;
|
678 |
+
}
|
679 |
// add file if prefix matches and has a suffix. locale will be validated later
|
680 |
if( $file->getPrefix() === $prefix && $file->getSuffix() ){
|
681 |
$list->addLocalized( $file );
|
src/test/WordPressTestCase.php
CHANGED
@@ -54,6 +54,7 @@ abstract class Loco_test_WordPressTestCase extends WP_UnitTestCase {
|
|
54 |
Loco_data_Settings::clear();
|
55 |
Loco_data_Session::destroy();
|
56 |
Loco_data_RecentItems::destroy();
|
|
|
57 |
self::dropOptions();
|
58 |
// start with default permissions as if fresh install
|
59 |
remove_role('translator');
|
@@ -69,6 +70,7 @@ abstract class Loco_test_WordPressTestCase extends WP_UnitTestCase {
|
|
69 |
Loco_data_Settings::clear();
|
70 |
Loco_data_Session::destroy();
|
71 |
Loco_data_RecentItems::destroy();
|
|
|
72 |
wp_cache_flush();
|
73 |
self::dropOptions();
|
74 |
}
|
54 |
Loco_data_Settings::clear();
|
55 |
Loco_data_Session::destroy();
|
56 |
Loco_data_RecentItems::destroy();
|
57 |
+
Loco_data_Preferences::clear();
|
58 |
self::dropOptions();
|
59 |
// start with default permissions as if fresh install
|
60 |
remove_role('translator');
|
70 |
Loco_data_Settings::clear();
|
71 |
Loco_data_Session::destroy();
|
72 |
Loco_data_RecentItems::destroy();
|
73 |
+
Loco_data_Preferences::clear();
|
74 |
wp_cache_flush();
|
75 |
self::dropOptions();
|
76 |
}
|
tpl/admin/bundle/inc-po-table.php
CHANGED
@@ -56,6 +56,9 @@
|
|
56 |
<span>
|
57 |
<a href="<?php $po->e('copy')?>"><?php esc_html_e('Copy','loco-translate')?></a> |
|
58 |
</span>
|
|
|
|
|
|
|
59 |
<span class="trash">
|
60 |
<a href="<?php $po->e('delete')?>"><?php esc_html_e('Delete','loco-translate')?></a>
|
61 |
</span>
|
56 |
<span>
|
57 |
<a href="<?php $po->e('copy')?>"><?php esc_html_e('Copy','loco-translate')?></a> |
|
58 |
</span>
|
59 |
+
<span>
|
60 |
+
<a href="<?php $po->e('move')?>"><?php esc_html_e('Move','loco-translate')?></a> |
|
61 |
+
</span>
|
62 |
<span class="trash">
|
63 |
<a href="<?php $po->e('delete')?>"><?php esc_html_e('Delete','loco-translate')?></a>
|
64 |
</span>
|
tpl/admin/config/apis.php
CHANGED
@@ -4,6 +4,7 @@
|
|
4 |
*/
|
5 |
|
6 |
$this->extend('../layout');
|
|
|
7 |
/* @var Loco_mvc_ViewParams[] $apis */
|
8 |
/* @var Loco_mvc_ViewParams $nonce */
|
9 |
$help = apply_filters('loco_external','https://localise.biz/wordpress/plugin/manual/providers');
|
@@ -13,6 +14,27 @@ $help = apply_filters('loco_external','https://localise.biz/wordpress/plugin/man
|
|
13 |
<input type="hidden" name="<?php $nonce->e('name')?>" value="<?php $nonce->e('value')?>" />
|
14 |
<table class="form-table">
|
15 |
<tbody><?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
// GOOGLE
|
17 |
$api = $apis['google']?>
|
18 |
<tr>
|
@@ -20,11 +42,11 @@ $help = apply_filters('loco_external','https://localise.biz/wordpress/plugin/man
|
|
20 |
<td>
|
21 |
<fieldset>
|
22 |
<legend class="screen-reader-text">
|
23 |
-
<span><?php
|
24 |
</legend>
|
25 |
<p>
|
26 |
<label for="loco--google_api_key">
|
27 |
-
<?php
|
28 |
</label>
|
29 |
<input type="text" size="50" name="api[google][key]" id="loco--google_api_key" value="<?php $api->e('key')?>" spellcheck="false" />
|
30 |
</p>
|
@@ -41,17 +63,17 @@ $help = apply_filters('loco_external','https://localise.biz/wordpress/plugin/man
|
|
41 |
<td>
|
42 |
<fieldset>
|
43 |
<legend class="screen-reader-text">
|
44 |
-
<span><?php
|
45 |
</legend>
|
46 |
<p>
|
47 |
<label for="loco--microsoft_api_key">
|
48 |
-
<?php
|
49 |
</label>
|
50 |
<input type="text" size="50" name="api[microsoft][key]" id="loco--microsoft_api_key" value="<?php $api->e('key')?>" spellcheck="false" />
|
51 |
</p>
|
52 |
<p>
|
53 |
<label for="loco--microsoft_api_region">
|
54 |
-
<?php
|
55 |
</label>
|
56 |
<input type="text" size="20" name="api[microsoft][region]" id="loco--microsoft_api_region" value="<?php $api->e('region')?>" spellcheck="false" placeholder="global" />
|
57 |
</p>
|
@@ -68,11 +90,11 @@ $help = apply_filters('loco_external','https://localise.biz/wordpress/plugin/man
|
|
68 |
<td>
|
69 |
<fieldset>
|
70 |
<legend class="screen-reader-text">
|
71 |
-
<span><?php
|
72 |
</legend>
|
73 |
<p>
|
74 |
<label for="loco--yandex_api_key">
|
75 |
-
<?php
|
76 |
</label>
|
77 |
<input type="text" size="90" name="api[yandex][key]" id="loco--yandex_api_key" value="<?php $api->e('key')?>" spellcheck="false" />
|
78 |
</p>
|
4 |
*/
|
5 |
|
6 |
$this->extend('../layout');
|
7 |
+
/* @var Loco_mvc_ViewParams $ui */
|
8 |
/* @var Loco_mvc_ViewParams[] $apis */
|
9 |
/* @var Loco_mvc_ViewParams $nonce */
|
10 |
$help = apply_filters('loco_external','https://localise.biz/wordpress/plugin/manual/providers');
|
14 |
<input type="hidden" name="<?php $nonce->e('name')?>" value="<?php $nonce->e('value')?>" />
|
15 |
<table class="form-table">
|
16 |
<tbody><?php
|
17 |
+
// DEEPL
|
18 |
+
$api = $apis['deepl']?>
|
19 |
+
<tr>
|
20 |
+
<th scope="row"><?php $api->e('name')?></th>
|
21 |
+
<td>
|
22 |
+
<fieldset>
|
23 |
+
<legend class="screen-reader-text">
|
24 |
+
<span><?php $ui->e('api_key')?></span>
|
25 |
+
</legend>
|
26 |
+
<p>
|
27 |
+
<label for="loco--deepl_api_key">
|
28 |
+
<?php $ui->e('api_key')?>:
|
29 |
+
</label>
|
30 |
+
<input type="text" size="50" name="api[deepl][key]" id="loco--deepl_api_key" value="<?php $api->e('key')?>" spellcheck="false" />
|
31 |
+
</p>
|
32 |
+
<p>
|
33 |
+
<span class="description"><a href="https://www.deepl.com/translator" target="_blank" tabindex="-1">https://www.deepl.com/translator</a></span>
|
34 |
+
</p>
|
35 |
+
</fieldset>
|
36 |
+
</td>
|
37 |
+
</tr><?php
|
38 |
// GOOGLE
|
39 |
$api = $apis['google']?>
|
40 |
<tr>
|
42 |
<td>
|
43 |
<fieldset>
|
44 |
<legend class="screen-reader-text">
|
45 |
+
<span><?php $ui->e('api_key')?></span>
|
46 |
</legend>
|
47 |
<p>
|
48 |
<label for="loco--google_api_key">
|
49 |
+
<?php $ui->e('api_key')?>:
|
50 |
</label>
|
51 |
<input type="text" size="50" name="api[google][key]" id="loco--google_api_key" value="<?php $api->e('key')?>" spellcheck="false" />
|
52 |
</p>
|
63 |
<td>
|
64 |
<fieldset>
|
65 |
<legend class="screen-reader-text">
|
66 |
+
<span><?php $ui->e('api_key')?></span>
|
67 |
</legend>
|
68 |
<p>
|
69 |
<label for="loco--microsoft_api_key">
|
70 |
+
<?php $ui->e('api_key')?>:
|
71 |
</label>
|
72 |
<input type="text" size="50" name="api[microsoft][key]" id="loco--microsoft_api_key" value="<?php $api->e('key')?>" spellcheck="false" />
|
73 |
</p>
|
74 |
<p>
|
75 |
<label for="loco--microsoft_api_region">
|
76 |
+
<?php $ui->e('api_region')?>:
|
77 |
</label>
|
78 |
<input type="text" size="20" name="api[microsoft][region]" id="loco--microsoft_api_region" value="<?php $api->e('region')?>" spellcheck="false" placeholder="global" />
|
79 |
</p>
|
90 |
<td>
|
91 |
<fieldset>
|
92 |
<legend class="screen-reader-text">
|
93 |
+
<span><?php $ui->e('api_key')?></span>
|
94 |
</legend>
|
95 |
<p>
|
96 |
<label for="loco--yandex_api_key">
|
97 |
+
<?php $ui->e('api_key')?>:
|
98 |
</label>
|
99 |
<input type="text" size="90" name="api[yandex][key]" id="loco--yandex_api_key" value="<?php $api->e('key')?>" spellcheck="false" />
|
100 |
</p>
|
tpl/admin/config/debug.php
CHANGED
@@ -3,6 +3,8 @@
|
|
3 |
* System diagnostics
|
4 |
*/
|
5 |
$this->extend('../layout');
|
|
|
|
|
6 |
?>
|
7 |
|
8 |
<div class="panel" id="loco-versions">
|
@@ -13,10 +15,11 @@ $this->extend('../layout');
|
|
13 |
<dl><?php
|
14 |
foreach( $versions as $key => $value ): if( $value ):?>
|
15 |
<dt>
|
16 |
-
<?php
|
17 |
</dt>
|
18 |
<dd>
|
19 |
-
<code class="path"
|
|
|
20 |
</dd><?php
|
21 |
endif; endforeach?>
|
22 |
</dl>
|
3 |
* System diagnostics
|
4 |
*/
|
5 |
$this->extend('../layout');
|
6 |
+
|
7 |
+
/* @var Loco_mvc_ViewParams $versions */
|
8 |
?>
|
9 |
|
10 |
<div class="panel" id="loco-versions">
|
15 |
<dl><?php
|
16 |
foreach( $versions as $key => $value ): if( $value ):?>
|
17 |
<dt>
|
18 |
+
<?php self::e($key)?>:
|
19 |
</dt>
|
20 |
<dd>
|
21 |
+
<code class="path" id="loco-vers-<?php self::e(strtolower(strtr($key,' ','-')))?>"><?php
|
22 |
+
$versions->e($key)?></code>
|
23 |
</dd><?php
|
24 |
endif; endforeach?>
|
25 |
</dl>
|
tpl/admin/config/prefs.php
CHANGED
@@ -25,6 +25,19 @@ $help = apply_filters('loco_external','https://localise.biz/wordpress/plugin/man
|
|
25 |
</fieldset>
|
26 |
</td>
|
27 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
</tbody>
|
29 |
</table>
|
30 |
<p class="submit">
|
25 |
</fieldset>
|
26 |
</td>
|
27 |
</tr>
|
28 |
+
<tr>
|
29 |
+
<th scope="row"><?php esc_html_e('Restrict locales','loco-translate')?></th>
|
30 |
+
<td>
|
31 |
+
<fieldset>
|
32 |
+
<legend class="screen-reader-text">
|
33 |
+
<span><?php esc_html_e('Restrict locales','loco-translate')?></span>
|
34 |
+
</legend>
|
35 |
+
<p>
|
36 |
+
<input type="text" size="64" name="opts[locales]" id="loco--locales" value="<?php echo esc_attr(implode(', ',$opts->locales) )?>" placeholder="en_US, ..." />
|
37 |
+
</p>
|
38 |
+
</fieldset>
|
39 |
+
</td>
|
40 |
+
</tr>
|
41 |
</tbody>
|
42 |
</table>
|
43 |
<p class="submit">
|
tpl/admin/layout.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Base layout for all admin pages
|
4 |
*/
|
5 |
-
?><div class="wrap" id="loco"><?php
|
6 |
|
7 |
if( $this->has('breadcrumb') ):?>
|
8 |
<h1>
|
@@ -56,7 +56,7 @@
|
|
56 |
// standard file system dialogues
|
57 |
if( $params->has('fsFields') ):
|
58 |
echo $this->render('common/inc-fsconn');
|
59 |
-
endif
|
60 |
</div>
|
61 |
|
62 |
|
@@ -68,11 +68,16 @@
|
|
68 |
|
69 |
|
70 |
<?php
|
71 |
-
|
72 |
-
if( $this->has('js') ):?>
|
73 |
-
<script>
|
74 |
/*<![CDATA[*/
|
75 |
-
window.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
/*]]>*/
|
77 |
</script><?php
|
78 |
endif;
|
2 |
/**
|
3 |
* Base layout for all admin pages
|
4 |
*/
|
5 |
+
?><div class="wrap" id="loco-admin"><?php
|
6 |
|
7 |
if( $this->has('breadcrumb') ):?>
|
8 |
<h1>
|
56 |
// standard file system dialogues
|
57 |
if( $params->has('fsFields') ):
|
58 |
echo $this->render('common/inc-fsconn');
|
59 |
+
endif?>
|
60 |
</div>
|
61 |
|
62 |
|
68 |
|
69 |
|
70 |
<?php
|
71 |
+
if( $this->has('js') && $js instanceof Loco_mvc_ViewParams ):?><script>
|
|
|
|
|
72 |
/*<![CDATA[*/
|
73 |
+
window.loco = { conf: <?php echo $js->exportJson()?> };
|
74 |
+
document.addEventListener && document.addEventListener('DOMContentLoaded', function(loco){
|
75 |
+
return function() {
|
76 |
+
if( window.loco !== loco || ! loco.validate || ! loco.validate(<?php $js->j('$v')?>,<?php $js->j('$js')?>) ) {
|
77 |
+
document.getElementById('loco-content').innerHTML = '<div class="notice inline notice-danger"><p>Scripts on this page are not running as expected. Please empty all relevant caches and refresh the screen.<br />If the issue persists, try disabling other plugins that may be modifying the functionality of Loco Translate.</p></div>';
|
78 |
+
}
|
79 |
+
};
|
80 |
+
}(loco) );
|
81 |
/*]]>*/
|
82 |
</script><?php
|
83 |
endif;
|
tpl/admin/list/locales.php
CHANGED
@@ -27,7 +27,7 @@ echo $this->render('../common/inc-table-filter');
|
|
27 |
</tr>
|
28 |
</thead>
|
29 |
<tbody><?php
|
30 |
-
/* @var $
|
31 |
foreach( $locales as $p ):?>
|
32 |
<tr>
|
33 |
<td>
|
@@ -51,4 +51,15 @@ echo $this->render('../common/inc-table-filter');
|
|
51 |
</tr><?php
|
52 |
endforeach?>
|
53 |
</tbody>
|
54 |
-
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
</tr>
|
28 |
</thead>
|
29 |
<tbody><?php
|
30 |
+
/* @var Loco_mvc_ViewParams[] $locales */
|
31 |
foreach( $locales as $p ):?>
|
32 |
<tr>
|
33 |
<td>
|
51 |
</tr><?php
|
52 |
endforeach?>
|
53 |
</tbody>
|
54 |
+
</table>
|
55 |
+
|
56 |
+
<?php
|
57 |
+
/* Unsure if we should observe locale whitelist on this screen.
|
58 |
+
if( $skipped ): $n = count($skipped);?>
|
59 |
+
<div class="notice inline">
|
60 |
+
<p>
|
61 |
+
<span><?php self::e( _n('One more locale is hidden by your preferences','%d more locales are hidden by your preferences',$n,'loco-translate'), $n )?>.</span>
|
62 |
+
<span>(<?php echo implode(', ',$skipped)?>)</span>
|
63 |
+
</p>
|
64 |
+
</div><?php
|
65 |
+
endif;*/
|