Details

    • Fix Priority:
      4
    • Similar Issues:
      Show 5 results 

      Description

      Create a Hook that overrides languages with the following hierarchy (and keys)
      -Language.properties (key1,key2,key3)
      -Language_XX.properties (key1,key2,key3)
      -Language-ext.properties (key2,key3,key4)
      -Language-ext_XX.properties (key2,key3,key4)

      (where XX is a locale like 'it')

      When requesting the 'key1' for the locale XX the returned value is from Language-ext.properties.
      The expected behavior is to read the value for the key1 in Language_XX.properties file.

      The problem is that the current logic merges the two files for the default locale and then for each XX file, it first merges the file with the default keys and then replaces the existing keys for that locale. The result in our case is that when Language-ext_XX.properties is processed, key1 from Language_XX.properties will be overwritten with key1 from the default files.

        Activity

        Hide
        Riccardo Ferrari added a comment -

        It is not supported to override the same locale using multiple files within the same Hook.

        Show
        Riccardo Ferrari added a comment - It is not supported to override the same locale using multiple files within the same Hook.

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 21 weeks, 3 days ago

              Development

                Structure Helper Panel