Skip to content

Commit

Permalink
Move settings into an own file
Browse files Browse the repository at this point in the history
  • Loading branch information
Ibochkarev committed May 15, 2022
1 parent 0e33818 commit 397f769
Show file tree
Hide file tree
Showing 10 changed files with 124 additions and 111 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Ace

ACE editor integration into MODX Revolution
6 changes: 6 additions & 0 deletions core/components/ace/documents/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
Changelog for Ace integration into MODx Revolution.

Ace 1.9.3 [15.05.2022]
====================================
- Updated: Move settings into an own file [#12]
- Fixed: Ace TV input [#11]
- Fixed: Prevent PHP warning: Undefined variable $field [#10]

Ace 1.9.2
====================================
- Updated: Corrected search form [#8]
Expand Down
51 changes: 13 additions & 38 deletions core/components/ace/lexicon/de/default.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,41 +9,16 @@
$_lang['ace'] = 'Ace';

/* user interface lexicon */
$_lang['ui_ace.case_sensitive'] = 'Groß-/Kleinschreibung beachten';
$_lang['ui_ace.close'] = 'Schließen';
$_lang['ui_ace.find'] = 'Suchen';
$_lang['ui_ace.find_all'] = 'Alle';
$_lang['ui_ace.go'] = 'Los';
$_lang['ui_ace.goto_line'] = 'Gehe zu Zeile';
$_lang['ui_ace.maximize'] = 'Maximize';
$_lang['ui_ace.minimize'] = 'Minimize';
$_lang['ui_ace.reg_exp'] = 'Regulären Ausdruck';
$_lang['ui_ace.replace'] = 'Ersetzen';
$_lang['ui_ace.replace_all'] = 'Alle';
$_lang['ui_ace.replace_with'] = 'Ersetzen durch';
$_lang['ui_ace.whole_word'] = 'Ganze Wörter';

$_lang['area_general'] = 'Allgemeine Einstellungen';

$_lang['setting_ace.theme'] = 'Editor Thema';
$_lang['setting_ace.theme_desc'] = 'Verfügbare Themen: ambiance, chaos, chrome, clouds, clouds_midnight, cobalt, crimson_editor, dawn, dreamweaver, eclipse, github, idle_fingers, katzenmilch, kr, kuroir, merbivore, merbivore_soft, mono_industrial, monokai, pastel_on_dark, solarized_dark, solarized_light, terminal, textmate, tomorrow, tomorrow_night, tomorrow_night_blue, tomorrow_night_bright, tomorrow_night_eighties, twilight, vibrant_ink, xcode.';
$_lang['setting_ace.word_wrap'] = 'Zeilenumbruch';
$_lang['setting_ace.word_wrap_desc'] = 'Lange Zeilen umbrechen.';
$_lang['setting_ace.font_size'] = 'Schriftgröße';
$_lang['setting_ace.font_size_desc'] = 'Schriftgröße im Editor.';
$_lang['setting_ace.soft_tabs'] = 'Soft tabs';
$_lang['setting_ace.soft_tabs_desc'] = 'Replace tabs by spaces.';
$_lang['setting_ace.tab_size'] = 'Tab size';
$_lang['setting_ace.tab_size_desc'] = 'Tab width to use.';
$_lang['setting_ace.fold_widgets'] = 'Fold widgets';
$_lang['setting_ace.fold_widgets_desc'] = 'Show fold widgets in the gutter.';
$_lang['setting_ace.show_invisibles'] = 'Invisible characters';
$_lang['setting_ace.show_invisibles_desc'] = 'Show whitespaces, tabs and line endings.';
$_lang['setting_ace.snippets'] = 'Snippets';
$_lang['setting_ace.snippets_desc'] = 'Code snippets expanded by “Tab”. Snippet example:<br /><br /><pre>\nsnippet getr\n [!getResources? parents=`${1}`${2}]]\n</pre></br>You can insert “Tab” character by pressing Alt + 09';
$_lang['setting_ace.height'] = 'Edit area height';
$_lang['setting_ace.height_desc'] = 'Editor height in pixel unit. If left blank, a defaul height will be used.';
$_lang['setting_ace.grow'] = 'Höhe an Text anpassen';
$_lang['setting_ace.grow_desc'] = 'Die Höhe des Editors wird an den Text angepasst. Die minimale Höhe entspricht der Option ace.height. Mögliche Werte: Leer - Höhe passt nicht zum Text; Die Zahl ist größer als 0 - die Höhe wird an den Text angepasst, aber nicht mehr als der Wert; 0 - Höhe ist für Text angepasst, Höhe ist unbegrenzt. ';
$_lang['setting_ace.html_elements_mime'] = 'MIME-Typ für HTML-Elemente';
$_lang['setting_ace.html_elements_mime_desc'] = 'Dieser Typ wird vom Editor für HTML-Elemente verwendet - Vorlagen, Chunks und Ressourcen mit HTML-Typ. Wenn nicht angegeben, wird der Standardtyp verwendet';
$_lang['ui_ace.case_sensitive'] = 'Gro&szlig;-/Kleinschreibung beachten';
$_lang['ui_ace.close'] = 'Schlie&szlig;en';
$_lang['ui_ace.find'] = 'Suchen';
$_lang['ui_ace.find_all'] = 'Alle';
$_lang['ui_ace.go'] = 'Los';
$_lang['ui_ace.goto_line'] = 'Gehe zu Zeile';
$_lang['ui_ace.maximize'] = 'Maximize';
$_lang['ui_ace.minimize'] = 'Minimize';
$_lang['ui_ace.reg_exp'] = 'Regulären Ausdruck';
$_lang['ui_ace.replace'] = 'Ersetzen';
$_lang['ui_ace.replace_all'] = 'Alle';
$_lang['ui_ace.replace_with'] = 'Ersetzen durch';
$_lang['ui_ace.whole_word'] = 'Ganze W&ouml;rter';
32 changes: 32 additions & 0 deletions core/components/ace/lexicon/de/setting.inc.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php
/**
* Settings Language file for Ace
*
* @package ace
* @subpackage lexicon
*/

$_lang['area_general'] = 'Allgemeine Einstellungen';

$_lang['setting_ace.theme'] = 'Editor Thema';
$_lang['setting_ace.theme_desc'] = 'Verf&uuml;gbare Themen: ambiance, chaos, chrome, clouds, clouds_midnight, cobalt, crimson_editor, dawn, dreamweaver, eclipse, github, idle_fingers, katzenmilch, kr, kuroir, merbivore, merbivore_soft, mono_industrial, monokai, pastel_on_dark, solarized_dark, solarized_light, terminal, textmate, tomorrow, tomorrow_night, tomorrow_night_blue, tomorrow_night_bright, tomorrow_night_eighties, twilight, vibrant_ink, xcode.';
$_lang['setting_ace.word_wrap'] = 'Zeilenumbruch';
$_lang['setting_ace.word_wrap_desc'] = 'Lange Zeilen umbrechen.';
$_lang['setting_ace.font_size'] = 'Schriftgr&ouml;&szlig;e';
$_lang['setting_ace.font_size_desc'] = 'Schriftgr&ouml;&szlig;e im Editor.';
$_lang['setting_ace.soft_tabs'] = 'Soft tabs';
$_lang['setting_ace.soft_tabs_desc'] = 'Replace tabs by spaces.';
$_lang['setting_ace.tab_size'] = 'Tab size';
$_lang['setting_ace.tab_size_desc'] = 'Tab width to use.';
$_lang['setting_ace.fold_widgets'] = 'Fold widgets';
$_lang['setting_ace.fold_widgets_desc'] = 'Show fold widgets in the gutter.';
$_lang['setting_ace.show_invisibles'] = 'Invisible characters';
$_lang['setting_ace.show_invisibles_desc'] = 'Show whitespaces, tabs and line endings.';
$_lang['setting_ace.snippets'] = 'Snippets';
$_lang['setting_ace.snippets_desc'] = 'Code snippets expanded by “Tab”. Snippet example:<br /><br /><pre>\nsnippet getr\n [!getResources? parents=`${1}`${2}]]\n</pre></br>You can insert “Tab” character by pressing Alt + 09';
$_lang['setting_ace.height'] = 'Edit area height';
$_lang['setting_ace.height_desc'] = 'Editor height in pixel unit. If left blank, a defaul height will be used.';
$_lang['setting_ace.grow'] = 'Höhe an Text anpassen';
$_lang['setting_ace.grow_desc'] = 'Die Höhe des Editors wird an den Text angepasst. Die minimale Höhe entspricht der Option ace.height. Mögliche Werte: Leer - Höhe passt nicht zum Text; Die Zahl ist größer als 0 - die Höhe wird an den Text angepasst, aber nicht mehr als der Wert; 0 - Höhe ist für Text angepasst, Höhe ist unbegrenzt.';
$_lang['setting_ace.html_elements_mime'] = 'MIME-Typ für HTML-Elemente';
$_lang['setting_ace.html_elements_mime_desc'] = 'Dieser Typ wird vom Editor für HTML-Elemente verwendet - Vorlagen, Chunks und Ressourcen mit HTML-Typ. Wenn nicht angegeben, wird der Standardtyp verwendet';
27 changes: 1 addition & 26 deletions core/components/ace/lexicon/en/default.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,4 @@
$_lang['ui_ace.replace'] = 'Replace';
$_lang['ui_ace.replace_all'] = 'All';
$_lang['ui_ace.replace_with'] = 'Replace with';
$_lang['ui_ace.whole_word'] = 'Whole words';

$_lang['area_general'] = 'General settings';

$_lang['setting_ace.theme'] = 'Editor theme';
$_lang['setting_ace.theme_desc'] = 'Available themes: ambiance, chaos, chrome, clouds, clouds_midnight, cobalt, crimson_editor, dawn, dreamweaver, eclipse, github, idle_fingers, katzenmilch, kr, kuroir, merbivore, merbivore_soft, mono_industrial, monokai, pastel_on_dark, solarized_dark, solarized_light, terminal, textmate, tomorrow, tomorrow_night, tomorrow_night_blue, tomorrow_night_bright, tomorrow_night_eighties, twilight, vibrant_ink, xcode.';
$_lang['setting_ace.word_wrap'] = 'Word wrap';
$_lang['setting_ace.word_wrap_desc'] = 'Wrap long lines.';
$_lang['setting_ace.font_size'] = 'Font size';
$_lang['setting_ace.font_size_desc'] = 'Editor font size.';
$_lang['setting_ace.soft_tabs'] = 'Soft tabs';
$_lang['setting_ace.soft_tabs_desc'] = 'Replace tabs by spaces.';
$_lang['setting_ace.tab_size'] = 'Tab size';
$_lang['setting_ace.tab_size_desc'] = 'Tab width to use.';
$_lang['setting_ace.fold_widgets'] = 'Fold widgets';
$_lang['setting_ace.fold_widgets_desc'] = 'Show fold widgets in the gutter.';
$_lang['setting_ace.show_invisibles'] = 'Invisible characters';
$_lang['setting_ace.show_invisibles_desc'] = 'Show whitespaces, tabs and line endings.';
$_lang['setting_ace.snippets'] = 'Snippets';
$_lang['setting_ace.snippets_desc'] = 'Code snippets you can expand by pressing “Tab” key. Snippet example:<br /><br /><pre>\nsnippet getr\n [!getResources? parents=`${1}`${2}]]\n</pre></br>You can insert “Tab” character by pressing Alt + 09';
$_lang['setting_ace.height'] = 'Edit area height';
$_lang['setting_ace.height_desc'] = 'Editor height in pixel unit. If left blank, a defaul height will be used.';
$_lang['setting_ace.grow'] = 'Fit height to text';
$_lang['setting_ace.grow_desc'] = 'The height of the editor will be adjusted to the text. The minimum height will be equal to the option ace.height. Possible values: Empty - height does not fit the text; The number is greater than 0 - the height is adjusted to the text but not more than the value; 0 - height is customized for text, height is unlimited. ';
$_lang['setting_ace.html_elements_mime'] = 'MIME-type for html elements';
$_lang['setting_ace.html_elements_mime_desc'] = 'This type will be used by the editor for html elements - templates, chunks and resources with html type. If not specified, the default type will be used';
$_lang['ui_ace.whole_word'] = 'Whole words';
8 changes: 8 additions & 0 deletions core/components/ace/lexicon/en/setting.inc.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<?php
/**
* Settings Language file for Ace
*
* @package ace
* @subpackage lexicon
*/

$_lang['area_general'] = 'General settings';

$_lang['setting_ace.theme'] = 'Editor theme';
Expand Down
21 changes: 0 additions & 21 deletions core/components/ace/lexicon/nl/default.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,3 @@
$_lang['ui_ace.replace_all'] = 'Alle';
$_lang['ui_ace.replace_with'] = 'Vervang met';
$_lang['ui_ace.whole_word'] = 'Hele woorden';

$_lang['area_general'] = 'Algemene instellingen';

$_lang['setting_ace.theme'] = 'Editor thema';
$_lang['setting_ace.theme_desc'] = 'Beschikbare thema\'s: chrome, clouds, clouds_midnight, cobalt, crimson_editor, dawn, dreamweaver, eclipse, github, idle_fingers, kr_theme, merbivore, merbivore_soft, mono_industrial, monokai, pastel_on_dark, solarized_dark, solarized_light, textmate, tomorrow, tomorrow_night, tomorrow_night_blue, tomorrow_night_bright, tomorrow_night_eighties, twilight, vibrant_ink.';
$_lang['setting_ace.word_wrap'] = 'Woorden afbreken';
$_lang['setting_ace.word_wrap_desc'] = 'Lange zinnen afbreken op woorden.';
$_lang['setting_ace.font_size'] = 'Lettergrootte';
$_lang['setting_ace.font_size_desc'] = 'De lettergrootte van de editor.';
$_lang['setting_ace.autogrow'] = 'Automatisch groeien';
$_lang['setting_ace.autogrow_desc'] = 'Laat de editor automatisch meegroeien tot een max van "autogrowmax" grootte.';
$_lang['setting_ace.autogrowmax'] = 'Automatisch groeien max.';
$_lang['setting_ace.autogrowmax_desc'] = 'De maximaal aantal lijnen waarna de editor stopt met groeien.';
$_lang['setting_ace.snippets'] = 'Snippets';
$_lang['setting_ace.snippets_desc'] = 'Code snippets you can expand by pressing “Tab” key. Snippet example:<br /><br /><pre>\nsnippet getr\n [!getResources? parents=`${1}`${2}]]\n</pre></br>You can insert “Tab” character by pressing Alt + 09';
$_lang['setting_ace.height'] = 'Edit area height';
$_lang['setting_ace.height_desc'] = 'Editor height in pixel unit. If left blank, a defaul height will be used.';
$_lang['setting_ace.grow'] = 'Pas hoogte aan tekst aan';
$_lang['setting_ace.grow_desc'] = 'De hoogte van de editor wordt aangepast aan de tekst. De minimale hoogte is gelijk aan de optie aashoogte. Mogelijke waarden: leeg - hoogte past niet in de tekst; Het aantal is groter dan 0 - de hoogte is aangepast aan de tekst, maar niet hoger dan de waarde; 0 - hoogte is aangepast voor tekst, hoogte is onbeperkt. ';
$_lang['setting_ace.html_elements_mime'] = 'MIME-type voor html-elementen';
$_lang['setting_ace.html_elements_mime_desc'] = 'Dit type wordt door de editor gebruikt voor html-elementen - sjablonen, chunks en bronnen met html-type. Als dit niet wordt opgegeven, wordt het standaardtype gebruikt';
28 changes: 28 additions & 0 deletions core/components/ace/lexicon/nl/setting.inc.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php
/**
* Settings Language file for Ace
*
* @package ace
* @subpackage lexicon
*/

$_lang['area_general'] = 'Algemene instellingen';

$_lang['setting_ace.theme'] = 'Editor thema';
$_lang['setting_ace.theme_desc'] = 'Beschikbare thema\'s: chrome, clouds, clouds_midnight, cobalt, crimson_editor, dawn, dreamweaver, eclipse, github, idle_fingers, kr_theme, merbivore, merbivore_soft, mono_industrial, monokai, pastel_on_dark, solarized_dark, solarized_light, textmate, tomorrow, tomorrow_night, tomorrow_night_blue, tomorrow_night_bright, tomorrow_night_eighties, twilight, vibrant_ink.';
$_lang['setting_ace.word_wrap'] = 'Woorden afbreken';
$_lang['setting_ace.word_wrap_desc'] = 'Lange zinnen afbreken op woorden.';
$_lang['setting_ace.font_size'] = 'Lettergrootte';
$_lang['setting_ace.font_size_desc'] = 'De lettergrootte van de editor.';
$_lang['setting_ace.autogrow'] = 'Automatisch groeien';
$_lang['setting_ace.autogrow_desc'] = 'Laat de editor automatisch meegroeien tot een max van "autogrowmax" grootte.';
$_lang['setting_ace.autogrowmax'] = 'Automatisch groeien max.';
$_lang['setting_ace.autogrowmax_desc'] = 'De maximaal aantal lijnen waarna de editor stopt met groeien.';
$_lang['setting_ace.snippets'] = 'Snippets';
$_lang['setting_ace.snippets_desc'] = 'Code snippets you can expand by pressing “Tab” key. Snippet example:<br /><br /><pre>\nsnippet getr\n [!getResources? parents=`${1}`${2}]]\n</pre></br>You can insert “Tab” character by pressing Alt + 09';
$_lang['setting_ace.height'] = 'Edit area height';
$_lang['setting_ace.height_desc'] = 'Editor height in pixel unit. If left blank, a defaul height will be used.';
$_lang['setting_ace.grow'] = 'Pas hoogte aan tekst aan';
$_lang['setting_ace.grow_desc'] = 'De hoogte van de editor wordt aangepast aan de tekst. De minimale hoogte is gelijk aan de optie aashoogte. Mogelijke waarden: leeg - hoogte past niet in de tekst; Het aantal is groter dan 0 - de hoogte is aangepast aan de tekst, maar niet hoger dan de waarde; 0 - hoogte is aangepast voor tekst, hoogte is onbeperkt. ';
$_lang['setting_ace.html_elements_mime'] = 'MIME-type voor html-elementen';
$_lang['setting_ace.html_elements_mime_desc'] = 'Dit type wordt door de editor gebruikt voor html-elementen - sjablonen, chunks en bronnen met html-type. Als dit niet wordt opgegeven, wordt het standaardtype gebruikt';
27 changes: 1 addition & 26 deletions core/components/ace/lexicon/ru/default.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,4 @@
$_lang['ui_ace.replace'] = 'Заменить';
$_lang['ui_ace.replace_all'] = 'Всё';
$_lang['ui_ace.replace_with'] = 'Заменить на';
$_lang['ui_ace.whole_word'] = 'Целые слова';

$_lang['area_general'] = 'Основные настройки';

$_lang['setting_ace.theme'] = 'Тема редактора';
$_lang['setting_ace.theme_desc'] = 'Доступные темы: ambiance, chaos, chrome, clouds, clouds_midnight, cobalt, crimson_editor, dawn, dreamweaver, eclipse, github, idle_fingers, katzenmilch, kr, kuroir, merbivore, merbivore_soft, mono_industrial, monokai, pastel_on_dark, solarized_dark, solarized_light, terminal, textmate, tomorrow, tomorrow_night, tomorrow_night_blue, tomorrow_night_bright, tomorrow_night_eighties, twilight, vibrant_ink, xcode.';
$_lang['setting_ace.word_wrap'] = 'Перенос строк';
$_lang['setting_ace.word_wrap_desc'] = 'Переносить длинные строки.';
$_lang['setting_ace.font_size'] = 'Размер шрифта';
$_lang['setting_ace.font_size_desc'] = 'Размер шрифта редактора.';
$_lang['setting_ace.soft_tabs'] = 'Мягкая табуляция';
$_lang['setting_ace.soft_tabs_desc'] = 'Использовать пробелы вместо символа табуляции.';
$_lang['setting_ace.tab_size'] = 'Размер табуляции';
$_lang['setting_ace.tab_size_desc'] = 'Размер табуляции, выраженный в количестве пробелов.';
$_lang['setting_ace.fold_widgets'] = 'Свертывание кода';
$_lang['setting_ace.fold_widgets_desc'] = 'Отображать на линейке элементы управления свертыванием кода.';
$_lang['setting_ace.show_invisibles'] = 'Невидимые символы';
$_lang['setting_ace.show_invisibles_desc'] = 'Отображать пробелы, табуляцию и символы конца строк.';
$_lang['setting_ace.snippets'] = 'Сниппеты';
$_lang['setting_ace.snippets_desc'] = 'Сниппеты, разворачиваемые по клавише «Tab». Пример сниппета:<br /><br /><pre>\nsnippet getr\n [!getResources? parents=`${1}`${2}]]\n</pre></br>Знак табуляции можно вставить используя клавиши Alt + 09';
$_lang['setting_ace.height'] = 'Высота области редактирования';
$_lang['setting_ace.height_desc'] = 'Высота редактора в пикселах. Если значение не указано, редактор будет иметь высоту по умолчанию.';
$_lang['setting_ace.grow'] = 'Подогнать высоту под текст';
$_lang['setting_ace.grow_desc'] = 'Высота редактора будет подогнана под текст. Минимальная высота будет равна опции ace.height. Возможные значения: Пусто - высота не подгоняется под текст; Число больше 0 - высота подгоняется под текст но не более значения; 0 - высота подгоняется под текст, высота не ограничена.';
$_lang['setting_ace.html_elements_mime'] = 'MIME-type для html элементов';
$_lang['setting_ace.html_elements_mime_desc'] = 'Этот тип будет использован редактором для html элементов - шаблонов, чанков и ресурсов с типом html. Если не указан будет использован тип по умолчанию';
$_lang['ui_ace.whole_word'] = 'Целые слова';
Loading

0 comments on commit 397f769

Please sign in to comment.