[gnome-documents] all: add comments for translators



commit dfcf4c6395dc6e65f1cc2e6154d5b36a170703a5
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Aug 31 10:46:14 2011 -0400

    all: add comments for translators
    
    https://bugzilla.gnome.org/show_bug.cgi?id=657722

 src/categories.js |    3 +++
 src/error.js      |    1 +
 src/sources.js    |    2 ++
 src/view.js       |    1 +
 4 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/categories.js b/src/categories.js
index 035dca5..643de99 100644
--- a/src/categories.js
+++ b/src/categories.js
@@ -66,10 +66,13 @@ CategoryManager.prototype = {
         this._categories = {};
 
         let category;
+        // Translators: this refers to new and recent documents
         category = new Category('recent', _("New and Recent"), '');
         this._categories[category.id] = category;
+        // Translators: this refers to favorite documents
         category = new Category('favorites', _("Favorites"), 'emblem-favorite-symbolic');
         this._categories[category.id] = category;
+        // Translators: this refers to shared documents
         category = new Category('shared', _("Shared with you"), 'emblem-shared-symbolic');
         this._categories[category.id] = category;
 
diff --git a/src/error.js b/src/error.js
index 7c5e3d0..3e63547 100644
--- a/src/error.js
+++ b/src/error.js
@@ -33,6 +33,7 @@ ErrorHandler.prototype = {
     },
 
     addLoadError: function(doc, exception) {
+        // Translators: %s is the title of a document
         let message = _("Unable to load \"%s\" for preview").format(doc.title);
         log('Error caught: ' + message + ' - ' + exception.toString());
 
diff --git a/src/sources.js b/src/sources.js
index 7eba511..bd441b6 100644
--- a/src/sources.js
+++ b/src/sources.js
@@ -105,11 +105,13 @@ SourceManager.prototype = {
         // two outstanding ops for the local sources, and one for the GOA client
         this._outstandingOps = 3;
 
+        // Translators: this refers to documents
         let source = new Source({ id: 'all',
                                   name: _("All"),
                                   initCallback: Lang.bind(this, this._initSourceCollector) });
         this._sources[source.id] = source;
 
+        // Translators: this refers to local documents
         source = new Source({ id: 'local',
                               name: _("Local"),
                               initCallback: Lang.bind(this, this._initSourceCollector) });
diff --git a/src/view.js b/src/view.js
index ebbf30a..7d1c577 100644
--- a/src/view.js
+++ b/src/view.js
@@ -42,6 +42,7 @@ ContextMenu.prototype = {
 
         this.widget = new Gtk.Menu();
 
+        // Translators: this is the Open action in a context menu
         let openLabel = (doc.defaultAppName) ? _("Open with %s").format(doc.defaultAppName) : _("Open");
         let openItem = new Gtk.MenuItem({ label: openLabel });
         openItem.show();



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