diff --git a/CHANGELOG.md b/CHANGELOG.md index fbe3420..36045f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # v0.2.2 -## 12/15/2018 +## mm/dd/2018 +1. [](#new) + * Added translation 1. [](#improved) * Use Codemirror for Inline CSS diff --git a/blueprints.yaml b/blueprints.yaml index 4ae1044..5fbbac9 100644 --- a/blueprints.yaml +++ b/blueprints.yaml @@ -1,5 +1,5 @@ name: Custom CSS -version: 0.2.1 +version: 0.2.2 description: Adds some custom CSS to your Grav site icon: plug author: @@ -16,32 +16,33 @@ form: fields: enabled: type: toggle - label: Plugin status + label: PLUGIN_ADMIN.PLUGIN_STATUS highlight: 1 default: 0 options: - 1: Enabled - 0: Disabled + 1: PLUGIN_ADMIN.ENABLED + 0: PLUGIN_ADMIN.DISABLED validate: type: bool css_inline: type: editor + codemirror: mode: css - label: Inline CSS - help: CSS that will be added inline to every page + label: PLUGIN_CUSTOM_CSS.INLINE_CSS + help: PLUGIN_CUSTOM_CSS.INLINE_CSS_HELP css_files: type: list - label: CSS Files - help: CSS Files that will be loaded on every page. Use relative or absolute URLs + label: PLUGIN_CUSTOM_CSS.CSS_FILES + help: PLUGIN_CUSTOM_CSS.CSS_FILES_HELP fields: .path: type: text - label: File path - help: Relative to web root + label: PLUGIN_CUSTOM_CSS.CSS_FILES_PATH + help: PLUGIN_CUSTOM_CSS.CSS_FILES_PATH_HELP .priority: type: int - label: Priority (0=Default) - help: Lower means later inclusion. Negative value to add this file after the other files (that come with the theme) + label: PLUGIN_CUSTOM_CSS.CSS_FILES_PATH_PRIORITY + help: PLUGIN_CUSTOM_CSS.CSS_FILES_PATH_PRIORITY_HELP default: 0 diff --git a/languages.yaml b/languages.yaml new file mode 100644 index 0000000..9f60a35 --- /dev/null +++ b/languages.yaml @@ -0,0 +1,20 @@ +en: + PLUGIN_CUSTOM_CSS: + INLINE_CSS: "Inline CSS" + INLINE_CSS_HELP: "CSS that will be added inline to every page" + CSS_FILES: "CSS Files" + CSS_FILES_HELP: "CSS Files that will be loaded on every page. Use relative or absolute URLs" + CSS_FILES_PATH: "File path" + CSS_FILES_PATH_HELP: "Relative to web root" + CSS_FILES_PATH_PRIORITY: "Priority (0=Default)" + CSS_FILES_PATH_PRIORITY_HELP: "Lower means later inclusion. Negative value to add this file after the other files (that come with the theme)" +ru: + PLUGIN_CUSTOM_CSS: + INLINE_CSS: "Встроенный CSS" + INLINE_CSS_HELP: "CSS код, который будет добавлен на каждой странице" + CSS_FILES: "CSS файлы" + CSS_FILES_HELP: "CSS файлы, которые будут загружаться на каждой странице. Используйте относительные или абсолютные URL" + CSS_FILES_PATH: "Путь к файлу" + CSS_FILES_PATH_HELP: "Относительно корня" + CSS_FILES_PATH_PRIORITY: "Приоритет (0=По умолчанию)" + CSS_FILES_PATH_PRIORITY_HELP: "Меньше - файл подключается позже. Отрицательное значение для подключения этого файла после других файлов (которые поставляются с темой)" \ No newline at end of file