From ab0f83c48dd992ebfcfc33c40425cf7f99893396 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 3 Aug 2013 20:18:28 +0200 Subject: [PATCH] Translations: Switch to Transifex format - Based on new (last) translation download from getlocalization.com - Removed untranslated strings. Getlocalization started including those at some point which is highly annoying, unnecessary and breaks the new transfix system, since it'll mark all of the english strings as actual translations - Avoid dots in entities. It confuses the Transifex YML parser - Removed some locales unknown to Transifex which didn't have any translations anyway - Renamed "lolcat" locale from "lc_xx" to "en@lolcat" (Transifex/CLDR notation) - Renamed "Te Reo/Maori" locale from "mi_NZ" to "mi" (Transifex/CLDR notation) - Namespaced all entities used in templates (deprecated usage) - Converted dots to underscores where template filenames are used for namespaces, since Transifex YML parsing handles them as separate YML keys otherwise - Removed whitespace in entity names, SilverStripe i18n can't handle it --- .tx/config | 8 + code/controllers/AssetAdmin.php | 6 +- code/controllers/CMSMain.php | 4 +- lang/af.yml | 368 +----------- lang/ar.yml | 262 ++------- lang/ast.yml | 410 +------------ lang/az.yml | 352 +---------- lang/bg.yml | 206 ++----- lang/bs.yml | 354 +---------- lang/ca.yml | 336 +---------- lang/cs.yml | 175 +++--- lang/da.yml | 199 ++----- lang/de.yml | 209 +++---- lang/el.yml | 435 +------------- lang/en.yml | 18 +- lang/en@lolcat.yml | 50 ++ lang/en_GB.yml | 420 +------------ lang/eo.yml | 281 +++++---- lang/es.yml | 142 ++--- lang/es_AR.yml | 255 +------- lang/es_MX.yml | 262 +-------- lang/et_EE.yml | 178 ++---- lang/fa_IR.yml | 356 +---------- lang/fi.yml | 217 ++++--- lang/fo.yml | 385 +----------- lang/fr.yml | 159 ++--- lang/gl_ES.yml | 215 +------ lang/grk.yml | 436 -------------- lang/he_IL.yml | 153 ++--- lang/hr.yml | 382 +----------- lang/hu.yml | 256 ++------ lang/hy_AM.yml | 435 +------------- lang/id.yml | 351 +---------- lang/is.yml | 362 +----------- lang/it.yml | 155 ++--- lang/ja_JP.yml | 401 +++++-------- lang/km.yml | 428 +------------- lang/ko.yml | 435 +------------- lang/lc_XX.yml | 54 -- lang/lt.yml | 177 +++--- lang/lv.yml | 299 +--------- lang/{mi_NZ.yml => mi.yml} | 162 ++--- lang/ms.yml | 385 +----------- lang/my.yml | 435 +------------- lang/nb.yml | 555 +++++++++--------- lang/ne.yml | 403 +------------ lang/nl.yml | 196 +++---- lang/pa.yml | 422 +------------ lang/pes_IR.yml | 436 -------------- lang/pl.yml | 149 ++--- lang/pt.yml | 155 ++--- lang/pt_BR.yml | 342 +---------- lang/ro.yml | 401 +------------ lang/ru.yml | 183 +++--- lang/si.yml | 373 +----------- lang/sk.yml | 163 +++-- lang/sl.yml | 189 ++---- lang/sr.yml | 332 +---------- lang/sv.yml | 213 ++++--- lang/th.yml | 420 ++++++------- lang/tl.yml | 435 +------------- lang/tr.yml | 264 ++------- lang/uk.yml | 180 ++---- lang/uz.yml | 431 +------------- lang/vi_VN.yml | 409 +------------ lang/zh_CN.yml | 426 ++------------ lang/zh_TW.yml | 382 ++---------- .../CMSPageHistoryController_versions.ss | 10 +- .../CMSPagesController_ContentToolbar.ss | 2 +- .../Includes/CMSPagesController_Tools.ss | 4 +- templates/email/ViewArchivedEmail.ss | 4 +- 71 files changed, 2610 insertions(+), 16437 deletions(-) create mode 100644 .tx/config create mode 100644 lang/en@lolcat.yml delete mode 100644 lang/grk.yml delete mode 100644 lang/lc_XX.yml rename lang/{mi_NZ.yml => mi.yml} (82%) delete mode 100644 lang/pes_IR.yml diff --git a/.tx/config b/.tx/config new file mode 100644 index 00000000..1db7d558 --- /dev/null +++ b/.tx/config @@ -0,0 +1,8 @@ +[main] +host = https://www.transifex.com + +[silverstripe-cms.master] +file_filter = lang/.yml +source_file = lang/en.yml +source_lang = en +type = YML \ No newline at end of file diff --git a/code/controllers/AssetAdmin.php b/code/controllers/AssetAdmin.php index 24ec3ec6..330bbe18 100644 --- a/code/controllers/AssetAdmin.php +++ b/code/controllers/AssetAdmin.php @@ -378,7 +378,7 @@ JS $fields = $context->getSearchFields(); $actions = new FieldList( - FormAction::create('doSearch', _t('CMSMain_left.ss.APPLY FILTER', 'Apply Filter')) + FormAction::create('doSearch', _t('CMSMain_left_ss.APPLY_FILTER', 'Apply Filter')) ->addExtraClass('ss-ui-action-constructive'), Object::create('ResetFormAction', 'clear', _t('CMSMain_left.ss.RESET', 'Reset')) ); @@ -404,7 +404,7 @@ JS new HiddenField('ParentID', false, $this->request->getVar('ParentID')) ), new FieldList( - FormAction::create('doAdd', _t('AssetAdmin_left.ss.GO','Go')) + FormAction::create('doAdd', _t('AssetAdmin_left_ss.GO','Go')) ->addExtraClass('ss-ui-action-constructive')->setAttribute('data-icon', 'accept') ->setTitle(_t('AssetAdmin.ActionAdd', 'Add folder')) ) @@ -671,7 +671,7 @@ JS */ class AssetAdmin_DeleteBatchAction extends CMSBatchAction { public function getActionTitle() { - // _t('AssetAdmin_left.ss.SELECTTODEL','Select the folders that you want to delete and then click the button below') + // _t('AssetAdmin_left_ss.SELECTTODEL','Select the folders that you want to delete and then click the button below') return _t('AssetAdmin_DeleteBatchAction.TITLE', 'Delete folders'); } diff --git a/code/controllers/CMSMain.php b/code/controllers/CMSMain.php index c7ae441c..86cedb15 100644 --- a/code/controllers/CMSMain.php +++ b/code/controllers/CMSMain.php @@ -296,9 +296,9 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr // Create the Search and Reset action $actions = new FieldList( - FormAction::create('doSearch', _t('CMSMain_left.ss.APPLY FILTER', 'Apply Filter')) + FormAction::create('doSearch', _t('CMSMain_left_ss.APPLY_FILTER', 'Apply Filter')) ->addExtraClass('ss-ui-action-constructive'), - Object::create('ResetFormAction', 'clear', _t('CMSMain_left.ss.RESET', 'Reset')) + Object::create('ResetFormAction', 'clear', _t('CMSMain_left_ss.RESET', 'Reset')) ); // Use