aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Include/myFunctions.php
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-12-04 19:07:42 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-12-04 19:07:42 +0000
commit9cfcb4bb32e2fb8f5dbabd7faa06e47adf1c23af (patch)
treec1ee0451fe37e64dfe29c98cf8c0905e9ab53767 /h-source/Application/Include/myFunctions.php
parentd30d70afd95653bb356603612db6519d6e6ebead (diff)
improved i18n
Diffstat (limited to 'h-source/Application/Include/myFunctions.php')
-rw-r--r--h-source/Application/Include/myFunctions.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/h-source/Application/Include/myFunctions.php b/h-source/Application/Include/myFunctions.php
index bb7aa5f..e90a163 100644
--- a/h-source/Application/Include/myFunctions.php
+++ b/h-source/Application/Include/myFunctions.php
@@ -451,4 +451,20 @@ function getDiffArray($associativeArray, $oldArray, $newArray)
}
}
return $diffArray;
+}
+
+//get the translation function
+function getTranslationFunction($fieldName)
+{
+ $fieldsFunc = array(
+ "vendor" => "betterVendor",
+ "interface" => "translate",
+ );
+
+ if (array_key_exists($fieldName,$fieldsFunc))
+ {
+ return $fieldsFunc[$fieldName];
+ }
+
+ return "gtext";
} \ No newline at end of file