From 3f40e08441f2e89ad63fd3ea9d9cf6be573a25b1 Mon Sep 17 00:00:00 2001 From: Marcos Ronaldo Date: Mon, 30 May 2016 12:11:27 -0300 Subject: [PATCH] adds translation to gov_user model --- src/noosfero-spb/gov_user/lib/institution.rb | 2 ++ src/noosfero-spb/gov_user/po/gov_user.pot | 36 ++++++++++++++++++++---------------- src/noosfero-spb/gov_user/po/pt/gov_user.po | 3 +++ 3 files changed, 25 insertions(+), 16 deletions(-) diff --git a/src/noosfero-spb/gov_user/lib/institution.rb b/src/noosfero-spb/gov_user/lib/institution.rb index c8fe96f..70ea0e1 100644 --- a/src/noosfero-spb/gov_user/lib/institution.rb +++ b/src/noosfero-spb/gov_user/lib/institution.rb @@ -3,6 +3,8 @@ class Institution < ActiveRecord::Base has_many :comments + N_("institution") + SEARCH_FILTERS = { :order => %w[more_recent more_popular more_active], :display => %w[compact] diff --git a/src/noosfero-spb/gov_user/po/gov_user.pot b/src/noosfero-spb/gov_user/po/gov_user.pot index 0771bb4..82900b9 100644 --- a/src/noosfero-spb/gov_user/po/gov_user.pot +++ b/src/noosfero-spb/gov_user/po/gov_user.pot @@ -8,8 +8,8 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-05-10 17:07-0300\n" -"PO-Revision-Date: 2016-05-10 17:07-0300\n" +"POT-Creation-Date: 2016-05-30 11:46-0300\n" +"PO-Revision-Date: 2016-05-30 11:46-0300\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" @@ -18,31 +18,31 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" -#: ../controllers/gov_user_plugin_controller.rb:142 +#: ../controllers/gov_user_plugin_controller.rb:140 #: ../views/gov_user_plugin_myprofile/edit_institution.html.erb:87 msgid "Select a Governmental Sphere" msgstr "" -#: ../controllers/gov_user_plugin_controller.rb:147 +#: ../controllers/gov_user_plugin_controller.rb:145 #: ../views/gov_user_plugin_myprofile/edit_institution.html.erb:98 msgid "Select a Governmental Power" msgstr "" -#: ../controllers/gov_user_plugin_controller.rb:152 +#: ../controllers/gov_user_plugin_controller.rb:150 #: ../views/gov_user_plugin_myprofile/edit_institution.html.erb:109 msgid "Select a Juridical Nature" msgstr "" -#: ../controllers/gov_user_plugin_controller.rb:186 +#: ../controllers/gov_user_plugin_controller.rb:184 #: ../controllers/gov_user_plugin_myprofile_controller.rb:30 msgid "Could not find Governmental Power or Governmental Sphere" msgstr "" -#: ../controllers/gov_user_plugin_controller.rb:232 +#: ../controllers/gov_user_plugin_controller.rb:230 msgid "Institution successful created!" msgstr "" -#: ../controllers/gov_user_plugin_controller.rb:237 +#: ../controllers/gov_user_plugin_controller.rb:235 msgid "Institution could not be created!" msgstr "" @@ -80,15 +80,19 @@ msgstr "" msgid "Institution" msgstr "" -#: ../lib/institution.rb:66 +#: ../lib/institution.rb:6 +msgid "institution" +msgstr "" + +#: ../lib/institution.rb:68 msgid "invalid, only public and private institutions are allowed." msgstr "" -#: ../lib/institution.rb:78 ../lib/institution.rb:89 ../lib/institution.rb:105 +#: ../lib/institution.rb:80 ../lib/institution.rb:91 ../lib/institution.rb:107 msgid "can't be blank" msgstr "" -#: ../lib/institution.rb:92 +#: ../lib/institution.rb:94 msgid "invalid state" msgstr "" @@ -305,19 +309,19 @@ msgstr "" msgid "No institution found" msgstr "" -#: ../views/person_editor_extras.html.erb:32 +#: ../views/person_editor_extras.html.erb:30 msgid "Should begin with a capital letter and no special characters" msgstr "" -#: ../views/person_editor_extras.html.erb:33 +#: ../views/person_editor_extras.html.erb:31 msgid "Email should have the following format: name@host.br" msgstr "" -#: ../views/person_editor_extras.html.erb:34 +#: ../views/person_editor_extras.html.erb:32 msgid "Site should have a valid format: http://name.hosts" msgstr "" -#: ../views/person_editor_extras.html.erb:35 +#: ../views/person_editor_extras.html.erb:33 msgid "If you work in a public agency use your government e-Mail" msgstr "" @@ -369,7 +373,7 @@ msgstr "" msgid "No organization or company found" msgstr "" -#: ../views/ratings_extra_field.html.erb:9 +#: ../views/ratings_extra_field.html.erb:8 msgid "Add" msgstr "" diff --git a/src/noosfero-spb/gov_user/po/pt/gov_user.po b/src/noosfero-spb/gov_user/po/pt/gov_user.po index b21ace6..8dff18f 100644 --- a/src/noosfero-spb/gov_user/po/pt/gov_user.po +++ b/src/noosfero-spb/gov_user/po/pt/gov_user.po @@ -57,6 +57,9 @@ msgstr "Informações da Instituição" msgid "Institution" msgstr "Instituição" +msgid "institution" +msgstr "instituição" + msgid "invalid, only public and private institutions are allowed." msgstr "Inválido, somente instituições públicas e privadas são permitidas." -- libgit2 0.21.2