Inline Widget - Separator

Created on 4 July 2022, almost 2 years ago
Updated 3 August 2023, 11 months ago

Problem/Motivation

The string for the separator between start and end date in the inline widget (smartdate_inline) is currently set to "$this->t('to');". "to" is a somewhat general word and in some languages (i.e. german) might have different meaning depending on the context it is used in. So I am somewhat afraid of changing this translation generally to make it fit the smart date context.

Maybe one could add a translation context to this. But I am proposing to have a widget setting that enables to set an arbitrary string for the separator (and in case it is not set, the default "$this->t('to')" will be used. I suppose that arbitrary string could be translated through config translation if necessary.

Steps to reproduce

Use the inline widget (smartdata_inline) and see the separator string ("to" in englisch, "zu" in german by default, which should better be "bis" in german).

Proposed resolution

add a setting to the widget to let us have a custom separator string

Remaining tasks

na

User interface changes

a custom separator string can be used.

API changes

na

Data model changes

na

✨ Feature request
Status

Fixed

Version

3.7

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany stefan.korn Jossgrund

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024