[gnome-break-timer] Add translator comments and remove unused strings.



commit 187842d3336cd0c6c85a4c8337000928cbec20c6
Author: Dylan McCall <dylanmccall ubuntu com>
Date:   Mon Sep 16 17:11:09 2013 -0700

    Add translator comments and remove unused strings.

 helper/break/BreakView.vala              |    1 +
 helper/break/TimerBreakStatusWidget.vala |    1 +
 helper/microbreak/MicroBreakView.vala    |    2 ++
 helper/restbreak/RestBreakView.vala      |    7 ++++++-
 settings/MicroBreakType.vala             |    2 ++
 settings/RestBreakType.vala              |    2 ++
 settings/TimeChooser.vala                |    6 +-----
 settings/TimerBreakType.vala             |    8 +++++---
 8 files changed, 20 insertions(+), 9 deletions(-)
---
diff --git a/helper/break/BreakView.vala b/helper/break/BreakView.vala
index 3d5d622..079d3dc 100644
--- a/helper/break/BreakView.vala
+++ b/helper/break/BreakView.vala
@@ -70,6 +70,7 @@ public abstract class BreakView : UIManager.UIFragment {
                if (this.overlay_is_visible ()) return;
 
                if (this.notifications_can_do ("actions")) {
+                       /* Label for a notification action that shows information about the current break */
                        notification.add_action ("info", _("What should I do?"), 
this.notification_action_info_cb);
                }
                this.show_notification (notification);
diff --git a/helper/break/TimerBreakStatusWidget.vala b/helper/break/TimerBreakStatusWidget.vala
index 208b1b5..77a818a 100644
--- a/helper/break/TimerBreakStatusWidget.vala
+++ b/helper/break/TimerBreakStatusWidget.vala
@@ -52,6 +52,7 @@ public class TimerBreakStatusWidget : Gtk.Grid, IScreenOverlayContent {
 
        private void finished_cb (BreakController.FinishedReason reason) {
                if (reason == BreakController.FinishedReason.SATISFIED) {
+                       /* Break overlay label when a break has been finished */
                        this.timer_label.set_text ( _("Thank you"));
                }
        }
diff --git a/helper/microbreak/MicroBreakView.vala b/helper/microbreak/MicroBreakView.vala
index 5c03f4e..23d505c 100644
--- a/helper/microbreak/MicroBreakView.vala
+++ b/helper/microbreak/MicroBreakView.vala
@@ -36,6 +36,7 @@ public class MicroBreakView : TimerBreakView {
 
        protected new void show_break_notification (Notify.Notification notification) {
                if (this.notifications_can_do ("actions")) {
+                       /* Label for a notification action that will skip the current microbreak */
                        notification.add_action ("skip", _("Skip this one"), 
this.notification_action_skip_cb);
                }
                base.show_break_notification (notification);
@@ -58,6 +59,7 @@ public class MicroBreakView : TimerBreakView {
                        time_since_start);
                var notification = this.build_common_notification (
                        _("Overdue micro break"),
+                       /* %s will be replaced with a string that describes a time interval, such as "2 
minutes", "40 seconds" or "1 hour" */
                        _("You were due to take a micro break %s ago").printf (delay_string),
                        "alarm-symbolic"
                );
diff --git a/helper/restbreak/RestBreakView.vala b/helper/restbreak/RestBreakView.vala
index 339ff53..dd79b5b 100644
--- a/helper/restbreak/RestBreakView.vala
+++ b/helper/restbreak/RestBreakView.vala
@@ -23,6 +23,7 @@ public class RestBreakView : TimerBreakView {
        }
 
        private string[] rest_quotes = {
+               /*
                _("The quieter you become, the more you can hear."),
                _("Knock on the sky and listen to the sound."),
                _("So little time, so little to do."),
@@ -31,6 +32,7 @@ public class RestBreakView : TimerBreakView {
                _("The obstacle is the path."),
                _("No snowflake ever falls in the wrong place."),
                _("The energy of the mind is the essence of life.")
+               */
        };
 
        private int64 original_start_time = 0;
@@ -48,6 +50,7 @@ public class RestBreakView : TimerBreakView {
 
        protected new void show_break_notification (Notify.Notification notification, bool allow_postpone) {
                if (allow_postpone && this.notifications_can_do ("actions")) {
+                       /* Label for a notification action that will delay the current break for a few 
minutes */
                        notification.add_action ("postpone", _("Remind me later"), 
this.notification_action_postpone_cb);
                }
                base.show_break_notification (notification);
@@ -78,7 +81,8 @@ public class RestBreakView : TimerBreakView {
                        time_remaining, start_time);
                var notification = this.build_common_notification (
                        _("Break interrupted"),
-                       _("%s of break remaining").printf (countdown),
+                       /* %s will be replaced with a string that describes a time interval, such as "2 
minutes", "40 seconds" or "1 hour" */
+                       _("%s remaining in your break").printf (countdown),
                        "alarm-symbolic"
                );
                notification.set_urgency (Notify.Urgency.NORMAL);
@@ -92,6 +96,7 @@ public class RestBreakView : TimerBreakView {
                        time_since_start);
                var notification = this.build_common_notification (
                        _("Overdue break"),
+                       /* %s will be replaced with a string that describes a time interval, such as "2 
minutes", "40 seconds" or "1 hour" */
                        _("You were due to take a break %s ago").printf (delay_string),
                        "alarm-symbolic"
                );
diff --git a/settings/MicroBreakType.vala b/settings/MicroBreakType.vala
index 5588283..f0d7ab7 100644
--- a/settings/MicroBreakType.vala
+++ b/settings/MicroBreakType.vala
@@ -38,6 +38,7 @@ public class MicroBreakType : TimerBreakType {
 }
 
 class MicroBreakInfoPanel : BreakInfoPanel {
+       /* %s will be replaced with a string that describes a time interval, such as "2 minutes", "40 
seconds" or "1 hour" */
        const string ACTIVE_DESCRIPTION_FORMAT = 
 _("Take a break from typing and look away from the screen for %s.
 
@@ -73,6 +74,7 @@ class MicroBreakStatusPanel : TimerBreakStatusPanel {
        public MicroBreakStatusPanel (MicroBreakType break_type) {
                base (
                        break_type,
+                       /* Label that explains a countdown timer, which shows a string such as "5 minutes" */
                        _("Your next microbreak is in"),
                        _("It's time for a microbreak")
                );
diff --git a/settings/RestBreakType.vala b/settings/RestBreakType.vala
index d1abdbc..9babc6e 100644
--- a/settings/RestBreakType.vala
+++ b/settings/RestBreakType.vala
@@ -38,6 +38,7 @@ public class RestBreakType : TimerBreakType {
 }
 
 class RestBreakInfoPanel : BreakInfoPanel {
+       /* %s will be replaced with a string that describes a time interval, such as "2 minutes", "40 
seconds" or "1 hour" */
        const string ACTIVE_DESCRIPTION_FORMAT =
 _("Take some time away from the computer. Stretch and move around.
 
@@ -75,6 +76,7 @@ class RestBreakStatusPanel : TimerBreakStatusPanel {
        public RestBreakStatusPanel (RestBreakType break_type) {
                base (
                        break_type,
+                       /* Label that explains a countdown timer, which shows a string such as "30 minutes" */
                        _("Your next full break is in"),
                        _("It's break time")
                );
diff --git a/settings/TimeChooser.vala b/settings/TimeChooser.vala
index 40b5895..8072b69 100644
--- a/settings/TimeChooser.vala
+++ b/settings/TimeChooser.vala
@@ -23,17 +23,13 @@ public class TimeChooser : Gtk.ComboBox {
        
        private const int OPTION_OTHER = -1;
        
-       private string title;
-       
        public int time_seconds { get; set; }
        
        public signal void time_selected (int time);
        
-       public TimeChooser (int[] options, string title) {
+       public TimeChooser (int[] options) {
                Object ();
                
-               this.title = title;
-               
                this.list_store = new Gtk.ListStore (3, typeof (string), typeof (string), typeof (int));
                
                this.set_model (this.list_store);
diff --git a/settings/TimerBreakType.vala b/settings/TimerBreakType.vala
index c612a7a..e0123a1 100644
--- a/settings/TimerBreakType.vala
+++ b/settings/TimerBreakType.vala
@@ -171,19 +171,21 @@ public abstract class TimerBreakSettingsPanel : BreakSettingsPanel {
                details_grid.set_column_spacing (8);
                details_grid.set_row_spacing (8);
                
+               /* Label for the widget to choose how frequently a break occurs. (Choices such as "6 minutes" 
or "45 minutes") */
                var interval_label = new Gtk.Label.with_mnemonic ( _("Every"));
                interval_label.set_halign (Gtk.Align.END);
                details_grid.attach (interval_label, 0, 1, 1, 1);
-               
-               var interval_chooser = new TimeChooser (break_type.interval_options, _("%s frequency").printf 
(title));
+
+               var interval_chooser = new TimeChooser (break_type.interval_options);
                details_grid.attach_next_to (interval_chooser, interval_label, Gtk.PositionType.RIGHT, 1, 1);
                break_type.settings.bind ("interval-seconds", interval_chooser, "time-seconds", 
SettingsBindFlags.DEFAULT);
                
+               /* Label for the widget to choose how long a break lasts when it occurs. (Choices such as "30 
seconds" or "5 minutes") */
                var duration_label = new Gtk.Label.with_mnemonic ( _("For"));
                duration_label.set_halign (Gtk.Align.END);
                details_grid.attach (duration_label, 0, 2, 1, 1);
                
-               var duration_chooser = new TimeChooser (break_type.duration_options, _("%s duration").printf 
(title));
+               var duration_chooser = new TimeChooser (break_type.duration_options);
                details_grid.attach_next_to (duration_chooser, duration_label, Gtk.PositionType.RIGHT, 1, 1);
                break_type.settings.bind ("duration-seconds", duration_chooser, "time-seconds", 
SettingsBindFlags.DEFAULT);
                


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]