Ergebnis 1 bis 10 von 10

Thema: 4.4.x: Language File - Cannot use string offset as an array

  1. #1
    Contao-Nutzer
    Registriert seit
    17.01.2020.
    Beiträge
    104

    Standard 4.4.x: Language File - Cannot use string offset as an array

    Hallo,

    ich habe Inhalte auf einer Testseite problemlos mehrsprachig darstellen können. Seitdem ich jedoch einen bestimmten Abschnitt hinzugefügt habe, funktioniert meine Testseite nicht mehr, da stets die gleiche Fehlermeldung ausgegeben wird:

    PHP-Code:
    app.CRITICALAn exception occurred. {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Cannot use string offset as an array 
    Anscheinend wird ein String als Array verwendet, weshalb die Fehlermeldung auftaucht. Allerdings verstehe ich nicht, warum der Fehler genau an dieser Stelle auftritt, da alle anderen Code-Stellen ähnlich sind. Die betroffene Stelle ist folgende in der default.php:

    PHP-Code:
    $GLOBALS['TL_LANG']['custom']['advisor']['header']['text'] = 'Suchen Sie etwas Bestimmtes?'
    Sofern ich
    PHP-Code:
    $GLOBALS['TL_LANG']['custom']['advisor'] = 'Suchen Sie etwas Bestimmtes?'
    schreibe, funktioniert es problemlos. Ich habe im weiteren Verlauf der Datei auch längere Arrays wie
    PHP-Code:
    $GLOBALS['TL_LANG']['custom']['form']['nid']['placeholder'
    etc., da funktioniert alles ohne Probleme.

    Die Ausgabe des Textes ist folgende:

    PHP-Code:
    <p><?= GLOBALS['TL_LANG']['custom']['advisor']['header']['text'?></p>
    Falls noch mehr Informationen benötigt werden, dann versuche ich die gerne nachzuliefern.

  2. #2
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    30.320
    Partner-ID
    10107

    Standard

    Nutze den Debug Modus und poste den Stack Trace.
    » sponsor me via GitHub or PayPal or Revolut

  3. #3
    Contao-Nutzer
    Registriert seit
    17.01.2020.
    Beiträge
    104

    Standard

    Das gibt er mir aus. Nicht das fehlerhafte Array, was in den Logs im var-Ordner steht, aber die gleiche Fehlermeldung:

    PHP-Code:
    Symfony\Component\Debug\Exception\ContextErrorException:
    WarningIllegal string offset 'unlock'

      
    at app/Resources/contao/languages/en/default.php:49
      at 
    include('...contao/app/Resources/contao/languages/en/default.php')
         (
    vendor/contao/core-bundle/src/Resources/contao/library/Contao/System.php:421)
      
    at Contao\System::loadLanguageFile('default')
         (
    vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaExtractor.php:371)
      
    at Contao\DcaExtractor->createExtract()
         (
    vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaExtractor.php:120)
      
    at Contao\DcaExtractor->__construct('tl_member_group')
         (
    vendor/contao/core-bundle/src/Resources/contao/library/Contao/DcaExtractor.php:142)
      
    at Contao\DcaExtractor::getInstance('tl_member_group')
         (
    vendor/contao/core-bundle/src/Resources/contao/library/Contao/Model.php:267)
      
    at Contao\Model::getUniqueFields()
         (
    vendor/contao/core-bundle/src/Resources/contao/library/Contao/Model.php:936)
      
    at Contao\Model::findBy(array('tl_member_group.disable=\'\' AND (tl_member_group.start=\'\' OR tl_member_group.start&lt;=\'1656588480\') AND (tl_member_group.stop=\'\' OR tl_member_group.stop&gt;\'1656588480\')'), null, array())
         (
    vendor/contao/core-bundle/src/Resources/contao/models/MemberGroupModel.php:101)
      
    at Contao\MemberGroupModel::findAllActive()
         (
    vendor/contao/core-bundle/src/Resources/contao/classes/FrontendUser.php:277)
      
    at Contao\FrontendUser->setUserFromDb()
         (
    vendor/contao/core-bundle/src/Resources/contao/library/Contao/User.php:293)
      
    at Contao\User->authenticate()
         (
    vendor/contao/core-bundle/src/Resources/contao/classes/FrontendUser.php:115)
      
    at Contao\FrontendUser->authenticate()
         (
    vendor/contao/core-bundle/src/Security/Authentication/ContaoToken.php:37)
      
    at Contao\CoreBundle\Security\Authentication\ContaoToken->__construct(object(FrontendUser))
         (
    vendor/contao/core-bundle/src/Security/ContaoAuthenticator.php:88)
      
    at Contao\CoreBundle\Security\ContaoAuthenticator->authenticateToken(object(AnonymousToken), object(ContaoUserProvider), 'backend')
         (
    vendor/symfony/symfony/src/Symfony/Component/Security/Core/Authentication/Provider/SimpleAuthenticationProvider.php:42)
      
    at Symfony\Component\Security\Core\Authentication\Provider\SimpleAuthenticationProvider->authenticate(object(AnonymousToken))
         (
    vendor/symfony/symfony/src/Symfony/Component/Security/Core/Authentication/AuthenticationProviderManager.php:76)
      
    at Symfony\Component\Security\Core\Authentication\AuthenticationProviderManager->authenticate(object(AnonymousToken))
         (
    vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/SimplePreAuthenticationListener.php:101)
      
    at Symfony\Component\Security\Http\Firewall\SimplePreAuthenticationListener->handle(object(GetResponseEvent))
         (
    vendor/symfony/symfony/src/Symfony/Bundle/SecurityBundle/Debug/WrappedListener.php:46)
      
    at Symfony\Bundle\SecurityBundle\Debug\WrappedListener->handle(object(GetResponseEvent))
         (
    vendor/symfony/symfony/src/Symfony/Bundle/SecurityBundle/Debug/TraceableFirewallListener.php:35)
      
    at Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener->handleRequest(object(GetResponseEvent), object(Generator))
         (
    vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall.php:84)
      
    at Symfony\Component\Security\Http\Firewall->onKernelRequest(object(GetResponseEvent))
         (
    vendor/symfony/symfony/src/Symfony/Bundle/SecurityBundle/EventListener/FirewallListener.php:48)
      
    at Symfony\Bundle\SecurityBundle\EventListener\FirewallListener->onKernelRequest(object(GetResponseEvent), 'kernel.request'object(TraceableEventDispatcher))
         (
    vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php:115)
      
    at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(GetResponseEvent), 'kernel.request'object(TraceableEventDispatcher))
         (
    vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:214)
      
    at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.request'object(GetResponseEvent))
         (
    vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:44)
      
    at Symfony\Component\EventDispatcher\EventDispatcher->dispatch('kernel.request'object(GetResponseEvent))
         (
    vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php:143)
      
    at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch('kernel.request'object(GetResponseEvent))
         (
    vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:127)
      
    at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
         (
    vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68)
      
    at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1true)
         (
    vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:200)
      
    at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
         (
    web/app_dev.php:61

  4. #4
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    30.320
    Partner-ID
    10107

    Standard

    Poste den gesamten Inhalt von app/Resources/contao/languages/en/default.php - oder zumindest Zeile 49.
    » sponsor me via GitHub or PayPal or Revolut

  5. #5
    Contao-Nutzer
    Registriert seit
    17.01.2020.
    Beiträge
    104

    Standard

    PHP-Code:
    $GLOBALS['TL_LANG']['custom']['err']['unlock'] = 'Please activate your account first by clicking the received activation link.'

  6. #6
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    30.320
    Partner-ID
    10107

    Standard

    Poste die gesamte Datei. So wie es aussieht ist an dieser Stelle $GLOBALS['TL_LANG']['custom']['err'] oder $GLOBALS['TL_LANG']['custom'] bereits ein String, kein Array.
    » sponsor me via GitHub or PayPal or Revolut

  7. #7
    Contao-Nutzer
    Registriert seit
    17.01.2020.
    Beiträge
    104

    Standard

    Wenn ich die Auskommentierung in Zeile 5 herausnehme, dann kann ich nicht mehr über den Manager den Cache löschen, da dort die gleiche Fehlermeldung für diese Zeile erzeugt wird. Mit Auskommentierung kann ich zwar den Cache löschen lassen, aber im Stack Trace werden mir dann die aufgezeigten Fehler angezeigt. Ich habe die Fehlerzeilen nach und nach auskommentiert und er war mit folgenden Zeilen nicht zufrieden:
    • $GLOBALS['TL_LANG']['custom']['mail']['recovery']['password']['subject']
    • $GLOBALS['TL_LANG']['custom']['news']['footer']['project']['description']['funding']
    • $GLOBALS['TL_LANG']['custom']['mail']['registration']['subject']
    • $GLOBALS['TL_LANG']['custom']['mail']['recovery']['username']['subject']
    • $GLOBALS['TL_LANG']['custom']['err']['unlock']


    PHP-Code:
    <?php
        $GLOBALS
    ['TL_LANG']['MSC']['nl_subject'] = 'Your subscription on %s';
        
        
    $GLOBALS['TL_LANG']['custom']['about']['note'] = 'For further information, visit';
        
        
    /*$GLOBALS['TL_LANG']['custom']['advisor'] = 'Advisor';
        $GLOBALS['TL_LANG']['custom']['advisor']['header']['text'] = 'Looking for something in particular?';
        $GLOBALS['TL_LANG']['custom']['advisor']['header']['button'] = 'Got a quick question?';
        $GLOBALS['TL_LANG']['custom']['advisor']['module'] = 'Module';
        $GLOBALS['TL_LANG']['custom']['advisor']['module']['1']['name'] = 'What is Mental Wellbeing, Stress and Burnout?';
        $GLOBALS['TL_LANG']['custom']['advisor']['module']['1']['question']['1'] = 'What is mental wellbeing, stress and burnout?';
        $GLOBALS['TL_LANG']['custom']['advisor']['module']['1']['question']['2'] = 'How can I promote mental wellbeing??';
        $GLOBALS['TL_LANG']['custom']['advisor']['module']['2']['name'] = 'Toolkit - Mental Wellbeing and Stress Management';
        $GLOBALS['TL_LANG']['custom']['advisor']['module']['2']['question']['1'] = 'What is stress and how does it affect you???';
        $GLOBALS['TL_LANG']['custom']['advisor']['module']['2']['question']['2'] = 'How can I manage my stress???';
        $GLOBALS['TL_LANG']['custom']['advisor']['module']['3']['name'] = 'Toolkit - Supporting Each Other at Work';
        $GLOBALS['TL_LANG']['custom']['advisor']['module']['3']['question']['1'] = 'How can we develop peer support in our workplace??';
        $GLOBALS['TL_LANG']['custom']['advisor']['module']['4']['name'] = 'Supervisor Toolkit - Creating Mentally Healthy Workplaces';
        $GLOBALS['TL_LANG']['custom']['advisor']['module']['4']['question']['1'] = 'How can I address psychosocial working conditions like demands, control and communication at my workplace???';
        $GLOBALS['TL_LANG']['custom']['advisor']['module']['4']['question']['2'] = 'How can I plan and realise activities for improving psychosocial working conditions?';
        $GLOBALS['TL_LANG']['custom']['advisor']['module']['5']['name'] = 'What is Depression?';
        $GLOBALS['TL_LANG']['custom']['advisor']['module']['5']['question']['1'] = 'What is depression and how is it treated??';
        $GLOBALS['TL_LANG']['custom']['advisor']['module']['5']['question']['2'] = 'How does depression affect work?';
        $GLOBALS['TL_LANG']['custom']['advisor']['module']['6']['name'] = 'What is Anxiety?';
        $GLOBALS['TL_LANG']['custom']['advisor']['module']['6']['question']['1'] = 'What is anxiety and how is it treated?';
        $GLOBALS['TL_LANG']['custom']['advisor']['module']['6']['question']['2'] = 'How can anxiety impact work?';
        $GLOBALS['TL_LANG']['custom']['advisor']['module']['7']['name'] = 'Supervisor Toolkit - How to Address Mental Illness in the Workplace';
        $GLOBALS['TL_LANG']['custom']['advisor']['module']['7']['question']['1'] = 'How can I talk with an employee who might be experiencing symptoms of depression or anxiety?';
        $GLOBALS['TL_LANG']['custom']['advisor']['module']['7']['question']['2'] = 'How can I support an employee who has suicidal thoughts to get help?';
        $GLOBALS['TL_LANG']['custom']['advisor']['module']['7']['question']['3'] = 'How can I help an employee successfully return to the workplace after sick leave??';
        $GLOBALS['TL_LANG']['custom']['advisor']['module']['8']['name'] = 'Communicating about Mental Health Difficulties';
        $GLOBALS['TL_LANG']['custom']['advisor']['module']['8']['question']['1'] = 'How can I talk about my mental health related problems??';
        $GLOBALS['TL_LANG']['custom']['advisor']['module']['8']['question']['2'] = 'How can I talk about someone else\'s mental health related problems??';
        $GLOBALS['TL_LANG']['custom']['advisor']['module']['8']['question']['3'] = 'How can I express my support and understanding in an effective way??';
        $GLOBALS['TL_LANG']['custom']['advisor']['module']['8']['question']['4'] = 'How can I assist my colleagues to seek professional help if needed??';
        */
        
    $GLOBALS['TL_LANG']['custom']['cookie']['button']['accept'] = 'Accept All';
        
    $GLOBALS['TL_LANG']['custom']['cookie']['button']['save'] = 'Save';
        
    $GLOBALS['TL_LANG']['custom']['cookie']['button']['youtube'] = 'YouTube-Cookies';
        
    $GLOBALS['TL_LANG']['custom']['cookie']['module']['blocked'] = 'This module includes a video from Youtube. You have to accept the cookies in order to access the module.';
        
    $GLOBALS['TL_LANG']['custom']['cookie']['page']['href'] = 'data-privacy';
        
    $GLOBALS['TL_LANG']['custom']['cookie']['text'] = 'This website stores data such as cookies to enable important website functions. You can change your settings at any time or accept the default settings. Cookie Policy.';
        
        
    $GLOBALS['TL_LANG']['custom']['err']['unlock'] = 'Please activate your account first by clicking the received activation link.';
        
    $GLOBALS['TL_LANG']['custom']['err']['check']['id'] = 'Please enter 4 numbers!';
        
    //$GLOBALS['TL_LANG']['custom']['err']['check']['identification'] = 'The entered code doesn\'t match the pattern!';
        
    $GLOBALS['TL_LANG']['custom']['err']['check']['mobile'] = 'The number entered is not recognised as a phone number.';
        
    $GLOBALS['TL_LANG']['custom']['err']['check']['password'] = 'The password entered does not meet the prescribed criteria.';
        
    $GLOBALS['TL_LANG']['custom']['err']['exists']['email'] = 'This email address is already registered.';
        
    $GLOBALS['TL_LANG']['custom']['err']['exists']['mobile'] = 'This phone number is already registered.';
        
    $GLOBALS['TL_LANG']['custom']['err']['mandatory'] = 'Please fill out one of the fields.';
        
    $GLOBALS['TL_LANG']['custom']['err']['unique']['code'] = 'The code you have entered is not valid.';
        
    $GLOBALS['TL_LANG']['custom']['err']['unique']['email'] = 'This email address is not registered.';
        
    $GLOBALS['TL_LANG']['custom']['err']['unique']['id'] = 'Please enter 4 other numbers!';
        
    $GLOBALS['TL_LANG']['custom']['err']['unique']['identification'] = 'The entered identification code is not registered.';
        
    $GLOBALS['TL_LANG']['custom']['err']['unique']['invalidToken'] = 'The link of changing your password is invalid or outdated.';
        
    $GLOBALS['TL_LANG']['custom']['err']['unique']['mobile'] = 'This mobile phone number is not registered.';

        
    $GLOBALS['TL_LANG']['custom']['form']['registration']['check']['1'] = 'Employee without any supervisory tasks';
        
    $GLOBALS['TL_LANG']['custom']['form']['registration']['check']['2'] = 'Supervisor';
        
    $GLOBALS['TL_LANG']['custom']['form']['registration']['check']['3'] = 'Manager';
        
    $GLOBALS['TL_LANG']['custom']['form']['registration']['check']['4'] = 'Owner or co-owner?';
        
    $GLOBALS['TL_LANG']['custom']['form']['registration']['contact']['label'] = 'Contact details';
        
    $GLOBALS['TL_LANG']['custom']['form']['registration']['login']['label'] = 'Log in details';
        
    $GLOBALS['TL_LANG']['custom']['form']['registration']['newsletter']['label'] = 'Newsletter Registration';
        
    $GLOBALS['TL_LANG']['custom']['form']['registration']['personal']['label'] = 'Personal details';
        
    $GLOBALS['TL_LANG']['custom']['form']['registration']['register']['label'] = 'Register with';
        
    $GLOBALS['TL_LANG']['custom']['form']['registration']['usergroup']['label'] = 'What is your role in your company';
        
        
    $GLOBALS['TL_LANG']['custom']['form']['check']['remember'] = 'Remember me';
        
    $GLOBALS['TL_LANG']['custom']['form']['captcha']['label'] = 'Security Question';
        
    $GLOBALS['TL_LANG']['custom']['form']['code']['label'] = 'SME Code';
        
    $GLOBALS['TL_LANG']['custom']['form']['code']['placeholder'] = 'Please enter the SME code provided by your employer.';
        
    $GLOBALS['TL_LANG']['custom']['form']['code']['helptext'] = 'Please enter the code provided by your employer.';
        
    $GLOBALS['TL_LANG']['custom']['form']['confirm']['label'] = 'Password Confirmation';
        
    $GLOBALS['TL_LANG']['custom']['form']['confirm']['placeholder'] = 'Please confirm your password...';
        
    $GLOBALS['TL_LANG']['custom']['form']['contact']['note'] = 'Information submitted here will only be used to respond to your question. For further information, please see the Hub <a title="Link to the Data Privacy Statement" href="/en/data-privacy">Data Privacy Statement</a>.';
        
    $GLOBALS['TL_LANG']['custom']['form']['email']['label'] = 'Email Address';
        
    $GLOBALS['TL_LANG']['custom']['form']['email']['placeholder'] = 'Please enter your email...';
        
    $GLOBALS['TL_LANG']['custom']['form']['nid']['label'] = '4 Random Numbers';
        
    $GLOBALS['TL_LANG']['custom']['form']['nid']['placeholder'] = 'Please enter 4 random numbers...';
        
    $GLOBALS['TL_LANG']['custom']['form']['nid']['helptext'] = 'The code provided by your SME and the 4 random numbers you select will create an ID code unique to you.';
        
    $GLOBALS['TL_LANG']['custom']['form']['mandatory']['label'] = 'Mandatory';
        
    $GLOBALS['TL_LANG']['custom']['form']['mobile']['helptext'] = 'e.g. 412 345 678';
        
    $GLOBALS['TL_LANG']['custom']['form']['mobile']['label'] = 'Mobile Phone Number';
        
    $GLOBALS['TL_LANG']['custom']['form']['mobile']['placeholder'] = 'Please enter your mobile phone number...';
        
    $GLOBALS['TL_LANG']['custom']['form']['newsletter']['label'] = 'I would like to register for the Newsletter';
        
    $GLOBALS['TL_LANG']['custom']['form']['password']['helptext'] = 'The password must include at least: <br/>8 characters<br/>1 capital + non-capital letter<br/>1 number<br/>1 special character';
        
    $GLOBALS['TL_LANG']['custom']['form']['password']['label'] = 'Password';
        
    $GLOBALS['TL_LANG']['custom']['form']['password']['placeholder'] = 'Please enter your password...';
        
    $GLOBALS['TL_LANG']['custom']['form']['password_new']['label'] = 'New Password';
        
    $GLOBALS['TL_LANG']['custom']['form']['password_new']['placeholder'] = 'Please enter your new password...';
        
    $GLOBALS['TL_LANG']['custom']['form']['password_old']['label'] = 'Old Password';
        
    $GLOBALS['TL_LANG']['custom']['form']['password_old']['placeholder'] = 'Please enter your old password...';
        
    $GLOBALS['TL_LANG']['custom']['form']['username']['label'] = 'Username';
        
    $GLOBALS['TL_LANG']['custom']['form']['username']['placeholder'] = 'Please enter your username...';
        
    $GLOBALS['TL_LANG']['custom']['form']['search']['placeholder'] = 'Please enter a search term...';
        
    $GLOBALS['TL_LANG']['custom']['form']['search']['submit'] = 'Search';
        
    $GLOBALS['TL_LANG']['custom']['form']['submit']['login'] = 'Login';
        
    $GLOBALS['TL_LANG']['custom']['form']['submit']['password'] = 'Confirm Password';
        
    $GLOBALS['TL_LANG']['custom']['form']['submit']['subscribe'] = 'Register for the Newsletter';
        
    $GLOBALS['TL_LANG']['custom']['form']['submit']['unsubscribe'] = 'Cancel the Newsletter';
        
        
    $GLOBALS['TL_LANG']['custom']['helplines']['text'] = "If you think that you need emotional help and support, the following helplines are available in your country. They are there to help you when dealing with distressing problems as well as with serious personal crisis – it might already help to talk it through with somebody who is not personally involved.\n\n If thoughts about taking your own life are present or getting stronger or are even uncontrollabe and obtruding, then please call emergency services.";
        
    $GLOBALS['TL_LANG']['custom']['helplines']['note']['crisis'] = 'For a list of crisis centres in your country, <a href="https://www.iasp.info/resources/Crisis_Centres/">please click here</a>.';
        
    $GLOBALS['TL_LANG']['custom']['helplines']['note']['select'] = 'You need to seek help in the country you are in, please select the country where you currently are';
        
    $GLOBALS['TL_LANG']['custom']['helplines']['select']['option'][1] = 'Please choose your country';
        
    $GLOBALS['TL_LANG']['custom']['helplines']['select']['option'][2] = 'Albania';
        
    $GLOBALS['TL_LANG']['custom']['helplines']['select']['option'][3] = 'Australia';
        
    $GLOBALS['TL_LANG']['custom']['helplines']['select']['option'][4] = 'Germany';
        
    $GLOBALS['TL_LANG']['custom']['helplines']['select']['option'][5] = 'Hungary';
        
    $GLOBALS['TL_LANG']['custom']['helplines']['select']['option'][6] = 'Ireland';
        
    $GLOBALS['TL_LANG']['custom']['helplines']['select']['option'][7] = 'Kosovo';
        
    $GLOBALS['TL_LANG']['custom']['helplines']['select']['option'][8] = 'Netherlands';
        
    $GLOBALS['TL_LANG']['custom']['helplines']['select']['option'][9] = 'Spain';
        
        
    $GLOBALS['TL_LANG']['custom']['iframe']['text'] = 'Unfortunately your Browser does not support iFrames.';
        
        
    $GLOBALS['TL_LANG']['custom']['link']['back'] = 'Back';
        
    $GLOBALS['TL_LANG']['custom']['link']['home'] = 'Home';
        
    $GLOBALS['TL_LANG']['custom']['link']['materials'] = 'Materials';
        
    $GLOBALS['TL_LANG']['custom']['link']['profile']['label'] = 'Profile';
        
    $GLOBALS['TL_LANG']['custom']['link']['profile']['materials'] = 'Learning Tools for';
        
    $GLOBALS['TL_LANG']['custom']['link']['profile']['materials.0'] = '';
        
    $GLOBALS['TL_LANG']['custom']['link']['profile']['materials.1'] = '';
        
    $GLOBALS['TL_LANG']['custom']['link']['profile']['userrole'] = 'Target Group';
        
    $GLOBALS['TL_LANG']['custom']['link']['recovery-password']['href'] = '/en/login/password-recovery';
        
    $GLOBALS['TL_LANG']['custom']['link']['recovery-password']['label'] = 'Forgotten your password?';
        
    $GLOBALS['TL_LANG']['custom']['link']['recovery-username']['href'] = '/en/login/username-recovery';
        
    $GLOBALS['TL_LANG']['custom']['link']['recovery-username']['label'] = 'Forgotten your username?';
        
    $GLOBALS['TL_LANG']['custom']['link']['registration']['label'] = 'Not registered yet?';
        
    $GLOBALS['TL_LANG']['custom']['link']['registration']['href'] = '/en/login/registration';
        
        
    $GLOBALS['TL_LANG']['custom']['mail']['recovery']['password'] = "You have requested a new password.\n\nPlease click to reset your password.\n\nIf you did not attempt to reset your password, please contact the administrator.\n\nKind regards";
        
    $GLOBALS['TL_LANG']['custom']['mail']['recovery']['password']['subject'] = 'Forgotten Password';
        
    $GLOBALS['TL_LANG']['custom']['mail']['recovery']['username'] = "Please click to reset your username.\n\nIf you did not attempt to reset your username, please contact the administrator.\n\nKind regards";
        
    $GLOBALS['TL_LANG']['custom']['mail']['recovery']['username']['subject'] = 'Forgotten Username';
        
    //$GLOBALS['TL_LANG']['custom']['registration']['mail'] = "Dear User,\n\nThank you for registering! To complete the registration process, please click on the following activation link within 24 hours.\n\nKind regards";
        
    $GLOBALS['TL_LANG']['custom']['mail']['registration'] = "Dear User (%s),\n\nThank you for registering , please click to complete the required questionnaires. Once you have completed the questionnaires, you will be directed back and be able to access the materials. \n\nThank you";
        
    $GLOBALS['TL_LANG']['custom']['mail']['registration']['subject'] = 'Registration';
        
    $GLOBALS['TL_LANG']['custom']['mail']['reminder']['en']['3'] = "Dear User,\n\nIt has been 3 days since you last logged in. We hope that you are well and invite you to log in again soon to benefit from the  information and learning tools.\n\nYou can log in\n\nKind regards";
        
    $GLOBALS['TL_LANG']['custom']['mail']['reminder']['en']['7'] = "Dear User,\n\nIt has been 7 days since you last logged in. We hope that you are well and invite you to log in again soon to benefit from the information and learning tools.\n\nYou can log in.\n\nKind regards";
        
    $GLOBALS['TL_LANG']['custom']['mail']['reminder']['en']['14'] = "Dear User,\n\nIt has been 14 days since you last logged in. We hope that you are well and invite you to log in again soon to benefit from the information and learning tools.\n\nYou can log in.\n\nKind regards";
        
    $GLOBALS['TL_LANG']['custom']['mail']['reminder']['subject'] = 'time to log in!';
        
        
    $GLOBALS['TL_LANG']['custom']['materials']['unlock'] = 'Thank you for supporting our research and completing the questionnaires. You can now access all of the materials.';
        
    $GLOBALS['TL_LANG']['custom']['materials']['advisor']['button'] = 'Go to Module';
        
    $GLOBALS['TL_LANG']['custom']['materials']['carousel']['button']['next'] = 'Next';
        
    $GLOBALS['TL_LANG']['custom']['materials']['carousel']['button']['previous'] = 'Previous';
        
    $GLOBALS['TL_LANG']['custom']['materials']['completed'] = 'Completed';
        
    $GLOBALS['TL_LANG']['custom']['materials']['hint'] = 'You need to complete the questionnaires before you can access materials. Please click on this link to complete the questionnaires.';
        
    $GLOBALS['TL_LANG']['custom']['materials']['locked'] = 'Please click here to complete the questionnaires and unlock the materials.';
        
    $GLOBALS['TL_LANG']['custom']['materials']['module']['bookmark']['button']['add'] = 'Bookmark this module';
        
    $GLOBALS['TL_LANG']['custom']['materials']['module']['bookmark']['button']['delete'] = 'Remove Bookmark';
        
    $GLOBALS['TL_LANG']['custom']['materials']['module']['library']['image']['alt'] = 'Image of';
        
    $GLOBALS['TL_LANG']['custom']['materials']['module']['library']['navigation']['modules'] = 'Modules';
        
    $GLOBALS['TL_LANG']['custom']['materials']['module']['library']['navigation']['videos'] = 'Videos';
        
    $GLOBALS['TL_LANG']['custom']['materials']['module']['modal']['completed']['title'] = 'Module completed!';
        
    $GLOBALS['TL_LANG']['custom']['materials']['module']['modal']['completed']['button']['0'] = 'Continue';
        
    $GLOBALS['TL_LANG']['custom']['materials']['module']['modal']['completed']['button']['1'] = 'Return to Module Overview';
        
    $GLOBALS['TL_LANG']['custom']['materials']['module']['modal']['completed']['message'] = 'Thank you for taking the time to learn about mental health in the workplace – click <a href="%s">here</a> to see what else you can learn!';
        
    $GLOBALS['TL_LANG']['custom']['materials']['module']['modal']['locked']['link'] = 'To the questionnaires';
        
    $GLOBALS['TL_LANG']['custom']['materials']['module']['modal']['locked']['text'] = 'You need to complete the questionnaires before you can access the materials. Please click on the link below to complete the questionnaires.';
        
    $GLOBALS['TL_LANG']['custom']['materials']['module']['modal']['locked']['title'] = 'Please complete the questionnaires to unlock all the modules!';
        
    $GLOBALS['TL_LANG']['custom']['materials']['module']['modal']['started']['message'] = 'Started and not finished Parts';
        
    $GLOBALS['TL_LANG']['custom']['materials']['module']['name']['additional-resources'] = 'additional-resources';
        
    $GLOBALS['TL_LANG']['custom']['materials']['module']['name']['how-to-communicate-about-mental-health-difficulties'] = 'how-to-communicate-about-mental-health-difficulties';
        
    $GLOBALS['TL_LANG']['custom']['materials']['module']['name']['supervisor-toolkit-creating-mentally-healthy-workplaces'] = 'supervisor-toolkit-creating-mentally-healthy-workplaces';
        
    $GLOBALS['TL_LANG']['custom']['materials']['module']['name']['supervisor-toolkit-how-to-address-mental-illness-in-the-workplace'] = 'supervisor-toolkit-how-to-address-mental-illness-in-the-workplace';
        
    $GLOBALS['TL_LANG']['custom']['materials']['module']['name']['test-your-knowledge-depression-and-anxiety'] = 'test-your-knowledge-depression-and-anxiety';
        
    $GLOBALS['TL_LANG']['custom']['materials']['module']['name']['toolkit-mental-wellbeing-and-stress-management'] = 'toolkit-mental-wellbeing-and-stress-management';
        
    $GLOBALS['TL_LANG']['custom']['materials']['module']['name']['toolkit-supporting-each-other-at-work'] = 'toolkit-supporting-each-other-at-work';
        
    $GLOBALS['TL_LANG']['custom']['materials']['module']['name']['what-is-anxiety'] = 'what-is-anxiety';
        
    $GLOBALS['TL_LANG']['custom']['materials']['module']['name']['what-is-depression'] = 'what-is-depression';
        
    $GLOBALS['TL_LANG']['custom']['materials']['module']['name']['what-is-mental-wellbeing-stress-and-burnout'] = 'what-is-mental-wellbeing-stress-and-burnout';
        
    $GLOBALS['TL_LANG']['custom']['materials']['module']['overview']['completed'] = 'Gone through';
        
    $GLOBALS['TL_LANG']['custom']['materials']['module']['rating']['button'] = 'Rate this module!';
        
    $GLOBALS['TL_LANG']['custom']['materials']['module']['rating']['no'] = 'There are no ratings for this module yet.';
        
    $GLOBALS['TL_LANG']['custom']['materials']['module']['rating']['text'] = 'Rated by';
        
        
    $GLOBALS['TL_LANG']['custom']['navigation']['header']['userbar']['link'] = 'Champion Area';
        
    $GLOBALS['TL_LANG']['custom']['navigation']['modal']['close'] = 'Close';
        
    $GLOBALS['TL_LANG']['custom']['navigation']['modal']['language']['al'] = 'Albanian';
        
    $GLOBALS['TL_LANG']['custom']['navigation']['modal']['language']['de'] = 'German';
        
    $GLOBALS['TL_LANG']['custom']['navigation']['modal']['language']['en'] = 'English';
        
    $GLOBALS['TL_LANG']['custom']['navigation']['modal']['language']['es'] = 'Spanish';
        
    $GLOBALS['TL_LANG']['custom']['navigation']['modal']['language']['hu'] = 'Hungarian';
        
    $GLOBALS['TL_LANG']['custom']['navigation']['modal']['language']['nl'] = 'Dutch';
        
    $GLOBALS['TL_LANG']['custom']['navigation']['modal']['language']['xk'] = 'Albanian Kosova';
        
    $GLOBALS['TL_LANG']['custom']['navigation']['modal']['title'] = 'Choose your Language';
        
    $GLOBALS['TL_LANG']['custom']['navigation']['step'] = 'Step';
        
        
    $GLOBALS['TL_LANG']['custom']['news']['footer']['project']['contact'] = 'For further inquiries please contact: ';
        
    $GLOBALS['TL_LANG']['custom']['news']['footer']['project']['description'] = '';
        
    $GLOBALS['TL_LANG']['custom']['news']['footer']['project']['description']['funding'] = 'This project has received funding ';
        
    $GLOBALS['TL_LANG']['custom']['news']['footer']['project']['more'] = 'Learn more about';
        
    $GLOBALS['TL_LANG']['custom']['news']['more'] = 'Read further';
        
        
    $GLOBALS['TL_LANG']['custom']['page']['about']['name'] = 'about';
        
    $GLOBALS['TL_LANG']['custom']['page']['activation']['name'] = 'activation';
        
    $GLOBALS['TL_LANG']['custom']['page']['additional-resources']['name'] = 'additional-resources';
        
    $GLOBALS['TL_LANG']['custom']['page']['advisor']['name'] = 'advisor';
        
    $GLOBALS['TL_LANG']['custom']['page']['champion-area']['name'] = 'champion-area';
        
    $GLOBALS['TL_LANG']['custom']['page']['construction']['name'] = 'construction';
        
    $GLOBALS['TL_LANG']['custom']['page']['contact']['name'] = 'contact';
        
    $GLOBALS['TL_LANG']['custom']['page']['data-privacy']['name'] = 'data-privacy';
        
    $GLOBALS['TL_LANG']['custom']['page']['disclaimer']['name'] = 'disclaimer';
        
    $GLOBALS['TL_LANG']['custom']['page']['generic']['name'] = 'generic';
        
    $GLOBALS['TL_LANG']['custom']['page']['healthcare']['name'] = 'healthcare';
        
    $GLOBALS['TL_LANG']['custom']['page']['helplines']['name'] = 'helplines';
        
    $GLOBALS['TL_LANG']['custom']['page']['ict']['name'] = 'ict';
        
    $GLOBALS['TL_LANG']['custom']['page']['imprint']['name'] = 'imprint';
        
    $GLOBALS['TL_LANG']['custom']['page']['index']['name'] = 'index';
        
    $GLOBALS['TL_LANG']['custom']['page']['materials']['name'] = 'materials';
        
    $GLOBALS['TL_LANG']['custom']['page']['message']['name'] = 'message';
        
    $GLOBALS['TL_LANG']['custom']['page']['module-library']['name'] = 'module-library';
        
    $GLOBALS['TL_LANG']['custom']['page']['my']['name'] = 'my';
        
    $GLOBALS['TL_LANG']['custom']['page']['news']['name'] = 'news';
        
    $GLOBALS['TL_LANG']['custom']['page']['news-archive']['name'] = 'news-archive';
        
    $GLOBALS['TL_LANG']['custom']['page']['news-article']['name'] = 'news-article';
        
    $GLOBALS['TL_LANG']['custom']['page']['newsletter']['name'] = 'newsletter';
        
    $GLOBALS['TL_LANG']['custom']['page']['newsletter-cancelation']['name'] = 'newsletter-cancelation';
        
    $GLOBALS['TL_LANG']['custom']['page']['newsletter-subscription']['name'] = 'newsletter-subscription';
        
    $GLOBALS['TL_LANG']['custom']['page']['search']['name'] = 'search';
        
        
    $GLOBALS['TL_LANG']['custom']['profile']['completed']['text'] = 'You have not yet completed any modules. Please go to %s and select a module to get started!';
        
    $GLOBALS['TL_LANG']['custom']['profile']['completed']['title'] = 'Completed Modules';
        
    $GLOBALS['TL_LANG']['custom']['profile']['favourite']['text'] = 'You don\'t have any favourite modules yet. To mark a favourite module, please go to a module and click %s in the top right corner.';
        
    $GLOBALS['TL_LANG']['custom']['profile']['favourite']['title'] = 'Favourite Modules';
        
    $GLOBALS['TL_LANG']['custom']['profile']['map']['button']  = 'Progress Map';
        
    $GLOBALS['TL_LANG']['custom']['profile']['map']['error'] = 'Sorry, your browser does not support SVG.';
        
    $GLOBALS['TL_LANG']['custom']['profile']['map']['modal']['title'] = 'Progress Overview';
        
    $GLOBALS['TL_LANG']['custom']['profile']['overview']['text'] = 'For an overview of all materials, please to go the <a href="%s">materials section</a>.';
        
    $GLOBALS['TL_LANG']['custom']['profile']['overview']['title'] = 'Module Overview';
        
    $GLOBALS['TL_LANG']['custom']['profile']['started']['chapters'] = 'Parts remaining';
        
    $GLOBALS['TL_LANG']['custom']['profile']['started']['modules'] = 'Modules done';
        
    $GLOBALS['TL_LANG']['custom']['profile']['started']['progress'] = 'Parts done';
        
    $GLOBALS['TL_LANG']['custom']['profile']['started']['text'] = 'You have not yet started any modules. Please go to %s and select a module to get started!';
        
    $GLOBALS['TL_LANG']['custom']['profile']['started']['title'] = 'Started Modules';
        
        
    $GLOBALS['TL_LANG']['custom']['sector']['construction']['name'] = 'Construction';
        
    $GLOBALS['TL_LANG']['custom']['sector']['construction']['description'] = 'In this section, you will find learning tools designed for people working in Construction.';
        
    $GLOBALS['TL_LANG']['custom']['sector']['description']['1'] = 'In this section, you will find learning tools designed for people working in';
        
    $GLOBALS['TL_LANG']['custom']['sector']['description']['2'] = '';
        
    $GLOBALS['TL_LANG']['custom']['sector']['generic']['name'] = 'Generic';
        
    $GLOBALS['TL_LANG']['custom']['sector']['healthcare']['name'] = 'Healthcare';
        
    $GLOBALS['TL_LANG']['custom']['sector']['healthcare']['description'] = 'In this section, you will find learning tools designed for people working in Healthcare.';
        
    $GLOBALS['TL_LANG']['custom']['sector']['ict']['name'] = 'ICT';
        
    $GLOBALS['TL_LANG']['custom']['sector']['ict']['description'] = 'In this section, you will find learning tools designed for people working in ICT.';
        
    $GLOBALS['TL_LANG']['custom']['sector']['name'] = 'Sector';

        
    $GLOBALS['TL_LANG']['custom']['survey']['mail']['en'] = 'Here will be the survey link.';
        
        
    $GLOBALS['TL_LANG']['custom']['termsofuse']['question']['1']['text'] = 'What is?';
        
    $GLOBALS['TL_LANG']['custom']['termsofuse']['question']['1']['answer'] = 'is an online portal of learning tools that seek to improve mental health in Small and Medium Enterprises (SMEs) in the construction, health and ICT sectors. The interventions are developed by the.';
        
    $GLOBALS['TL_LANG']['custom']['termsofuse']['question']['2']['text'] = 'Do I need to pay?';
        
    $GLOBALS['TL_LANG']['custom']['termsofuse']['question']['2']['answer'] = 'No, free of charge.';
        
    $GLOBALS['TL_LANG']['custom']['termsofuse']['question']['3']['text'] = 'Can I cancel my registration?';
        
    $GLOBALS['TL_LANG']['custom']['termsofuse']['question']['3']['answer'] = 'Yes, you can cancel your registration at any time and are not required to provide a reason(s). If you wish to cancel your registration, please email your request to.';
        
    $GLOBALS['TL_LANG']['custom']['termsofuse']['question']['4']['text'] = 'Where can I get further information?';
        
    $GLOBALS['TL_LANG']['custom']['termsofuse']['question']['4']['answer'] = 'Please refer to the Data Privacy Statement for details about privacy and data. For further information, email . If you require help or it is an emergency, please contact <a title="Helplines" href="en/helplines">helplines</a>.';
        
    $GLOBALS['TL_LANG']['custom']['termsofuse']['question']['5']['text'] = 'Terms of Use';
        
    $GLOBALS['TL_LANG']['custom']['termsofuse']['question']['5']['answer'] = "For users, the following terms of use apply:";
        
    $GLOBALS['TL_LANG']['custom']['termsofuse']['note'] = 'Should you have further questions about Terms of Use please email.';
        
        
    $GLOBALS['TL_LANG']['custom']['usergroup']['employee']['name'] = 'Employees';
        
    $GLOBALS['TL_LANG']['custom']['usergroup']['employees']['name'] = 'Employees';
        
    $GLOBALS['TL_LANG']['custom']['usergroup']['employee-without-any-supervisory-tasks']['name'] = 'Employee';
        
    $GLOBALS['TL_LANG']['custom']['usergroup']['leader']['name'] = 'Leaders';
        
    $GLOBALS['TL_LANG']['custom']['usergroup']['leaders']['name'] = 'Leaders';
        
    $GLOBALS['TL_LANG']['custom']['usergroup']['manager']['name'] = 'Leader';
        
    $GLOBALS['TL_LANG']['custom']['usergroup']['owner-or-co-owner']['name'] = 'Leader';
        
    $GLOBALS['TL_LANG']['custom']['usergroup']['supervisor']['name'] = 'Leader';
        
        
    $GLOBALS['TL_LANG']['ERR']['accountLocked'] = 'Sorry, because of too many failed attempts, your account is locked for %d minutes.';
        
    $GLOBALS['TL_LANG']['ERR']['subscribed'] = 'You have already subscribed to the  Newsletter.';
        
    $GLOBALS['TL_LANG']['ERR']['unsubscribed'] = 'Your Email address is not registered to receive the  Newsletter.';

  8. #8
    Contao-Nutzer
    Registriert seit
    17.01.2020.
    Beiträge
    104

    Standard

    Ich habe den Fehler jetzt gefunden bzw. habe diesen sichtbar vor mir, aber leider finde ich noch keine Lösung.

    Ich habe die Variable
    PHP-Code:
    $GLOBALS['TL_LANG']['custom'
    ausgeben lassen und dort steht der String "Advisor", obwohl es ein Array sein "müsste". Für die deutsche Übersetzung steht dort als Wert "Bdvisor", obwohl ich in meiner Übersetzungsdatei einen anderen Wert drin stehen habe. Dieses "Bdvisor" kann ich auch nirgendswo anders auffinden, in keiner Übersetzungsdatei ist dieser Wert vorhanden. Eine Idee, woran das liegen könnte, dass genau diese Variable als String und nicht als Array verwendet wird und warum dort ein Wert drin steht, der in keiner Übersetzungsdatei vorhanden ist?

  9. #9
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    30.320
    Partner-ID
    10107

    Standard

    Ich vermute irgendwo steht
    PHP-Code:
    $GLOBALS['TL_LANG']['custom'] = 'Advisor'
    und irgendwo anders steht sowas wie
    PHP-Code:
    $GLOBALS['TL_LANG']['custom'][0] = 'B…'
    » sponsor me via GitHub or PayPal or Revolut

  10. #10
    Contao-Nutzer
    Registriert seit
    17.01.2020.
    Beiträge
    104

    Standard

    Dann muss ich mal alle Files durchsuchen lassen, ob dort dieser Wert auftritt oder nicht.

    Ich habe zumindest eine Übergangslösung gefunden:
    PHP-Code:
    $GLOBALS['TL_LANG']['custom']['advisor'] = array(
            
    'header' => array('text' => 'Berater:in')
        ); 

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Lesezeichen

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •