Skip to content

Commit

Permalink
tracker report: fix localization for "last 30 days"
Browse files Browse the repository at this point in the history
  • Loading branch information
apparition47 committed May 28, 2024
1 parent e4342fc commit 14c63ab
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 23 deletions.
46 changes: 23 additions & 23 deletions Resources/MTBReportViewController.xib

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Resources/de.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@
"LICENSES" = "Lizenzen";
"HELP" = "Hilfe";
"VERSION" = "Version %@";
"LAST_30_DAYS" = "Letzte 30 Tage";
1 change: 1 addition & 0 deletions Resources/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@
"LICENSES" = "Licenses";
"HELP" = "Help";
"VERSION" = "Version %@";
"LAST_30_DAYS" = "Last 30 days";
1 change: 1 addition & 0 deletions Resources/fr.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@
"LICENSES" = "Licenses";
"HELP" = "Support";
"VERSION" = "Version %@";
"LAST_30_DAYS" = "Les 30 derniers jours";
1 change: 1 addition & 0 deletions Resources/ja.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@
"LICENSES" = "ライセンス";
"HELP" = "お問い合わせ";
"VERSION" = "バージョン%@";
"LAST_30_DAYS" = "過去30日間";
1 change: 1 addition & 0 deletions Resources/nl.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@
"LICENSES" = "Licenties";
"HELP" = "Helpen";
"VERSION" = "Versie %@";
"LAST_30_DAYS" = "Laatste 30 dagen";
1 change: 1 addition & 0 deletions Resources/ru.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@
"LICENSES" = "лицензии";
"HELP" = "помощь";
"VERSION" = "версия %@";
"LAST_30_DAYS" = "Последние 30 дней";
1 change: 1 addition & 0 deletions Resources/sv.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@
"LICENSES" = "Licenser";
"HELP" = "Hjälp";
"VERSION" = "Version %@";
"LAST_30_DAYS" = "Senaste 30 dagarna";
2 changes: 2 additions & 0 deletions Source/MTBReportViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ @interface MTBReportViewController ()
@property (weak) IBOutlet NSButton *faqShowButton;
@property (weak) IBOutlet NSTextField *faqHeaderLabel;
@property (weak) IBOutlet NSTextField *faqDescLabel;
@property (weak) IBOutlet NSTextField *last30DaysLabel;
@property (weak) IBOutlet NSOutlineView *trackerOutlineView;

@property (nonatomic, strong) MTBReportViewModel *viewModel;
Expand Down Expand Up @@ -105,6 +106,7 @@ -(void)setupView {
_mostFreqTrackerLabel.stringValue = @"-";
_faqHeaderLabel.stringValue = MTBLocalizedString(@"WHAT_ARE_TRACKERS");
_faqDescLabel.stringValue = MTBLocalizedString(@"WHAT_ARE_TRACKERS_DESC");
_last30DaysLabel.stringValue = MTBLocalizedString(@"LAST_30_DAYS");

CGFloat height = MIN(838, [NSScreen mainScreen] ? [NSScreen mainScreen].frame.size.height-100 : CGFLOAT_MAX);
preferredContentSize = CGRectMake(0, 0, 656, height).size; // prevent window resize
Expand Down

0 comments on commit 14c63ab

Please sign in to comment.