summaryrefslogtreecommitdiff
path: root/app/frontend/dto/BaseDTO.php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-06-12 17:25:32 +0200
committeremkael <emkael@tlen.pl>2016-06-12 17:25:32 +0200
commitece88ff6d4c59418dc043c735252aca012eee207 (patch)
treecfaa9686077952a0ee45e530c9b469ace704a643 /app/frontend/dto/BaseDTO.php
parentb1458fd1f8c871ba58976eb079caabc60ae2d275 (diff)
* localizing DB strings
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);
+ }
+
+}
+
+?>