Adding get_lang('ItemX') new standard lang variables

skala
Julio Montoya 14 years ago
parent 1894d128e5
commit 266ac9b6bc
  1. 6
      main/admin/careers.php
  2. 6
      main/admin/promotions.php

@ -97,7 +97,7 @@ if (isset($_GET['action']) && $_GET['action'] == 'add') {
$values = $form->exportValues();
$res = $career->save($values);
if ($res) {
Display::display_confirmation_message(get_lang('Added'));
Display::display_confirmation_message(get_lang('ItemAdded'));
}
}
Security::clear_token();
@ -144,7 +144,7 @@ if (isset($_GET['action']) && $_GET['action'] == 'add') {
// Action handling: delete
$res = $career->delete(intval($_GET['id']));
if ($res) {
Display::display_confirmation_message(get_lang('Deleted'));
Display::display_confirmation_message(get_lang('ItemDeleted'));
}
$career->display();
} elseif (isset($_GET['action']) && $_GET['action'] == 'copy') {
@ -153,7 +153,7 @@ if (isset($_GET['action']) && $_GET['action'] == 'add') {
}
$res = $career->copy($_GET['id'], true); //copy career and promotions inside
if ($res) {
Display::display_confirmation_message(get_lang('Copied'));
Display::display_confirmation_message(get_lang('ItemCopied'));
}
$career->display();
} else {

@ -108,7 +108,7 @@ if (isset($_GET['action']) && $_GET['action'] == 'add') {
$values = $form->exportValues();
$res = $promotion->save($values);
if ($res) {
Display::display_confirmation_message(get_lang('Added'));
Display::display_confirmation_message(get_lang('ItemAdded'));
}
}
Security::clear_token();
@ -155,7 +155,7 @@ if (isset($_GET['action']) && $_GET['action'] == 'add') {
// Action handling: deleting an obj
$res = $promotion->delete($_GET['id']);
if ($res) {
Display::display_confirmation_message(get_lang('Deleted'));
Display::display_confirmation_message(get_lang('ItemDeleted'));
}
$promotion->display();
} elseif (isset($_GET['action']) && $_GET['action'] == 'copy') {
@ -164,7 +164,7 @@ if (isset($_GET['action']) && $_GET['action'] == 'add') {
}
$res = $promotion->copy($_GET['id'], null, true);
if ($res) {
Display::display_confirmation_message(get_lang('Copied'));
Display::display_confirmation_message(get_lang('ItemCopied'));
}
$promotion->display();
} else {

Loading…
Cancel
Save