mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-07-21 09:12:13 +02:00
Fix #569 translate page filters
This commit is contained in:
10
admin.php
10
admin.php
@@ -707,7 +707,15 @@ class AdminPlugin extends Plugin
|
||||
'ORDERED_LIST',
|
||||
'EDITOR',
|
||||
'PREVIEW',
|
||||
'FULLSCREEN'
|
||||
'FULLSCREEN',
|
||||
'MODULAR',
|
||||
'NON_MODULAR',
|
||||
'VISIBLE',
|
||||
'NON_VISIBLE',
|
||||
'ROUTABLE',
|
||||
'NON_ROUTABLE',
|
||||
'PUBLISHED',
|
||||
'NON_PUBLISHED'
|
||||
];
|
||||
|
||||
foreach($strings as $string) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import $ from 'jquery';
|
||||
import { config } from 'grav-config';
|
||||
import { config, translations } from 'grav-config';
|
||||
import request from '../utils/request';
|
||||
import debounce from 'debounce';
|
||||
import { Instance as pagesTree } from './tree';
|
||||
@@ -9,14 +9,14 @@ import '../utils/storage';
|
||||
/* @formatter:off */
|
||||
/* eslint-disable */
|
||||
const options = [
|
||||
{ flag: 'Modular', key: 'Modular', cat: 'mode' },
|
||||
{ flag: 'Visible', key: 'Visible', cat: 'mode' },
|
||||
{ flag: 'Routable', key: 'Routable', cat: 'mode' },
|
||||
{ flag: 'Published', key: 'Published', cat: 'mode' },
|
||||
{ flag: 'Non-Modular', key: 'NonModular', cat: 'mode' },
|
||||
{ flag: 'Non-Visible', key: 'NonVisible', cat: 'mode' },
|
||||
{ flag: 'Non-Routable', key: 'NonRoutable', cat: 'mode' },
|
||||
{ flag: 'Non-Published', key: 'NonPublished', cat: 'mode' }
|
||||
{ flag: translations.PLUGIN_ADMIN.MODULAR, key: 'Modular', cat: 'mode' },
|
||||
{ flag: translations.PLUGIN_ADMIN.VISIBLE, key: 'Visible', cat: 'mode' },
|
||||
{ flag: translations.PLUGIN_ADMIN.ROUTABLE, key: 'Routable', cat: 'mode' },
|
||||
{ flag: translations.PLUGIN_ADMIN.PUBLISHED, key: 'Published', cat: 'mode' },
|
||||
{ flag: translations.PLUGIN_ADMIN.NON_MODULAR, key: 'NonModular', cat: 'mode' },
|
||||
{ flag: translations.PLUGIN_ADMIN.NON_VISIBLE, key: 'NonVisible', cat: 'mode' },
|
||||
{ flag: translations.PLUGIN_ADMIN.NON_ROUTABLE, key: 'NonRoutable', cat: 'mode' },
|
||||
{ flag: translations.PLUGIN_ADMIN.NON_PUBLISHED, key: 'NonPublished', cat: 'mode' }
|
||||
];
|
||||
/* @formatter:on */
|
||||
/* eslint-enable */
|
||||
|
||||
28
themes/grav/js/admin.min.js
vendored
28
themes/grav/js/admin.min.js
vendored
File diff suppressed because one or more lines are too long
30
themes/grav/js/vendor.min.js
vendored
30
themes/grav/js/vendor.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user