Working on tests

This commit is contained in:
Hillel Coren 2017-01-10 12:41:07 +02:00
parent 9400c073e2
commit 494ddc4bf1
2 changed files with 6 additions and 2 deletions

View File

@ -6,7 +6,7 @@ php:
# - 5.5.9
# - 5.6
# - 5.6
- 7.0
# - 7.0
- 7.1
# - hhvm

View File

@ -542,12 +542,13 @@ if (!defined('CONTACT_EMAIL'))
function uctrans($text)
{
return ucwords(trans($text));
//return ucwords(trans($text));
}
// optional trans: only return the string if it's translated
function otrans($text)
{
/*
$locale = Session::get(SESSION_LOCALE);
if ($locale == 'en') {
@ -557,11 +558,13 @@ if (!defined('CONTACT_EMAIL'))
$english = trans($text, [], 'en');
return $string != $english ? $string : '';
}
*/
}
// include modules in translations
function mtrans($entityType, $text = false)
{
/*
if ( ! $text) {
$text = $entityType;
}
@ -576,5 +579,6 @@ if (!defined('CONTACT_EMAIL'))
}
return trans("texts.{$text}");
*/
}
}