Browse Source

More translation.

pull/565/head
willtp87 10 years ago
parent
commit
e9b4757551
  1. 7
      includes/add_datastream.form.inc
  2. 4
      includes/datastream.version.inc

7
includes/add_datastream.form.inc

@ -38,7 +38,7 @@ function islandora_add_datastream_form(array $form, array &$form_state, Abstract
), ),
'dsid_fieldset' => array( 'dsid_fieldset' => array(
'#type' => 'fieldset', '#type' => 'fieldset',
'#title' => 'Add a Datastream', '#title' => t('Add a Datastream'),
'#collapsible' => FALSE, '#collapsible' => FALSE,
'#collapsed' => FALSE, '#collapsed' => FALSE,
'dsid' => array( 'dsid' => array(
@ -152,7 +152,10 @@ function islandora_add_datastream_form_validate(array $form, array &$form_state)
if ($file) { if ($file) {
$errors = file_validate_extensions($file, implode(' ', $extensions)); $errors = file_validate_extensions($file, implode(' ', $extensions));
if (count($errors) > 0) { if (count($errors) > 0) {
form_set_error('file', "{$errors[0]} (for the set DSID)"); form_set_error(
'file',
t("!error (for the set DSID)", array('!error' => $errors[0]))
);
} }
} }
} }

4
includes/datastream.version.inc

@ -293,11 +293,11 @@ function islandora_datastream_version_replace_form($form, &$form_state, Abstract
'#collapsed' => FALSE, '#collapsed' => FALSE,
'dsid' => array( 'dsid' => array(
'#type' => 'markup', '#type' => 'markup',
'#markup' => "<div>DSID: <strong>$datastream->id</strong></div>", '#markup' => t("<div>DSID: <strong>@dsid</strong></div>", array('@dsid' => $datastream->id)),
), ),
'label' => array( 'label' => array(
'#type' => 'markup', '#type' => 'markup',
'#markup' => "<div>Label: <strong>$datastream->label</strong></div>", '#markup' => t("<div>Label: <strong>@label</strong></div>", array('@label' => $datastream->label)),
), ),
'file' => array( 'file' => array(
'#type' => 'managed_file', '#type' => 'managed_file',

Loading…
Cancel
Save