DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:langdelete

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:langdelete [2019-05-01 13:54] – Add information about my fork tilwaplugin:langdelete [2020-02-05 09:18] (current) – Version upped Aleksandr
Line 1: Line 1:
 ====== langdelete Plugin ====== ====== langdelete Plugin ======
- 
  
 ---- plugin ---- ---- plugin ----
-description: provides admin delete function for unnecessary language files and folders +description: Provides admin delete function for unnecessary language files and folders 
-author     : Taggic  +author     : Taggic 
-email      : taggic@t-online.de +email      : taggic@t-online.de
 type       : admin-plugin type       : admin-plugin
-lastupdate : 2016-07-08 +lastupdate : 2019-05-01 
-compatible : Ponder Stibbons,Binky,Weatherwax,Adora Belle,Elenor of Tsort+compatible : Ponder Stibbons, Binky, Weatherwax, Adora Belle, Elenor of Tsort
 depends    :  depends    : 
 conflicts  conflicts 
Line 26: Line 25:
  
 This plugin provides an admin function to delete all language files and directories of your DW installation, which are unneccessarily there (so not used by you and your user). This plugin provides an admin function to delete all language files and directories of your DW installation, which are unneccessarily there (so not used by you and your user).
 +
 Therfore open the Admin area and look to the section of further plugins. There you will find the "Delete languages" plugin. Therfore open the Admin area and look to the section of further plugins. There you will find the "Delete languages" plugin.
  
 With a click on that, a page will be opened where you can delete all language files and folders of your DokuWiki to reduce the space consumption on your web host.  With a click on that, a page will be opened where you can delete all language files and folders of your DokuWiki to reduce the space consumption on your web host. 
 +
 Simply define the language you want to keep. English as fundamental requirement will be kept also. All other language files and folders of inc and lib directory will be deleted.  Simply define the language you want to keep. English as fundamental requirement will be kept also. All other language files and folders of inc and lib directory will be deleted. 
  
 An input control provides you the possibility to specify the languages which should be kept on your system. Therefore you should insert the related ISO-Code like "en" for English and "de" for German. English will be kept in any case due to it is basic requirement and fall back if no language file for a specific language is available. An input control provides you the possibility to specify the languages which should be kept on your system. Therefore you should insert the related ISO-Code like "en" for English and "de" for German. English will be kept in any case due to it is basic requirement and fall back if no language file for a specific language is available.
 +
 Please separate the ISO-codes by comma if you want to keep multiple languages.  Please separate the ISO-codes by comma if you want to keep multiple languages. 
  
 If you select the option "simulate only" nothing else than the language folders will be listed. This control is checked by default. If you select the option "simulate only" nothing else than the language folders will be listed. This control is checked by default.
 +
 If you de-select it the files within these folders and the folders themselves will be deleted. If you de-select it the files within these folders and the folders themselves will be deleted.
  
Line 50: Line 53:
  
 === Change Log === === Change Log ===
 +
 Many thanks to Satoshi Sahara for the brush up Version. Many thanks to Satoshi Sahara for the brush up Version.
  
Line 56: Line 60:
  
 ===== FAQ ===== ===== FAQ =====
 +
 === How to delete all languages except English ? === === How to delete all languages except English ? ===
 +
 Insert en into the input box and press start. Insert en into the input box and press start.
  
 === Does it consider also folders outside of DokuWiki ? === === Does it consider also folders outside of DokuWiki ? ===
 +
 No. The plugin is looping recursively “inc” and “lib” folder of DokuWiki. That considers plugins and templates, etc. No. The plugin is looping recursively “inc” and “lib” folder of DokuWiki. That considers plugins and templates, etc.
 +
 If you want to have a script for other folders then please visit following forum post, which was the initial trigger to develop this Plugin: \\  If you want to have a script for other folders then please visit following forum post, which was the initial trigger to develop this Plugin: \\ 
 [[http://forum.dokuwiki.org/thread/7471|Alternative Sprachdateien löschen (German article)]] [[http://forum.dokuwiki.org/thread/7471|Alternative Sprachdateien löschen (German article)]]
  
 ===== Discussion ===== ===== Discussion =====
 +
 Please use only the [[http://forum.dokuwiki.org|DokuWiki Forum]] for discussion and [[http://www.fristercons.de/fcon/doku.php?id=langdelete:issues|Lang Delete issues]] to raise issues. Please use only the [[http://forum.dokuwiki.org|DokuWiki Forum]] for discussion and [[http://www.fristercons.de/fcon/doku.php?id=langdelete:issues|Lang Delete issues]] to raise issues.
 +
 +===== Forks =====
  
 I forked this plugin and added a tree-view of what languages are available. You can install it using this URL: [[https://github.com/tqdv/langdelete/zipball/v1.1.0]]. Note that it replaces the original version. Here's [[https://i.imgur.com/MVjjcLq.png |a screenshot]] of it.  --- [[user>tilwa|tilwa]] //2019-05-01 13:53// I forked this plugin and added a tree-view of what languages are available. You can install it using this URL: [[https://github.com/tqdv/langdelete/zipball/v1.1.0]]. Note that it replaces the original version. Here's [[https://i.imgur.com/MVjjcLq.png |a screenshot]] of it.  --- [[user>tilwa|tilwa]] //2019-05-01 13:53//
plugin/langdelete.1556711676.txt.gz · Last modified: 2019-05-01 13:54 by tilwa

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki