Skip to content

Commit

Permalink
German Localization
Browse files Browse the repository at this point in the history
  • Loading branch information
nils-werner committed Nov 1, 2010
1 parent d3937c9 commit 14839ba
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 9 deletions.
10 changes: 8 additions & 2 deletions assets/referencelink.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions fields/field.referencelink.php
Expand Up @@ -24,7 +24,7 @@ public function displaySettingsPanel(&$wrapper, $errors=NULL){

$div = new XMLElement('div', NULL, array('class' => 'group'));

$label = Widget::Label('Options');
$label = Widget::Label(__('Options'));

$sectionManager = new SectionManager($this->_engine);
$sections = $sectionManager->fetch(NULL, 'ASC', 'name');
Expand Down Expand Up @@ -55,16 +55,16 @@ public function displaySettingsPanel(&$wrapper, $errors=NULL){
$div->appendChild($label);

// set field type
$label = Widget::Label('Field Type');
$type_options = array(array('select', ($this->get('field_type') == 'select'), 'Select Box'), array('autocomplete', ($this->get('field_type') == 'autocomplete'), 'Autocomplete Input'));
$label = Widget::Label(__('Field Type'));
$type_options = array(array('select', ($this->get('field_type') == 'select'), __('Select Box')), array('autocomplete', ($this->get('field_type') == 'autocomplete'), __('Autocomplete Input')));
$label->appendChild(Widget::Select('fields[' . $this->get('sortorder') . '][field_type]', $type_options));
$div->appendChild($label);

// Allow selection of multiple items
$label = Widget::Label();
$input = Widget::Input('fields['.$this->get('sortorder').'][allow_multiple_selection]', 'yes', 'checkbox');
if($this->get('allow_multiple_selection') == 'yes') $input->setAttribute('checked', 'checked');
$label->setValue($input->generate() . ' Allow selection of multiple options');
$label->setValue($input->generate() . ' ' . __('Allow selection of multiple options'));
$div->appendChild($label);

if(isset($errors['related_field_id'])) $wrapper->appendChild(Widget::wrapFormElementWithError($div, $errors['related_field_id']));
Expand All @@ -74,7 +74,7 @@ public function displaySettingsPanel(&$wrapper, $errors=NULL){
$label = Widget::Label();
$input = Widget::Input('fields['.$this->get('sortorder').'][limit]', $this->get('limit'));
$input->setAttribute('size', '3');
$label->setValue('Limit to the ' . $input->generate() . ' most recent entries');
$label->setValue(__('Limit to the %s most recent entries',array($input->generate())));
$wrapper->appendChild($label);

$this->appendShowColumnCheckbox($wrapper);
Expand Down Expand Up @@ -141,7 +141,7 @@ public function displayPublishPanel(&$wrapper, $data=NULL, $flagWithError=NULL,
$options[] = array(NULL, false, NULL);
}
if($this->get('required') == 'yes') {
$options[] = array('none', empty($entry_ids), 'Choose one');
$options[] = array('none', empty($entry_ids), __('Choose one'));
}

if(!empty($states)){
Expand All @@ -168,7 +168,7 @@ public function displayPublishPanel(&$wrapper, $data=NULL, $flagWithError=NULL,
$html_attributes['id'] = $fieldname;

$label = Widget::Label($this->get('label'));
if($this->get('required') != 'yes') $label->appendChild(new XMLElement('i', 'Optional'));
if($this->get('required') != 'yes') $label->appendChild(new XMLElement('i', __('Optional')));
$label->appendChild(Widget::Select($fieldname, $options, $html_attributes));

if($flagWithError != NULL) {
Expand Down
22 changes: 22 additions & 0 deletions lang/lang.de.php
@@ -0,0 +1,22 @@
<?php

$about = array(
'name' => 'Deutsch',
'author' => array(
'name' => 'Nils Werner',
'email' => 'nils.werner@gmail.com',
'website' => 'http://www.obsessive-media.de'
),
'release-date' => '2010-11-01'
);


/*
* EXTENSION: Reference Link
* Localisation strings
*/

$dictionary = array(


);

0 comments on commit 14839ba

Please sign in to comment.