Skip to content

Commit

Permalink
Adjusting codestyle and language strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Hunziker committed Apr 2, 2021
1 parent 7873832 commit 5ce588b
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 22 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.idea
17 changes: 10 additions & 7 deletions fields/customeditors.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
<?php
/**
* @package EditorSwitcher
*
* @author Thomas Hunziker <admin@bakual.net>
* @copyright © 2021 - Thomas Hunziker
* @license http://www.gnu.org/licenses/gpl.html
* @package Editor Switcher
* @copyright © 2021
* @license http://www.gnu.org/licenses/gpl.html
* @author Thomas Hunziker (www.bakual.net), Yoshiki Kozaki(www.joomler.net)
* @link https://www.bakual.net/
*/
defined('JPATH_PLATFORM') or die();

JFormHelper::loadFieldClass('plugins');
defined('_JEXEC') or die;

use Joomla\CMS\Form\FormHelper;

FormHelper::loadFieldClass('plugins');

/**
* Renders an editors listfield
Expand Down
2 changes: 1 addition & 1 deletion language/de-DE/de-DE.plg_editors_switcher.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ PLG_EDITOR_SWITCHER_EDITOR_LABEL="Standard Editor"
PLG_EDITOR_SWITCHER_EDITORWASNOTFOUND="Der Editor wurde nicht gefunden."
PLG_EDITORS_SWITCHER_CONFIRMATION_LABEL="Bestätigung"
PLG_EDITORS_SWITCHER_CONFIRMATION_DESC="Zeigt ein Popup zum Bestätigen des Editorwechsels."
PLG_EDITORS_SWITCHER_COOKIEDAYS_LABEL="Dauer in Tagen"
PLG_EDITORS_SWITCHER_COOKIEDAYS_LABEL="Cookie Lebenszeit"
PLG_EDITORS_SWITCHER_COOKIEDAYS_DESC="Lebensdauer des Cookies in Tagen."
PLG_EDITORS_SWITCHER_CONFIRM_MESSAGE="Nicht gespeicherte Daten werden nicht wiederhergestellt."
6 changes: 3 additions & 3 deletions language/en-GB/en-GB.plg_editors_switcher.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PLG_EDITOR_SWITCHER_EDITORWASNOTFOUND="Editor was not found."

PLG_EDITOR_SWITCHER_XML_DESCRIPTION="This plug-in enables the switch of the editor directly by the edit display."
PLG_EDITORS_SWITCHER_CONFIRMATION_LABEL="Confirmation"
PLG_EDITORS_SWITCHER_CONFIRMATION_DESC="It confirm whether changing an editor or not on popup a dialog window. Default is Yes."
PLG_EDITORS_SWITCHER_COOKIEDAYS_LABEL="Duration days"
PLG_EDITORS_SWITCHER_COOKIEDAYS_DESC="Duration days for cookie. Default:365"
PLG_EDITORS_SWITCHER_CONFIRMATION_DESC="Uses a Confirmation Dialogbox when changing the editor."
PLG_EDITORS_SWITCHER_COOKIEDAYS_LABEL="Cookie Lifetime"
PLG_EDITORS_SWITCHER_COOKIEDAYS_DESC="Cookie lifetime in days."
PLG_EDITORS_SWITCHER_CONFIRM_MESSAGE="Unsaved data will not be restored."
14 changes: 5 additions & 9 deletions switcher.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
<?php
/**
* Plugin Editor Switcher
* @version 2.0.0
* @package Editor Switcher
* @copyright Copyright (C) 2007-2012 Joomler!.net. All rights reserved.
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
*
* @author Yoshiki Kozaki(www.joomler.net)
* @link http://www.joomler.net/
*
* @package Editor Switcher
* @copyright © 2021
* @license http://www.gnu.org/licenses/gpl.html
* @author Thomas Hunziker (www.bakual.net), Yoshiki Kozaki (www.joomler.net)
* @link https://www.bakual.net/
*/

defined('_JEXEC') or die;
Expand Down
4 changes: 2 additions & 2 deletions switcher.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<author>Thomas Hunziker (www.bakual.net), Yoshiki Kozaki(www.joomler.net)</author>
<authorEmail>bakual@bakual.net</authorEmail>
<authorUrl>https://www.bakual.net</authorUrl>
<creationDate>2021-04-01</creationDate>
<copyright>(C) 2021</copyright>
<creationDate>2021-04-02</creationDate>
<copyright>© 2021</copyright>
<license>http://www.gnu.org/licenses/gpl.html</license>
<description>PLG_EDITOR_SWITCHER_XML_DESCRIPTION</description>
<files>
Expand Down
7 changes: 7 additions & 0 deletions tmpl/default.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php
/**
* @package Editor Switcher
* @copyright © 2021
* @license http://www.gnu.org/licenses/gpl.html
* @author Thomas Hunziker (www.bakual.net), Yoshiki Kozaki(www.joomler.net)
* @link https://www.bakual.net/
*/

defined('_JEXEC') or die;

Expand Down

0 comments on commit 5ce588b

Please sign in to comment.