Commit f047c96f authored by damjan's avatar damjan
Browse files

[FEATURE] Refresh language file list button

parent 2a957236
......@@ -118,6 +118,16 @@ class AddConstantController extends AbstractBackendController {
$this->redirect('addConstant');
}
/**
* Clears extensionAndLangFileOptions cache, and in that way refreshes list of language file options in select box.
*
* @return void
*/
public function refreshLanguageFileListAction() {
$this->clearSelectOptionsCache('extensionAndLangFileOptions');
$this->redirect('addConstant');
}
/**
* Prepares main section content of addConstant view.
*
......
......@@ -121,6 +121,16 @@ class DeleteConstantController extends AbstractBackendController {
$this->redirect('deleteConstant');
}
/**
* Clears extensionAndLangFileOptions cache, and in that way refreshes list of language file options in select box.
*
* @return void
*/
public function refreshLanguageFileListAction() {
$this->clearSelectOptionsCache('extensionAndLangFileOptions');
$this->redirect('deleteConstant');
}
/**
* Prepares main section content of deleteConstant view.
*
......
......@@ -106,6 +106,16 @@ class EditConstantController extends AbstractBackendController {
$this->redirect('editConstant');
}
/**
* Clears extensionAndLangFileOptions cache, and in that way refreshes list of language file options in select box.
*
* @return void
*/
public function refreshLanguageFileListAction() {
$this->clearSelectOptionsCache('extensionAndLangFileOptions');
$this->redirect('editConstant');
}
/**
* Prepares main section content of editConstant view.
*
......
......@@ -112,6 +112,16 @@ class EditFileController extends AbstractBackendController {
$this->redirect('editFile', NULL, NULL, array('buttonType' => 0));
}
/**
* Clears extensionAndLangFileOptions cache, and in that way refreshes list of language file options in select box.
*
* @return void
*/
public function refreshLanguageFileListAction() {
$this->clearSelectOptionsCache('extensionAndLangFileOptions');
$this->redirect('editFile', NULL, NULL, array('buttonType' => 0));
}
/**
* Prepares main section content of editFile view.
* Structure of the content:
......
......@@ -169,6 +169,16 @@ class GeneralController extends AbstractBackendController {
$this->redirect('general');
}
/**
* Clears extensionAndLangFileOptions cache, and in that way refreshes list of language file options in select box.
*
* @return void
*/
public function refreshLanguageFileListAction() {
$this->clearSelectOptionsCache('extensionAndLangFileOptions');
$this->redirect('general');
}
/**
* Prepares main section content of general view.
*
......
......@@ -99,6 +99,16 @@ class ManageBackupsController extends AbstractBackendController {
$this->redirect('manageBackups');
}
/**
* Clears extensionAndLangFileOptions cache, and in that way refreshes list of language file options in select box.
*
* @return void
*/
public function refreshLanguageFileListAction() {
$this->clearSelectOptionsCache('extensionAndLangFileOptions');
$this->redirect('manageBackups');
}
/**
* Prepares main section content of manageBackupsConstant view.
*
......
......@@ -133,6 +133,16 @@ class RenameConstantController extends AbstractBackendController {
$this->redirect('renameConstant');
}
/**
* Clears extensionAndLangFileOptions cache, and in that way refreshes list of language file options in select box.
*
* @return void
*/
public function refreshLanguageFileListAction() {
$this->clearSelectOptionsCache('extensionAndLangFileOptions');
$this->redirect('renameConstant');
}
/**
* Prepares main section content of deleteConstant view.
*
......
......@@ -118,6 +118,16 @@ class SearchConstantController extends AbstractBackendController {
$this->redirect('searchConstant', NULL, NULL, array('searchDone' => TRUE));
}
/**
* Clears extensionAndLangFileOptions cache, and in that way refreshes list of language file options in select box.
*
* @return void
*/
public function refreshLanguageFileListAction() {
$this->clearSelectOptionsCache('extensionAndLangFileOptions');
$this->redirect('searchConstant', NULL, NULL, array('searchDone' => TRUE));
}
/**
* Prepares main section content of searchConstant view.
*
......
......@@ -105,6 +105,16 @@ class ViewTreeController extends AbstractBackendController {
$this->redirect('viewTree');
}
/**
* Clears extensionAndLangFileOptions cache, and in that way refreshes list of language file options in select box.
*
* @return void
*/
public function refreshLanguageFileListAction() {
$this->clearSelectOptionsCache('extensionAndLangFileOptions');
$this->redirect('viewTree');
}
/**
* Prepares main section content of viewTree view.
*
......
......@@ -21,6 +21,14 @@ Tapio Markula --&gt; finnish translation</description>
<source>Delete</source>
<target>Löschen</target>
</trans-unit>
<trans-unit id="button.refreshLanguageFileList.label" approved="yes">
<source>Refresh</source>
<target>Aktualisieren</target>
</trans-unit>
<trans-unit id="button.refreshLanguageFileList.title" approved="yes">
<source>Refresh list of language file options</source>
<target>Liste aktualisieren der Sprachdatei-Optionen</target>
</trans-unit>
<trans-unit id="button.rename" approved="yes">
<source>Rename</source>
<target>Umbenennen</target>
......
......@@ -19,6 +19,12 @@ Tapio Markula --&gt; finnish translation</description>
<trans-unit id="button.delete">
<source>Delete</source>
</trans-unit>
<trans-unit id="button.refreshLanguageFileList.label">
<source>Refresh</source>
</trans-unit>
<trans-unit id="button.refreshLanguageFileList.title">
<source>Refresh list of language file options</source>
</trans-unit>
<trans-unit id="button.rename">
<source>Rename</source>
</trans-unit>
......@@ -388,12 +394,12 @@ Tapio Markula --&gt; finnish translation</description>
<trans-unit id="select.nothing">
<source>Nothing selected</source>
</trans-unit>
<trans-unit id="select.referenceLanguage">
<source>Select reference language</source>
</trans-unit>
<trans-unit id="select.numConstants">
<source>Select # of constants to show</source>
</trans-unit>
<trans-unit id="select.referenceLanguage">
<source>Select reference language</source>
</trans-unit>
<trans-unit id="table.backups">
<source>This table lists all backup files of the selected extension.</source>
</trans-unit>
......
......@@ -31,4 +31,17 @@
</f:for>
</lfe:be.menus.actionMenuOptionGroup>
</f:for>
</f:be.menus.actionMenu>
\ No newline at end of file
</f:be.menus.actionMenu>
<f:form id="refreshLanguageFileListForm" action="refreshLanguageFileList" class="tx-lfeditor-inline-block-form">
<span class="tx-lfeditor-buttons">
<f:form.submit value="{f:translate(key:'button.refreshLanguageFileList.label')}" title="{f:translate(key:'button.refreshLanguageFileList.title')}" />
</span>
</f:form>
<f:comment>
<!-- @TODO: Chose which one to use: form.submit or link -->
<f:link.action action="refreshLanguageFileList">
<f:translate key="button.refreshLanguageFileList.label" />
</f:link.action>
</f:comment>
......@@ -177,6 +177,10 @@ fieldset.tx-lfeditor-fieldset fieldset dd {
clear: both;
}
.tx-lfeditor-inline-block-form {
display: inline-block;
}
.tx-lfeditor-checkBox-bottom {
vertical-align: bottom;
}
......
......@@ -12,16 +12,17 @@ if (TYPO3_MODE == 'BE') {
'',
array(
'General' => 'index, general, changeSelection, generalSave, goToEditFile, switchInsertMode,
switchEditingMode',
'EditFile' => 'editFile, changeSelection, editFileSave',
'EditConstant' => 'editConstant, changeSelection, editConstantSave, prepareEditConstant',
'AddConstant' => 'addConstant, changeSelection, addConstantSave',
'DeleteConstant' => 'deleteConstant, changeSelection, deleteConstantSave',
'RenameConstant' => 'renameConstant, changeSelection, renameConstantSave',
'SearchConstant' => 'searchConstant, changeSelection, searchConstantSearch',
'ViewTree' => 'viewTree, changeSelection, selectExplodeToken',
switchEditingMode, refreshLanguageFileList',
'EditFile' => 'editFile, changeSelection, editFileSave, refreshLanguageFileList',
'EditConstant' => 'editConstant, changeSelection, editConstantSave, prepareEditConstant,
refreshLanguageFileList',
'AddConstant' => 'addConstant, changeSelection, addConstantSave, refreshLanguageFileList',
'DeleteConstant' => 'deleteConstant, changeSelection, deleteConstantSave, refreshLanguageFileList',
'RenameConstant' => 'renameConstant, changeSelection, renameConstantSave, refreshLanguageFileList',
'SearchConstant' => 'searchConstant, changeSelection, searchConstantSearch, refreshLanguageFileList',
'ViewTree' => 'viewTree, changeSelection, selectExplodeToken, refreshLanguageFileList',
'ManageBackups' => 'manageBackups, changeSelection, deleteBackup, recoverBackup, showDifferenceBackup,
deleteAllBackup',
deleteAllBackup, refreshLanguageFileList',
),
array(
'access' => 'user,group',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment