Skip to content

Commit

Permalink
Enable and Add Translations
Browse files Browse the repository at this point in the history
- Useful for the description
- WIP #2 #3
  • Loading branch information
aljawaid committed Jan 5, 2023
1 parent 513bf3d commit 9b6525c
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Locale/de_DE/translations.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php
return array(
//
// GENERAL
//
'A colorful theme to refresh the interface using different color schemes.' => 'Ein farbenfrohes Thema, um die Benutzeroberfläche mit verschiedenen Farbschemata aufzufrischen.',
);
7 changes: 7 additions & 0 deletions Locale/en_GB/translations.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php
return array(
//
// GENERAL
//
'A colorful theme to refresh the interface using different color schemes.' => 'A colourful theme to refresh the interface using different colour schemes.',
);
7 changes: 7 additions & 0 deletions Locale/fr_FR/translations.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php
return array(
//
// GENERAL
//
'A colorful theme to refresh the interface using different color schemes.' => 'Un thème coloré pour rafraîchir l\'interface en utilisant différents schémas de couleurs.',
);
16 changes: 16 additions & 0 deletions Locale/translations-starter-template.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!-- REMOVE THIS SECTION -->
<!-- ------------------- -->
<!-- TEMPLATE FILE FOR LOCAL TRANSLATIONS - KEEP FILENAME IN LOWERCASE AS translations.php UNDER LANGUAGE CODE -->
<!-- EXAMPLE FILE: /Locale/en_GB/translations.php -->
<!-- EXAMPLE FILE: /Locale/en_US/translations.php -->
<!-- EXAMPLE FILE: /Locale/fr_FR/translations.php -->
<!-- EXAMPLE FILE: /Locale/de_DE/translations.php -->
<!-- ------------------- -->
<!-- REMOVE THIS SECTION -->
<?php
return array(
//
// GENERAL
//
'A colorful theme to refresh the interface using different color schemes.' => '',
);
10 changes: 9 additions & 1 deletion Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Kanboard\Plugin\ThemeMaestro;

use Kanboard\Core\Plugin\Base;
use Kanboard\Core\Translator;

class Plugin extends Base
{
Expand All @@ -11,14 +12,21 @@ public function initialize()
$this->hook->on('template:layout:css', array('template' => 'plugins/ThemeMaestro/ThemeMaestro.css'));
}

public function onStartup()
{
Translator::load($this->languageModel->getCurrentLanguage(), __DIR__.'/Locale');
}

public function getPluginName()
{
// Plugin Name MUST be identical to namespace for Plugin Directory to detect updated versions
// Do not translate the plugin name here
return 'ThemeMaestro';
}

public function getPluginDescription()
{
return 'A colorful theme to utilise color sets to refresh the interface.';
return t('A colorful theme to refresh the interface using different color schemes.');
}

public function getPluginAuthor()
Expand Down

0 comments on commit 9b6525c

Please sign in to comment.