Skip to content

Commit

Permalink
Apply clang-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
humdingerb authored and github-actions[bot] committed May 18, 2024
1 parent 6a476ea commit a311503
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
3 changes: 2 additions & 1 deletion src/CurrencyBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ CurrencyBox::Validate(bool alert)
if (alert) {
ShowAlert(B_TRANSLATE_CONTEXT("CapitalBe didn't understand the amount", "TextInput"),
B_TRANSLATE_CONTEXT("There may be a typo or the wrong kind of currency symbol "
"for this account.", "TextInput"));
"for this account.",
"TextInput"));
MakeFocus(true);
}
return false;
Expand Down
14 changes: 8 additions & 6 deletions src/ReportWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,12 +338,13 @@ ReportWindow::MessageReceived(BMessage* msg)
fStartDate = fEndDate;
RenderReport();
} else {
ShowAlert(B_TRANSLATE_CONTEXT("CapitalBe didn't understand the date you entered",
"TextInput"),
ShowAlert(B_TRANSLATE_CONTEXT(
"CapitalBe didn't understand the date you entered", "TextInput"),
B_TRANSLATE_CONTEXT(
"CapitalBe understands lots of different ways of entering dates. "
"Apparently, this wasn't one of them. You'll need to change how you "
"entered this date. Sorry.", "TextInput"));
"entered this date. Sorry.",
"TextInput"));
fStartDateBox->MakeFocus(true);
break;
}
Expand All @@ -363,12 +364,13 @@ ReportWindow::MessageReceived(BMessage* msg)
fStartDate = fEndDate;
RenderReport();
} else {
ShowAlert(B_TRANSLATE_CONTEXT("CapitalBe didn't understand the date you entered",
"TextInput"),
ShowAlert(B_TRANSLATE_CONTEXT(
"CapitalBe didn't understand the date you entered", "TextInput"),
B_TRANSLATE_CONTEXT(
"CapitalBe understands lots of different ways of entering dates. "
"Apparently, this wasn't one of them. You'll need to change how you "
"entered this date. Sorry.", "TextInput"));
"entered this date. Sorry.",
"TextInput"));
fEndDateBox->MakeFocus(true);
break;
}
Expand Down
7 changes: 4 additions & 3 deletions src/ScheduleAddWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,13 @@ ScheduleAddWindow::MessageReceived(BMessage* msg)
BString datestr = fStartDate->Text();
if (datestr.CountChars() < 3 ||
gDefaultLocale.StringToDate(datestr.String(), tempdate) != B_OK) {
ShowAlert(B_TRANSLATE_CONTEXT("CapitalBe didn't understand the date you entered",
"TextInput"),
ShowAlert(B_TRANSLATE_CONTEXT(
"CapitalBe didn't understand the date you entered", "TextInput"),
B_TRANSLATE_CONTEXT(
"CapitalBe understands lots of different ways of entering dates. "
"Apparently, this wasn't one of them. You'll need to change how you "
"entered this date. Sorry.", "TextInput"));
"entered this date. Sorry.",
"TextInput"));
break;
}

Expand Down
6 changes: 4 additions & 2 deletions src/SplitView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,8 @@ SplitView::ValidateSplitAmountField(void)
if (gCurrentLocale.StringToCurrency(fSplitAmount->Text(), amount) != B_OK) {
ShowAlert(B_TRANSLATE_CONTEXT("CapitalBe didn't understand the amount", "TextInput"),
B_TRANSLATE_CONTEXT("There may be a typo or the wrong kind of currency symbol "
"for this account.", "TextInput"));
"for this account.",
"TextInput"));
fSplitAmount->MakeFocus(true);
return false;
} else {
Expand All @@ -630,7 +631,8 @@ SplitView::ValidateSplitItems(void)
fAmount->MakeFocus(true);
ShowAlert(B_TRANSLATE_CONTEXT("CapitalBe didn't understand the amount", "TextInput"),
B_TRANSLATE_CONTEXT("There may be a typo or the wrong kind of currency symbol "
"for this account.", "TextInput"));
"for this account.",
"TextInput"));

return false;
}
Expand Down

0 comments on commit a311503

Please sign in to comment.