Commit 3f40e08441f2e89ad63fd3ea9d9cf6be573a25b1

Authored by Marcos Pereira
1 parent 05025a11
Exists in master and in 1 other branch mezuro_spb

adds translation to gov_user model

src/noosfero-spb/gov_user/lib/institution.rb
@@ -3,6 +3,8 @@ @@ -3,6 +3,8 @@
3 class Institution < ActiveRecord::Base 3 class Institution < ActiveRecord::Base
4 has_many :comments 4 has_many :comments
5 5
  6 + N_("institution")
  7 +
6 SEARCH_FILTERS = { 8 SEARCH_FILTERS = {
7 :order => %w[more_recent more_popular more_active], 9 :order => %w[more_recent more_popular more_active],
8 :display => %w[compact] 10 :display => %w[compact]
src/noosfero-spb/gov_user/po/gov_user.pot
@@ -8,8 +8,8 @@ msgid &quot;&quot; @@ -8,8 +8,8 @@ msgid &quot;&quot;
8 msgstr "" 8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n" 9 "Project-Id-Version: PACKAGE VERSION\n"
10 "Report-Msgid-Bugs-To: \n" 10 "Report-Msgid-Bugs-To: \n"
11 -"POT-Creation-Date: 2016-05-10 17:07-0300\n"  
12 -"PO-Revision-Date: 2016-05-10 17:07-0300\n" 11 +"POT-Creation-Date: 2016-05-30 11:46-0300\n"
  12 +"PO-Revision-Date: 2016-05-30 11:46-0300\n"
13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 "Language-Team: LANGUAGE <LL@li.org>\n" 14 "Language-Team: LANGUAGE <LL@li.org>\n"
15 "Language: \n" 15 "Language: \n"
@@ -18,31 +18,31 @@ msgstr &quot;&quot; @@ -18,31 +18,31 @@ msgstr &quot;&quot;
18 "Content-Transfer-Encoding: 8bit\n" 18 "Content-Transfer-Encoding: 8bit\n"
19 "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" 19 "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
20 20
21 -#: ../controllers/gov_user_plugin_controller.rb:142 21 +#: ../controllers/gov_user_plugin_controller.rb:140
22 #: ../views/gov_user_plugin_myprofile/edit_institution.html.erb:87 22 #: ../views/gov_user_plugin_myprofile/edit_institution.html.erb:87
23 msgid "Select a Governmental Sphere" 23 msgid "Select a Governmental Sphere"
24 msgstr "" 24 msgstr ""
25 25
26 -#: ../controllers/gov_user_plugin_controller.rb:147 26 +#: ../controllers/gov_user_plugin_controller.rb:145
27 #: ../views/gov_user_plugin_myprofile/edit_institution.html.erb:98 27 #: ../views/gov_user_plugin_myprofile/edit_institution.html.erb:98
28 msgid "Select a Governmental Power" 28 msgid "Select a Governmental Power"
29 msgstr "" 29 msgstr ""
30 30
31 -#: ../controllers/gov_user_plugin_controller.rb:152 31 +#: ../controllers/gov_user_plugin_controller.rb:150
32 #: ../views/gov_user_plugin_myprofile/edit_institution.html.erb:109 32 #: ../views/gov_user_plugin_myprofile/edit_institution.html.erb:109
33 msgid "Select a Juridical Nature" 33 msgid "Select a Juridical Nature"
34 msgstr "" 34 msgstr ""
35 35
36 -#: ../controllers/gov_user_plugin_controller.rb:186 36 +#: ../controllers/gov_user_plugin_controller.rb:184
37 #: ../controllers/gov_user_plugin_myprofile_controller.rb:30 37 #: ../controllers/gov_user_plugin_myprofile_controller.rb:30
38 msgid "Could not find Governmental Power or Governmental Sphere" 38 msgid "Could not find Governmental Power or Governmental Sphere"
39 msgstr "" 39 msgstr ""
40 40
41 -#: ../controllers/gov_user_plugin_controller.rb:232 41 +#: ../controllers/gov_user_plugin_controller.rb:230
42 msgid "Institution successful created!" 42 msgid "Institution successful created!"
43 msgstr "" 43 msgstr ""
44 44
45 -#: ../controllers/gov_user_plugin_controller.rb:237 45 +#: ../controllers/gov_user_plugin_controller.rb:235
46 msgid "Institution could not be created!" 46 msgid "Institution could not be created!"
47 msgstr "" 47 msgstr ""
48 48
@@ -80,15 +80,19 @@ msgstr &quot;&quot; @@ -80,15 +80,19 @@ msgstr &quot;&quot;
80 msgid "Institution" 80 msgid "Institution"
81 msgstr "" 81 msgstr ""
82 82
83 -#: ../lib/institution.rb:66 83 +#: ../lib/institution.rb:6
  84 +msgid "institution"
  85 +msgstr ""
  86 +
  87 +#: ../lib/institution.rb:68
84 msgid "invalid, only public and private institutions are allowed." 88 msgid "invalid, only public and private institutions are allowed."
85 msgstr "" 89 msgstr ""
86 90
87 -#: ../lib/institution.rb:78 ../lib/institution.rb:89 ../lib/institution.rb:105 91 +#: ../lib/institution.rb:80 ../lib/institution.rb:91 ../lib/institution.rb:107
88 msgid "can't be blank" 92 msgid "can't be blank"
89 msgstr "" 93 msgstr ""
90 94
91 -#: ../lib/institution.rb:92 95 +#: ../lib/institution.rb:94
92 msgid "invalid state" 96 msgid "invalid state"
93 msgstr "" 97 msgstr ""
94 98
@@ -305,19 +309,19 @@ msgstr &quot;&quot; @@ -305,19 +309,19 @@ msgstr &quot;&quot;
305 msgid "No institution found" 309 msgid "No institution found"
306 msgstr "" 310 msgstr ""
307 311
308 -#: ../views/person_editor_extras.html.erb:32 312 +#: ../views/person_editor_extras.html.erb:30
309 msgid "Should begin with a capital letter and no special characters" 313 msgid "Should begin with a capital letter and no special characters"
310 msgstr "" 314 msgstr ""
311 315
312 -#: ../views/person_editor_extras.html.erb:33 316 +#: ../views/person_editor_extras.html.erb:31
313 msgid "Email should have the following format: name@host.br" 317 msgid "Email should have the following format: name@host.br"
314 msgstr "" 318 msgstr ""
315 319
316 -#: ../views/person_editor_extras.html.erb:34 320 +#: ../views/person_editor_extras.html.erb:32
317 msgid "Site should have a valid format: http://name.hosts" 321 msgid "Site should have a valid format: http://name.hosts"
318 msgstr "" 322 msgstr ""
319 323
320 -#: ../views/person_editor_extras.html.erb:35 324 +#: ../views/person_editor_extras.html.erb:33
321 msgid "If you work in a public agency use your government e-Mail" 325 msgid "If you work in a public agency use your government e-Mail"
322 msgstr "" 326 msgstr ""
323 327
@@ -369,7 +373,7 @@ msgstr &quot;&quot; @@ -369,7 +373,7 @@ msgstr &quot;&quot;
369 msgid "No organization or company found" 373 msgid "No organization or company found"
370 msgstr "" 374 msgstr ""
371 375
372 -#: ../views/ratings_extra_field.html.erb:9 376 +#: ../views/ratings_extra_field.html.erb:8
373 msgid "Add" 377 msgid "Add"
374 msgstr "" 378 msgstr ""
375 379
src/noosfero-spb/gov_user/po/pt/gov_user.po
@@ -57,6 +57,9 @@ msgstr &quot;Informações da Instituição&quot; @@ -57,6 +57,9 @@ msgstr &quot;Informações da Instituição&quot;
57 msgid "Institution" 57 msgid "Institution"
58 msgstr "Instituição" 58 msgstr "Instituição"
59 59
  60 +msgid "institution"
  61 +msgstr "instituição"
  62 +
60 msgid "invalid, only public and private institutions are allowed." 63 msgid "invalid, only public and private institutions are allowed."
61 msgstr "Inválido, somente instituições públicas e privadas são permitidas." 64 msgstr "Inválido, somente instituições públicas e privadas são permitidas."
62 65