Skip to content

Commit

Permalink
Translations: Switch to Transifex format
Browse files Browse the repository at this point in the history
- 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
- Removed "lolcat" locale, uses custom notation (en@lolcal)
  which SilverStripe's i18n system can't handle
  (needs mapping from SS naming to Zend naming)
- 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
  • Loading branch information
chillu committed Aug 4, 2013
1 parent 3a3e8f2 commit 3f118ef
Show file tree
Hide file tree
Showing 70 changed files with 2,536 additions and 16,417 deletions.
8 changes: 8 additions & 0 deletions .tx/config
@@ -0,0 +1,8 @@
[main]
host = https://www.transifex.com

[silverstripe-cms.master]
file_filter = lang/<lang>.yml
source_file = lang/en.yml
source_lang = en
type = YML
8 changes: 4 additions & 4 deletions code/controllers/AssetAdmin.php
Expand Up @@ -375,9 +375,9 @@ public function SearchForm() {

$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'))
Object::create('ResetFormAction', 'clear', _t('CMSMain_left_ss.RESET', 'Reset'))
);

$form = new Form($this, 'filter', $fields, $actions);
Expand All @@ -401,7 +401,7 @@ public function AddForm() {
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'))
)
Expand Down Expand Up @@ -667,7 +667,7 @@ public function providePermissions() {
*/
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');
}

Expand Down
4 changes: 2 additions & 2 deletions code/controllers/CMSMain.php
Expand Up @@ -296,9 +296,9 @@ public function SearchForm() {

// 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 <button> to allow full jQuery UI styling on the all of the Actions
Expand Down

0 comments on commit 3f118ef

Please sign in to comment.