summaryrefslogtreecommitdiff
path: root/src/prefs.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-23 21:40:41 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-23 21:40:41 +0200
commitbb9a22212f83e55ebaf601a65251ccb3caf86fab (patch)
tree166aa0e7a0351b7a68d40e65b2a61afa0da51d37 /src/prefs.c
parent35496f8a9c9cc0098210349d5c7fda3492ffd9c8 (diff)
UI language preference; switching at runtime
IssueID #192
Diffstat (limited to 'src/prefs.c')
-rw-r--r--src/prefs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/prefs.c b/src/prefs.c
index a4f12e20..119dfd56 100644
--- a/src/prefs.c
+++ b/src/prefs.c
@@ -54,6 +54,7 @@ void init_Prefs(iPrefs *d) {
54 d->docThemeDark = colorfulDark_GmDocumentTheme; 54 d->docThemeDark = colorfulDark_GmDocumentTheme;
55 d->docThemeLight = white_GmDocumentTheme; 55 d->docThemeLight = white_GmDocumentTheme;
56 d->saturation = 1.0f; 56 d->saturation = 1.0f;
57 initCStr_String(&d->uiLanguage, "en");
57 init_String(&d->caFile); 58 init_String(&d->caFile);
58 init_String(&d->caPath); 59 init_String(&d->caPath);
59 init_String(&d->geminiProxy); 60 init_String(&d->geminiProxy);
@@ -81,4 +82,5 @@ void deinit_Prefs(iPrefs *d) {
81 deinit_String(&d->downloadDir); 82 deinit_String(&d->downloadDir);
82 deinit_String(&d->caPath); 83 deinit_String(&d->caPath);
83 deinit_String(&d->caFile); 84 deinit_String(&d->caFile);
85 deinit_String(&d->uiLanguage);
84} 86}