[the-board] [ui] Mark "Untitled" string for translation
- From: Lucas Almeida Rocha <lucasr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [the-board] [ui] Mark "Untitled" string for translation
- Date: Mon, 8 Nov 2010 22:24:23 +0000 (UTC)
commit 40cf14d4be4f5c172ec51b7a557edb5ecacaba0f
Author: Lucas Rocha <lucasr gnome org>
Date: Mon Nov 8 22:20:30 2010 +0000
[ui] Mark "Untitled" string for translation
src/js/ui/pageButton.js | 2 +-
src/js/ui/toolBoxPages.js | 6 ++++--
2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/js/ui/pageButton.js b/src/js/ui/pageButton.js
index 401962f..b439925 100644
--- a/src/js/ui/pageButton.js
+++ b/src/js/ui/pageButton.js
@@ -109,7 +109,7 @@ PageButton.prototype = {
if (this._newPageButton) {
title = Gettext.gettext("Add Page");
} else if (this._pageModel) {
- title = this._pageModel.title || "Untitled";
+ title = this._pageModel.title || Gettext.gettext("Untitled");
}
if (title) {
diff --git a/src/js/ui/toolBoxPages.js b/src/js/ui/toolBoxPages.js
index 6d631df..cba55da 100644
--- a/src/js/ui/toolBoxPages.js
+++ b/src/js/ui/toolBoxPages.js
@@ -293,7 +293,8 @@ ToolBoxPages.prototype = {
if (commitChanges) {
this._pageModel.title = this._pageLabel.text;
} else {
- this._pageLabel.text = this._pageModel.title || "Untitled";
+ this._pageLabel.text = this._pageModel.title ||
+ Gettext.gettext("Untitled");
}
},
@@ -437,7 +438,8 @@ ToolBoxPages.prototype = {
}
this._pageModel = pageModel;
- this._pageLabel.text = pageModel.title || "Untitled";
+ this._pageLabel.text = pageModel.title ||
+ Gettext.gettext("Untitled");
for (let i = 0; i < this._pageButtons.length; ++i) {
let pageButton = this._pageButtons[i];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]