Skip to content

Commit

Permalink
Merge pull request #1103 from MonsterObserver/consistent-text
Browse files Browse the repository at this point in the history
Change strings to title case and remove periods
  • Loading branch information
alainm23 authored Jan 14, 2024
2 parents b0d21d7 + 30e73a5 commit fb50d88
Show file tree
Hide file tree
Showing 24 changed files with 93 additions and 93 deletions.
16 changes: 8 additions & 8 deletions data/resources/ui/shortcuts.ui
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,32 @@
<property name="max-height">12</property>
<child>
<object class="GtkShortcutsGroup" id="used-anywhere">
<property name="title" translatable="yes" context="shortcut window">Used anywhere</property>
<property name="title" translatable="yes" context="shortcut window">Used Anywhere</property>
<child>
<object class="GtkShortcutsShortcut" id="create-task">
<property name="accelerator">a</property>
<property name="title" translatable="yes" context="shortcut window">Create a new task</property>
<property name="title" translatable="yes" context="shortcut window">Create a New Task</property>
</object>
</child>

<child>
<object class="GtkShortcutsShortcut" id="paste-task">
<property name="accelerator">&lt;ctrl&gt;v</property>
<property name="title" translatable="yes" context="shortcut window">Paste plain text to create new task</property>
<property name="title" translatable="yes" context="shortcut window">Paste Plain Text to Create New Task</property>
</object>
</child>

<child>
<object class="GtkShortcutsShortcut" id="create-project">
<property name="accelerator">p</property>
<property name="title" translatable="yes" context="shortcut window">Create a new project</property>
<property name="title" translatable="yes" context="shortcut window">Create a New Project</property>
</object>
</child>

<child>
<object class="GtkShortcutsShortcut" id="create-section">
<property name="accelerator">s</property>
<property name="title" translatable="yes" context="shortcut window">Create a new section in a project</property>
<property name="title" translatable="yes" context="shortcut window">Create a New Section in a Project</property>
</object>
</child>
</object>
Expand All @@ -54,7 +54,7 @@

<child>
<object class="GtkShortcutsGroup" id="control-windows">
<property name="title" translatable="yes" context="shortcut window">Control windows</property>
<property name="title" translatable="yes" context="shortcut window">Control Windows</property>
<child>
<object class="GtkShortcutsShortcut" id="quit">
<property name="accelerator">&lt;ctrl&gt;q</property>
Expand All @@ -65,14 +65,14 @@
<child>
<object class="GtkShortcutsShortcut" id="open-preferences">
<property name="accelerator">&lt;ctrl&gt;comma</property>
<property name="title" translatable="yes" context="shortcut window">Open preferences</property>
<property name="title" translatable="yes" context="shortcut window">Open Preferences</property>
</object>
</child>

<child>
<object class="GtkShortcutsShortcut" id="show-hide-sidebar">
<property name="accelerator">m</property>
<property name="title" translatable="yes" context="shortcut window">Show/hide Sidebar</property>
<property name="title" translatable="yes" context="shortcut window">Toggle Sidebar</property>
</object>
</child>

Expand Down
2 changes: 1 addition & 1 deletion src/App.vala
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public class Planify : Adw.Application {

if (clear_database) {
Util.get_default ().clear_database (_("Are you sure you want to reset all?"),
_("The process removes all stored information without the possibility of undoing it."),
_("The process removes all stored information without the possibility of undoing it"),
main_window);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Dialogs/DatePicker.vala
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public class Dialogs.DatePicker : Adw.Window {
var tomorrow_item = new Widgets.ContextMenu.MenuItem (_("Tomorrow"), "planner-scheduled");
tomorrow_item.secondary_text = new GLib.DateTime.now_local ().add_days (1).format ("%a");

var next_week_item = new Widgets.ContextMenu.MenuItem (_("Next week"), "planner-scheduled");
var next_week_item = new Widgets.ContextMenu.MenuItem (_("Next Week"), "planner-scheduled");
next_week_item.secondary_text = Util.get_default ().get_relative_date_from_date (
Util.get_default ().get_format_date (new GLib.DateTime.now_local ().add_days (7))
);
Expand Down
2 changes: 1 addition & 1 deletion src/Dialogs/GoogleOAuth.vala
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public class Dialogs.GoogleOAuth : Adw.Window {
margin_top = 6
};

var sync_label = new Gtk.Label (_("Planner is sync your tasks, this may take a few minutes."));
var sync_label = new Gtk.Label (_("Planner is sync your tasks, this may take a few minutes"));
sync_label.wrap = true;
sync_label.justify = Gtk.Justification.CENTER;
sync_label.margin_top = 12;
Expand Down
2 changes: 1 addition & 1 deletion src/Dialogs/Label.vala
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public class Dialogs.Label : Adw.Window {
color_group.add_css_class (Granite.STYLE_CLASS_CARD);
color_group.attach (color_picker_row, 0, 0);

submit_button = new Widgets.LoadingButton.with_label (is_creating ? _("Add label") : _("Update label")) {
submit_button = new Widgets.LoadingButton.with_label (is_creating ? _("Add Label") : _("Update Label")) {
vexpand = true,
hexpand = true,
margin_bottom = 12,
Expand Down
6 changes: 3 additions & 3 deletions src/Dialogs/Preferences/Pages/Backup.vala
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ public class Dialogs.Preferences.Pages.Backup : Adw.Bin {
margin_start = 6
};

var add_button = new Gtk.Button.with_label (_("Create backup")) {
var add_button = new Gtk.Button.with_label (_("Create Backup")) {
margin_top = 12
};

var import_button = new Gtk.Button.with_label (_("Import backup"));
var import_button = new Gtk.Button.with_label (_("Import Backup"));

var backups_group = new Layouts.HeaderItem (_("Backups files")) {
var backups_group = new Layouts.HeaderItem (_("Backup Files")) {
margin_top = 12,
reveal = true
};
Expand Down
4 changes: 2 additions & 2 deletions src/Dialogs/Preferences/Pages/Sidebar.vala
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class Dialogs.Preferences.Pages.Sidebar : Adw.Bin {
construct {
var settings_header = new Dialogs.Preferences.SettingsHeader (_("Sidebar"));

var views_group = new Layouts.HeaderItem (_("Show in sidebar")) {
var views_group = new Layouts.HeaderItem (_("Show in Sidebar")) {
separator_lines = true,
listbox_no_margin = true,
box_shadow = true,
Expand All @@ -52,7 +52,7 @@ public class Dialogs.Preferences.Pages.Sidebar : Adw.Bin {
};

var show_count_row = new Adw.ActionRow ();
show_count_row.title = _("Show task count");
show_count_row.title = _("Show Task Count");
show_count_row.set_activatable_widget (show_count_switch);
show_count_row.add_suffix (show_count_switch);

Expand Down
Loading

1 comment on commit fb50d88

@alainm23
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, it's done, thank you.

Please sign in to comment.