From 1b2aa2f98ba320a7623676c1640f792b70f1fa16 Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Mon, 22 Aug 2011 06:50:30 +0000 Subject: improved i18n --- .../Application/Controllers/GenericController.php | 4 +- h-source/Application/Include/languages.php | 65 +++++++++++++++------- h-source/Application/Views/Download/index.php | 2 +- h-source/Application/Views/Hardware/left.php | 24 ++++---- h-source/Application/Views/Help/index.php | 2 +- h-source/Application/Views/Help/index_de.php | 2 +- h-source/Application/Views/Help/index_es.php | 2 +- h-source/Application/Views/Help/index_fr.php | 2 +- h-source/Application/Views/Help/index_it.php | 2 +- h-source/Application/Views/Issues/view.php | 2 +- h-source/Application/Views/Issues/viewall.php | 2 +- h-source/Application/Views/News/index.php | 2 +- h-source/Application/Views/header.php | 2 +- h-source/Application/Views/top_left.php | 4 +- 14 files changed, 72 insertions(+), 45 deletions(-) (limited to 'h-source') diff --git a/h-source/Application/Controllers/GenericController.php b/h-source/Application/Controllers/GenericController.php index 4ac197c..c2e6517 100644 --- a/h-source/Application/Controllers/GenericController.php +++ b/h-source/Application/Controllers/GenericController.php @@ -432,7 +432,7 @@ class GenericController extends BaseController Params::$nullQueryValue = 'undef'; - $data['tree'] = $this->controller; + $data['tree'] = plural($this->controller); $this->mod->aWhere(array("deleted"=>"no","cleared"=>"no")); @@ -834,7 +834,7 @@ class GenericController extends BaseController protected function getSpecHardLink() { - return "controller.'/catalogue/'.$this->lang.$this->viewStatus."'>".$this->controller.""; + return "controller.'/catalogue/'.$this->lang.$this->viewStatus."'>".plural($this->controller).""; } protected function goToLoginForm() diff --git a/h-source/Application/Include/languages.php b/h-source/Application/Include/languages.php index 8621f7e..a7264f2 100644 --- a/h-source/Application/Include/languages.php +++ b/h-source/Application/Include/languages.php @@ -264,6 +264,25 @@ class Lang /*0216*/"works with 3D acceleration" => "funziona con accelerazione 3D", /*0217*/"works, but without 3D acceleration" => "funziona, ma senza accelerazione 3D", /*0218*/"it does not work" => "non funziona", + /*0219*/"Notebooks, netbooks, Tablet PC" => "Notebooks, netbooks, Tablet PC", + /*0220*/"Wifi cards" => "Schede wifi", + /*0221*/"Video cards" => "Schede video", + /*0222*/"Printers and multifunction" => "Stampanti e multifunzione", + /*0223*/"Scanners" => "Scanner", + /*0224*/"3G cards" => "Schede 3G", + /*0225*/"Sound cards" => "Schede audio", + /*0226*/"Webcams" => "Webcam", + /*0227*/"Bluetooth devices" => "Dispositivi bluetooth", + /*0228*/"TV/Video/FM acquisition cards" => "Schede di acquisizione TV/Video/FM", + /*0229*/"Fingerprint readers" => "Lettori di impronte digitali", + /*0230*/"Ethernet cards" => "Schede ethernet", + /*0231*/"Hardware" => "Hardware", + /*0232*/"Issues" => "Questioni", + /*0233*/"Search" => "Cerca", + /*0234*/"News" => "Notizie", + /*0235*/"Download" => "Scarica", + /*0236*/"Help" => "Aiuto", + /*0237*/"List of" => "Lista di", ), 'es' => array ( @@ -892,19 +911,21 @@ class Lang 'bluetooth' => 'bluetooth device', 'acquisitioncards' => 'acquisition card', 'fingerprintreaders' => 'fingerprint reader', + 'ethernetcards' => 'ethernet card', ), 'it' => array( 'notebooks' => 'notebook', - 'wifi' => 'wifi card', - 'videocards' => 'video card', - 'printers' => 'printer', + 'wifi' => 'scheda wifi', + 'videocards' => 'scheda video', + 'printers' => 'stampante', 'scanners' => 'scanner', - 'threegcards' => '3G-card', - 'soundcards' => 'soundcard', + 'threegcards' => 'scheda 3G', + 'soundcards' => 'scheda audio', 'webcams' => 'webcam', - 'bluetooth' => 'bluetooth device', - 'acquisitioncards' => 'acquisition card', - 'fingerprintreaders' => 'fingerprint reader', + 'bluetooth' => 'dispositivo bluetooth', + 'acquisitioncards' => 'scheda di acquisizione', + 'fingerprintreaders' => 'lettore di impronte digitali', + 'ethernetcards' => 'scheda ethernet', ), 'es' => array( 'notebooks' => 'notebook', @@ -918,6 +939,7 @@ class Lang 'bluetooth' => 'bluetooth device', 'acquisitioncards' => 'acquisition card', 'fingerprintreaders' => 'fingerprint reader', + 'ethernetcards' => 'ethernet card', ), 'fr' => array( 'notebooks' => 'notebook', @@ -931,6 +953,7 @@ class Lang 'bluetooth' => 'bluetooth device', 'acquisitioncards' => 'acquisition card', 'fingerprintreaders' => 'fingerprint reader', + 'ethernetcards' => 'ethernet card', ), ); @@ -947,19 +970,21 @@ class Lang 'bluetooth' => 'bluetooth devices', 'acquisitioncards' => 'acquisition cards', 'fingerprintreaders' => 'fingerprint readers', + 'ethernetcards' => 'ethernet cards', ), 'it' => array( - 'notebooks' => 'notebooks', - 'wifi' => 'wifi cards', - 'videocards' => 'video cards', - 'printers' => 'printers', - 'scanners' => 'scanners', - 'threegcards' => '3G-cards', - 'soundcards' => 'soundcards', - 'webcams' => 'webcams', - 'bluetooth' => 'bluetooth devices', - 'acquisitioncards' => 'acquisition cards', - 'fingerprintreaders' => 'fingerprint readers', + 'notebooks' => 'notebook', + 'wifi' => 'schede wifi', + 'videocards' => 'schede video', + 'printers' => 'stampanti', + 'scanners' => 'scanner', + 'threegcards' => 'schede 3G', + 'soundcards' => 'schede audio', + 'webcams' => 'webcam', + 'bluetooth' => 'dispositivi bluetooth', + 'acquisitioncards' => 'schede di acquisizione', + 'fingerprintreaders' => 'lettori di impronte digitali', + 'ethernetcards' => 'schede ethernet', ), 'es' => array( 'notebooks' => 'notebooks', @@ -973,6 +998,7 @@ class Lang 'bluetooth' => 'bluetooth devices', 'acquisitioncards' => 'acquisition cards', 'fingerprintreaders' => 'fingerprint readers', + 'ethernetcards' => 'ethernet cards', ), 'fr' => array( 'notebooks' => 'notebooks', @@ -986,6 +1012,7 @@ class Lang 'bluetooth' => 'bluetooth devices', 'acquisitioncards' => 'acquisition cards', 'fingerprintreaders' => 'fingerprint readers', + 'ethernetcards' => 'ethernet cards', ), ); diff --git a/h-source/Application/Views/Download/index.php b/h-source/Application/Views/Download/index.php index 11d53c2..de4d434 100644 --- a/h-source/Application/Views/Download/index.php +++ b/h-source/Application/Views/Download/index.php @@ -23,7 +23,7 @@
- ">Home » download + ">Home »
diff --git a/h-source/Application/Views/Hardware/left.php b/h-source/Application/Views/Hardware/left.php index 21fa3ec..275898d 100644 --- a/h-source/Application/Views/Hardware/left.php +++ b/h-source/Application/Views/Hardware/left.php @@ -27,50 +27,50 @@
- Notebooks +
- Scanners +
- 3G cards +
- Webcams +
\ No newline at end of file diff --git a/h-source/Application/Views/Help/index.php b/h-source/Application/Views/Help/index.php index afd012c..c61909d 100644 --- a/h-source/Application/Views/Help/index.php +++ b/h-source/Application/Views/Help/index.php @@ -24,7 +24,7 @@
- ">Home » help + ">Home »
diff --git a/h-source/Application/Views/Help/index_de.php b/h-source/Application/Views/Help/index_de.php index a9737d9..cd4290f 100644 --- a/h-source/Application/Views/Help/index_de.php +++ b/h-source/Application/Views/Help/index_de.php @@ -24,7 +24,7 @@
- ">Startseite » Hilfe + ">Startseite »
diff --git a/h-source/Application/Views/Help/index_es.php b/h-source/Application/Views/Help/index_es.php index 9b3cf7d..136d0bf 100644 --- a/h-source/Application/Views/Help/index_es.php +++ b/h-source/Application/Views/Help/index_es.php @@ -24,7 +24,7 @@
- ">Inicio » help + ">Inicio »
diff --git a/h-source/Application/Views/Help/index_fr.php b/h-source/Application/Views/Help/index_fr.php index b4e2016..a09f445 100644 --- a/h-source/Application/Views/Help/index_fr.php +++ b/h-source/Application/Views/Help/index_fr.php @@ -24,7 +24,7 @@
- ">Home » help + ">Home »
diff --git a/h-source/Application/Views/Help/index_it.php b/h-source/Application/Views/Help/index_it.php index 0b921ef..eaadcbf 100644 --- a/h-source/Application/Views/Help/index_it.php +++ b/h-source/Application/Views/Help/index_it.php @@ -24,7 +24,7 @@
- ">Home » help + ">Home »
diff --git a/h-source/Application/Views/Issues/view.php b/h-source/Application/Views/Issues/view.php index bcd0265..20344b8 100644 --- a/h-source/Application/Views/Issues/view.php +++ b/h-source/Application/Views/Issues/view.php @@ -33,7 +33,7 @@
diff --git a/h-source/Application/Views/Issues/viewall.php b/h-source/Application/Views/Issues/viewall.php index e31a7f3..1705670 100644 --- a/h-source/Application/Views/Issues/viewall.php +++ b/h-source/Application/Views/Issues/viewall.php @@ -33,7 +33,7 @@
- ">Home » issues + ">Home »
diff --git a/h-source/Application/Views/News/index.php b/h-source/Application/Views/News/index.php index 98ea357..f46aaae 100644 --- a/h-source/Application/Views/News/index.php +++ b/h-source/Application/Views/News/index.php @@ -23,7 +23,7 @@
- ">Home » news + ">Home »
diff --git a/h-source/Application/Views/header.php b/h-source/Application/Views/header.php index c70ba59..8d5e681 100644 --- a/h-source/Application/Views/header.php +++ b/h-source/Application/Views/header.php @@ -83,7 +83,7 @@ $currPos = $querySanitized ? $this->controller."/".$this->action : 'home/index'; diff --git a/h-source/Application/Views/top_left.php b/h-source/Application/Views/top_left.php index 08674c8..94701cb 100644 --- a/h-source/Application/Views/top_left.php +++ b/h-source/Application/Views/top_left.php @@ -71,7 +71,7 @@
- Specifications of the controller);?> + controller);?>