Menu

#1845 How to translate the day names in german?

open
nobody
None
1
2019-10-04
2019-10-01
Thomas S.
No

Hi

MRBS version: 1.7.1

I noticed that the translation for the days in the calendar view doesn't work for german (the days are always in enlish).
How can i fix that or do i have to upgrade?

Best,
Thomas

Discussion

  • Campbell Morrison

    The day names should be translated automatically depending on your locale. Your locale is determined automatically from your browser language settings, or else by the setting of $override_locale.

    What are your browser language preferences (the information is on the MRBS Help page)?
    What are $disable_automatic_language_changing, $default_language_tokens and $override_locale set to?

     
    • Thomas S.

      Thomas S. - 2019-10-01

      Hi

      This is v1.7.3 by the way.

      $disable_automatic_language_changing = 1;

      $default_language_tokens = "de";

      $override_locale -> not set

      Cheers

      T

       

      Last edit: Campbell Morrison 2019-10-01
  • Thomas S.

    Thomas S. - 2019-10-01

    Hi

    This is v1.7.3 by the way.

    $disable_automatic_language_changing = 1;

    $default_language_tokens = "de";

    $override_locale -> not set

    Best,
    Thomas

     
  • Campbell Morrison

    Either set

    $disable_automatic_language_changing = false;
    

    This will mean that MRBS will use the preferred language of your users. Or else set

    $override_locale = 'deu';  // if you have a Windows server
    $override_locale = 'de_DE.utf-8';  // if you have a UNIX server
    

    This will mean that MRBS is always in German.

     
  • Thomas S.

    Thomas S. - 2019-10-01

    I set
    $override_locale = 'de_DE.utf-8'; // if you have a UNIX server

    and the result is like before. Everything is in german, except for the days of the week as well as the abbreviations i.e. "Sep" for september.

    I also could not find any translations in the lang.de file

    Best,
    Thomas

     
  • Campbell Morrison

    There are no translations in lang.de because the text comes from the system according to your locale. Have a look in your PHP error logs. Are you getting a message "Server failed to set locale to ..."?

     

    Last edit: Campbell Morrison 2019-10-04
  • Thomas S.

    Thomas S. - 2019-10-04

    Hi

    On my Ubuntu VM i had to enable it:

    sudo locale-gen de_DE.UTF-8
    service apache2 restart

    Then it worked. Thanks a lot!

    Best,
    Thomas

     
MongoDB Logo MongoDB