Translate "new" in helper_functions.php end more translation
new comment
Translation of "new" is possible if change the file helper functions.php
if ($Discussion->CountUnreadComments === TRUE) to if ($Discussion->CountUnreadComments === FALSE)
The usual translation $Definition['new'] = 'same translate'; without this change has no effect. Why?
And is it possible to translate other lines in the file?
Example:
} elseif ($Discussion->CountUnreadComments > 0) {
$Title = htmlspecialchars(Plural($Discussion->CountUnreadComments, "%s new comment since you last read this.", "%s new comments since you last read this."));
I will be grateful
Best Answer
-
vrijvlinder MVP
The usual translation $Definition['new'] = 'same translate'; without this change has no effect. Why?
Because that is not the usual translation, you can only change the definition of translatable strings, example:
t('translate this')
the t means translate, if something has that then it can be translated, but you need to find the correct definition to change…
Maybe this will help.
$Definition['%s New'] = '%s Nuevo'; $Definition['%s new'] = '%s nuevo'; $Definition['%s New Plural'] = '%s Nuevos';
5
Answers
Are there any thoughts on this?
Because that is not the usual translation, you can only change the definition of translatable strings, example:
t('translate this')
the t means translate, if something has that then it can be translated, but you need to find the correct definition to change…
Maybe this will help.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌