Issue Feature Rejected

#78904correct append of ellipses for different language in f:format.crop()

taywa gmbh 12/07/16, 10:39 updated 12/07/16, 16:42

Description

if respectWordBoundaries = true and language = german append default should be
 …
or ‘ …’ and not ‘…’ like now. in german ‘…’ is only used if its in the middle of the Wor… . When at the end, its … (with withespace). But every language is different, see here: https://en.wikipedia.org/wiki/Ellipsis

So this should implemented via language strings?!

in fluid/Classes/ViewHelpers/Format/CropViewHelper.php

    public function render($maxCharacters, $append = '...', $respectWordBoundaries = true, $respectHtml = true)
    {
        return static::renderStatic(
            [
                'maxCharacters' => $maxCharacters,
                'append' => $append,
                'respectWordBoundaries' => $respectWordBoundaries,
                'respectHtml' => $respectHtml,
            ],
            $this->buildRenderChildrenClosure(),
            $this->renderingContext
        );
    }

thanks

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.