Skip to content

Commit

Permalink
i18n improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake-Madden committed Jan 19, 2025
1 parent 1796355 commit 1f45a8c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/graphs/sankeydiagram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,10 @@ namespace Wisteria::Graphs
GetGroupLabelDisplay() == BinLabelDisplay::BinName) ?
group.m_label :
(GetGroupLabelDisplay() == BinLabelDisplay::BinNameAndPercentage) ?
wxString::Format(L"%s (%s%%)", group.m_label,
wxString::Format(
// TRANSLATORS: Group label, the percentage value,
// and then percent sign (%%)
_(L"%s (%s%%)"), group.m_label,
wxNumberFormatter::ToString(group.m_percentOfColumn * 100, 0)) :
(GetGroupLabelDisplay() == BinLabelDisplay::BinNameAndValue) ?
wxString::Format(L"%s (%s)", group.m_label,
Expand All @@ -439,7 +442,10 @@ namespace Wisteria::Graphs
wxNumberFormatter::ToString(group.m_frequency, 0,
wxNumberFormatter::Style::Style_WithThousandsSep)) :
(GetGroupLabelDisplay() == BinLabelDisplay::BinValueAndPercentage) ?
wxString::Format(L"%s (%s%%)",
wxString::Format(
// TRANSLATORS: Group frequency, the percentage value,
// and then percent sign (%%)
_(L"%s (%s%%)"),
wxNumberFormatter::ToString(group.m_frequency, 0,
wxNumberFormatter::Style::Style_WithThousandsSep),
wxNumberFormatter::ToString(group.m_percentOfColumn * 100, 0)) :
Expand Down

0 comments on commit 1f45a8c

Please # to comment.