1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
qTox/translations
Anthony Bilinski 7c519c3895
refactor(main): Move main global state into new AppManager class
main() couldn't hold its own state since cleanup() needed access to it.
Having the state in a class allows QApplication::aboutToQuit to call
into a member function with access to the state.

Data used in logging still needs to be global due to
qInstallMessageHandler not accepting a void* to get back to this.

Set QGuiApplication attributes before constructing Qapplication as required,
by using comma operator to call an initialization function before construction
all members in the member initializer list.

Keep logic largely unchanged, but with a defined destruction order.

Destruction is still abnormal due to QApplication::aboutToQuit forcing
us to do partial cleanup before QApplication returns, since some OSes
will kill qTox before the QApplication returns.
2022-05-24 13:26:48 -07:00
..
ar.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
be.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
ber.ts chore(l10n): update translations from Weblate 2021-03-04 04:43:46 -08:00
bg.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
CMakeLists.txt feat(i18n): Handle English plural forms in translations 2022-02-23 21:12:16 -08:00
cs.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
da.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
de.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
el.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
en.ts feat(i18n): Handle English plural forms in translations 2022-02-23 21:12:16 -08:00
eo.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
es.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
et.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
fa.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
fi.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
fr.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
gl.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
he.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
hr.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
hu.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
i18n.pri feat(i18n): Handle English plural forms in translations 2022-02-23 21:12:16 -08:00
is.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
it.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
ja.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
jbo.ts chore(i18n): update translation files for Weblate 2019-08-28 21:09:15 -07:00
kn.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
ko.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
lt.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
lv.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
mk.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
nl_BE.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
nl.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
no_nb.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
pl.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
pr.ts chore(i18n): update translation files for Weblate 2019-08-28 21:09:15 -07:00
pt_BR.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
pt.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
README.md feat(i18n): Handle English plural forms in translations 2022-02-23 21:12:16 -08:00
ro.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
ru.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
si.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
sk.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
sl.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
sq.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
sr_Latn.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
sr.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
sv.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
sw.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
ta.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
tr.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
translations.qrc feat(i18n): Handle English plural forms in translations 2022-02-23 21:12:16 -08:00
ug.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
uk.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
ur.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
zh_CN.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00
zh_TW.ts refactor(main): Move main global state into new AppManager class 2022-05-24 13:26:48 -07:00