Translation of dateSearchRanges: changes in custom/... are not taken into account

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • agri
    Member
    • Mar 2021
    • 93

    Translation of dateSearchRanges: changes in custom/... are not taken into account

    [EspoCRM 7.1.9, listsearch on leads list]

    Hi,
    in my installation, dateSearchRanges in listsearch have a typo: "currentMonth": "Aktuelles Monat" should read "currentMonth": "Aktueller Monat".

    To make updatesafe changes, I copied the part dateSearchRanges from application/Espo/Resources/i18n/de_DE/Global.json to /custom/Espo/Custom/Resources/i18n/de_DE/Global.json. There, I changed currentMonth to "Aktueller Monat" saved and cleared cache (!).

    Still, the erroneous entry will show up in the list of dateSearchRanges. After clearing the cache and reloading the page, cache contains the file data/cache/application/languages/de_DE.php. This file now has two parts named dateSearchRanges. One is made of the settings in application/Espo/Resources/i18n/de_DE/Global.json, the second one further down obviously is retrieved form /custom/Espo/Custom/Resources/i18n/de_DE/Global.json. The entry in data/cache/.../de_DE.php looks like this (I did not touch this file but for reading!):

    Code:
    'dateSearchRanges' => [
       'currentMonth' => 'Aktueller Monat'
    ]
    This second part obviously is not taken into account, the list will always show "Aktuelles Monat".

    Kind regards
    Uli
  • shalmaxb
    Senior Member
    • Mar 2015
    • 1632

    #2
    Bezeichnungen kann man korrigieren in Administration->Bezeichnungs-Manager->deine entity und dort etwas suchen, wo die Bezeichnung auftaucht. Custom entties und ihre Felder werden dort automatisch hinzugefügt, man braucht nicht in irgendwelchen Dateien zu suchen.

    Comment

    • agri
      Member
      • Mar 2021
      • 93

      #3
      Danke für den Hinweis. Nach meinem "Gebastel" steht im Bezeichnungsmanager tatsächlich "Aktueller Monat" drin. Trotzdem steht in der Liste unter "Erstellt am" der alte Eintrag "Aktuelles Monat" drin. Und: Ja, ich habe den Cache zwischenzeitlich geleert ...

      Comment


      • shalmaxb
        shalmaxb commented
        Editing a comment
        mal rebuild machen, Browser Cache auch löschen
    • yuri
      Member
      • Mar 2014
      • 8669

      #4
      Please, this is not for bug reports section (aside the wrong translation label).

      To make it right way, use the label manager to change a label. It will create a proper file in custom.
      If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

      Comment

      • agri
        Member
        • Mar 2021
        • 93

        #5
        Originally posted by yuri
        Please, this is not for bug reports section (aside the wrong translation label).

        To make it right way, use the label manager to change a label. It will create a proper file in custom.
        Sorry, I thought, it was a bug!

        Comment

        Working...