Some translations

This commit is contained in:
Matteo Gheza 2020-07-10 13:07:19 +02:00
parent 5c14231fd6
commit 4e85c6f92f
13 changed files with 21 additions and 11 deletions

View File

@ -1,4 +1,4 @@
<?php
require_once 'ui.php';
loadtemplate('anagrafica.html', ['titolo' => 'Anagrafica user', 'dacontrollare' => ucwords(str_replace('_', ' ', urldecode($_GET['user'])))]);
loadtemplate('anagrafica.html', ['titolo' => t("Personal data",false), 'dacontrollare' => ucwords(str_replace('_', ' ', urldecode($_GET['user'])))]);
?>

View File

@ -63,7 +63,7 @@ if($tools->validate_form_data('$post-mod', true, "add")) {
$tools->redirect("nonfareilfurbo.php");
}
}
loadtemplate('edit_service.html', ['service' => ['id' => $id, 'token' => $_SESSION['token'], 'modalità' => $modalità, 'personale' => $personale, 'tipologie' => $tipologie], 'values' => $values, 'incrementa' => $incrementa, 'titolo' => ucfirst($modalità) . ' service']);
loadtemplate('edit_service.html', ['service' => ['id' => $id, 'token' => $_SESSION['token'], 'modalità' => $modalità, 'personale' => $personale, 'tipologie' => $tipologie], 'values' => $values, 'incrementa' => $incrementa, 'titolo' => ucfirst($modalità) . ' '.ucfirst(t("service",false))]);
bdump($_SESSION['token'], "token");
}
?>

View File

@ -61,7 +61,7 @@ if($tools->validate_form_data('$post-mod', true, "add")) {
//$tools->redirect("nonfareilfurbo.php");
}
}
loadtemplate('edit_training.html', ['training' => ['id' => $id, 'token' => $_SESSION['token'], 'modalità' => $modalità, 'personale' => $personale], 'values' => $values, 'incrementa' => $incrementa, 'titolo' => ucfirst($modalità) . ' training']);
loadtemplate('edit_training.html', ['training' => ['id' => $id, 'token' => $_SESSION['token'], 'modalità' => $modalità, 'personale' => $personale], 'values' => $values, 'incrementa' => $incrementa, 'titolo' => ucfirst($modalità) . ' '.ucfirst(t("training",false))]);
bdump($_SESSION['token'], "token");
}
?>

View File

@ -59,7 +59,7 @@ if($tools->validate_form_data('$post-mod', true, "add")) {
$tools->redirect("nonfareilfurbo.php");
}
}
loadtemplate('edit_user.html', ['id' => $id, 'token' => $_SESSION["token"], 'modalità' => $modalità, 'values' => $values, 'titolo' => ucfirst($modalità) . ' user']);
loadtemplate('edit_user.html', ['id' => $id, 'token' => $_SESSION["token"], 'modalità' => $modalità, 'values' => $values, 'titolo' => ucfirst($modalità) . ' '.ucfirst(t("user",false))]);
bdump($_SESSION['token'], "token");
}
?>

View File

@ -13,4 +13,4 @@ if(isset($_POST['name']) & isset($_POST['password'])){
bdump($errore);
}
}
loadtemplate('index.html', ['errore' => $errore, 'titolo' => 'Login'], false);
loadtemplate('index.html', ['errore' => $errore, 'titolo' => t('Login',false)], false);

View File

@ -1,4 +1,4 @@
<?php
require_once 'ui.php';
loadtemplate('lista.html', ['titolo' => 'Disponibilità']);
loadtemplate('lista.html', ['titolo' => t("Availability List",false)]);
bdump($_SESSION);

View File

@ -1,3 +1,3 @@
<?php
require_once 'ui.php';
loadtemplate('log.html', ['titolo' => 'Log']);
loadtemplate('log.html', ['titolo' => t('Logs',false)]);

View File

@ -1,3 +1,3 @@
<?php
require_once 'ui.php';
loadtemplate('profilo.html', ['titolo' => 'Pagina profilo']);
loadtemplate('profilo.html', ['titolo' => t("Profile page")]);

View File

@ -1,4 +1,4 @@
<?php
require_once 'ui.php';
loadtemplate('services.html', ['titolo' => 'Services']);
loadtemplate('services.html', ['titolo' => t('Services',false)]);
?>

View File

@ -1,3 +1,3 @@
<?php
require_once 'ui.php';
loadtemplate('trainings.html', ['titolo' => 'Trainings']);
loadtemplate('trainings.html', ['titolo' => t('Trainings',false)]);

View File

@ -2,6 +2,12 @@
// Translated by: Name Surname (github, email or another social profile url/username)
return [
"Personal data" => "Personal data",
"service" => "service",
"training" => "training",
"user" => "user",
"Login" => "Login",
"Profile page" => "Profile page",
"Availability List" => "Availability List",
"Services" => "Services",
"Trainings" => "Trainings",
@ -14,6 +20,7 @@ return [
"Available" => "Available",
"Foreman" => "Foreman",
"Driver" => "Driver",
"Drivers" => "Drivers",
"People" => "People",
"Date" => "Date",
"Code" => "Code",

View File

@ -2,6 +2,8 @@
// Translated by: Matteo Gheza (matteogheza.it; github.com/matteogheza)
return [
"Personal data" => "Dati anagrafici",
"service" => "Intervento",
"Availability List" => "Lista disponibilità",
"Services" => "Interventi",
"Trainings" => "Esercitazioni",
@ -14,6 +16,7 @@ return [
"Available" => "Disponibile",
"Foreman" => "Caposquadra",
"Driver" => "Autista",
"Drivers" => "Autisti",
"People" => "Persone",
"Date" => "Data",
"Code" => "Codice",

View File

@ -2,5 +2,5 @@
// Translated by: Matteo Gheza (matteogheza.it; github.com/matteogheza)
return [
"Add service" => "Add intervento"
"Add service" => "Aggiungi intervento"
];