Skip to content

Commit

Permalink
added english translation
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Nov 15, 2012
1 parent 5c0ebf6 commit a8894c8
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 2 deletions.
2 changes: 1 addition & 1 deletion languages/de/modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
*/

$GLOBALS['TL_LANG']['MOD']['rocksolid_theme_assistant'][0] = 'RockSolid Theme Assistant';
$GLOBALS['TL_LANG']['MOD']['rocksolid_theme_assistant'][1] = 'Stylesheets mit RockSolid Theme Assistant bearbeiten';
$GLOBALS['TL_LANG']['MOD']['rocksolid_theme_assistant'][1] = 'Stylesheets und Templates mit RockSolid Theme Assistant bearbeiten';
16 changes: 16 additions & 0 deletions languages/en/modules.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php
/*
* Copyright MADE/YOUR/DAY <mail@madeyourday.co>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

/**
* RockSolid Theme Assistant module translations
*
* @author Martin Auswöger <martin@madeyourday.co>
*/

$GLOBALS['TL_LANG']['MOD']['rocksolid_theme_assistant'][0] = 'RockSolid Theme Assistant';
$GLOBALS['TL_LANG']['MOD']['rocksolid_theme_assistant'][1] = 'Edit stylesheets and templates with RockSolid Theme Assistant';
24 changes: 24 additions & 0 deletions languages/en/rocksolid_theme_assistant.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php
/*
* Copyright MADE/YOUR/DAY <mail@madeyourday.co>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

/**
* RockSolid Theme Assistant translations
*
* @author Martin Auswöger <martin@madeyourday.co>
*/

$GLOBALS['TL_LANG']['rocksolid_theme_assistant']['file_types']['css'] = 'Stylesheet';
$GLOBALS['TL_LANG']['rocksolid_theme_assistant']['file_types']['html'] = 'Template';
$GLOBALS['TL_LANG']['rocksolid_theme_assistant']['edit'][0] = 'Edit file';
$GLOBALS['TL_LANG']['rocksolid_theme_assistant']['edit'][1] = 'Edit file "%s"';
$GLOBALS['TL_LANG']['rocksolid_theme_assistant']['hash_warning'][0] = 'Warning';
$GLOBALS['TL_LANG']['rocksolid_theme_assistant']['hash_warning'][1] = 'The file <i>/%s</i> was edited outside of the assistant. If you click save all changes will be lost.';
$GLOBALS['TL_LANG']['rocksolid_theme_assistant']['legend_source'] = 'Edit source code';
$GLOBALS['TL_LANG']['rocksolid_theme_assistant']['editor_info'] = 'If the editor doesn\'t appear correctly, reload the page.';
$GLOBALS['TL_LANG']['rocksolid_theme_assistant']['source'][0] = 'Source code';
$GLOBALS['TL_LANG']['rocksolid_theme_assistant']['source'][1] = 'Here you can edit the source code directly.';
6 changes: 5 additions & 1 deletion src/MadeYourDay/Contao/ThemeAssistant.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,11 @@ public function onloadCallback(\DataContainer $dc)
$GLOBALS['TL_DCA']['rocksolid_theme_assistant']['palettes']['default'] .= ';';
}
$GLOBALS['TL_DCA']['rocksolid_theme_assistant']['palettes']['default'] .= '{group_legend_' . $key . ':hide}';
$GLOBALS['TL_LANG']['rocksolid_theme_assistant']['group_legend_'.$key] = $group['de']['label'];
$GLOBALS['TL_LANG']['rocksolid_theme_assistant']['group_legend_'.$key] = $group[
isset($group[substr($GLOBALS['TL_LANGUAGE'], 0, 2)])
? substr($GLOBALS['TL_LANGUAGE'], 0, 2)
: 'en'
]['label'];
foreach ($data['templateVars'] as $varKey => $var) {
if ($var['group'] === $key) {
$GLOBALS['TL_DCA']['rocksolid_theme_assistant']['palettes']['default'] .= ',' . $varKey;
Expand Down

0 comments on commit a8894c8

Please sign in to comment.