Page 1 of 1
Tilte-Tag Translation
Posted: Fri Apr 18, 2014 10:13 am
by Oerd
Currently the <title> Tag has no translation.
When i open the reservation overview for the current month the title says "Tabella Mese", the page with all the rooms says "Visualize Tabelle"
For a complete translation, every point of the "GUI" should be translated.
Re: Tilte-Tag Translation
Posted: Mon Mar 09, 2015 9:56 pm
by ashish
Hey
Not sure if you still need this but it is very simple.
I have done this for an english translation.
Step 1. Create a file -> /includes/lang/en/title.php and paste the following in that file.
Code: Select all
<?php
switch ($messaggio) {
case "HotelDruid: Backup": $messaggio = "HotelDruid: Backup";
break;
case "HotelDruid: Clienti": $messaggio = "HotelDruid: Customers";
break;
case "HotelDruid: Costi Gestione": $messaggio = "HotelDruid: Cost Management";
break;
case "HotelDruid: Crea Anno": $messaggio = "HotelDruid: Create Year";
break;
case "Hoteldruid: Crea Database": $messaggio = "HotelDruid: Create Database";
break;
case "HotelDruid: Crea Pagine Web": $messaggio = "HotelDruid: Create Web Pages";
break;
case "HotelDruid: Crea Prezzi": $messaggio = "HotelDruid: Create Prices";
break;
case "HotelDruid: Crea Regole": $messaggio = "HotelDruid: Create Rules";
break;
case "HotelDruid: Disponibilità": $messaggio = "HotelDruid: Availability";
break;
case "HotelDruid: Documento": $messaggio = "HotelDruid: Document";
break;
case "HotelDruid: Gestione Utenti": $messaggio = "HotelDruid: User Management";
break;
case "HotelDruid: Interconnessioni": $messaggio = "HotelDruid: Interconnections";
break;
case "HotelDruid: Inventario": $messaggio = "HotelDruid: Inventory";
break;
case "HotelDruid: Messaggi": $messaggio = "HotelDruid: Messages";
break;
case "HotelDruid: Modifica Appartamenti": $messaggio = "HotelDruid: Edit Apartments";
break;
case "HotelDruid: Modifica Cliente": $messaggio = "HotelDruid: Edit Customer";
break;
case "HotelDruid: Modifica Costi": $messaggio = "HotelDruid: Edit Costs";
break;
case "HotelDruid: Modifica Documento": $messaggio = "HotelDruid: Edit Document";
break;
case "HotelDruid: Modifica Ospiti Prenotazione": $messaggio = "HotelDruid: Edit Guests Reservation";
break;
case "HotelDruid: Modifica Prenotazioni": $messaggio = "HotelDruid: Edit Reservations";
break;
case "HotelDruid: Modifica Variabili Documenti": $messaggio = "HotelDruid: Edit Documents Variables";
break;
case "HotelDruid: Personalizza": $messaggio = "HotelDruid: Customize";
break;
case "HotelDruid: Prenota": $messaggio = "HotelDruid: Book";
break;
case "HotelDruid: Privilegi Utenti": $messaggio = "HotelDruid: Members Privileges";
break;
case "HotelDruid: Punto Vendita": $messaggio = "HotelDruid: Point of Sale";
break;
case "HotelDruid: Source Code": $messaggio = "HotelDruid: Source Code";
break;
case "HotelDruid: Storico Entrate": $messaggio = "HotelDruid: Historical Revenue";
break;
case "HotelDruid: Tabella Mese": $messaggio = "HotelDruid: Table Month";
break;
case "HotelDruid: Tabelle Mesi": $messaggio = "HotelDruid: Tables Months";
break;
case "HotelDruid: Tariffe": $messaggio = "HotelDruid: Rates";
break;
case "HotelDruid: Visualizza Tabelle": $messaggio = "HotelDruid: See Tables";
break;
}
Step 2: Goto the head.php file in your sleected theme and search for
and replace this with
Code: Select all
$mextitolo = mex($titolo, 'title.php');
echo "<title> $mextitolo </title>";
Now refresh the page...and you will see translated titles.
Re: Tilte-Tag Translation
Posted: Thu Dec 03, 2015 1:34 pm
by marco
Hello,
I've added this change for one of the next versions, the title will be in administrator user language.
Regards,
Marco