diff options
-rw-r--r-- | po/POTFILES.in | 2 | ||||
-rw-r--r-- | po/pt_BR.po | 13 | ||||
-rw-r--r-- | wikipedia/views/domain_wiki_view.js | 10 |
3 files changed, 15 insertions, 10 deletions
diff --git a/po/POTFILES.in b/po/POTFILES.in index 18b71b0..21f5350 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -1,2 +1,2 @@ # List of source files which contain translatable strings. -endless/eoshello.c +wikipedia/views/domain_wiki_view.js diff --git a/po/pt_BR.po b/po/pt_BR.po index 68e2b87..df41120 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -7,16 +7,19 @@ msgid "" msgstr "" "Project-Id-Version: open-endless-sdk 0.0\n" "Report-Msgid-Bugs-To: philip@endlessm.com\n" -"POT-Creation-Date: 2013-04-12 15:56+0100\n" +"POT-Creation-Date: 2013-08-07 15:50-0700\n" "PO-Revision-Date: 2013-04-07 03:03+0200\n" "Last-Translator: Philip Chimento <l10n@endlessm.com>\n" "Language-Team: Brazilian Portuguese\n" "Language: pt_BR\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" -#: endless/hello.c:35 -msgid "Hello, world!\n" -msgstr "Bom dia, mundo!\n" +#: wikipedia/views/domain_wiki_view.js:144 +msgid "HOME" +msgstr "INÍCIO" + +#~ msgid "Hello, world!\n" +#~ msgstr "Bom dia, mundo!\n" diff --git a/wikipedia/views/domain_wiki_view.js b/wikipedia/views/domain_wiki_view.js index 8836aa8..448f2d5 100644 --- a/wikipedia/views/domain_wiki_view.js +++ b/wikipedia/views/domain_wiki_view.js @@ -1,14 +1,17 @@ const EndlessWikipedia = imports.wikipedia.EndlessWikipedia; const Gettext = imports.gettext; +const GLib = imports.gi.GLib; const Lang = imports.lang; const GObject = imports.gi.GObject; const Gtk = imports.gi.Gtk; const Endless = imports.gi.Endless; +const Config = imports.config; const BackButton = imports.BackButton; const SideBarButton = imports.SideBarButton; -const _ = Gettext.gettext; +const _ = function(string) { return GLib.dgettext('eos-sdk', string); }; +Gettext.bindtextdomain('eos-sdk', Config.DATADIR + '/locale'); const SIDEBAR_BACK_BUTTON_URI = "/com/endlessm/wikipedia-domain/assets/image_strip_back_button.png"; const SUBMENU_SEPARATOR_A_URI = "/com/endlessm/wikipedia-domain/assets/submenu_separator_shadow_a.png"; @@ -31,8 +34,7 @@ const DomainWikiView = new Lang.Class({ this._presenter = null; this._window = new Endless.Window({ - application: application, - title: _("Endless Domain Wikis") + application: application }); // These need to be called first @@ -139,7 +141,7 @@ const DomainWikiView = new Lang.Class({ this._category_page.add(this._category_article_list); this._category_back_button = new BackButton.BackButton({ - label: _('INICIO') + label: _("HOME") }); this._category_back_button.show(); |