Skip to content

Commit

Permalink
minor typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Schwirjow authored and Alexander Schwirjow committed Sep 6, 2018
1 parent 0186184 commit 2264432
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,8 @@
#### 0.7.0

- FIX: minor typo fixes
- ADD: Overwrite font on import to avoid duplicates
- ADD: Overwrite font on import to avoid duplicates

#### 0.7.1

- FIX: minor typo and code quality fixes
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Please use only free or properly licensed fonts.
- Generate and load font CSS
- Manage font styles (bold, italic etc.)
- Assign fonts to CSS selectors automaticly
- Tested on Contao 4.3.11, 4.4.20, 4.5.10
- Tested on Contao 4.3.11, 4.4.20 - 4.4.24, 4.5.10, 4.6.3

#### TODO

Expand Down
4 changes: 2 additions & 2 deletions src/Resources/contao/dca/tl_fonts.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ public function renderStyleLabel($row, $label = false)

if ($format) {
$format = implode(', ', $format);
$label = sprintf('<span style="color:#b3b3b3;padding-left:3px">[%s]</span>%s %s', $format, $this->getFontFaceName($row['pid']), $label);
$label = sprintf('<span style="color:#b3b3b3;padding-left:3px">[%s]</span>%s%s', $format, $this->getFontFaceName($row['pid']), $label);
}

if ($row['style'] !== 'normal') {
Expand Down Expand Up @@ -336,7 +336,7 @@ public function checkPermission()
*/
private function getFontFaceName($fontId)
{
$fontFace = $this->Database->prepare('SELECT name FROM tl_fonts_faces WHERE id = ? LIMIT 1')->execute($fontId);
$fontFace = $this->Database->prepare('SELECT `name` FROM `tl_fonts_faces` WHERE `id` = ? LIMIT 1')->execute($fontId);
if ($fontFace->name) {
return ' '.$fontFace->name;
}
Expand Down
3 changes: 1 addition & 2 deletions src/Resources/contao/dca/tl_user_group.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
<?php

$GLOBALS['TL_DCA']['tl_user_group']['palettes']['default'] .= ';{webfont_legend},webfont_generator';

$GLOBALS['TL_DCA']['tl_user_group']['fields']['webfont_generator'] = array(
'label' => &$GLOBALS['TL_LANG']['tl_user_group']['webfont_generator'],
'exclude' => true,
'inputType' => 'checkbox',
'options' => array('create', 'delete'),
'reference' => &$GLOBALS['TL_LANG']['MSC'],
'eval' => array('multiple'=>true),
'eval' => array('multiple' => true),
'sql' => "blob NULL"
);
6 changes: 3 additions & 3 deletions src/Resources/contao/languages/de/tl_fonts_faces.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -83,19 +83,19 @@
</trans-unit>
<trans-unit id="tl_fonts_faces.import.0">
<source>CSS import</source>
<target>CSS importieren</target>
<target>CSS-Import</target>
</trans-unit>
<trans-unit id="tl_fonts_faces.import.1">
<source>Import existing CSS files</source>
<target>Schriften aus einer CSS-Datei einlesen</target>
</trans-unit>
<trans-unit id="tl_fonts_faces.source.0">
<source>Source files</source>
<target>CSS-Dateien</target>
<target>Quelldateien</target>
</trans-unit>
<trans-unit id="tl_fonts_faces.source.1">
<source>Here you can upload one or more .css files to be imported.</source>
<target>Hier können Sie eines oder mehrere CSS-Dateien hochladen.</target>
<target>Hier können Sie eine oder mehrere .css-Dateien für den Import hochladen.</target>
</trans-unit>
<trans-unit id="tl_fonts_faces.overwrite.0">
<source>Overwrite font</source>
Expand Down

0 comments on commit 2264432

Please sign in to comment.