* update JS and remove deprecations
* Definition of fields in "card view"
+
+* language setting in setup
global.image = "Image"
global.latest = "Latest"
global.login = "Login"
+global.message.couldNotBeSaved = "Data could not be saved. See logs for more."
+global.message.couldNotLoadCollection = "Can not load given collection."
+global.message.dataSaved = "Data saved successfully"
+global.message.here = "Here"
+global.message.invalidSearchTerm = "Invalid search term"
+global.message.missingQueryParams = "Missing required query parameters."
+global.message.nothingFound = "Nothing found."
+global.message.somethingWentWrong = "Something went wrong. See logs for more details."
global.name = "Name"
global.none = "None"
global.none = "None"
advsearch.input.search.label = "Search for"
advsearch.input.search.placeholder = "See search syntax for options"
advsearch.input.tableview.label = "Table view"
+advsearch.message.wrongInputFormat = "Wrong input format."
advsearch.operators = "Possible search operators:"
advsearch.operators.asterisk = "The asterisk serves as the truncation (or wildcard) operator. Unlike the other operators, it is appended to the word to be affected. Words match if they begin with the word preceding the * operator."
advsearch.operators.greater = "A leading greater than sign indicates that rows greater than the number will be returned."
advsearch.togglesearch = "Toggle search"
auth.logout = "Logout"
+auth.message.invalidInput = "Invalid username or password."
+auth.message.missingInput = "Please provide valid e-Mail and password."
bulkedit.headline.edit = "Bulkedit these entries in:"
+bulkedit.message.canNotUpdate = "Entry could not be updated. See log for more details:"
+bulkedit.message.entryUpdated = "Entry updated:"
+bulkedit.message.missingItems = "Missing required search items to work with."
managecol.addmodify = "Add or modify a collection"
managecol.addremfield = "Add or remove a field"
managecol.input.tools = "Tools"
managecol.managecol = "Manage your collections"
managecol.managefields = "Manage your fields for:"
+managecol.message.couldNotBeDelete = "Collection could not be deleted."
+managecol.message.couldNotBeUpdated = "Collection could not be updated."
+managecol.message.missingRights = "Provide name, owner, group and valid rights."
+managecol.message.notBeCreated = "Collection could not be created."
manageentry.addentry = "Add an entry to:"
manageentry.addentrycollection = "Add an entry to your collection"
manageentry.availabletools = "Available tools"
+manageentry.message.couldNotBeAdded = "Entry could not be added."
+manageentry.message.couldNotBeRemoved = "Entry could not be removed."
+manageentry.message.couldNotBeUpdated = "Entry could not be updated."
+manageentry.message.editNewEntry = "Edit your new entry"
+manageentry.message.missingTitle = "Provide at least 'Title'."
+manageentry.message.noTitle = "Entry has no value in title field."
+manageentry.message.viewNewEntry = "View your new entry"
manageentry.missingtemplate = "Missing template for:"
manageentry.possibleduplicate = "Possible duplicate"
manageentry.select.bulkedit = "Select bulk edit option"
managefields.addorremove.description = "Just use drag and drop below to add, remove or order your fields.<br />Removing a field will <b>remove</b> the stored data from the collection.<br />Make sure at least the <b>title</b>, <b>cover image</b> and <b>description</b> fields are available."
managefields.fieldsavailable = "Available fields"
managefields.fieldsfor = "Manage your fields for:"
+managefields.message.notUpdate = "Fields could not be updated."
+managefields.message.provideValidFields = "Please provide valid fields."
-managegroups.groupmanagement = "Group management"
managegroups.addormodify = "Add or modify a group"
+managegroups.availablegroups = "Available groups"
+managegroups.groupmanagement = "Group management"
+managegroups.input.delete = global.delete
+managegroups.input.delete.howto = "Warning: Content owned by this group will not be deleted and thus only manageable by admin!<br />Right now don't do this. Only if you are sure there is no usage of this group."
managegroups.input.description = global.description
managegroups.input.name = global.name
-managegroups.input.delete = global.delete
managegroups.input.save = global.save
-managegroups.input.delete.howto = "Warning: Content owned by this group will not be deleted and thus only manageable by admin!<br />Right now don't do this. Only if you are sure there is no usage of this group."
-managegroups.availablegroups = "Available groups"
+managegroups.message.couldNotBeCreated = "Group could not be created."
+managegroups.message.couldNotBeDelete = "Group could not be deleted."
+managegroups.message.couldNotBeUpdated = "Group could not be updated. Either wrong input or duplicate group name"
+managegroups.message.missingName = "Provide name and description."
managetags.delete = global.delete
managetags.howto = "The actions are top down. If you choose to move and rename, only move will be executed.<br />Deletion will remove without recover!<br />If you rename and input an existing one a move will be done instead.<br />Tag values are stored how they come and treated that way here (case sensitive). In search they are case insensitive."
managetags.managetagsin = "Manage Tags in:"
+managetags.message.executionError = "Can not execute given options. See logs for more."
+managetags.message.notTagsAvailable = "No tags available or something went wrong."
managetags.moveorrename = "Move to (rename to existig)"
managetags.rename = "Rename"
managetags.tagfield = "Tagfield"
manageuser.input.delete = global.delete
manageuser.input.delete.howto = "Warning: Content owned by this user will not be deleted and thus only manageable by admin!<br />Better disable the user if there is content."
manageuser.input.maingroup = "Main group"
+manageuser.message.couldNotBeCreated = "User could not be created."
+manageuser.message.couldNotBeDelete = "User could not be deleted. Make sure the user is not used anymore."
+manageuser.message.couldNotBeUpdated = "User could not be updated. Either wrong input or duplicate user name"
+manageuser.message.missingInput = "Provide username, login and a valid user group."
manageuser.status = "Status"
manageuser.usermanagement = "User management"
profile.input.apitoken.valid = manageuser.input.apitoken.valid
profile.input.createtoken = "Create API Token"
profile.input.maingroup = "Main group"
+profile.message.couldNotBeUpdated = "Your profile could not be updated."
profile.yourprofile = "Manage your profile"
sysinfo.headline.sysinfo = "System information"
tags.headline.tagsfor = "Tags for:"
tool.headline.using = "Using %s with collection: %s"
-
-
-
+tool.message.missingFiles = "Required tool files can not be found."
<label class="uk-form-label"><?php echo $I18n->t('managetags.user'); ?></label>
<div class="uk-form-controls">
<select class="uk-select" name="fdata[<?php echo $v['id']; ?>][use]">
- <option value="">Please select</option>
+ <option value=""><?php echo $I18n->t('global.pleaseselect'); ?></option>
<?php foreach($v['entries'] as $ek=>$ev) { ?>
<option value="<?php echo $ev; ?>"><?php echo $ev; ?></option>
<?php } ?>
$TemplateData['search'] = $_search;
}
else {
- $TemplateData['message']['content'] = "Wrong input format.";
+ $TemplateData['message']['content'] = $I18n->t('advsearch.message.wrongInputFormat');
$TemplateData['message']['status'] = "error";
}
} else { // ordinary search within default field
}
}
else {
- $TemplateData['message']['content'] = "Can not load given collection.";
+ $TemplateData['message']['content'] = $I18n->t('global.message.couldNotLoadCollection');
$TemplateData['message']['status'] = "error";
}
}
$TemplateData['refresh'] = 'index.php';
}
else {
- $TemplateData['message']['content'] = "Invalid username or password.";
+ $TemplateData['message']['content'] = $I18n->t('auth.message.invalidInput');
$TemplateData['message']['status'] = "error";
}
}
else {
- $TemplateData['message']['content'] = "Please provide valid e-Mail and password.";
+ $TemplateData['message']['content'] = $I18n->t('auth.message.missingInput');
$TemplateData['message']['status'] = "error";
}
}
$do = $ManageEntry->create($_fieldsToSave, $_owner, $_group, $_rights, $entry['id']);
if ($do !== 0) {
- $_messages[] = "Entry updated: ".$entry['id'];
+ $_messages[] = $I18n->t('bulkedit.message.entryUpdated').' '.$entry['id'];
} else {
- $_messages[] = "Entry could not be updated. See log for more details: ".$entry['id'];
+ $_messages[] = $I18n->t('bulkedit.message.canNotUpdate').' '.$entry['id'];
}
unset($data);
}
}
else {
- $TemplateData['message']['content'] = "Missing required search items to work with.";
+ $TemplateData['message']['content'] = $I18n->t('bulkedit.message.missingItems');
$TemplateData['message']['status'] = "error";
}
}
else {
- $TemplateData['message']['content'] = "Can not load given collection.";
+ $TemplateData['message']['content'] = $I18n->t('global.message.couldNotLoadCollection');
$TemplateData['message']['status'] = "error";
}
}
}
else {
- $TemplateData['message']['content'] = "Can not load given collection.";
+ $TemplateData['message']['content'] = $I18n->t('global.message.couldNotLoadCollection');
$TemplateData['message']['status'] = "error";
}
}
}
}
else {
- $TemplateData['message']['content'] = 'Can not load given collection.';
+ $TemplateData['message']['content'] = $I18n->t('global.message.couldNotLoadCollection');
$TemplateData['message']['status'] = 'error';
}
}
else {
$TemplateData['message']['status'] = 'error';
- $TemplateData['message']['content'] = 'Missing required query parameters.';
+ $TemplateData['message']['content'] = $I18n->t('global.message.missingQueryParams');
}
if ($do === true) {
$TemplateData['refresh'] = 'index.php?p=managecollectionfields&id='.$_id;
} else {
- $TemplateData['message']['content'] = "Fields could not be updated.";
+ $TemplateData['message']['content'] = $I18n->t('managefields.message.notUpdate');
$TemplateData['message']['status'] = "error";
}
}
else {
- $TemplateData['message']['content'] = "Please provide valid fields.";
+ $TemplateData['message']['content'] = $I18n->t('managefields.message.provideValidFields');
$TemplateData['message']['status'] = "error";
}
}
</div>
</div>
<div class="uk-margin">
- <label class="uk-form-label" for="tool">Tools</label>
+ <label class="uk-form-label" for="tool"><?php echo $I18n->t('managecol.input.tools'); ?></label>
<div class="uk-form-controls">
<select class="uk-select" id="tool" name="fdata[tool][]" multiple="multiple" size="5">
<option value=""><?php echo $I18n->t('global.none'); ?></option>
<label class="uk-form-label" for="owner"><?php echo $I18n->t('global.owner'); ?> *</label>
<div class="uk-form-controls">
<select class="uk-select" id="owner" name="fdata[owner]">
- <option value="">Please select</option>
+ <option value=""><?php echo $I18n->t('global.pleaseselect'); ?></option>
<?php foreach($TemplateData['ownerSelection'] as $k=>$v) { ?>
<option value="<?php echo $k; ?>"
<?php echo ($TemplateData['editData']['owner'] ?? '') == $k ? 'selected' : ''; ?>
<label class="uk-form-label" for="group"><?php echo $I18n->t('global.group'); ?> *</label>
<div class="uk-form-controls">
<select class="uk-select" id="group" name="fdata[group]">
- <option value="">Please select</option>
+ <option value=""><?php echo $I18n->t('global.pleaseselect'); ?></option>
<?php foreach($TemplateData['groupSelection'] as $k=>$v) { ?>
<option value="<?php echo $k; ?>"
<?php echo ($TemplateData['editData']['group'] ?? '') == $k ? 'selected' : ''; ?>
if ($do === true) {
$TemplateData['refresh'] = 'index.php?p=managecolletions';
} else {
- $TemplateData['message']['content'] = "Collection could not be deleted.";
+ $TemplateData['message']['content'] = $I18n->t('managecol.message.couldNotBeDelete');
$TemplateData['message']['status'] = "error";
}
}
}
$TemplateData['refresh'] = 'index.php?p=managecolletions';
} else {
- $TemplateData['message']['content'] = "Collection could not be updated.";
+ $TemplateData['message']['content'] = $I18n->t('managecol.message.couldNotBeUpdated');
$TemplateData['message']['status'] = "error";
}
} else {
- $TemplateData['message']['content'] = "Provide name, owner, group and valid rights.";
+ $TemplateData['message']['content'] = $I18n->t('managecol.message.missingRights');
$TemplateData['message']['status'] = "error";
}
}
if ($do === true) {
$TemplateData['refresh'] = 'index.php?p=managecolletions';
} else {
- $TemplateData['message']['content'] = "Collection could not be created.";
+ $TemplateData['message']['content'] = $I18n->t('managecol.message.notBeCreated');
$TemplateData['message']['status'] = "error";
}
} else {
- $TemplateData['message']['content'] = "Provide name, owner, group and valid rights.";
+ $TemplateData['message']['content'] = $I18n->t('managecol.message.missingRights');
$TemplateData['message']['status'] = "error";
}
}
$TemplateData['editData'] = $ManageEntry->getEditData($_id);
// special case. Title field should be always available.
if(!isset($TemplateData['editData']['title'])) {
- $TemplateData['message']['content'] = "Entry has no value in title field.";
+ $TemplateData['message']['content'] = $I18n->t('manageentry.message.noTitle');
$TemplateData['message']['status'] = "error";
}
else {
if ($do === true) {
$TemplateData['refresh'] = 'index.php?p=collections&collection='.$_collection;
} else {
- $TemplateData['message']['content'] = "Entry could not be removed.";
+ $TemplateData['message']['content'] = $I18n->t('manageentry.message.couldNotBeRemoved');
$TemplateData['message']['status'] = "error";
}
} elseif (!empty($_fieldsToSave) && isset($_fieldsToSave['title'])) {
if ($do !== 0) {
$TemplateData['refresh'] = 'index.php?p=entry&collection='.$_collection.'&id='.$_id;
} else {
- $TemplateData['message']['content'] = "Entry could not be updated.";
+ $TemplateData['message']['content'] = $I18n->t('manageentry.message.couldNotBeUpdated');
$TemplateData['message']['status'] = "error";
}
}
if (!empty($_fieldsToSave) && !empty($_fieldsToSave['title']['valueToSave'])) {
$do = $ManageEntry->create($_fieldsToSave, $_owner, $_group, $_rights);
if (!empty($do)) {
- $TemplateData['message']['content'] = "<a href='index.php?p=entry&collection=".$_collection."&id=".$do."'>View your new entry</a> | <a href='index.php?p=manageentry&collection=".$_collection."&id=".$do."'>Edit your new entry</a>";
+ $TemplateData['message']['content'] = "<a href='index.php?p=entry&collection=".$_collection."&id=".$do."'>".$I18n->t('manageentry.message.viewNewEntry')."</a>
+ | <a href='index.php?p=manageentry&collection=".$_collection."&id=".$do."'>".$I18n->t('manageentry.message.editNewEntry')."</a>";
$TemplateData['message']['status'] = "success";
} else {
// use editData to display given data
$TemplateData['editData'] = $fdata;
- $TemplateData['message']['content'] = "Entry could not be added.";
+ $TemplateData['message']['content'] = $I18n->t('manageentry.message.couldNotBeAdded');
$TemplateData['message']['status'] = "error";
}
} else {
// use editData to display given data
$TemplateData['editData'] = $fdata;
- $TemplateData['message']['content'] = "Provide at least 'Title'.";
+ $TemplateData['message']['content'] = $I18n->t('manageentry.message.missingTitle');
$TemplateData['message']['status'] = "error";
}
}
}
}
else {
- $TemplateData['message']['content'] = "Collection could not be loaded.";
+ $TemplateData['message']['content'] = $I18n->t('global.message.couldNotLoadCollection');
$TemplateData['message']['status'] = "error";
$TemplateData['existingCollections'] = $Trite->getCollections("write");
}
$TemplateData['refresh'] = 'index.php?p=managegroups';
}
else {
- $TemplateData['message']['content'] = "Group could not be deleted.";
+ $TemplateData['message']['content'] = $I18n->t('managegroups.message.couldNotBeDelete');
$TemplateData['message']['status'] = "error";
}
}
$TemplateData['refresh'] = 'index.php?p=managegroups';
}
else {
- $TemplateData['message']['content'] = "Group could not be updated. Either wrong input or duplicate group name";
+ $TemplateData['message']['content'] = $I18n->t('managegroups.message.couldNotBeUpdated');
$TemplateData['message']['status'] = "error";
}
}
else {
- $TemplateData['message']['content'] = "Provide name and description.";
+ $TemplateData['message']['content'] = $I18n->t('managegroups.message.missingName');
$TemplateData['message']['status'] = "error";
}
}
$TemplateData['refresh'] = 'index.php?p=managegroups';
}
else {
- $TemplateData['message']['content'] = "Group could not be created.";
+ $TemplateData['message']['content'] = $I18n->t('managegroups.message.couldNotBeCreated');
$TemplateData['message']['status'] = "error";
}
}
else {
- $TemplateData['message']['content'] = "Provide name and description.";
+ $TemplateData['message']['content'] = $I18n->t('managegroups.message.missingName');
$TemplateData['message']['status'] = "error";
}
}
}
}
else {
- $TemplateData['message']['content'] = "Can not execute given options. See logs for more.";
+ $TemplateData['message']['content'] = $I18n->t('managetags.message.executionError');
$TemplateData['message']['status'] = "error";
}
}
else {
$TemplateData['tags'] = $Trite->getTags();
if(empty($TemplateData['tags'])) {
- $TemplateData['message']['content'] = "No tags available or something went wrong.";
+ $TemplateData['message']['content'] = $I18n->t('managetags.message.notTagsAvailable');
$TemplateData['message']['status'] = "warning";
}
}
}
else {
- $TemplateData['message']['content'] = "Can not load given collection.";
+ $TemplateData['message']['content'] = $I18n->t('global.message.couldNotLoadCollection');
$TemplateData['message']['status'] = "error";
}
}
$TemplateData['refresh'] = 'index.php?p=manageusers';
}
else {
- $TemplateData['message']['content'] = "User could not be deleted. Make sure the user is not used anymore.";
+ $TemplateData['message']['content'] = $I18n->t('manageuser.message.couldNotBeDelete');
$TemplateData['message']['status'] = "error";
}
}
$TemplateData['refresh'] = 'index.php?p=manageusers';
}
else {
- $TemplateData['message']['content'] = "User could not be updated. Either wrong input or duplicate user name";
+ $TemplateData['message']['content'] = $I18n->t('manageuser.message.couldNotBeUpdated');
$TemplateData['message']['status'] = "error";
}
}
else {
- $TemplateData['message']['content'] = "Provide username, login and a valid user group.";
+ $TemplateData['message']['content'] = $I18n->t('manageuser.message.missingInput');
$TemplateData['message']['status'] = "error";
}
}
$TemplateData['refresh'] = 'index.php?p=manageusers';
}
else {
- $TemplateData['message']['content'] = "User could not be created.";
+ $TemplateData['message']['content'] = $I18n->t('manageuser.message.couldNotBeCreated');
$TemplateData['message']['status'] = "error";
}
}
else {
- $TemplateData['message']['content'] = "Provide username, login, password and a valid user group.";
+ $TemplateData['message']['content'] = $I18n->t('manageuser.message.missingInput');
$TemplateData['message']['status'] = "error";
}
}
if ($do === true) {
$TemplateData['refresh'] = 'index.php?p=profile';
} else {
- $TemplateData['message']['content'] = "Your profile could not be updated.";
+ $TemplateData['message']['content'] = $I18n->t('profile.message.couldNotBeUpdated');
$TemplateData['message']['status'] = "error";
}
}
}
}
else {
- $TemplateData['message']['content'] = "Something went wrong. See logs for more details.";
+ $TemplateData['message']['content'] = $I18n->t('global.message.somethingWentWrong');
$TemplateData['message']['status'] = "error";
}
/**
* Bibliotheca
*
- * Copyright 2018-2023 Johannes Keßler
+ * Copyright 2018-2024 Johannes Keßler
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
$TemplateData['pageTitle'] = $Trite->param('name');
}
else {
- $TemplateData['message']['content'] = "Can not load given collection.";
+ $TemplateData['message']['content'] = $I18n->t('global.message.couldNotLoadCollection');
$TemplateData['message']['status'] = "error";
}
}
$TemplateData['bookData'] = $booksearch;
$TemplateData['showMatchingForm'] = true;
} else {
- $TemplateData['message']['content'] = "Nothing found.";
+ $TemplateData['message']['content'] = $I18n->t('global.message.nothingFound');
$TemplateData['message']['status'] = "error";
}
}
else {
- $TemplateData['message']['content'] = "Invalid search term";
+ $TemplateData['message']['content'] = $I18n->t('global.message.invalidSearchTerm');
$TemplateData['message']['status'] = "error";
}
}
$_r['rights'],
$TemplateData['editEntry']['id']
);
- $TemplateData['message']['content'] = "Date saved successfully";
+ $TemplateData['message']['content'] = $I18n->t('global.message.dataSaved');
}
else {
// create into loaded collection
$_r['group'],
$_r['rights']
);
- $TemplateData['message']['content'] = "Date saved successfully:
- <a href='index.php?p=manageentry&collection=".$collection['id']."&id=".$do."'>Here</a>";
+ $TemplateData['message']['content'] = $I18n->t('global.message.dataSaved')." <a href='index.php?p=manageentry&collection=".$collection['id']."&id=".$do."'>".$I18n->t('global.message.here')."</a>";
}
if(!empty($do)) {
$TemplateData['message']['status'] = "success";
}
else {
- $TemplateData['message']['content'] = "Data could not be saved. See logs for more.";
+ $TemplateData['message']['content'] = $I18n->t('global.message.couldNotBeSaved');
$TemplateData['message']['status'] = "error";
}
$TemplateData['movieImdbId'] = "tt".$IMDB->iId; // this is the IMDB id you can search for
$TemplateData['showMatchingForm'] = true;
} else {
- $TemplateData['message']['content'] = "Nothing found.";
+ $TemplateData['message']['content'] = $I18n->t('global.message.nothingFound');
$TemplateData['message']['status'] = "error";
}
}
else {
- $TemplateData['message']['content'] = "Invalid search term";
+ $TemplateData['message']['content'] = $I18n->t('global.message.invalidSearchTerm');
$TemplateData['message']['status'] = "error";
}
}
$_r['rights'],
$TemplateData['editEntry']['id']
);
- $TemplateData['message']['content'] = "Date saved successfully";
+ $TemplateData['message']['content'] = $I18n->t('global.message.dataSaved');
}
else {
// create into loaded collection
$_r['group'],
$_r['rights']
);
- $TemplateData['message']['content'] = "Date saved successfully:
- <a href='index.php?p=manageentry&collection=".$collection['id']."&id=".$do."'>Here</a>";
+ $TemplateData['message']['content'] = $I18n->t('global.message.dataSaved')." <a href='index.php?p=manageentry&collection=".$collection['id']."&id=".$do."'>".$I18n->t('global.message.here')."</a>";
}
if(!empty($do)) {
$TemplateData['message']['status'] = "success";
}
else {
- $TemplateData['message']['content'] = "Data could not be saved. See logs for more.";
+ $TemplateData['message']['content'] = $I18n->t('global.message.couldNotBeSaved');
$TemplateData['message']['status'] = "error";
}
} else {
- $TemplateData['message']['content'] = "Nothing found.";
+ $TemplateData['message']['content'] = $I18n->t('global.message.nothingFound');
$TemplateData['message']['status'] = "error";
}
}
if(!empty($releaseSearch)) {
$TemplateData['releases'] = $releaseSearch;
} else {
- $TemplateData['message']['content'] = "Nothing found.";
+ $TemplateData['message']['content'] = $I18n->t('global.message.nothingFound');
$TemplateData['message']['status'] = "error";
}
}
else {
- $TemplateData['message']['content'] = "Invalid search term";
+ $TemplateData['message']['content'] = $I18n->t('global.message.invalidSearchTerm');
$TemplateData['message']['status'] = "error";
}
}
if(!empty($releaseInfo)) {
$TemplateData['release'] = $releaseInfo;
} else {
- $TemplateData['message']['content'] = "Nothing found.";
+ $TemplateData['message']['content'] = $I18n->t('global.message.nothingFound');
$TemplateData['message']['status'] = "error";
}
}
$_r['rights'],
$TemplateData['editEntry']['id']
);
- $TemplateData['message']['content'] = "Date saved successfully";
+ $TemplateData['message']['content'] = $I18n->t('global.message.dataSaved');
}
else {
// create into loaded collection
$_r['group'],
$_r['rights']
);
- $TemplateData['message']['content'] = "Date saved successfully:
- <a href='index.php?p=manageentry&collection=".$collection['id']."&id=".$do."'>Here</a>";
+ $TemplateData['message']['content'] = $I18n->t('global.message.dataSaved')." <a href='index.php?p=manageentry&collection=".$collection['id']."&id=".$do."'>".$I18n->t('global.message.here')."</a>";
}
if(!empty($do)) {
$TemplateData['message']['status'] = "success";
}
else {
- $TemplateData['message']['content'] = "Data could not be saved. See logs for more.";
+ $TemplateData['message']['content'] = $I18n->t('global.message.couldNotBeSaved');
$TemplateData['message']['status'] = "error";
}
}
else {
$TemplateData['tool']['viewFile'] = '';
- $TemplateData['message']['content'] = "Required tool files can not be found.";
+ $TemplateData['message']['content'] = $I18n->t('tool.message.missingFiles');
$TemplateData['message']['status'] = "error";
}
}
else {
- $TemplateData['message']['content'] = "Collection nor tool could not be loaded.";
+ $TemplateData['message']['content'] = $I18n->t('global.message.couldNotLoadCollection');
$TemplateData['message']['status'] = "error";
}
}