diff options
-rw-r--r-- | po/en.po | 3 | ||||
-rw-r--r-- | res/lang/de.bin | bin | 20274 -> 20305 bytes | |||
-rw-r--r-- | res/lang/en.bin | bin | 19023 -> 19054 bytes | |||
-rw-r--r-- | res/lang/es.bin | bin | 20990 -> 21021 bytes | |||
-rw-r--r-- | res/lang/fi.bin | bin | 20964 -> 20995 bytes | |||
-rw-r--r-- | res/lang/fr.bin | bin | 21480 -> 21511 bytes | |||
-rw-r--r-- | res/lang/ia.bin | bin | 21181 -> 21212 bytes | |||
-rw-r--r-- | res/lang/ie.bin | bin | 20352 -> 20383 bytes | |||
-rw-r--r-- | res/lang/pl.bin | bin | 21985 -> 22016 bytes | |||
-rw-r--r-- | res/lang/ru.bin | bin | 32063 -> 32094 bytes | |||
-rw-r--r-- | res/lang/sr.bin | bin | 30642 -> 30673 bytes | |||
-rw-r--r-- | res/lang/tok.bin | bin | 19386 -> 19417 bytes | |||
-rw-r--r-- | res/lang/zh_Hans.bin | bin | 18145 -> 18176 bytes | |||
-rw-r--r-- | res/lang/zh_Hant.bin | bin | 18219 -> 18250 bytes | |||
-rw-r--r-- | src/defs.h | 10 | ||||
-rw-r--r-- | src/ui/documentwidget.c | 9 | ||||
-rw-r--r-- | src/ui/util.c | 17 |
17 files changed, 33 insertions, 6 deletions
@@ -640,6 +640,9 @@ msgstr "Copy Fingerprint" | |||
640 | msgid "dlg.input.prompt" | 640 | msgid "dlg.input.prompt" |
641 | msgstr "Please enter input for %s:" | 641 | msgstr "Please enter input for %s:" |
642 | 642 | ||
643 | msgid "dlg.input.linebreak" | ||
644 | msgstr "Line break" | ||
645 | |||
643 | msgid "dlg.input.send" | 646 | msgid "dlg.input.send" |
644 | msgstr "Send" | 647 | msgstr "Send" |
645 | 648 | ||
diff --git a/res/lang/de.bin b/res/lang/de.bin index 40b255c3..45c01abd 100644 --- a/res/lang/de.bin +++ b/res/lang/de.bin | |||
Binary files differ | |||
diff --git a/res/lang/en.bin b/res/lang/en.bin index 0f13b945..0a9a3c0f 100644 --- a/res/lang/en.bin +++ b/res/lang/en.bin | |||
Binary files differ | |||
diff --git a/res/lang/es.bin b/res/lang/es.bin index bbaf5c21..0d3e80c7 100644 --- a/res/lang/es.bin +++ b/res/lang/es.bin | |||
Binary files differ | |||
diff --git a/res/lang/fi.bin b/res/lang/fi.bin index 385e0162..00039ebd 100644 --- a/res/lang/fi.bin +++ b/res/lang/fi.bin | |||
Binary files differ | |||
diff --git a/res/lang/fr.bin b/res/lang/fr.bin index 6a9e8e85..139f8e51 100644 --- a/res/lang/fr.bin +++ b/res/lang/fr.bin | |||
Binary files differ | |||
diff --git a/res/lang/ia.bin b/res/lang/ia.bin index 43306c8e..e7607899 100644 --- a/res/lang/ia.bin +++ b/res/lang/ia.bin | |||
Binary files differ | |||
diff --git a/res/lang/ie.bin b/res/lang/ie.bin index 6ef9d35e..79b517df 100644 --- a/res/lang/ie.bin +++ b/res/lang/ie.bin | |||
Binary files differ | |||
diff --git a/res/lang/pl.bin b/res/lang/pl.bin index 7af11355..e208f3ba 100644 --- a/res/lang/pl.bin +++ b/res/lang/pl.bin | |||
Binary files differ | |||
diff --git a/res/lang/ru.bin b/res/lang/ru.bin index b771cebd..4e775c94 100644 --- a/res/lang/ru.bin +++ b/res/lang/ru.bin | |||
Binary files differ | |||
diff --git a/res/lang/sr.bin b/res/lang/sr.bin index e52abbb8..19408d1a 100644 --- a/res/lang/sr.bin +++ b/res/lang/sr.bin | |||
Binary files differ | |||
diff --git a/res/lang/tok.bin b/res/lang/tok.bin index d4d08ea9..2d8017cb 100644 --- a/res/lang/tok.bin +++ b/res/lang/tok.bin | |||
Binary files differ | |||
diff --git a/res/lang/zh_Hans.bin b/res/lang/zh_Hans.bin index c7cd1d10..171bd2a8 100644 --- a/res/lang/zh_Hans.bin +++ b/res/lang/zh_Hans.bin | |||
Binary files differ | |||
diff --git a/res/lang/zh_Hant.bin b/res/lang/zh_Hant.bin index b4cc3bf1..6518c7bf 100644 --- a/res/lang/zh_Hant.bin +++ b/res/lang/zh_Hant.bin | |||
Binary files differ | |||
@@ -90,6 +90,16 @@ enum iFileVersion { | |||
90 | #define globe_Icon "\U0001f310" | 90 | #define globe_Icon "\U0001f310" |
91 | #define magnifyingGlass_Icon "\U0001f50d" | 91 | #define magnifyingGlass_Icon "\U0001f50d" |
92 | #define midEllipsis_Icon "\u00b7\u00b7\u00b7" | 92 | #define midEllipsis_Icon "\u00b7\u00b7\u00b7" |
93 | #define return_Icon "\u21a9" | ||
94 | |||
95 | #if defined (iPlatformApple) | ||
96 | # define shift_Icon "\u21e7" | ||
97 | # define shiftReturn_Icon shift_Icon return_Icon | ||
98 | #else | ||
99 | # define shift_Icon "Shift" | ||
100 | # define shiftReturn_Icon shift_Icon " " return_Icon | ||
101 | #endif | ||
102 | |||
93 | 103 | ||
94 | /* UI labels that depend on the platform */ | 104 | /* UI labels that depend on the platform */ |
95 | 105 | ||
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index a467df10..d2a97371 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -1615,7 +1615,14 @@ static void checkResponse_DocumentWidget_(iDocumentWidget *d) { | |||
1615 | : cstr_String(&resp->meta), | 1615 | : cstr_String(&resp->meta), |
1616 | uiTextCaution_ColorEscape "${dlg.input.send}", | 1616 | uiTextCaution_ColorEscape "${dlg.input.send}", |
1617 | format_CStr("!document.input.submit doc:%p", d)); | 1617 | format_CStr("!document.input.submit doc:%p", d)); |
1618 | setId_Widget(addChildPosFlags_Widget(findChild_Widget(dlg, "dialogbuttons"), | 1618 | iWidget *buttons = findChild_Widget(dlg, "dialogbuttons"); |
1619 | iLabelWidget *lineBreak = | ||
1620 | insertChildAfter_Widget(buttons, iClob(new_LabelWidget("${dlg.input.linebreak}" | ||
1621 | uiTextAction_ColorEscape | ||
1622 | " " shiftReturn_Icon, | ||
1623 | NULL)), 0); | ||
1624 | setTextColor_LabelWidget(lineBreak, uiTextDim_ColorId); | ||
1625 | setId_Widget(addChildPosFlags_Widget(buttons, | ||
1619 | iClob(new_LabelWidget("", NULL)), | 1626 | iClob(new_LabelWidget("", NULL)), |
1620 | front_WidgetAddPos, frameless_WidgetFlag), | 1627 | front_WidgetAddPos, frameless_WidgetFlag), |
1621 | "valueinput.counter"); | 1628 | "valueinput.counter"); |
diff --git a/src/ui/util.c b/src/ui/util.c index 7156b445..93afeb4a 100644 --- a/src/ui/util.c +++ b/src/ui/util.c | |||
@@ -80,7 +80,7 @@ void toString_Sym(int key, int kmods, iString *str) { | |||
80 | appendChar_String(str, 0x2325); | 80 | appendChar_String(str, 0x2325); |
81 | } | 81 | } |
82 | if (kmods & KMOD_SHIFT) { | 82 | if (kmods & KMOD_SHIFT) { |
83 | appendChar_String(str, 0x21e7); | 83 | appendCStr_String(str, shift_Icon); |
84 | } | 84 | } |
85 | if (kmods & KMOD_GUI) { | 85 | if (kmods & KMOD_GUI) { |
86 | appendChar_String(str, 0x2318); | 86 | appendChar_String(str, 0x2318); |
@@ -93,7 +93,7 @@ void toString_Sym(int key, int kmods, iString *str) { | |||
93 | appendCStr_String(str, "Alt+"); | 93 | appendCStr_String(str, "Alt+"); |
94 | } | 94 | } |
95 | if (kmods & KMOD_SHIFT) { | 95 | if (kmods & KMOD_SHIFT) { |
96 | appendCStr_String(str, "Shift+"); | 96 | appendCStr_String(str, shift_Icon "+"); |
97 | } | 97 | } |
98 | if (kmods & KMOD_GUI) { | 98 | if (kmods & KMOD_GUI) { |
99 | appendCStr_String(str, "Meta+"); | 99 | appendCStr_String(str, "Meta+"); |
@@ -138,7 +138,7 @@ void toString_Sym(int key, int kmods, iString *str) { | |||
138 | } | 138 | } |
139 | else if (key == SDLK_RETURN) { | 139 | else if (key == SDLK_RETURN) { |
140 | removePlus_(str); | 140 | removePlus_(str); |
141 | appendChar_String(str, 0x21a9); /* Leftwards arrow with a hook */ | 141 | appendCStr_String(str, return_Icon); /* Leftwards arrow with a hook */ |
142 | } | 142 | } |
143 | else { | 143 | else { |
144 | appendCStr_String(str, SDL_GetKeyName(key)); | 144 | appendCStr_String(str, SDL_GetKeyName(key)); |
@@ -904,7 +904,7 @@ static iBool isTabPage_Widget_(const iWidget *tabs, const iWidget *page) { | |||
904 | static void unfocusFocusInsideTabPage_(const iWidget *page) { | 904 | static void unfocusFocusInsideTabPage_(const iWidget *page) { |
905 | iWidget *focus = focus_Widget(); | 905 | iWidget *focus = focus_Widget(); |
906 | if (page && focus && hasParent_Widget(focus, page)) { | 906 | if (page && focus && hasParent_Widget(focus, page)) { |
907 | printf("unfocus inside page: %p\n", focus); | 907 | // printf("unfocus inside page: %p\n", focus); |
908 | setFocus_Widget(NULL); | 908 | setFocus_Widget(NULL); |
909 | } | 909 | } |
910 | } | 910 | } |
@@ -1806,7 +1806,8 @@ static void updateValueInputWidth_(iWidget *dlg) { | |||
1806 | dlg->rect.size.x = rootSize.x; | 1806 | dlg->rect.size.x = rootSize.x; |
1807 | } | 1807 | } |
1808 | else { | 1808 | else { |
1809 | dlg->rect.size.x = iMaxi(iMaxi(rootSize.x / 2, title->rect.size.x), prompt->rect.size.x); | 1809 | dlg->rect.size.x = |
1810 | iMaxi(iMaxi(iMin(rootSize.x, 100 * gap_UI), title->rect.size.x), prompt->rect.size.x); | ||
1810 | } | 1811 | } |
1811 | } | 1812 | } |
1812 | 1813 | ||
@@ -1880,6 +1881,12 @@ iWidget *makeDialogButtons_Widget(const iMenuItem *actions, size_t numActions) { | |||
1880 | if (*label == '*' || *label == '&') { | 1881 | if (*label == '*' || *label == '&') { |
1881 | continue; /* Special value selection items for a Question dialog. */ | 1882 | continue; /* Special value selection items for a Question dialog. */ |
1882 | } | 1883 | } |
1884 | if (startsWith_CStr(label, "```")) { | ||
1885 | /* Annotation. */ | ||
1886 | iLabelWidget *annotation = addChild_Widget(div, iClob(new_LabelWidget(label + 3, NULL))); | ||
1887 | setTextColor_LabelWidget(annotation, uiTextAction_ColorId); | ||
1888 | continue; | ||
1889 | } | ||
1883 | if (!iCmpStr(label, "---")) { | 1890 | if (!iCmpStr(label, "---")) { |
1884 | /* Separator.*/ | 1891 | /* Separator.*/ |
1885 | addChildFlags_Widget(div, iClob(new_Widget()), expand_WidgetFlag); | 1892 | addChildFlags_Widget(div, iClob(new_Widget()), expand_WidgetFlag); |