Tilte-Tag Translation

Post here you suggestions and wished features for hoteldruid development.

Moderator: marco

Post Reply
Oerd
Posts: 2
Joined: Sun Apr 13, 2014 9:56 am

Tilte-Tag Translation

Post 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.
ashish
Posts: 7
Joined: Thu Dec 18, 2014 4:49 pm

Re: Tilte-Tag Translation

Post 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

Code: Select all

<title> $titolo </title>";
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.
marco
Posts: 1332
Joined: Tue Jul 05, 2005 6:00 pm
Location: Roma, Italia

Re: Tilte-Tag Translation

Post by marco »

Hello,
I've added this change for one of the next versions, the title will be in administrator user language.

Regards,
Marco
Problems installing, configuring, upgrading?
Try the easiest way to use HotelDruid:
https://www.digitaldruid.net/hosted/index.php
Post Reply