[tasque] Mark strings for translation (Petr Pulc and Johnny Jacob, #572074)
- From: Sanford Armstrong <sharm src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tasque] Mark strings for translation (Petr Pulc and Johnny Jacob, #572074)
- Date: Sat, 19 Sep 2009 15:24:36 +0000 (UTC)
commit 9c5bf3ca812f8a807763396de74e3d8568f1b68e
Author: Sandy Armstrong <sanfordarmstrong gmail com>
Date: Sat Sep 19 08:20:52 2009 -0700
Mark strings for translation (Petr Pulc and Johnny Jacob, #572074)
src/Application.cs | 3 ++-
src/Backends/Rtm/RtmPreferencesWidget.cs | 21 ++++++++++++++-------
src/PreferencesDialog.cs | 2 +-
src/TaskWindow.cs | 9 ++++++---
4 files changed, 23 insertions(+), 12 deletions(-)
---
diff --git a/src/Application.cs b/src/Application.cs
index 5f151a0..f5aee20 100644
--- a/src/Application.cs
+++ b/src/Application.cs
@@ -536,7 +536,8 @@ namespace Tasque
}
if (sb.Length == 0) {
- trayIcon.Tooltip = "Tasque Rocks";
+ // Translators: This is the status icon's tooltip. When no tasks are overdue, due today, or due tomorrow, it displays this fun message
+ trayIcon.Tooltip = Catalog.GetString ("Tasque Rocks");
return;
}
diff --git a/src/Backends/Rtm/RtmPreferencesWidget.cs b/src/Backends/Rtm/RtmPreferencesWidget.cs
index cc59fbc..fe6097e 100644
--- a/src/Backends/Rtm/RtmPreferencesWidget.cs
+++ b/src/Backends/Rtm/RtmPreferencesWidget.cs
@@ -67,12 +67,16 @@ namespace Tasque.Backends.RtmBackend
authButton.Clicked += OnAuthButtonClicked;
if ( isAuthorized ) {
- statusLabel.Text = "\n\nYou are currently connected";
+ statusLabel.Text = "\n\n" +
+ Catalog.GetString ("You are currently connected");
string userName = Application.Preferences.Get (Preferences.UserNameKey);
if (userName != null && userName.Trim () != string.Empty)
- statusLabel.Text += " as\n" + userName.Trim ();
+ statusLabel.Text = "\n\n" +
+ Catalog.GetString ("You are currently connected as") +
+ "\n" + userName.Trim();
} else {
- statusLabel.Text = Catalog.GetString ("\n\nYou are not connected");
+ statusLabel.Text = "\n\n" +
+ Catalog.GetString ("You are not connected");
authButton.Show();
}
mainVBox.PackStart(statusLabel, false, false, 0);
@@ -118,7 +122,7 @@ namespace Tasque.Backends.RtmBackend
authButton.Label = Catalog.GetString ("Set the default browser and try again");
}
} else if (!isAuthorized && authRequested) {
- authButton.Label = "Processing...";
+ authButton.Label = Catalog.GetString ("Processing...");
try {
rtmBackend.FinishedAuth();
Logger.Debug("Successfully authorized with Remember the Milk");
@@ -128,17 +132,20 @@ namespace Tasque.Backends.RtmBackend
Logger.Debug("Failed to authorize with Remember the Milk");
isAuthorized = false;
authRequested = true;
- authButton.Label = "Failed, Try Again";
+ authButton.Label = Catalog.GetString ("Failed, Try Again");
}
}
if (isAuthorized) {
authButton.Label = Catalog.GetString ("Thank You");
authButton.Sensitive = false;
- statusLabel.Text = Catalog.GetString ("\n\nYou are currently connected");
+ statusLabel.Text = "\n\n" +
+ Catalog.GetString ("You are currently connected");
string userName =
Application.Preferences.Get(Preferences.UserNameKey);
if (userName != null && userName.Trim() != string.Empty)
- statusLabel.Text += " as\n" + userName.Trim();
+ statusLabel.Text = "\n\n" +
+ Catalog.GetString ("You are currently connected as") +
+ "\n" + userName.Trim();
}
}
}
diff --git a/src/PreferencesDialog.cs b/src/PreferencesDialog.cs
index 3fe06b8..6c288cb 100644
--- a/src/PreferencesDialog.cs
+++ b/src/PreferencesDialog.cs
@@ -94,7 +94,7 @@ namespace Tasque
Logger.Debug("Called Preferences Init");
this.Icon = Utilities.GetIcon ("tasque-16", 16);
// Update the window title
- this.Title = string.Format ("Tasque Preferences");
+ this.Title = string.Format (Catalog.GetString ("Tasque Preferences"));
this.VBox.Spacing = 0;
this.VBox.BorderWidth = 0;
diff --git a/src/TaskWindow.cs b/src/TaskWindow.cs
index 26577a3..e51c221 100644
--- a/src/TaskWindow.cs
+++ b/src/TaskWindow.cs
@@ -470,7 +470,9 @@ namespace Tasque
public static bool ShowOriginalStatus ()
{
- status = string.Format ("Tasks loaded: {0}", TaskWindow.lastLoadedTime);
+ // Translators: This status shows the date and time when the task list was last refreshed
+ status = string.Format (Catalog.GetString ("Tasks loaded: {0}"),
+ TaskWindow.lastLoadedTime);
TaskWindow.ShowStatus (status);
return false;
}
@@ -1207,7 +1209,8 @@ namespace Tasque
Logger.Debug("Backend sync finished");
if (Application.Backend.Configured) {
string now = DateTime.Now.ToString ();
- status = string.Format ("Tasks loaded: {0}", now);
+ // Translators: This status shows the date and time when the task list was last refreshed
+ status = string.Format (Catalog.GetString ("Tasks loaded: {0}"), now);
TaskWindow.lastLoadedTime = now;
TaskWindow.ShowStatus (status);
RebuildAddTaskMenu (Application.Backend.Categories);
@@ -1219,7 +1222,7 @@ namespace Tasque
addTaskEntry.ModifyText (Gtk.StateType.Normal, insensitiveColor);
} else {
string status =
- string.Format ("Not connected.");
+ string.Format (Catalog.GetString ("Not connected."));
TaskWindow.ShowStatus (status);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]