diff --git a/system/blueprints/config/media.yaml b/system/blueprints/config/media.yaml index 2550b912c..a48bd0942 100644 --- a/system/blueprints/config/media.yaml +++ b/system/blueprints/config/media.yaml @@ -1,4 +1,4 @@ -title: Media +title: PLUGIN_ADMIN.MEDIA form: validation: loose diff --git a/system/blueprints/config/site.yaml b/system/blueprints/config/site.yaml index 9c74d59d0..033d76f52 100644 --- a/system/blueprints/config/site.yaml +++ b/system/blueprints/config/site.yaml @@ -1,64 +1,64 @@ -title: Site +title: PLUGIN_ADMIN.SITE form: validation: loose fields: content: type: section - title: Defaults + title: PLUGIN_ADMIN.DEFAULTS fields: title: type: text - label: Site Title + label: PLUGIN_ADMIN.SITE_TITLE size: large - placeholder: "Site wide title" - help: "Default title for your site, often used in themes" + placeholder: PLUGIN_ADMIN.SITE_TITLE_PLACEHOLDER + help: PLUGIN_ADMIN.SITE_TITLE_HELP author.name: type: text size: large - label: Default Author - help: "A default author name, often used in themes or page content" + label: PLUGIN_ADMIN.DEFAULT_AUTHOR + help: PLUGIN_ADMIN.DEFAULT_AUTHOR_HELP author.email: type: text size: large - label: Default Email - help: "A default email to reference in themes or pages" + label: PLUGIN_ADMIN.DEFAULT_EMAIL + help: PLUGIN_ADMIN.DEFAULT_EMAIL_HELP validate: type: email taxonomies: type: selectize size: large - label: Taxonomy Types + label: PLUGIN_ADMIN.TAXONOMY_TYPES classes: fancy - help: "Taxonomy types must be defined here if you wish to use them in pages" + help: PLUGIN_ADMIN.TAXONOMY_TYPES_HELP validate: type: commalist summary: type: section - title: Page Summary + title: PLUGIN_ADMIN.PAGE_SUMMARY fields: summary.enabled: type: toggle - label: Enabled + label: PLUGIN_ADMIN.ENABLED highlight: 1 - help: "Enable page summary (the summary returns the same as the page content)" + help: PLUGIN_ADMIN.ENABLED_HELP options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool summary.size: type: text size: x-small - label: Summary Size - help: "The amount of characters of a page to use as a content summary" + label: PLUGIN_ADMIN.SUMMARY_SIZE + help: PLUGIN_ADMIN.SUMMARY_SIZE_HELP validate: type: int min: 0 @@ -66,48 +66,47 @@ form: summary.format: type: toggle - label: Format + label: PLUGIN_ADMIN.FORMAT classes: fancy - help: "short = use the first occurrence of delimiter or size; long = summary delimiter will be ignored" + help: PLUGIN_ADMIN.FORMAT_HELP highlight: short options: - 'short': 'Short' - 'long': 'Long' + 'short': PLUGIN_ADMIN.SHORT + 'long': PLUGIN_ADMIN.LONG summary.delimiter: type: text size: x-small - label: Delimiter - help: "The summary delimiter (default '===')" + label: PLUGIN_ADMIN.DELIMITER + help: PLUGIN_ADMIN.DELIMITER_HELP metadata: type: section - title: Metadata + title: PLUGIN_ADMIN.METADATA fields: metadata: type: array - label: Metadata - help: "Default metadata values that will be displayed on every page unless overridden by the page" - placeholder_key: Name - placeholder_value: Content - + label: PLUGIN_ADMIN.METADATA + help: PLUGIN_ADMIN.METADATA_HELP + placeholder_key: PLUGIN_ADMIN.NAME + placeholder_value: PLUGIN_ADMIN.CONTENT routes: type: section - title: Redirects & Routes + title: PLUGIN_ADMIN.REDIRECTS_AND_ROUTES fields: redirects: type: array - label: Custom Redirects - help: "routes to redirect to other pages. Standard Regex replacement is valid" - placeholder_key: /your/alias - placeholder_value: /your/redirect + label: PLUGIN_ADMIN.CUSTOM_REDIRECTS + help: PLUGIN_ADMIN.CUSTOM_REDIRECTS_HELP + placeholder_key: PLUGIN_ADMIN.CUSTOM_REDIRECTS_PLACEHOLDER_KEY + placeholder_value: PLUGIN_ADMIN.CUSTOM_REDIRECTS_PLACEHOLDER_VALUE routes: type: array - label: Custom Routes - help: "routes to alias to other pages. Standard Regex replacement is valid" - placeholder_key: /your/alias - placeholder_value: /your/route + label: PLUGIN_ADMIN.CUSTOM_ROUTES + help: PLUGIN_ADMIN.CUSTOM_ROUTES_HELP + placeholder_key: PLUGIN_ADMIN.CUSTOM_ROUTES_PLACEHOLDER_KEY + placeholder_value: PLUGIN_ADMIN.CUSTOM_ROUTES_PLACEHOLDER_VALUE diff --git a/system/blueprints/config/streams.yaml b/system/blueprints/config/streams.yaml index a1e95a6c9..636bed295 100644 --- a/system/blueprints/config/streams.yaml +++ b/system/blueprints/config/streams.yaml @@ -1,4 +1,4 @@ -title: File Streams +title: PLUGIN_ADMIN.FILE_STREAMS form: validation: loose diff --git a/system/blueprints/config/system.yaml b/system/blueprints/config/system.yaml index 65401dece..cfb8121a1 100644 --- a/system/blueprints/config/system.yaml +++ b/system/blueprints/config/system.yaml @@ -1,4 +1,4 @@ -title: System +title: PLUGIN_ADMIN.SYSTEM form: validation: loose @@ -6,7 +6,7 @@ form: content: type: section - title: Content + title: PLUGIN_ADMIN.CONTENT underline: true fields: @@ -14,24 +14,24 @@ form: type: pages size: medium classes: fancy - label: Home page + label: PLUGIN_ADMIN.HOME_PAGE show_all: false show_modular: false show_root: false - help: "The page that Grav will use as the default landing page" + help: PLUGIN_ADMIN.HOME_PAGE_HELP pages.theme: type: themeselect classes: fancy selectize: true size: medium - label: Default theme - help: "Set the default theme for Grav to use (default is Antimatter)" + label: PLUGIN_ADMIN.DEFAULT_THEME + help: PLUGIN_ADMIN.DEFAULT_THEME_HELP pages.process: type: checkboxes - label: Process - help: "Control how pages are processed. Can be set per-page rather than globally" + label: PLUGIN_ADMIN.PROCESS + help: PLUGIN_ADMIN.PROCESS_HELP default: [markdown: true, twig: true] options: markdown: Markdown @@ -40,10 +40,10 @@ form: timezone: type: select - label: Timezone + label: PLUGIN_ADMIN.TIMEZONE size: medium classes: fancy - help: "Override the default timezone the server" + help: PLUGIN_ADMIN.TIMEZONE_HELP @data-options: '\Grav\Common\Utils::timezones' default: '' options: @@ -53,8 +53,8 @@ form: type: dateformat size: medium classes: fancy - label: Short date format - help: "Set the short date format that can be used by themes" + label: PLUGIN_ADMIN.SHORT_DATE_FORMAT + help: PLUGIN_ADMIN.SHORT_DATE_FORMAT_HELP default: "jS M Y" options: "F jS \\a\\t g:ia": Date1 @@ -67,8 +67,8 @@ form: type: dateformat size: medium classes: fancy - label: Long date format - help: "Set the long date format that can be used by themes" + label: PLUGIN_ADMIN.LONG_DATE_FORMAT + help: PLUGIN_ADMIN.LONG_DATE_FORMAT_HELP options: "F jS \\a\\t g:ia": Date1 "l jS of F g:i A": Date2 @@ -80,37 +80,37 @@ form: type: select size: medium classes: fancy - label: Default ordering - help: "Pages in a list will render using this order unless it is overridden" + label: PLUGIN_ADMIN.DEFAULT_ORDERING + help: PLUGIN_ADMIN.DEFAULT_ORDERING_HELP options: - default: Default - based on folder name - folder: Folder - based on prefix-less folder name - title: Title - based on title field in header - date: Date - based on date field in header + default: PLUGIN_ADMIN.DEFAULT_ORDERING_DEFAULT + folder: PLUGIN_ADMIN.DEFAULT_ORDERING_FOLDER + title: PLUGIN_ADMIN.DEFAULT_ORDERING_TITLE + date: PLUGIN_ADMIN.DEFAULT_ORDERING_DATE pages.order.dir: type: toggle - label: Default order direction + label: PLUGIN_ADMIN.DEFAULT_ORDER_DIRECTION highlight: asc default: desc - help: "The direction of pages in a list" + help: PLUGIN_ADMIN.DEFAULT_ORDER_DIRECTION_HELP options: - asc: Ascending - desc: Descending + asc: PLUGIN_ADMIN.ASCENDING + desc: PLUGIN_ADMIN.DESCENDING pages.list.count: type: text size: x-small - label: Default page count - help: "Default maximum pages count in a list" + label: PLUGIN_ADMIN.DEFAULT_PAGE_COUNT + help: PLUGIN_ADMIN.DEFAULT_PAGE_COUNT_HELP validate: type: number min: 1 pages.publish_dates: type: toggle - label: Date-based publishing - help: "Automatically (un)publish posts based on their date" + label: PLUGIN_ADMIN.DATE_BASED_PUBLISHING + help: PLUGIN_ADMIN.DATE_BASED_PUBLISHING_HELP highlight: 1 options: 1: Yes @@ -120,8 +120,8 @@ form: pages.events: type: checkboxes - label: Events - help: "Enable or Disable specific events. Disabling these can break plugins" + label: PLUGIN_ADMIN.EVENTS + help: PLUGIN_ADMIN.EVENTS_HELP default: [page: true, twig: true] options: page: Page Events @@ -130,18 +130,18 @@ form: pages.redirect_default_route: type: toggle - label: Redirect default route - help: "Automatically redirect to a page's default route" + label: PLUGIN_ADMIN.REDIRECT_DEFAULT_ROUTE + help: PLUGIN_ADMIN.REDIRECT_DEFAULT_ROUTE_HELP highlight: 0 options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool languages: type: section - title: Languages + title: PLUGIN_ADMIN.LANGUAGES underline: true fields: @@ -149,109 +149,109 @@ form: languages.supported: type: selectize size: large - label: Supported - help: "Comma separated list of 2 letter language codes (for example 'en,fr,de')" + label: PLUGIN_ADMIN.SUPPORTED + help: PLUGIN_ADMIN.SUPPORTED_HELP classes: fancy validate: type: commalist languages.translations: type: toggle - label: Translations enabled - help: "Support translations in Grav, plugins and extensions" + label: PLUGIN_ADMIN.TRANSLATIONS_ENABLED + help: PLUGIN_ADMIN.TRANSLATIONS_ENABLED_HELP highlight: 1 options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool languages.translations_fallback: type: toggle - label: Translations fallback - help: "Fallback through supported translations if active language doesn't exist" + label: PLUGIN_ADMIN.TRANSLATIONS_FALLBACK + help: PLUGIN_ADMIN.TRANSLATIONS_FALLBACK_HELP highlight: 1 options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool languages.session_store_active: type: toggle - label: Active language in session - help: "Store the active language in the session" + label: PLUGIN_ADMIN.ACTIVE_LANGUAGE_IN_SESSION + help: PLUGIN_ADMIN.ACTIVE_LANGUAGE_IN_SESSION_HELP highlight: 0 options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool languages.home_redirect.include_lang: type: toggle - label: Home redirect include language - help: "Include language in home redirect (/en)" + label: PLUGIN_ADMIN.HOME_REDIRECT_INCLUDE_LANGUAGE + help: PLUGIN_ADMIN.HOME_REDIRECT_INCLUDE_LANGUAGE_HELP highlight: 1 options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool languages.home_redirect.include_route: type: toggle - label: Home redirect include route - help: "Include route in home redirect (/blog)" + label: PLUGIN_ADMIN.HOME_REDIRECT_INCLUDE_ROUTE + help: PLUGIN_ADMIN.HOME_REDIRECT_INCLUDE_ROUTE highlight: 0 options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool http_headers: type: section - title: HTTP Headers + title: PLUGIN_ADMIN.HTTP_HEADERS underline: true fields: pages.expires: type: text size: small - label: Expires - help: "Sets the expires header. The value is in seconds." + label: PLUGIN_ADMIN.EXPIRES + help: PLUGIN_ADMIN.EXPIRES_HELP validate: type: number min: 1 pages.last_modified: type: toggle - label: Last modified - help: "Sets the last modified header that can help optimize proxy and browser caching" + label: PLUGIN_ADMIN.LAST_MODIFIED + help: PLUGIN_ADMIN.LAST_MODIFIED_HELP highlight: 0 options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool pages.etag: type: toggle - label: ETag - help: "Sets the etag header to help identify when a page has been modified" + label: PLUGIN_ADMIN.ETAG + help: PLUGIN_ADMIN.ETAG_HELP highlight: 0 options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool pages.vary_accept_encoding: type: toggle - label: Vary accept encoding - help: "Sets the `Vary: Accept Encoding` header to help with proxy and CDN caching" + label: PLUGIN_ADMIN.VARY_ACCEPT_ENCODING + help: PLUGIN_ADMIN.VARY_ACCEPT_ENCODING_HELP highlight: 0 options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool @@ -264,58 +264,58 @@ form: pages.markdown.extra: type: toggle label: Markdown extra - help: "Enable default support for Markdown Extra - https://michelf.ca/projects/php-markdown/extra/" + help: PLUGIN_ADMIN.MARKDOWN_EXTRA_HELP highlight: 0 options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool pages.markdown.auto_line_breaks: type: toggle - label: Auto line breaks - help: "Enable support for automatic line breaks in markdown" + label: PLUGIN_ADMIN.AUTO_LINE_BREAKS + help: PLUGIN_ADMIN.AUTO_LINE_BREAKS_HELP highlight: 0 options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool pages.markdown.auto_url_links: type: toggle - label: Auto URL links - help: "Enable automatic conversion of URLs into HTML hyperlinks" + label: PLUGIN_ADMIN.AUTO_URL_LINKS + help: PLUGIN_ADMIN.AUTO_URL_LINKS_HELP highlight: 0 options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool pages.markdown.escape_markup: type: toggle - label: Escape markup - help: "Escape markup tags into HTML entities" + label: PLUGIN_ADMIN.ESCAPE_MARKUP + help: PLUGIN_ADMIN.ESCAPE_MARKUP_HELP highlight: 0 options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool caching: type: section - title: Caching + title: PLUGIN_ADMIN.CACHING underline: true fields: cache.enabled: type: toggle - label: Caching - help: "Global ON/OFF switch to enable/disable Grav caching" + label: PLUGIN_ADMIN.CACHING + help: PLUGIN_ADMIN.CACHING_HELP highlight: 1 options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool @@ -323,8 +323,8 @@ form: type: select size: small classes: fancy - label: Cache check method - help: "Select the method that Grav uses to check if page files have been modified." + label: PLUGIN_ADMIN.CACHE_CHECK_METHOD + help: PLUGIN_ADMIN.CACHE_CHECK_METHOD options: file: File folder: Folder @@ -334,8 +334,8 @@ form: type: select size: small classes: fancy - label: Cache driver - help: "Choose which cache driver Grav should use. 'Auto Detect' attempts to find the best for you" + label: PLUGIN_ADMIN.CACHE_DRIVER + help: PLUGIN_ADMIN.CACHE_DRIVER_HELP options: auto: Auto detect file: File @@ -347,246 +347,246 @@ form: cache.prefix: type: text size: x-small - label: Cache prefix - help: "An identifier for part of the Grav key. Don't change unless you know what your doing." - placeholder: "Derived from base URL (override by entering random string)" + label: PLUGIN_ADMIN.CACHE_PREFIX + help: PLUGIN_ADMIN.CACHE_PREFIX_HELP + placeholder: PLUGIN_ADMIN.CACHE_PREFIX_PLACEHOLDER cache.lifetime: type: text size: small - label: Lifetime - help: "Sets the cache lifetime in seconds. 0 = infinite" + label: PLUGIN_ADMIN.LIFETIME + help: PLUGIN_ADMIN.LIFETIME_HELP validate: type: number cache.gzip: type: toggle - label: Gzip compression - help: "Enable GZip compression of the Grav page for increased performance." + label: PLUGIN_ADMIN.GZIP_COMPRESSION + help: PLUGIN_ADMIN.GZIP_COMPRESSION_HELP highlight: 0 options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool twig: type: section - title: Twig Templating + title: PLUGIN_ADMIN.TWIG_TEMPLATING underline: true fields: twig.cache: type: toggle - label: Twig caching - help: "Control the Twig caching mechanism. Leave this enabled for best performance." + label: PLUGIN_ADMIN.TWIG_CACHING + help: PLUGIN_ADMIN.TWIG_CACHING_HELP highlight: 1 options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool twig.debug: type: toggle - label: Twig debug - help: "Allows the option of not loading the Twig Debugger extension" + label: PLUGIN_ADMIN.TWIG_DEBUG + help: PLUGIN_ADMIN.TWIG_DEBUG_HELP highlight: 0 options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool twig.auto_reload: type: toggle - label: Detect changes - help: "Twig will automatically recompile the Twig cache if it detects any changes in Twig templates" + label: PLUGIN_ADMIN.DETECT_CHANGES + help: PLUGIN_ADMIN.DETECT_CHANGES_HELP highlight: 1 options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool twig.autoescape: type: toggle - label: Autoescape variables - help: "Autoescapes all variables. This will break your site most likely" + label: PLUGIN_ADMIN.AUTOESCAPE_VARIABLES + help: PLUGIN_ADMIN.AUTOESCAPE_VARIABLES_HELP highlight: 0 options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool assets: type: section - title: Assets + title: PLUGIN_ADMIN.ASSETS underline: true fields: assets.css_pipeline: type: toggle - label: CSS pipeline - help: "The CSS pipeline is the unification of multiple CSS resources into one file" + label: PLUGIN_ADMIN.CSS_PIPELINE + help: PLUGIN_ADMIN.CSS_PIPELINE_HELP highlight: 0 options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool assets.css_minify: type: toggle - label: CSS minify - help: "Minify the CSS during pipelining" + label: PLUGIN_ADMIN.CSS_MINIFY + help: PLUGIN_ADMIN.CSS_MINIFY_HELP highlight: 1 options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool assets.css_minify_windows: type: toggle - label: CSS minify Windows override - help: "Minify Override for Windows platforms. False by default due to ThreadStackSize" + label: PLUGIN_ADMIN.CSS_MINIFY_WINDOWS_OVERRIDE + help: PLUGIN_ADMIN.CSS_MINIFY_WINDOWS_OVERRIDE_HELP highlight: 0 options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool assets.css_rewrite: type: toggle - label: CSS rewrite - help: "Rewrite any CSS relative URLs during pipelining" + label: PLUGIN_ADMIN.CSS_REWRITE + help: PLUGIN_ADMIN.CSS_REWRITE_HELP highlight: 1 options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool assets.js_pipeline: type: toggle - label: JavaScript pipeline - help: "The JS pipeline is the unification of multiple JS resources into one file" + label: PLUGIN_ADMIN.JAVASCRIPT_PIPELINE + help: PLUGIN_ADMIN.JAVASCRIPT_PIPELINE_HELP highlight: 0 options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool assets.js_minify: type: toggle - label: JavaScript minify - help: "Minify the JS during pipelining" + label: PLUGIN_ADMIN.JAVASCRIPT_MINIFY + help: PLUGIN_ADMIN.JAVASCRIPT_MINIFY_HELP highlight: 1 options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool assets.enable_asset_timestamp: type: toggle - label: Enable timestamps on assets - help: "Enable asset timestamps" + label: PLUGIN_ADMIN.ENABLED_TIMESTAMPS_ON_ASSETS + help: PLUGIN_ADMIN.ENABLED_TIMESTAMPS_ON_ASSETS_HELP highlight: 0 options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool assets.collections: type: array - label: Collections + label: PLUGIN_ADMIN.COLLECTIONS placeholder_key: collection_name placeholder_value: collection_path errors: type: section - title: Error handler + title: PLUGIN_ADMIN.ERROR_HANDLER underline: true fields: errors.display: type: toggle - label: Display errors - help: "Display full backtrace-style error page" + label: PLUGIN_ADMIN.DISPLAY_ERRORS + help: PLUGIN_ADMIN.DISPLAY_ERRORS_HELP highlight: 1 options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool errors.log: type: toggle - label: Log errors - help: "Log errors to /logs folder" + label: PLUGIN_ADMIN.LOG_ERRORS + help: PLUGIN_ADMIN.LOG_ERRORS_HELP highlight: 1 options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool debugger: type: section - title: Debugger + title: PLUGIN_ADMIN.DEBUGGER underline: true fields: debugger.enabled: type: toggle - label: Debugger - help: "Enable Grav debugger and following settings" + label: PLUGIN_ADMIN.DEBUGGER + help: PLUGIN_ADMIN.DEBUGGER_HELP highlight: 0 options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool debugger.twig: type: toggle - label: Debug Twig - help: "Enable debugging of Twig templates" + label: PLUGIN_ADMIN.DEBUG_TWIG + help: PLUGIN_ADMIN.DEBUG_TWIG_HELP highlight: 1 options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool debugger.shutdown.close_connection: type: toggle - label: Shutdown close connection - help: "Close the connection before calling onShutdown(). false for debugging" + label: PLUGIN_ADMIN.SHUTDOWN_CLOSE_CONNECTION + help: PLUGIN_ADMIN.SHUTDOWN_CLOSE_CONNECTION_HELP highlight: 1 options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool media: type: section - title: Media + title: PLUGIN_ADMIN.MEDIA underline: true fields: images.default_image_quality: type: text - label: Default image quality - help: "Default image quality to use when resampling or caching images (85%)" + label: PLUGIN_ADMIN.DEFAULT_IMAGE_QUALITY + help: PLUGIN_ADMIN.DEFAULT_IMAGE_QUALITY_HELP classes: x-small validate: type: number @@ -595,67 +595,67 @@ form: images.cache_all: type: toggle - label: Cache all images - help: "Run all images through Grav's cache system even if they have no media manipulations" + label: PLUGIN_ADMIN.CACHE_ALL + help: PLUGIN_ADMIN.CACHE_ALL_HELP highlight: 0 options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool images.debug: type: toggle - label: Image debug watermark - help: "Show an overlay over images indicating the pixel depth of the image when working with retina for example" + label: PLUGIN_ADMIN.IMAGES_DEBUG + help: PLUGIN_ADMIN.IMAGES_DEBUG_HELP highlight: 0 options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool media.upload_limit: type: text - label: File upload limit - help: "Set maximum upload size in bytes (0 is unlimited)" + label: PLUGIN_ADMIN.UPLOAD_LIMIT + help: PLUGIN_ADMIN.UPLOAD_LIMIT_HELP classes: small validate: type: number media.enable_media_timestamp: type: toggle - label: Enable timestamps on media - help: "Appends a timestamp based on last modified date to each media item" + label: PLUGIN_ADMIN.ENABLE_MEDIA_TIMESTAMP + help: PLUGIN_ADMIN.ENABLE_MEDIA_TIMESTAMP_HELP highlight: 0 options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool session: type: section - title: Session + title: PLUGIN_ADMIN.SESSION underline: true fields: session.enabled: type: toggle - label: Enabled - help: "Enable session support within Grav" + label: PLUGIN_ADMIN.ENABLED + help: PLUGIN_ADMIN.SESSION_ENABLED_HELP highlight: 1 options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool session.timeout: type: text size: small - label: Timeout - help: "Sets the session timeout in seconds" + label: PLUGIN_ADMIN.TIMEOUT + help: PLUGIN_ADMIN.TIMEOUT_HELP validate: type: number min: 1 @@ -663,34 +663,32 @@ form: session.name: type: text size: small - label: Name - help: "An identifier used to form the name of the session cookie" + label: PLUGIN_ADMIN.NAME + help: PLUGIN_ADMIN.SESSION_NAME_HELP advanced: type: section - title: Advanced + title: PLUGIN_ADMIN.ADVANCED underline: true fields: absolute_urls: type: toggle - label: Absolute URLs + label: PLUGIN_ADMIN.ABSOLUTE_URLS highlight: 0 - help: "Absolute or relative URLs for `base_url`" + help: PLUGIN_ADMIN.ABSOLUTE_URLS_HELP options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool - - param_sep: type: select - label: Parameter separator + label: PLUGIN_ADMIN.PARAMETER_SEPARATOR classes: fancy - help: "Separater for passed parameters that can be changed for Apache on Windows" + help: PLUGIN_ADMIN.PARAMETER_SEPARATOR_HELP default: '' options: ':': ': (default)' diff --git a/system/blueprints/pages/default.yaml b/system/blueprints/pages/default.yaml index 2cf74c6b9..c146f82d3 100644 --- a/system/blueprints/pages/default.yaml +++ b/system/blueprints/pages/default.yaml @@ -1,4 +1,4 @@ -title: Default +title: PLUGIN_ADMIN.DEFAULT rules: slug: @@ -18,27 +18,27 @@ form: fields: content: type: tab - title: Content + title: PLUGIN_ADMIN.CONTENT fields: header.title: type: text style: vertical - label: Title + label: PLUGIN_ADMIN.TITLE content: type: markdown - label: Content + label: PLUGIN_ADMIN.CONTENT validate: type: textarea uploads: type: uploads - label: Page Media + label: PLUGIN_ADMIN.PAGE_MEDIA options: type: tab - title: Options + title: PLUGIN_ADMIN.OPTIONS fields: @@ -51,48 +51,44 @@ form: header.published: type: toggle toggleable: true - label: Published - help: "By default, a page is published unless you explicitly set published: false or via a publish_date being in the future, or unpublish_date in the past" + label: PLUGIN_ADMIN.PUBLISHED + help: PLUGIN_ADMIN.PUBLISHED_HELP highlight: 1 size: medium options: - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool header.date: type: datetime - label: Date + label: PLUGIN_ADMIN.DATE toggleable: true - help: "The date variable allows you to specifically set a date associated with this page." - - + help: PLUGIN_ADMIN.DATE_HELP header.published_date: type: datetime - label: Published Date + label: PLUGIN_ADMIN.PUBLISHED_DATE toggleable: true - help: "Can provide a date to automatically trigger publication." + help: PLUGIN_ADMIN.PUBLISHED_DATE_HELP header.unpublished_date: type: datetime - label: Unublished Date + label: PLUGIN_ADMIN.UNPUBLISHED_DATE toggleable: true - help: "can provide a date to automatically trigger un-publication." - - + help: PLUGIN_ADMIN.UNPUBLISHED_DATE_HELP meta: type: section - title: Metadata + title: PLUGIN_ADMIN.METADATA underline: true fields: header.metadata.description: type: textarea toggleable: true - label: Description + label: PLUGIN_ADMIN.DESCRIPTION default: validate: max: 155 @@ -100,40 +96,40 @@ form: header.metadata.keywords: type: text toggleable: true - label: Keywords + label: PLUGIN_ADMIN.KEYWORDS validate: max: 120 header.metadata.author: type: text toggleable: true - label: Author + label: PLUGIN_ADMIN.AUTHOR validate: max: 120 header.metadata.robots: type: text toggleable: true - label: Robots + label: PLUGIN_ADMIN.ROBOTS validate: max: 120 taxonomies: type: section - title: Taxonomies + title: PLUGIN_ADMIN.TAXONOMIES underline: true fields: header.taxonomy: type: taxonomy - label: Taxonomy + label: PLUGIN_ADMIN.TAXONOMY multiple: true validate: type: array advanced: type: tab - title: Advanced + title: PLUGIN_ADMIN.ADVANCED fields: columns: @@ -145,45 +141,45 @@ form: settings: type: section - title: Settings + title: PLUGIN_ADMIN.SETTINGS underline: true ordering: type: toggle - label: Folder Numeric Prefix - help: Numeric prefix that provides manual ordering and implies visibility + label: PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX + help: PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX_HELP highlight: 1 options: - 1: Enabled - 0: Disabled + 1: PLUGIN_ADMIN.ENABLED + 0: PLUGIN_ADMIN.DISABLED validate: type: bool folder: type: text - label: Folder Name + label: PLUGIN_ADMIN.FOLDER_NAME validate: type: slug route: type: select - label: Parent + label: PLUGIN_ADMIN.PARENT classes: fancy @data-options: '\Grav\Common\Page\Pages::parents' @data-default: '\Grav\Plugin\admin::route' options: - '/': '- Root -' + '/': PLUGIN_ADMIN.DEFAULT_OPTION_ROOT type: type: templates classes: fancy - label: Display Template + label: PLUGIN_ADMIN.DISPLAY_TEMPLATE default: default @data-options: '\Grav\Common\Page\Pages::types' header.body_classes: type: text - label: Body Classes + label: PLUGIN_ADMIN.BODY_CLASSES column2: @@ -192,41 +188,39 @@ form: fields: order_title: type: section - title: Ordering + title: PLUGIN_ADMIN.ORDERING underline: true order: type: order - label: Page Order + label: PLUGIN_ADMIN.PAGE_ORDER sitemap: overrides: type: section - title: Overrides + title: PLUGIN_ADMIN.OVERRIDES underline: true fields: header.menu: type: text - label: Menu + label: PLUGIN_ADMIN.MENU toggleable: true - help: "The string to be used in a menu. If not set, Title will be used." + help: PLUGIN_ADMIN.MENU_HELP header.slug: type: text - label: Slug + label: PLUGIN_ADMIN.SLUG toggleable: true - help: "The slug variable allows you to specifically set the page's portion of the URL" + help: PLUGIN_ADMIN.SLUG_HELP validate: - message: A slug must contain only lowercase alphanumeric characters and dashes + message: PLUGIN_ADMIN.SLUG_VALIDATE_MESSAGE rule: slug - - header.process: type: checkboxes - label: Process + label: PLUGIN_ADMIN.PROCESS toggleable: true @config-default: system.pages.process default: @@ -240,50 +234,46 @@ form: header.child_type: type: select toggleable: true - label: Default Child Type + label: PLUGIN_ADMIN.DEFAULT_CHILD_TYPE default: default - placeholder: Use Global + placeholder: PLUGIN_ADMIN.USE_GLOBAL @data-options: '\Grav\Common\Page\Pages::types' - - header.routable: type: toggle toggleable: true - label: Routable - help: If this page is reachable by a URL + label: PLUGIN_ADMIN.ROUTABLE + help: PLUGIN_ADMIN.ROUTABLE_HELP highlight: 1 options: - 1: Enabled - 0: Disabled + 1: PLUGIN_ADMIN.ENABLED + 0: PLUGIN_ADMIN.DISABLED validate: type: bool header.cache_enable: type: toggle toggleable: true - label: Caching + label: PLUGIN_ADMIN.CACHING highlight: 1 options: - 1: Enabled - 0: Disabled + 1: PLUGIN_ADMIN.ENABLED + 0: PLUGIN_ADMIN.DISABLED validate: type: bool header.visible: type: toggle toggleable: true - label: Visible - help: "Determines if a page is visible in the navigation." + label: PLUGIN_ADMIN.VISIBLE + help: PLUGIN_ADMIN.VISIBLE_HELP highlight: 1 options: - 1: Enabled - 0: Disabled + 1: PLUGIN_ADMIN.ENABLED + 0: PLUGIN_ADMIN.DISABLED validate: type: bool - - header.order_by: type: hidden diff --git a/system/blueprints/pages/modular.yaml b/system/blueprints/pages/modular.yaml index a582cfe3d..1ce886c9d 100644 --- a/system/blueprints/pages/modular.yaml +++ b/system/blueprints/pages/modular.yaml @@ -1,4 +1,4 @@ -title: Modular +title: PLUGIN_ADMIN.MODULAR @extends: type: default context: blueprints://pages @@ -15,28 +15,28 @@ form: header.content.items: type: select - label: Items + label: PLUGIN_ADMIN.ITEMS default: @self.modular options: @self.modular: Children header.content.order.by: type: select - label: Order By + label: PLUGIN_ADMIN.ORDER_BY default: date options: - folder: Folder - title: Title - date: Date - default: Default + folder: PLUGIN_ADMIN.FOLDER + title: PLUGIN_ADMIN.TITLE + date: PLUGIN_ADMIN.DATE + default: PLUGIN_ADMIN.DEFAULT header.content.order.dir: type: select - label: Order + label: PLUGIN_ADMIN.ORDER Order default: desc options: - asc: Ascending - desc: Descending + asc: PLUGIN_ADMIN.ASCENDING + desc: PLUGIN_ADMIN.DESCENDING header.process: type: ignore diff --git a/system/blueprints/pages/modular_new.yaml b/system/blueprints/pages/modular_new.yaml index fe366439a..e3772d366 100644 --- a/system/blueprints/pages/modular_new.yaml +++ b/system/blueprints/pages/modular_new.yaml @@ -10,38 +10,36 @@ form: section: type: section - title: Add Modular Content + title: PLUGIN_ADMIN.ADD_MODULAR_CONTENT title: type: text - label: Page Title + label: PLUGIN_ADMIN.PAGE_TITLE validate: required: true folder: type: text - label: Folder Name + label: PLUGIN_ADMIN.FOLDER_NAME validate: type: slug required: true - - route: type: select - label: Page + label: PLUGIN_ADMIN.PAGE classes: fancy @data-options: '\Grav\Common\Page\Pages::parents' @data-default: '\Grav\Plugin\admin::route' options: - '': '- Select -' + '': PLUGIN_ADMIN.DEFAULT_OPTION_SELECT validate: required: true type: type: select classes: fancy - label: Modular Template + label: PLUGIN_ADMIN.MODULAR_TEMPLATE default: default @data-options: '\Grav\Common\Page\Pages::modularTypes' validate: @@ -53,6 +51,5 @@ form: validate: type: bool - blueprint: type: blueprint diff --git a/system/blueprints/pages/modular_raw.yaml b/system/blueprints/pages/modular_raw.yaml index 8ae965d8a..5bace3077 100644 --- a/system/blueprints/pages/modular_raw.yaml +++ b/system/blueprints/pages/modular_raw.yaml @@ -15,26 +15,26 @@ form: fields: content: type: tab - title: Content + title: PLUGIN_ADMIN.CONTENT fields: frontmatter: type: frontmatter - label: Frontmatter + label: PLUGIN_ADMIN.FRONTMATTER content: type: markdown - label: Content + label: PLUGIN_ADMIN.CONTENT uploads: type: uploads - label: Page Media + label: PLUGIN_ADMIN.PAGE_MEDIA options: type: tab - title: Options + title: PLUGIN_ADMIN.OPTIONS fields: @@ -49,37 +49,37 @@ form: ordering: type: toggle - label: Folder Numeric Prefix - help: Numeric prefix that provides manual ordering and implies visibility + label: PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX + help: PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX_HELP highlight: 1 options: - 1: Enabled - 0: Disabled + 1: PLUGIN_ADMIN.ENABLED + 0: PLUGIN_ADMIN.DISABLED validate: type: bool - + folder: type: text - label: Filename + label: PLUGIN_ADMIN.FILENAME validate: type: slug required: true route: type: select - label: Parent + label: PLUGIN_ADMIN.PARENT classes: fancy @data-options: '\Grav\Common\Page\Pages::parents' @data-default: '\Grav\Plugin\admin::route' options: - '': '- Select -' + '': PLUGIN_ADMIN.DEFAULT_OPTION_SELECT validate: required: true type: type: select classes: fancy - label: Modular Template + label: PLUGIN_ADMIN.MODULAR_TEMPLATE default: default @data-options: '\Grav\Common\Page\Pages::modularTypes' validate: @@ -91,7 +91,7 @@ form: fields: order: type: order - label: Ordering + label: PLUGIN_ADMIN.ORDERING blueprint: type: blueprint diff --git a/system/blueprints/pages/move.yaml b/system/blueprints/pages/move.yaml index cd90dea8d..8f12c7a13 100644 --- a/system/blueprints/pages/move.yaml +++ b/system/blueprints/pages/move.yaml @@ -9,9 +9,9 @@ form: fields: route: type: select - label: Parent + label: PLUGIN_ADMIN.PARENT classes: fancy @data-options: '\Grav\Common\Page\Pages::parents' @data-default: '\Grav\Plugin\admin::route' options: - '/': '- Root -' + '/': PLUGIN_ADMIN.DEFAULT_OPTION_ROOT diff --git a/system/blueprints/pages/new.yaml b/system/blueprints/pages/new.yaml index 0de6178cd..bdfa340fb 100644 --- a/system/blueprints/pages/new.yaml +++ b/system/blueprints/pages/new.yaml @@ -10,39 +10,39 @@ form: section: type: section - title: Add Page + title: PLUGIN_ADMIN.ADD_PAGE title: type: text - label: Page Title - help: "The title of the page" + label: PLUGIN_ADMIN.PAGE_TITLE + help: PLUGIN_ADMIN.PAGE_TITLE_HELP validate: required: true folder: type: text - label: Folder Name - help: "The folder name that will be stored in the filesystem for this page" + label: PLUGIN_ADMIN.FOLDER_NAME + help: PLUGIN_ADMIN.FOLDER_NAME_HELP validate: type: slug required: true route: type: select - label: Parent Page + label: PLUGIN_ADMIN.PARENT_PAGE classes: fancy @data-options: '\Grav\Common\Page\Pages::parents' @data-default: '\Grav\Plugin\admin::route' options: - '/': '- Root -' + '/': PLUGIN_ADMIN.DEFAULT_OPTION_ROOT validate: required: true type: type: select - help: "The page type that translates into which twig template renders the page" + label: PLUGIN_ADMIN.DISPLAY_TEMPLATE + help: PLUGIN_ADMIN.DISPLAY_TEMPLATE_HELP classes: fancy - label: Display Template default: default @data-options: '\Grav\Common\Page\Pages::types' validate: @@ -50,18 +50,17 @@ form: visible: type: toggle - label: Visible - help: "Determines if a page is visible in the navigation." + label: PLUGIN_ADMIN.VISIBLE + help: PLUGIN_ADMIN.VISIBLE_HELP highlight: '' default: '' options: '': Auto - 1: Yes - 0: No + 1: PLUGIN_ADMIN.YES + 0: PLUGIN_ADMIN.NO validate: type: bool required: true - blueprint: type: blueprint diff --git a/system/blueprints/pages/raw.yaml b/system/blueprints/pages/raw.yaml index 5dcb91bd3..eb24e3ddb 100644 --- a/system/blueprints/pages/raw.yaml +++ b/system/blueprints/pages/raw.yaml @@ -15,26 +15,24 @@ form: fields: content: type: tab - title: Content + title: PLUGIN_ADMIN.CONTENT fields: frontmatter: type: frontmatter - label: Frontmatter - + label: PLUGIN_ADMIN.FRONTMATTER content: type: markdown - label: Content + label: PLUGIN_ADMIN.CONTENT uploads: type: uploads - label: Page Media - + label: PLUGIN_ADMIN.PAGE_MEDIA options: type: tab - title: Options + title: PLUGIN_ADMIN.OPTIONS fields: @@ -49,37 +47,39 @@ form: ordering: type: toggle - label: Folder Numeric Prefix - help: Numeric prefix that provides manual ordering and implies visibility + label: PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX + help: PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX_HELP highlight: 1 options: - 1: Enabled - 0: Disabled + 1: PLUGIN_ADMIN.ENABLED + 0: PLUGIN_ADMIN.DISABLED validate: type: bool folder: type: text - label: Folder Name + label: PLUGIN_ADMIN.FOLDER_NAME + help: PLUGIN_ADMIN.FOLDER_NAME_HELP validate: type: slug required: true route: type: select - label: Parent + label: PLUGIN_ADMIN.PARENT classes: fancy @data-options: '\Grav\Common\Page\Pages::parents' @data-default: '\Grav\Plugin\admin::route' options: - '/': '- Root -' + '/': PLUGIN_ADMIN.DEFAULT_OPTION_ROOT validate: required: true type: type: select classes: fancy - label: Display Template + label: PLUGIN_ADMIN.DISPLAY_TEMPLATE + help: PLUGIN_ADMIN.DISPLAY_TEMPLATE_HELP default: default @data-options: '\Grav\Common\Page\Pages::types' validate: @@ -91,7 +91,7 @@ form: fields: order: type: order - label: Ordering + label: PLUGIN_ADMIN.ORDERING blueprint: type: blueprint diff --git a/system/blueprints/user/account.yaml b/system/blueprints/user/account.yaml index 3fa22a639..649a3d204 100644 --- a/system/blueprints/user/account.yaml +++ b/system/blueprints/user/account.yaml @@ -5,52 +5,52 @@ form: content: type: section - title: Account + title: PLUGIN_ADMIN.ACCOUNT fields: username: type: text size: large - label: Username + label: PLUGIN_ADMIN.USERNAME disabled: true readonly: true email: type: email size: large - label: Email + label: PLUGIN_ADMIN.EMAIL validate: type: email - message: Must be a valid email address + message: PLUGIN_ADMIN.EMAIL_VALIDATION_MESSAGE required: true password: type: password size: large - label: Password + label: PLUGIN_ADMIN.PASSWORD validate: required: true - message: Password must contain at least one number and one uppercase and lowercase letter, and at least 8 or more characters + message: PLUGIN_ADMIN.PASSWORD_VALIDATION_MESSAGE pattern: '(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}' fullname: type: text size: large - label: Full name + label: PLUGIN_ADMIN.FULL_NAME validate: required: true title: type: text size: large - label: Title + label: PLUGIN_ADMIN.TITLE language: type: select - label: Language + label: PLUGIN_ADMIN.LANGUAGE size: medium classes: fancy @data-options: '\Grav\Plugin\admin::adminLanguages' default: 'en' - help: "Set the favorite language. E.g. 'it' or 'de'. Defaults to english" + help: PLUGIN_ADMIN.LANGUAGE_HELP diff --git a/system/blueprints/user/account_new.yaml b/system/blueprints/user/account_new.yaml index 6f9389747..202f68814 100644 --- a/system/blueprints/user/account_new.yaml +++ b/system/blueprints/user/account_new.yaml @@ -1,4 +1,4 @@ -title: Add Account +title: PLUGIN_ADMIN.ADD_ACCOUNT form: validation: loose @@ -6,10 +6,10 @@ form: content: type: section - title: Add Account + title: PLUGIN_ADMIN.ADD_ACCOUNT username: type: text - label: Username + label: PLUGIN_ADMIN.USERNAME validate: required: true