LeKoala\Base\i18n\TranslationsImportExportTask
Helps exporting and importing labels from a csv or xls
Synopsis
class TranslationsImportExportTask
extends BuildTask
{
- // members
- private static string $segment = 'TranslationsImportExportTask';
- protected string $title = "Translations import export task";
- protected string $description = "Easily import and export translations";
- public bool $debug;
- // methods
- public void run()
- protected void getLangPath()
- protected void importTranslations()
- public void importFromExcel()
- protected array getDataFromRows()
- protected void importFromCsv()
- protected array normalizeRow()
- public void exportTranslations()
- public void isEnabled()
- // Inherited methods from BuildTaskTools
- protected void increaseTimeLimitTo()
- protected void regenerateClassManifest()
- protected array getValidDataObjects()
- protected array getModules()
- protected HTTPRequest getRequest()
- protected void addOption()
- protected array askOptions()
- protected void message()
- protected void isDev()
- protected void isLive()
Hierarchy
Members
private
- $segment
protected
- $description
- $options — array
- $request — LeKoala\Base\i18n\SilverStripe\Control\HTTPRequest
- $title
public
- $debug — LeKoala\Base\i18n\bool
Methods
protected
public
Inherited from LeKoala\Base\i18n\BuildTaskTools
protected
- addOption() — Add options (to be called later with askOptions)
- askOptions() — Display a form with options
- getModules() — All modules
- getRequest() — Get the request (and keep your imports clean :-) )
- getValidDataObjects() — All dataobjects
- increaseTimeLimitTo() — Increase time limit
- isDev()
- isLive()
- message()
- regenerateClassManifest() — Rebuild the class manifest