diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-26 13:07:48 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-26 13:07:48 +0200 |
commit | 94f45c0fe81f7f18d65a3d701da1c8448027d8b7 (patch) | |
tree | a73127fcb7c84c9378f879a9720a3b7d4711a1aa /src/ui/util.c | |
parent | 8352bfea5bc081c4fd42aa8dc9ad31e3887af08d (diff) |
Cleanup: Omit partially translated "de"
Only show the languages that are currently (more or less) fully translated.
IssueID #192
Diffstat (limited to 'src/ui/util.c')
-rw-r--r-- | src/ui/util.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui/util.c b/src/ui/util.c index ea910eb6..7db2c9bc 100644 --- a/src/ui/util.c +++ b/src/ui/util.c | |||
@@ -1787,10 +1787,12 @@ static void addFontButtons_(iWidget *parent, const char *id) { | |||
1787 | delete_Array(items); | 1787 | delete_Array(items); |
1788 | } | 1788 | } |
1789 | 1789 | ||
1790 | #if 0 | ||
1790 | static int cmp_MenuItem_(const void *e1, const void *e2) { | 1791 | static int cmp_MenuItem_(const void *e1, const void *e2) { |
1791 | const iMenuItem *a = e1, *b = e2; | 1792 | const iMenuItem *a = e1, *b = e2; |
1792 | return iCmpStr(a->label, b->label); | 1793 | return iCmpStr(a->label, b->label); |
1793 | } | 1794 | } |
1795 | #endif | ||
1794 | 1796 | ||
1795 | iWidget *makePreferences_Widget(void) { | 1797 | iWidget *makePreferences_Widget(void) { |
1796 | iWidget *dlg = makeSheet_Widget("prefs"); | 1798 | iWidget *dlg = makeSheet_Widget("prefs"); |
@@ -1828,7 +1830,7 @@ iWidget *makePreferences_Widget(void) { | |||
1828 | /* UI languages. */ { | 1830 | /* UI languages. */ { |
1829 | iArray *uiLangs = collectNew_Array(sizeof(iMenuItem)); | 1831 | iArray *uiLangs = collectNew_Array(sizeof(iMenuItem)); |
1830 | const iMenuItem langItems[] = { | 1832 | const iMenuItem langItems[] = { |
1831 | { "${lang.de} - de", 0, 0, "uilang id:de" }, | 1833 | // { "${lang.de} - de", 0, 0, "uilang id:de" }, |
1832 | { "${lang.en} - en", 0, 0, "uilang id:en" }, | 1834 | { "${lang.en} - en", 0, 0, "uilang id:en" }, |
1833 | { "${lang.fi} - fi", 0, 0, "uilang id:fi" }, | 1835 | { "${lang.fi} - fi", 0, 0, "uilang id:fi" }, |
1834 | { "${lang.ru} - ru", 0, 0, "uilang id:ru" }, | 1836 | { "${lang.ru} - ru", 0, 0, "uilang id:ru" }, |
@@ -1857,6 +1859,8 @@ iWidget *makePreferences_Widget(void) { | |||
1857 | size_Array(uiLangs))), | 1859 | size_Array(uiLangs))), |
1858 | alignLeft_WidgetFlag), | 1860 | alignLeft_WidgetFlag), |
1859 | "prefs.uilang"); | 1861 | "prefs.uilang"); |
1862 | addChild_Widget(headings, iClob(makePadding_Widget(gap_UI))); | ||
1863 | addChild_Widget(values, iClob(makePadding_Widget(gap_UI))); | ||
1860 | } | 1864 | } |
1861 | #if defined (iPlatformApple) || defined (iPlatformMSys) | 1865 | #if defined (iPlatformApple) || defined (iPlatformMSys) |
1862 | addChild_Widget(headings, iClob(makeHeading_Widget("${prefs.ostheme}"))); | 1866 | addChild_Widget(headings, iClob(makeHeading_Widget("${prefs.ostheme}"))); |