Fixed untranslated string and updated translations

This commit is contained in:
Priit Hansen 2013-01-21 16:00:33 +02:00
parent 16429a1f9b
commit fbc85eb964
3 changed files with 17 additions and 14 deletions

View File

@ -1,4 +1,4 @@
<?php <?php
/** /**
* The Translatable decorator allows your DataObjects to have versions in different languages, * The Translatable decorator allows your DataObjects to have versions in different languages,
* defining which fields are can be translated. Translatable can be applied * defining which fields are can be translated. Translatable can be applied
@ -1765,7 +1765,7 @@ class Translatable_Transformation extends FormTransformation {
$nonEditableField->setValue($this->original->$fieldname); $nonEditableField->setValue($this->original->$fieldname);
$nonEditableField->setName($fieldname.'_original'); $nonEditableField->setName($fieldname.'_original');
$nonEditableField->addExtraClass('originallang'); $nonEditableField->addExtraClass('originallang');
$nonEditableField->setTitle('Original '.$originalField->Title()); $nonEditableField->setTitle(_t('Translatable.ORIGINAL', 'Original').' '.$originalField->Title());
$nonEditableField_holder->insertBefore($originalField, $fieldname.'_original'); $nonEditableField_holder->insertBefore($originalField, $fieldname.'_original');
return $nonEditableField_holder; return $nonEditableField_holder;

View File

@ -13,6 +13,7 @@ en:
EXISTING: 'Existing translations' EXISTING: 'Existing translations'
NEWLANGUAGE: 'New language' NEWLANGUAGE: 'New language'
NOTICENEWPAGE: 'Please save this page before creating a translation' NOTICENEWPAGE: 'Please save this page before creating a translation'
ORIGINAL: Original
TRANSLATEALLPERMISSION: 'Translate into all available languages' TRANSLATEALLPERMISSION: 'Translate into all available languages'
TRANSLATEPERMISSION: 'Translate %s' TRANSLATEPERMISSION: 'Translate %s'
TRANSLATIONS: Translations TRANSLATIONS: Translations

View File

@ -1,18 +1,20 @@
et_EE: et_EE:
CMSMain: CMSMain:
LANGUAGEDROPDOWNLABEL: "Keel" LANGUAGEDROPDOWNLABEL: Keel
CMSMain_left.ss: CMSMain_left.ss:
GO: "Mine" GO: Mine
Form: Form:
LANGAVAIL: "Saadaolevad keeled" LANGAOTHER: 'Muud keeled'
LANGAOTHER: "Muud keeled" LANGAVAIL: 'Saadaolevad keeled'
Translatable: Translatable:
TRANSLATIONS: "Tõlked"
CREATE: "Loo uus tõlge"
NEWLANGUAGE: "Uus keel"
CREATEBUTTON: "Loo"
EXISTING: "Olemasolevad tõlked:"
NOTICENEWPAGE: "Enne tõlke loomist salvestage see leht"
TRANSLATEPERMISSION: "Tõlgi: %s"
TRANSLATEALLPERMISSION: "Tõlgi kõigisse saadaolevatesse keeltesse"
ALLCREATED: 'Kõik lubatud tõlked on loodud.' ALLCREATED: 'Kõik lubatud tõlked on loodud.'
CREATE: 'Loo uus tõlge'
CREATEBUTTON: Loo
EXISTING: 'Olemasolevad tõlked'
NEWLANGUAGE: 'Uus keel'
NOTICENEWPAGE: 'Enne tõlke loomist salvestage see leht'
ORIGINAL: Originaal
TRANSLATEALLPERMISSION: 'Tõlgi kõigisse saadaolevatesse keeltesse'
TRANSLATEPERMISSION: 'Tõlgi: %s'
TRANSLATIONS: Tõlked