summaryrefslogtreecommitdiff
path: root/app/frontend/dto/BaseDTO.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/frontend/dto/BaseDTO.php')
-rw-r--r--app/frontend/dto/BaseDTO.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/frontend/dto/BaseDTO.php b/app/frontend/dto/BaseDTO.php
new file mode 100644
index 0000000..ccb9df5
--- /dev/null
+++ b/app/frontend/dto/BaseDTO.php
@@ -0,0 +1,15 @@
+<?php
+
+class BaseDTO {
+
+ public static function getTranslation(string $string, string $category) {
+ $module = Prado::getApplication()->getModule('db-strings');
+ if (!$module) {
+ return $string;
+ }
+ return $module->getTranslation($string, $category);
+ }
+
+}
+
+?>