Commit 3519f97a authored by Michael Terry's avatar Michael Terry

add some more translation comments

parent 7f3e2402
......@@ -494,16 +494,19 @@ public async string get_nickname (File f)
try {
var info = yield f.query_info_async(FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME,
FileQueryInfoFlags.NOFOLLOW_SYMLINKS);
// Translators: %s is the user's username
// Translators: this is the home folder and %s is the user's username
s = _("Home (%s)").printf(info.get_display_name());
}
catch (Error e) {
warning("%s\n", e.message);
// Translators: this is the home folder
s = _("Home");
}
}
else if (f.equal(trash))
else if (f.equal(trash)) {
// Translators: this is the trash folder
s = _("Trash");
}
else
s = DejaDup.get_display_name(f);
......
......@@ -209,6 +209,7 @@ public class MountOperationAssistant : MountOperation
"text", default_domain);
domain_w.hexpand = true;
domain_w.changed.connect((e) => {check_valid_inputs();});
// Translators: this is a Windows networking domain
label = new Gtk.Label(_("_Domain"));
label.set("mnemonic-widget", domain_w,
"use-underline", true,
......
......@@ -160,12 +160,9 @@ public abstract class StatusIcon : Object
menu = new Gtk.Menu();
if (show_self) {
Gtk.ImageMenuItem imageitem;
imageitem = new Gtk.ImageMenuItem.with_mnemonic(_("Déjà Du_p"));
imageitem.image = new Gtk.Image.from_icon_name("deja-dup-symbolic", Gtk.IconSize.MENU);
imageitem.always_show_image = true;
imageitem.activate.connect((i) => {show_window();});
menu.append(imageitem);
var progressitem = new Gtk.MenuItem.with_mnemonic(_("Show _Progress"));
progressitem.activate.connect((i) => {show_window();});
menu.append(progressitem);
}
if (op.mode == DejaDup.Operation.Mode.BACKUP) {
......
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: mike@mterry.name\n"
"POT-Creation-Date: 2011-09-26 09:13-0400\n"
"POT-Creation-Date: 2011-10-05 21:37-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -18,12 +18,13 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
#. Translators: "Backup" is a noun
#: ../data/deja-dup.desktop.in.h:1 ../data/deja-dup-ccpanel.desktop.in.h:2
#: ../data/deja-dup-preferences.desktop.in.in.h:2 ../deja-dup/Prompt.vala:93
#: ../deja-dup/Prompt.vala:127 ../deja-dup/StatusIcon.vala:125
#: ../deja-dup/StatusIcon.vala:247 ../monitor/monitor.vala:115
#: ../preferences/preferences-main.vala:51
#: ../preferences/preferences-main.vala:63
#: ../deja-dup/StatusIcon.vala:244 ../monitor/monitor.vala:115
#: ../preferences/preferences-main.vala:52
#: ../preferences/preferences-main.vala:64
msgid "Backup"
msgstr ""
......@@ -465,17 +466,19 @@ msgstr ""
msgid "Sign into Ubuntu One…"
msgstr ""
#. Translators: %s is the user's username
#. Translators: this is the home folder and %s is the user's username
#: ../common/CommonUtils.vala:498
#, c-format
msgid "Home (%s)"
msgstr ""
#: ../common/CommonUtils.vala:502
#. Translators: this is the home folder
#: ../common/CommonUtils.vala:503
msgid "Home"
msgstr ""
#: ../common/CommonUtils.vala:506
#. Translators: this is the trash folder
#: ../common/CommonUtils.vala:508
msgid "Trash"
msgstr ""
......@@ -516,37 +519,37 @@ msgstr ""
msgid "Paused (no network)"
msgstr ""
#: ../common/Duplicity.vala:379 ../common/Duplicity.vala:386
#: ../common/Duplicity.vala:405 ../common/Duplicity.vala:410
#: ../common/Duplicity.vala:392 ../common/Duplicity.vala:399
#: ../common/Duplicity.vala:418 ../common/Duplicity.vala:423
#: ../common/Operation.vala:79 ../common/Operation.vala:111
msgid "Preparing…"
msgstr ""
#. Was not even a file path (maybe something goofy like computer://)
#: ../common/Duplicity.vala:437
#: ../common/Duplicity.vala:450
#, c-format
msgid "Could not restore ‘%s’: Not a valid file location"
msgstr ""
#. Tiny backup location. Suggest they get a larger one.
#: ../common/Duplicity.vala:503
#: ../common/Duplicity.vala:516
msgid "Backup location is too small. Try using one with more space."
msgstr ""
#: ../common/Duplicity.vala:525
#: ../common/Duplicity.vala:538
msgid "Backup location does not have enough free space."
msgstr ""
#: ../common/Duplicity.vala:544 ../common/Duplicity.vala:558
#: ../common/Duplicity.vala:557 ../common/Duplicity.vala:571
msgid "Cleaning up…"
msgstr ""
#: ../common/Duplicity.vala:660 ../common/Duplicity.vala:1049
#: ../common/Duplicity.vala:673 ../common/Duplicity.vala:1062
#: ../deja-dup/AssistantOperation.vala:519
msgid "Failed with an unknown error."
msgstr ""
#: ../common/Duplicity.vala:888
#: ../common/Duplicity.vala:901
#, c-format
msgid "Could not restore ‘%s’: File not found in backup"
msgstr ""
......@@ -554,16 +557,16 @@ msgstr ""
#. notify upper layers, if they want to do anything
#. Duplicity tried to ask the user what the encryption password is.
#. notify upper layers, if they want to do anything
#: ../common/Duplicity.vala:894 ../common/Duplicity.vala:996
#: ../common/Duplicity.vala:1000
#: ../common/Duplicity.vala:907 ../common/Duplicity.vala:1009
#: ../common/Duplicity.vala:1013
msgid "Bad encryption password."
msgstr ""
#: ../common/Duplicity.vala:899
#: ../common/Duplicity.vala:912
msgid "Computer name changed"
msgstr ""
#: ../common/Duplicity.vala:899
#: ../common/Duplicity.vala:912
#, c-format
msgid ""
"The existing backup is of a computer named %s, but the current computer’s "
......@@ -571,67 +574,67 @@ msgid ""
"location."
msgstr ""
#: ../common/Duplicity.vala:934
#: ../common/Duplicity.vala:947
#, c-format
msgid "Permission denied when trying to create ‘%s’."
msgstr ""
#. assume error is on backend side
#: ../common/Duplicity.vala:938 ../common/Duplicity.vala:942
#: ../common/Duplicity.vala:951 ../common/Duplicity.vala:955
#, c-format
msgid "Permission denied when trying to read ‘%s’."
msgstr ""
#: ../common/Duplicity.vala:946
#: ../common/Duplicity.vala:959
#, c-format
msgid "Permission denied when trying to delete ‘%s’."
msgstr ""
#: ../common/Duplicity.vala:953
#: ../common/Duplicity.vala:966
#, c-format
msgid "Backup location ‘%s’ does not exist."
msgstr ""
#: ../common/Duplicity.vala:959 ../common/Duplicity.vala:1019
#: ../common/Duplicity.vala:972 ../common/Duplicity.vala:1032
msgid "No space left."
msgstr ""
#: ../common/Duplicity.vala:973
#: ../common/Duplicity.vala:986
msgid "Invalid ID."
msgstr ""
#: ../common/Duplicity.vala:975
#: ../common/Duplicity.vala:988
msgid "Invalid secret key."
msgstr ""
#: ../common/Duplicity.vala:977
#: ../common/Duplicity.vala:990
msgid "Your Amazon Web Services account is not signed up for the S3 service."
msgstr ""
#: ../common/Duplicity.vala:990
#: ../common/Duplicity.vala:1003
msgid "S3 bucket name is not available."
msgstr ""
#: ../common/Duplicity.vala:1004
#: ../common/Duplicity.vala:1017
#, c-format
msgid "Error reading file ‘%s’."
msgstr ""
#: ../common/Duplicity.vala:1006
#: ../common/Duplicity.vala:1019
#, c-format
msgid "Error writing file ‘%s’."
msgstr ""
#: ../common/Duplicity.vala:1021
#: ../common/Duplicity.vala:1034
#, c-format
msgid "No space left in ‘%s’."
msgstr ""
#: ../common/Duplicity.vala:1029
#: ../common/Duplicity.vala:1042
msgid "No backup files found"
msgstr ""
#: ../common/Duplicity.vala:1080
#: ../common/Duplicity.vala:1093
msgid "Uploading…"
msgstr ""
......@@ -986,7 +989,8 @@ msgstr ""
msgid "Connect as u_ser"
msgstr ""
#: ../deja-dup/MountOperationAssistant.vala:212
#. Translators: this is a Windows networking domain
#: ../deja-dup/MountOperationAssistant.vala:213
msgid "_Domain"
msgstr ""
......@@ -1025,19 +1029,19 @@ msgstr ""
msgid "Backup completed"
msgstr ""
#: ../deja-dup/StatusIcon.vala:164
msgid "Déjà Du_p"
#: ../deja-dup/StatusIcon.vala:163
msgid "Show _Progress"
msgstr ""
#: ../deja-dup/StatusIcon.vala:248
#: ../deja-dup/StatusIcon.vala:245
msgid "Starting scheduled backup"
msgstr ""
#: ../deja-dup/StatusIcon.vala:250
#: ../deja-dup/StatusIcon.vala:247
msgid "Show Progress"
msgstr ""
#: ../deja-dup/StatusIcon.vala:287
#: ../deja-dup/StatusIcon.vala:284
#, c-format
msgid "%.1f%% complete"
msgstr ""
......@@ -1084,32 +1088,33 @@ msgstr ""
msgid "Overview"
msgstr ""
#: ../preferences/Preferences.vala:315
#. Translators: storage as in "where to store the backup"
#: ../preferences/Preferences.vala:316
msgid "Storage"
msgstr ""
#: ../preferences/Preferences.vala:336
#: ../preferences/Preferences.vala:337
msgid "Folders to _back up"
msgstr ""
#: ../preferences/Preferences.vala:346
#: ../preferences/Preferences.vala:347
msgid "Folders to _ignore"
msgstr ""
#: ../preferences/Preferences.vala:355
#: ../preferences/Preferences.vala:356
msgid "Folders"
msgstr ""
#: ../preferences/Preferences.vala:366
#: ../preferences/Preferences.vala:367
msgid "How _often to back up"
msgstr ""
#: ../preferences/Preferences.vala:377
#: ../preferences/Preferences.vala:378
#, c-format
msgid "_Keep backups"
msgstr ""
#: ../preferences/Preferences.vala:392
#: ../preferences/Preferences.vala:393
msgid "Schedule"
msgstr ""
......@@ -1174,8 +1179,9 @@ msgid_plural "%d days ago"
msgstr[0] ""
msgstr[1] ""
#: ../widgets/ConfigLabelBackupDate.vala:92
#: ../widgets/ConfigLabelBackupDate.vala:106
#. Translators: This is used in phrases like "Most recent backup: None"
#: ../widgets/ConfigLabelBackupDate.vala:93
#: ../widgets/ConfigLabelBackupDate.vala:107
msgid "None"
msgstr ""
......@@ -1187,10 +1193,6 @@ msgstr ""
msgid "No"
msgstr ""
#: ../widgets/ConfigLabelLocation.vala:75
msgid "Unknown"
msgstr ""
#: ../widgets/ConfigLabelPolicy.vala:63
msgid ""
"Old backups will be kept for at least a week or until the backup location is "
......
......@@ -312,6 +312,7 @@ public class Preferences : Gtk.Grid
++row;
notebook.append_page(table, null);
// Translators: storage as in "where to store the backup"
cat_model.insert_with_values(out iter, i, 0, _("Storage"), 1, i);
++i;
......
......@@ -48,6 +48,7 @@ class PreferencesApp : Object
else {
// We're first instance. Yay!
var dlg = new Gtk.Window();
// Translators: "Backup" is a noun
dlg.title = _("Backup");
dlg.resizable = false;
dlg.add(new DejaDup.Preferences());
......
......@@ -89,6 +89,7 @@ public class ConfigLabelBackupDate : ConfigLabel
var time = TimeVal();
if (val == "" || !time.from_iso8601(val)) {
// Translators: This is used in phrases like "Most recent backup: None"
label.label = _("None");
}
else {
......
......@@ -69,10 +69,8 @@ public class ConfigLabelLocation : ConfigLabel
desc = backend.get_location_pretty();
}
catch (Error e) {}
if (desc != null && desc != "")
label.label = desc;
else
label.label = _("Unknown");
if (desc == null)
desc = "";
label.label = desc;
Icon icon = backend.get_icon();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment