summaryrefslogtreecommitdiff
path: root/src/ui/util.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-23 06:23:13 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-23 06:23:13 +0200
commit244599398b8fa457a160077513456b4b274d386d (patch)
treecdeebda9ae59386388644cd461cbda541309ab46 /src/ui/util.c
parentde34940c4dd709fa7103c6961cbe8b410638ffdd (diff)
Lang: Applied more string IDs
IssueID #192
Diffstat (limited to 'src/ui/util.c')
-rw-r--r--src/ui/util.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/ui/util.c b/src/ui/util.c
index d68ae738..5a08ec20 100644
--- a/src/ui/util.c
+++ b/src/ui/util.c
@@ -498,7 +498,7 @@ iWidget *makeMenu_Widget(iWidget *parent, const iMenuItem *items, size_t n) {
498 if (deviceType_App() == phone_AppDeviceType) { 498 if (deviceType_App() == phone_AppDeviceType) {
499 addChild_Widget(menu, iClob(makeMenuSeparator_())); 499 addChild_Widget(menu, iClob(makeMenuSeparator_()));
500 addChildFlags_Widget(menu, 500 addChildFlags_Widget(menu,
501 iClob(new_LabelWidget("Cancel", "cancel")), 501 iClob(new_LabelWidget("${cancel}", "cancel")),
502 itemFlags | noBackground_WidgetFlag | frameless_WidgetFlag | 502 itemFlags | noBackground_WidgetFlag | frameless_WidgetFlag |
503 alignLeft_WidgetFlag); 503 alignLeft_WidgetFlag);
504 } 504 }
@@ -937,7 +937,7 @@ static iBool slidePanelHandler_(iWidget *d, const char *cmd) {
937 iWidget *button = pointer_Command(cmd); 937 iWidget *button = pointer_Command(cmd);
938 iWidget *panel = userData_Object(button); 938 iWidget *panel = userData_Object(button);
939 openMenu_Widget(panel, zero_I2()); 939 openMenu_Widget(panel, zero_I2());
940// updateTextCStr_LabelWidget(findWidget_App("panel.back"), ""); 940// updateTextCStr_LabelWidget(findWidget_App("panel.back"), );
941 return iTrue; 941 return iTrue;
942 } 942 }
943 if (equal_Command(cmd, "mouse.clicked") && arg_Command(cmd) && 943 if (equal_Command(cmd, "mouse.clicked") && arg_Command(cmd) &&
@@ -1462,7 +1462,7 @@ void makeFilePath_Widget(iWidget * parent,
1462 addChild_Widget(dlg, iClob(makePadding_Widget(gap_UI))); 1462 addChild_Widget(dlg, iClob(makePadding_Widget(gap_UI)));
1463 iWidget *div = new_Widget(); { 1463 iWidget *div = new_Widget(); {
1464 setFlags_Widget(div, arrangeHorizontal_WidgetFlag | arrangeSize_WidgetFlag, iTrue); 1464 setFlags_Widget(div, arrangeHorizontal_WidgetFlag | arrangeSize_WidgetFlag, iTrue);
1465 addChild_Widget(div, iClob(newKeyMods_LabelWidget("Cancel", SDLK_ESCAPE, 0, "filepath.cancel"))); 1465 addChild_Widget(div, iClob(newKeyMods_LabelWidget("${cancel}", SDLK_ESCAPE, 0, "filepath.cancel")));
1466 addChild_Widget(div, iClob(newKeyMods_LabelWidget(acceptLabel, SDLK_RETURN, 0, "filepath.accept"))); 1466 addChild_Widget(div, iClob(newKeyMods_LabelWidget(acceptLabel, SDLK_RETURN, 0, "filepath.accept")));
1467 } 1467 }
1468 addChild_Widget(dlg, iClob(div)); 1468 addChild_Widget(dlg, iClob(div));
@@ -1566,7 +1566,7 @@ iWidget *makeDialogButtons_Widget(const iMenuItem *actions, size_t numActions) {
1566 addChildFlags_Widget(div, iClob(new_Widget()), expand_WidgetFlag); 1566 addChildFlags_Widget(div, iClob(new_Widget()), expand_WidgetFlag);
1567 continue; 1567 continue;
1568 } 1568 }
1569 if (!iCmpStr(label, "Cancel") && !cmd) { 1569 if (!iCmpStr(label, "${cancel}") && !cmd) {
1570 cmd = "cancel"; 1570 cmd = "cancel";
1571 key = SDLK_ESCAPE; 1571 key = SDLK_ESCAPE;
1572 kmods = 0; 1572 kmods = 0;
@@ -1621,7 +1621,7 @@ iWidget *makeValueInput_Widget(iWidget *parent, const iString *initialValue, con
1621 addChild_Widget( 1621 addChild_Widget(
1622 dlg, 1622 dlg,
1623 iClob(makeDialogButtons_Widget( 1623 iClob(makeDialogButtons_Widget(
1624 (iMenuItem[]){ { "Cancel", 0, 0, NULL }, { acceptLabel, 0, 0, "valueinput.accept" } }, 1624 (iMenuItem[]){ { "${cancel}", 0, 0, NULL }, { acceptLabel, 0, 0, "valueinput.accept" } },
1625 2))); 1625 2)));
1626 finalizeSheet_Widget(dlg); 1626 finalizeSheet_Widget(dlg);
1627 if (parent) { 1627 if (parent) {
@@ -1970,7 +1970,7 @@ iWidget *makePreferences_Widget(void) {
1970 } 1970 }
1971 addChild_Widget(dlg, 1971 addChild_Widget(dlg,
1972 iClob(makeDialogButtons_Widget( 1972 iClob(makeDialogButtons_Widget(
1973 (iMenuItem[]){ { "Dismiss", SDLK_ESCAPE, 0, "prefs.dismiss" } }, 1))); 1973 (iMenuItem[]){ { "${dismiss}", SDLK_ESCAPE, 0, "prefs.dismiss" } }, 1)));
1974 addChild_Widget(get_Window()->root, iClob(dlg)); 1974 addChild_Widget(get_Window()->root, iClob(dlg));
1975 finalizeSheet_Widget(dlg); 1975 finalizeSheet_Widget(dlg);
1976 return dlg; 1976 return dlg;
@@ -2001,7 +2001,7 @@ iWidget *makeBookmarkEditor_Widget(void) {
2001 } 2001 }
2002 addChild_Widget( 2002 addChild_Widget(
2003 dlg, 2003 dlg,
2004 iClob(makeDialogButtons_Widget((iMenuItem[]){ { "Cancel", 0, 0, NULL }, 2004 iClob(makeDialogButtons_Widget((iMenuItem[]){ { "${cancel}", 0, 0, NULL },
2005 { uiTextCaution_ColorEscape "Save Bookmark", 2005 { uiTextCaution_ColorEscape "Save Bookmark",
2006 SDLK_RETURN, 2006 SDLK_RETURN,
2007 KMOD_PRIMARY, 2007 KMOD_PRIMARY,
@@ -2131,7 +2131,7 @@ iWidget *makeFeedSettings_Widget(uint32_t bookmarkId) {
2131 iWidget *buttons = 2131 iWidget *buttons =
2132 addChild_Widget(dlg, 2132 addChild_Widget(dlg,
2133 iClob(makeDialogButtons_Widget( 2133 iClob(makeDialogButtons_Widget(
2134 (iMenuItem[]){ { "Cancel", 0, 0, NULL }, 2134 (iMenuItem[]){ { "${cancel}", 0, 0, NULL },
2135 { bookmarkId ? uiTextCaution_ColorEscape "Save Settings" 2135 { bookmarkId ? uiTextCaution_ColorEscape "Save Settings"
2136 : uiTextCaution_ColorEscape "Subscribe", 2136 : uiTextCaution_ColorEscape "Subscribe",
2137 SDLK_RETURN, 2137 SDLK_RETURN,
@@ -2212,7 +2212,7 @@ iWidget *makeIdentityCreation_Widget(void) {
2212 } 2212 }
2213 addChild_Widget( 2213 addChild_Widget(
2214 dlg, 2214 dlg,
2215 iClob(makeDialogButtons_Widget((iMenuItem[]){ { "Cancel", 0, 0, NULL }, 2215 iClob(makeDialogButtons_Widget((iMenuItem[]){ { "${cancel}", 0, 0, NULL },
2216 { uiTextAction_ColorEscape "Create Identity", 2216 { uiTextAction_ColorEscape "Create Identity",
2217 SDLK_RETURN, 2217 SDLK_RETURN,
2218 KMOD_PRIMARY, 2218 KMOD_PRIMARY,
@@ -2310,7 +2310,7 @@ iWidget *makeTranslation_Widget(iWidget *parent) {
2310 dlg, 2310 dlg,
2311 iClob(makeDialogButtons_Widget( 2311 iClob(makeDialogButtons_Widget(
2312 (iMenuItem[]){ 2312 (iMenuItem[]){
2313 { "Cancel", SDLK_ESCAPE, 0, "translation.cancel" }, 2313 { "${cancel}", SDLK_ESCAPE, 0, "translation.cancel" },
2314 { uiTextAction_ColorEscape "Translate", SDLK_RETURN, 0, "translation.submit" } }, 2314 { uiTextAction_ColorEscape "Translate", SDLK_RETURN, 0, "translation.submit" } },
2315 2))); 2315 2)));
2316 addChild_Widget(parent, iClob(dlg)); 2316 addChild_Widget(parent, iClob(dlg));