52
0
This commit is contained in:
Llewellyn van der Merwe 2022-05-09 14:26:07 +02:00
parent b87ad52739
commit 43087b6f3b
Signed by: Llewellyn
GPG Key ID: A9201372263741E7
5 changed files with 60 additions and 60 deletions

View File

@ -1,14 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<extension type="plugin" version="4" group="content" method="upgrade">
<name>PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS</name>
<creationDate>10th March, 2022</creationDate>
<name>PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS</name>
<creationDate>9th May, 2022</creationDate>
<author>Llewellyn van der Merwe</author>
<authorEmail>joomla@vdm.io</authorEmail>
<authorUrl>https://dev.vdm.io</authorUrl>
<copyright>Copyright (C) 2015 Vast Development Method. All rights reserved.</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<version>1.0.1</version>
<description>PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_XML_DESCRIPTION</description>
<description>PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_XML_DESCRIPTION</description>
<!-- Scripts to run on installation -->
<scriptfile>script.php</scriptfile>

View File

@ -82,7 +82,7 @@ class JFormFieldExcludedlanguages extends JFormFieldList
if ($user->authorise('language.create', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
{
// build Create button
$button[] = '<a id="'.$button_code_name.'Create" class="btn btn-small btn-success hasTooltip" title="'.JText::sprintf('PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_CREATE_NEW_S', $button_label).'" style="border-radius: 0px 4px 4px 0px; padding: 4px 4px 4px 7px;"
$button[] = '<a id="'.$button_code_name.'Create" class="btn btn-small btn-success hasTooltip" title="'.JText::sprintf('PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_CREATE_NEW_S', $button_label).'" style="border-radius: 0px 4px 4px 0px; padding: 4px 4px 4px 7px;"
href="index.php?option=com_componentbuilder&amp;view=language&amp;layout=edit'.$ref.'" >
<span class="icon-new icon-white"></span></a>';
}
@ -90,7 +90,7 @@ class JFormFieldExcludedlanguages extends JFormFieldList
if ($user->authorise('language.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
{
// build edit button
$button[] = '<a id="'.$button_code_name.'Edit" class="btn btn-small hasTooltip" title="'.JText::sprintf('PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_EDIT_S', $button_label).'" style="display: none; padding: 4px 4px 4px 7px;" href="#" >
$button[] = '<a id="'.$button_code_name.'Edit" class="btn btn-small hasTooltip" title="'.JText::sprintf('PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_EDIT_S', $button_label).'" style="display: none; padding: 4px 4px 4px 7px;" href="#" >
<span class="icon-edit"></span></a>';
// build script
$script[] = "

View File

@ -3,50 +3,50 @@
<form>
<fields name="params">
<!-- default paths of language_options fieldset points to the plugin -->
<fieldset name="language_options" label="PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_LANGUAGE_OPTIONS"
<fieldset name="language_options" label="PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_LANGUAGE_OPTIONS"
addrulepath="/plugins/content/componentbuilderlanguagetabs/rules"
addfieldpath="/plugins/content/componentbuilderlanguagetabs/fields"
>
<fields name="language_options">
<!-- Note_language_note Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_language_note" label="PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_NOTE_LANGUAGE_NOTE_LABEL" description="PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_NOTE_LANGUAGE_NOTE_DESCRIPTION" heading="h2" class="alert alert-info note_language_note" />
<field type="note" name="note_language_note" label="PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_NOTE_LANGUAGE_NOTE_LABEL" description="PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_NOTE_LANGUAGE_NOTE_DESCRIPTION" heading="h2" class="alert alert-info note_language_note" />
<!-- Activate Field. Type: Radio. (joomla) -->
<field
type="radio"
name="activate"
label="PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_ACTIVATE_LABEL"
description="PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_ACTIVATE_DESCRIPTION"
label="PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_ACTIVATE_LABEL"
description="PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_ACTIVATE_DESCRIPTION"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_YES</option>
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_YES</option>
<option value="0">
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_NO</option>
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_NO</option>
</field>
<!-- Use_percentagelanguageadd Field. Type: Radio. (joomla) -->
<field
type="radio"
name="use_percentagelanguageadd"
label="PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_USE_PERCENTAGELANGUAGEADD_LABEL"
description="PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_USE_PERCENTAGELANGUAGEADD_DESCRIPTION"
label="PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_USE_PERCENTAGELANGUAGEADD_LABEL"
description="PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_USE_PERCENTAGELANGUAGEADD_DESCRIPTION"
class="btn-group btn-group-yesno"
default="1"
showon="activate:1">
<!-- Option Set. -->
<option value="1">
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_GLOBAL</option>
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_GLOBAL</option>
<option value="2">
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_LOCAL</option>
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_LOCAL</option>
</field>
<!-- Percentagelanguageadd Field. Type: Number. (joomla) -->
<field
type="number"
name="percentagelanguageadd"
label="PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_PERCENTAGELANGUAGEADD_LABEL"
label="PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_PERCENTAGELANGUAGEADD_LABEL"
default="50"
description="PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_PERCENTAGELANGUAGEADD_DESCRIPTION"
description="PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_PERCENTAGELANGUAGEADD_DESCRIPTION"
class="text_area"
min="10"
max="100"
@ -54,13 +54,13 @@
showon="use_percentagelanguageadd:2[AND]activate:1"
/>
<!-- Note_languages_keep Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_languages_keep" label="PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_NOTE_LANGUAGES_KEEP_LABEL" description="PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_NOTE_LANGUAGES_KEEP_DESCRIPTION" heading="h2" class="alert alert-info note_languages_keep" showon="activate:1" />
<field type="note" name="note_languages_keep" label="PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_NOTE_LANGUAGES_KEEP_LABEL" description="PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_NOTE_LANGUAGES_KEEP_DESCRIPTION" heading="h2" class="alert alert-info note_languages_keep" showon="activate:1" />
<!-- Languages Field. Type: Excludedlanguages. (custom) -->
<field
type="excludedlanguages"
name="languages"
label="PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_LANGUAGES_LABEL"
description="PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_LANGUAGES_DESCRIPTION"
label="PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_LANGUAGES_LABEL"
description="PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_LANGUAGES_DESCRIPTION"
class="list_class"
multiple="true"
default="en-GB"

View File

@ -1,20 +1,20 @@
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS="Content - Componentbuilder Language Tabs"
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_DESCRIPTION="This plugin is used to link your components to the language packaging and extending options, so you can set all the required details for the integration."
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_XML_DESCRIPTION="<h1>Content - Componentbuilder Language Tabs (v.1.0.1)</h1> <div style='clear: both;'></div><p>This plugin is used to link your components to the language packaging and extending options, so you can set all the required details for the integration.</p><p>Created by <a href='https://dev.vdm.io' target='_blank'>Llewellyn van der Merwe</a><br /><small>Development started 19th March, 2020</small></p>"
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_LANGUAGE_OPTIONS="Language Options"
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_NOTE_LANGUAGE_NOTE_LABEL="Would you like to move languages to their own packages?"
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_NOTE_LANGUAGE_NOTE_DESCRIPTION="<p>Adding all your translations to your component can increase its size dramatically, so now you are able to move each extra language translation to its own installing package, leaving just your main language in the component.</p><p>Please note that this is only relevant if you actually have added extra translations to your component in the <b>Language Translations</b> area of JCB.</p>"
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_ACTIVATE_LABEL="Activate"
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_ACTIVATE_DESCRIPTION="Turn on the integration."
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_YES="Yes"
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_NO="No"
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_USE_PERCENTAGELANGUAGEADD_LABEL="Add Language Settings"
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_USE_PERCENTAGELANGUAGEADD_DESCRIPTION="Select what option should be used"
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_GLOBAL="Global"
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_LOCAL="Local"
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_PERCENTAGELANGUAGEADD_LABEL="Add Language if %? ready."
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_PERCENTAGELANGUAGEADD_DESCRIPTION="Select percentage any language should be translated before the system should add the language to the component during compilation."
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_NOTE_LANGUAGES_KEEP_LABEL="Do want to keep some languages in your component?"
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_NOTE_LANGUAGES_KEEP_DESCRIPTION="The JCB system <b>main language</b> will always be <b>kept in</b> your component. Select any of the other languages you would like to keep <b>in</b> your component. They will then be excluded from this language packaging option. (or leave blank for none)"
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_LANGUAGES_LABEL="Languages"
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_LANGUAGES_DESCRIPTION="The JCB system <b>main language</b> will always be <b>kept in</b> your component. Select any of the other languages you would like to keep <b>in</b> your component. They will then be excluded from this language packaging option. (or leave blank for none)"
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS="Content - Componentbuilder Language Tabs"
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_DESCRIPTION="This plugin is used to link your components to the language packaging and extending options, so you can set all the required details for the integration."
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_XML_DESCRIPTION="<h1>Content - Componentbuilder Language Tabs (v.1.0.1)</h1> <div style='clear: both;'></div><p>This plugin is used to link your components to the language packaging and extending options, so you can set all the required details for the integration.</p><p>Created by <a href='https://dev.vdm.io' target='_blank'>Llewellyn van der Merwe</a><br /><small>Development started 19th March, 2020</small></p>"
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_LANGUAGE_OPTIONS="Language Options"
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_NOTE_LANGUAGE_NOTE_LABEL="Would you like to move languages to their own packages?"
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_NOTE_LANGUAGE_NOTE_DESCRIPTION="<p>Adding all your translations to your component can increase its size dramatically, so now you are able to move each extra language translation to its own installing package, leaving just your main language in the component.</p><p>Please note that this is only relevant if you actually have added extra translations to your component in the <b>Language Translations</b> area of JCB.</p>"
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_ACTIVATE_LABEL="Activate"
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_ACTIVATE_DESCRIPTION="Turn on the integration."
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_YES="Yes"
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_NO="No"
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_USE_PERCENTAGELANGUAGEADD_LABEL="Add Language Settings"
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_USE_PERCENTAGELANGUAGEADD_DESCRIPTION="Select what option should be used"
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_GLOBAL="Global"
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_LOCAL="Local"
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_PERCENTAGELANGUAGEADD_LABEL="Add Language if %? ready."
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_PERCENTAGELANGUAGEADD_DESCRIPTION="Select percentage any language should be translated before the system should add the language to the component during compilation."
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_NOTE_LANGUAGES_KEEP_LABEL="Do want to keep some languages in your component?"
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_NOTE_LANGUAGES_KEEP_DESCRIPTION="The JCB system <b>main language</b> will always be <b>kept in</b> your component. Select any of the other languages you would like to keep <b>in</b> your component. They will then be excluded from this language packaging option. (or leave blank for none)"
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_LANGUAGES_LABEL="Languages"
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_LANGUAGES_DESCRIPTION="The JCB system <b>main language</b> will always be <b>kept in</b> your component. Select any of the other languages you would like to keep <b>in</b> your component. They will then be excluded from this language packaging option. (or leave blank for none)"

View File

@ -1,20 +1,20 @@
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS="Content - Componentbuilder Language Tabs"
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_DESCRIPTION="This plugin is used to link your components to the language packaging and extending options, so you can set all the required details for the integration."
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_XML_DESCRIPTION="<h1>Content - Componentbuilder Language Tabs (v.1.0.1)</h1> <div style='clear: both;'></div><p>This plugin is used to link your components to the language packaging and extending options, so you can set all the required details for the integration.</p><p>Created by <a href='https://dev.vdm.io' target='_blank'>Llewellyn van der Merwe</a><br /><small>Development started 19th March, 2020</small></p>"
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_LANGUAGE_OPTIONS="Language Options"
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_NOTE_LANGUAGE_NOTE_LABEL="Would you like to move languages to their own packages?"
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_NOTE_LANGUAGE_NOTE_DESCRIPTION="<p>Adding all your translations to your component can increase its size dramatically, so now you are able to move each extra language translation to its own installing package, leaving just your main language in the component.</p><p>Please note that this is only relevant if you actually have added extra translations to your component in the <b>Language Translations</b> area of JCB.</p>"
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_ACTIVATE_LABEL="Activate"
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_ACTIVATE_DESCRIPTION="Turn on the integration."
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_YES="Yes"
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_NO="No"
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_USE_PERCENTAGELANGUAGEADD_LABEL="Add Language Settings"
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_USE_PERCENTAGELANGUAGEADD_DESCRIPTION="Select what option should be used"
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_GLOBAL="Global"
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_LOCAL="Local"
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_PERCENTAGELANGUAGEADD_LABEL="Add Language if %? ready."
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_PERCENTAGELANGUAGEADD_DESCRIPTION="Select percentage any language should be translated before the system should add the language to the component during compilation."
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_NOTE_LANGUAGES_KEEP_LABEL="Do want to keep some languages in your component?"
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_NOTE_LANGUAGES_KEEP_DESCRIPTION="The JCB system <b>main language</b> will always be <b>kept in</b> your component. Select any of the other languages you would like to keep <b>in</b> your component. They will then be excluded from this language packaging option. (or leave blank for none)"
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_LANGUAGES_LABEL="Languages"
PLG_CONTENTCOMPONENTBUILDERLANGUAGETABS_LANGUAGES_DESCRIPTION="The JCB system <b>main language</b> will always be <b>kept in</b> your component. Select any of the other languages you would like to keep <b>in</b> your component. They will then be excluded from this language packaging option. (or leave blank for none)"
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS="Content - Componentbuilder Language Tabs"
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_DESCRIPTION="This plugin is used to link your components to the language packaging and extending options, so you can set all the required details for the integration."
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_XML_DESCRIPTION="<h1>Content - Componentbuilder Language Tabs (v.1.0.1)</h1> <div style='clear: both;'></div><p>This plugin is used to link your components to the language packaging and extending options, so you can set all the required details for the integration.</p><p>Created by <a href='https://dev.vdm.io' target='_blank'>Llewellyn van der Merwe</a><br /><small>Development started 19th March, 2020</small></p>"
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_LANGUAGE_OPTIONS="Language Options"
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_NOTE_LANGUAGE_NOTE_LABEL="Would you like to move languages to their own packages?"
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_NOTE_LANGUAGE_NOTE_DESCRIPTION="<p>Adding all your translations to your component can increase its size dramatically, so now you are able to move each extra language translation to its own installing package, leaving just your main language in the component.</p><p>Please note that this is only relevant if you actually have added extra translations to your component in the <b>Language Translations</b> area of JCB.</p>"
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_ACTIVATE_LABEL="Activate"
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_ACTIVATE_DESCRIPTION="Turn on the integration."
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_YES="Yes"
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_NO="No"
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_USE_PERCENTAGELANGUAGEADD_LABEL="Add Language Settings"
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_USE_PERCENTAGELANGUAGEADD_DESCRIPTION="Select what option should be used"
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_GLOBAL="Global"
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_LOCAL="Local"
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_PERCENTAGELANGUAGEADD_LABEL="Add Language if %? ready."
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_PERCENTAGELANGUAGEADD_DESCRIPTION="Select percentage any language should be translated before the system should add the language to the component during compilation."
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_NOTE_LANGUAGES_KEEP_LABEL="Do want to keep some languages in your component?"
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_NOTE_LANGUAGES_KEEP_DESCRIPTION="The JCB system <b>main language</b> will always be <b>kept in</b> your component. Select any of the other languages you would like to keep <b>in</b> your component. They will then be excluded from this language packaging option. (or leave blank for none)"
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_LANGUAGES_LABEL="Languages"
PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_LANGUAGES_DESCRIPTION="The JCB system <b>main language</b> will always be <b>kept in</b> your component. Select any of the other languages you would like to keep <b>in</b> your component. They will then be excluded from this language packaging option. (or leave blank for none)"