Skip to content
Snippets Groups Projects
  1. Jun 06, 2019
    • Lioncash's avatar
      yuzu/configuration: Make all widgets and dialogs aware of language changes · c09ff382
      Lioncash authored
      To prepare for translation support, this makes all of the widgets
      cognizant of the language change event that occurs whenever
      installTranslator() is called and automatically retranslates their text
      where necessary.
      
      This is important as calling the backing UI's retranslateUi() is often
      not enough, particularly in cases where we add our own strings that
      aren't controlled by it. In that case we need to manually refresh the
      strings ourselves.
      c09ff382
  2. Jun 05, 2019
  3. Dec 26, 2018
    • Lioncash's avatar
      configure_input_simple: Make input profile array constexpr · faa91105
      Lioncash authored
      Calling tr() from a file-scope array isn't advisable, since it can be
      executed before the Qt libraries are even fully initialized, which can
      lead to crashes.
      
      Instead, the translatable strings should be annotated, and the tr()
      function should be called at the string's usage site.
      faa91105
  4. Dec 05, 2018
Loading