Issue Bug Closed

#69125language_alt only works for pibase and extbase plugins

Anonymous 08/17/15, 11:24 updated 01/06/23, 13:48

Description

config.language_alt only seems to work when using the pibase and extbase API (those are at least to only spots within the core that contain the string “language_alt”!) and not when rendering LLL via TS.

Related to #32214

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 8

  1. Riccardo De Contardi commented and changed status New Needs Feedback 11/15/15, 18:41

    Philip, can you tell us if this is still true on 6.2.15 or 7.6 (latest master)? Or can you give instructions about how to reproduce the problem? Thank you!

  2. Anonymous commented 11/16/15, 11:12

    config.language_alt is described in TSref as follows:
    If “config.language” (above) is used, this can be set to another language key which will be used for labels if a label was not found for the main language. For instance a brazil portuguese website might specify “pt” as alternative language which means the portuguese label will be shown if none was available in the main language, brazil portuguese. This feature makes sense if one language is incompletely translated and close to another language.

    The following snippet should result in a dutch translation (since it’s the language_alt for missing german labels) but still shows the english original:

    page.config {
        language         = de
        language_alt     = nl
    }
    
    page.5 = TEXT
    page.5 {
      value = This is English!
      #lang.de = Das ist Deutsch!
      lang.nl = Het is Nederlands!
    }

    If page.5 was a Extbase plugin using fluid translation viewhelpers this would work though.

    I used 6.2.15 when testing the snippet above.

  3. Riccardo De Contardi changed status Needs Feedback New 11/28/15, 21:53

  4. Riccardo De Contardi changed category 06/28/16, 22:49

  5. Riccardo De Contardi commented 02/15/20, 19:02

    This issue seems still present on 10.3.0-dev; tested with the same snippet on comment 2.

  6. Benni Mack changed Related to #67005 03/14/20, 17:15

  7. Benni Mack changed Related to #32214 03/14/20, 17:15

  8. Christian Kuhn commented and changed status New Closed 01/06/23, 13:48

    Closing here: config.language_alt has been removed with v10.