aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Include
diff options
context:
space:
mode:
Diffstat (limited to 'h-source/Application/Include')
-rw-r--r--h-source/Application/Include/languages.php7
-rw-r--r--h-source/Application/Include/myFunctions.php16
2 files changed, 23 insertions, 0 deletions
diff --git a/h-source/Application/Include/languages.php b/h-source/Application/Include/languages.php
index 6f1fac4..ecd7318 100644
--- a/h-source/Application/Include/languages.php
+++ b/h-source/Application/Include/languages.php
@@ -335,6 +335,13 @@ class Lang
/*0287*/"November" => "novembre",
/*0288*/"December" => "dicembre",
/*0289*/"not-specified" => "non specificato",
+ /*0290*/"last-inserted" => "ultimo inserito",
+ /*0291*/"last inserted" => "ultimo inserito",
+ /*0292*/"alphabetically" => "alfabeticamente",
+ /*0293*/"alphabetically-desc" => "alfabeticamente decresc",
+ /*0294*/"alphabetically desc" => "alfabeticamente decresc",
+ /*0295*/"undef" => "tutti",
+ /*0296*/"All" => "Tutti",
),
'es' => array
(
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