Mercurial > minori
comparison include/gui/locale.h @ 118:39521c47c7a3
*: another huge megacommit, SORRY
The torrents page works a lot better now
Added the edit option to the anime list right click menu
Vectorized currently playing files
Available player and extensions are now loaded at runtime
from files in (dotpath)/players.json and (dotpath)/extensions.json
These paths are not permanent and will likely be moved to
(dotpath)/recognition
...
...
...
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Tue, 07 Nov 2023 23:40:54 -0500 |
parents | 79714c95a145 |
children | 862d0d8619f6 |
comparison
equal
deleted
inserted
replaced
117:2c1b6782e1d0 | 118:39521c47c7a3 |
---|---|
13 | 13 |
14 class Locale { | 14 class Locale { |
15 public: | 15 public: |
16 Locale(); | 16 Locale(); |
17 Locale(const std::string& name); | 17 Locale(const std::string& name); |
18 QLocale GetLocale(); | 18 QLocale GetLocale() const; |
19 std::vector<QLocale> GetAvailableLocales(); | 19 std::vector<QLocale> GetAvailableLocales() const; |
20 void RefreshAvailableLocales(); // why would this ever be called? | 20 void RefreshAvailableLocales(); // why would this ever be called? |
21 bool IsLocaleAvailable(const QLocale& locale); | 21 bool IsLocaleAvailable(const QLocale& locale) const; |
22 bool SetActiveLocale(const QLocale& locale); | 22 bool SetActiveLocale(const QLocale& locale); |
23 | 23 |
24 private: | 24 private: |
25 bool SwitchTranslator(QTranslator& translator, const QString& name); | 25 bool SwitchTranslator(QTranslator& translator, const QString& name); |
26 | 26 |