aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Include
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-09-02 13:07:26 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-09-02 13:07:26 +0000
commit2dfe9420c48529dc840e68bf37fb41c59f7a0092 (patch)
treed99a3efa689156396b426320ff4448c3d3bb0c7a /h-source/Application/Include
parentfd57650409ddb4cee2f7b5f2df7183b569eeb3ce (diff)
now x84-64/amd64 label is printed
Diffstat (limited to 'h-source/Application/Include')
-rw-r--r--h-source/Application/Include/hardware.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/h-source/Application/Include/hardware.php b/h-source/Application/Include/hardware.php
index 04db6ca..2e5cb0e 100644
--- a/h-source/Application/Include/hardware.php
+++ b/h-source/Application/Include/hardware.php
@@ -21,8 +21,26 @@
if (!defined('EG')) die('Direct access not allowed!');
+function translate($string)
+{
+ return Hardware::translate($string);
+}
+
class Hardware
{
+
+ public static $translations = array(
+ "amd64" => 'x86-64/amd64',
+ );
+
+ public static function translate($string)
+ {
+ if (array_key_exists($string,self::$translations))
+ {
+ return self::$translations[$string];
+ }
+ return $string;
+ }
public static $controllers = array('notebooks','wifi','videocards','printers','scanners','threegcards','soundcards','webcams','bluetooth','acquisitioncards','fingerprintreaders','ethernetcards'); //used by UsersController::login()