Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/metabase/metabase. Pull mirroring updated .
  1. May 13, 2019
  2. Dec 12, 2018
  3. Nov 17, 2018
  4. Oct 29, 2018
  5. Oct 10, 2018
  6. Sep 10, 2018
    • Ryan Senior's avatar
      Add UserLocalizedString and SystemLocalizedString for i18n · 96b77169
      Ryan Senior authored
      Currently i18n'd strings that are defined at compile time only return
      english text. This occurs with both system and user locale
      strings. For system locale, the locale can be changed via setting, so
      we can't rely on the JVM locale on startup to be correct as it may
      have changed. For the user locale, it could be different for every
      request.
      
      This commit adds two new `tru` and `trs` macros that have the same
      name as the `puppetlabs.i18n.core` macros (and thus will be extracted
      similarly) but will return a defrecord with a `toString` method. This
      delays the conversion of the english text to the translated text until
      `str` is invoked. All of the code hasn't been flipped to use the new
      i18n macros yet, but this gets it in place and tested for the rest of
      the application to be migrated to.
      
      Fixes #8245
      96b77169
  7. Nov 14, 2017
  8. Aug 07, 2017
  9. Jul 31, 2017
  10. May 31, 2017
  11. Apr 24, 2017
  12. Feb 22, 2017
  13. Feb 09, 2017
  14. Jan 24, 2017
  15. Aug 22, 2016
  16. Jul 26, 2016
  17. Jul 18, 2016
  18. Jun 06, 2016
  19. Apr 27, 2016
  20. Feb 15, 2016
  21. Feb 11, 2016
  22. Aug 28, 2015
  23. Aug 03, 2015
  24. Jul 24, 2015
  25. Mar 19, 2015
Loading