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(
'#type' => 'fieldset',
'#title' => 'Add a Datastream',
'#title' => t('Add a Datastream'),
'#collapsible' => FALSE,
'#collapsed' => FALSE,
'dsid' => array(
@ -152,7 +152,10 @@ function islandora_add_datastream_form_validate(array $form, array &$form_state)
if ($file) {
$errors = file_validate_extensions($file, implode(' ', $extensions));
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,
'dsid' => array(
'#type' => 'markup',
'#markup' => "<div>DSID: <strong>$datastream->id</strong></div>",
'#markup' => t("<div>DSID: <strong>@dsid</strong></div>", array('@dsid' => $datastream->id)),
),
'label' => array(
'#type' => 'markup',
'#markup' => "<div>Label: <strong>$datastream->label</strong></div>",
'#markup' => t("<div>Label: <strong>@label</strong></div>", array('@label' => $datastream->label)),
),
'file' => array(
'#type' => 'managed_file',

Loading…
Cancel
Save