Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

be_table - Label übersetzen #1557

Open
alxndr-w opened this issue Mar 22, 2025 · 3 comments
Open

be_table - Label übersetzen #1557

alxndr-w opened this issue Mar 22, 2025 · 3 comments

Comments

@alxndr-w
Copy link
Contributor

Image

Wird benötigt für https://github.com/FriendsOfREDAXO/warehouse/

@christophboecker
Copy link
Contributor

Du könntest Die helfen, indem Du in der dataset::getForm das Feld in $yform->objparams['form_elements'] identifizierst und dort den übersetzten Text einfügst.

@christophboecker
Copy link
Contributor

christophboecker commented Mar 22, 2025

public function getForm(): rex_yform
{
    $yform = parent::getForm();
    foreach ($yform->objparams['form_elements'] as $k => &$fe) {
            if ($fe[0] === 'be_table && $fe[1] === 'feldname') {
                $desc = $fe[..];
                ... sprachspezifische Anpassung ...
                $fe[..] = $desc;
                break;
            }
        }
        return $yform;
}

@alxndr-w
Copy link
Contributor Author

Das ist eine clevere Übergangslösung, allerdings würde ich schon eine Lösung an der Wurzel bevorzugen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants