Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Rico Kaltofen
committed
Mar 26, 2019
1 parent
e5b0479
commit ea1b30a
Showing
7 changed files
with
244 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?php | ||
|
||
$dc = &$GLOBALS['TL_DCA']['tl_page']; | ||
|
||
/** | ||
* Selectors | ||
*/ | ||
$dc['palettes']['__selector__'][] = 'customLineBreakExceptions'; | ||
|
||
|
||
/** | ||
* Palettes | ||
*/ | ||
$dc['palettes']['root'] = str_replace('{layout_legend', '{hyphenator_legend},hyphenation,customLineBreakExceptions;{layout_legend', $dc['palettes']['root']); | ||
$dc['palettes']['regular'] = str_replace('{layout_legend', '{hyphenator_legend},hyphenation,customLineBreakExceptions;{layout_legend', $dc['palettes']['regular']); | ||
|
||
/** | ||
* Subpalettes | ||
*/ | ||
$dc['subpalettes']['customLineBreakExceptions'] = 'lineBreakExceptions'; | ||
|
||
$fields = [ | ||
'hyphenation' => [ | ||
'label' => &$GLOBALS['TL_LANG']['tl_page']['hyphenation'], | ||
'inputType' => 'select', | ||
'default' => 'inactive', | ||
'options' => ['active', 'inactive'], | ||
'reference' => $GLOBALS['TL_LANG']['tl_page']['reference']['hyphenation'], | ||
'eval' => ['includeBlankOption' => true, 'tl_class' => 'w50'], | ||
'sql' => "char(8) NOT NULL default ''", | ||
], | ||
'customLineBreakExceptions' => [ | ||
'label' => &$GLOBALS['TL_LANG']['tl_page']['customLineBreakExceptions'], | ||
'exclude' => true, | ||
'inputType' => 'checkbox', | ||
'eval' => ['submitOnChange' => true, 'tl_class' => 'clr'], | ||
'sql' => "char(1) NOT NULL default ''", | ||
], | ||
'lineBreakExceptions' => [ | ||
'label' => &$GLOBALS['TL_LANG']['tl_page']['lineBreakExceptions'], | ||
'inputType' => 'multiColumnEditor', | ||
'eval' => [ | ||
'tl_class' => 'long clr', | ||
'multiColumnEditor' => [ | ||
'fields' => [ | ||
'search' => [ | ||
'label' => &$GLOBALS['TL_LANG']['tl_page']['lineBreakExceptions_search'], | ||
'exclude' => true, | ||
'inputType' => 'text', | ||
'eval' => ['tl_class' => 'w50', 'mandatory' => true, 'groupStyle' => 'width: 80%;'], | ||
], | ||
], | ||
], | ||
], | ||
'sql' => "blob NULL" | ||
] | ||
]; | ||
|
||
$dc['fields'] = array_merge($dc['fields'], $fields); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
$lang = &$GLOBALS['TL_LANG']['tl_page']; | ||
|
||
/** | ||
* Fields | ||
*/ | ||
$lang['hyphenation'] = ['Silbentrennung', 'Silbentrennung auf dieser Seite aktivieren, deaktivieren oder leer lassen für die Verwendung der Vererbung von den übergeordneten Seiten.']; | ||
$lang['customLineBreakExceptions'] = ['Benutzerdefinierte Ausnahmen für Zeilenumbrüche hinzufügen', 'Fügen Sie benutzerdefinierte Ausnahmen für Zeilenumbrüche hinzu, um Wörter zusammenzuhalten.']; | ||
$lang['lineBreakExceptions'] = ['Ausnahmen für Zeilenumbrüche', 'Hinzufügen von Leerraum-Suchmustern (auch reguläre Ausdrücke zulässig) um einen Zeilenumbruch zwischen diesen Wörtern zu verhindern.']; | ||
$lang['lineBreakExceptions_search'] = ['Suchmuster', 'Vergeben Sie ein Suchmuster (reguläre sind Ausdrücke erlaubt). Beispiel: "Meine Firma GmbH", (\s\w{1})(\s)']; | ||
|
||
/** | ||
* Legends | ||
*/ | ||
$lang['hyphenator_legend'] = 'Silbentrennung & Zeilenumbrüche'; | ||
|
||
|
||
/** | ||
* References | ||
*/ | ||
$lang['reference']['hyphenation']['active'] = 'Aktiviert'; | ||
$lang['reference']['hyphenation']['inactive'] = 'Deaktiviert'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
$lang = &$GLOBALS['TL_LANG']['tl_page']; | ||
|
||
/** | ||
* Fields | ||
*/ | ||
$lang['hyphenation'] = ['Hyphenation', 'Enable, disable, or leave blank for inheritance use by the parent pages.']; | ||
$lang['customLineBreakExceptions'] = ['Custom exceptions for line breaks', 'Add custom exceptions for line breaks, to keep words together.']; | ||
$lang['lineBreakExceptions'] = ['Line break exceptions', 'Add white space search patterns (also regular expressions allowed) to prevent a line break between these words.']; | ||
$lang['lineBreakExceptions_search'] = ['Search pattern', 'Assign a search pattern (regular expressions allowed). Beispiel: "My Company GmbH", (\s\w{1})(\s)']; | ||
|
||
/** | ||
* Legends | ||
*/ | ||
$lang['hyphenator_legend'] = 'Hyphenation & line breaks'; | ||
|
||
/** | ||
* References | ||
*/ | ||
$lang['reference']['hyphenation']['active'] = 'Enabled'; | ||
$lang['reference']['hyphenation']['inactive'] = 'Disabled'; |