From ece88ff6d4c59418dc043c735252aca012eee207 Mon Sep 17 00:00:00 2001 From: emkael Date: Sun, 12 Jun 2016 17:25:32 +0200 Subject: * localizing DB strings --- app/frontend/dto/BaseDTO.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 app/frontend/dto/BaseDTO.php (limited to 'app/frontend/dto/BaseDTO.php') 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 @@ +getModule('db-strings'); + if (!$module) { + return $string; + } + return $module->getTranslation($string, $category); + } + +} + +?> -- cgit v1.2.3