Commit 176093a3624ecc54e10b76418c33acedbb6eb045
1 parent
ab59dbaa
Exists in
master
and in
29 other branches
Remove dead code
Showing
3 changed files
with
0 additions
and
142 deletions
Show diff stats
lib/noosfero.rb
@@ -70,16 +70,6 @@ module Noosfero | @@ -70,16 +70,6 @@ module Noosfero | ||
70 | end | 70 | end |
71 | end | 71 | end |
72 | 72 | ||
73 | - def self.term(t) | ||
74 | - self.terminology.get(t) | ||
75 | - end | ||
76 | - def self.terminology | ||
77 | - @terminology ||= Noosfero::Terminology::Default.instance | ||
78 | - end | ||
79 | - def self.terminology=(term) | ||
80 | - @terminology = term | ||
81 | - end | ||
82 | - | ||
83 | def self.url_options | 73 | def self.url_options |
84 | case Rails.env | 74 | case Rails.env |
85 | when 'development' | 75 | when 'development' |
lib/unifreire_terminology.rb
@@ -1,44 +0,0 @@ | @@ -1,44 +0,0 @@ | ||
1 | -require 'noosfero/terminology' | ||
2 | - | ||
3 | -class UnifreireTerminology < Noosfero::Terminology::Custom | ||
4 | - | ||
5 | - def initialize | ||
6 | - # NOTE: the hash values must be marked for translation!! | ||
7 | - super({ | ||
8 | - 'Enterprises' => N_('Institutions'), | ||
9 | - 'enterprises' => N_('institutions'), | ||
10 | - 'The enterprises where this user works.' => N_('The institution where this user belongs.'), | ||
11 | - 'A block that displays your enterprises' => N_('A block that displays your institutions.'), | ||
12 | - 'All enterprises' => N_('All institutions'), | ||
13 | - 'Disable search for enterprises' => N_('Disable search for institutions'), | ||
14 | - 'One enterprise' => N_('One institution'), | ||
15 | - '%{num} enterprises' => N_('%{num} institutions'), | ||
16 | - 'Favorite Enterprises' => N_('Favorite Institutions'), | ||
17 | - 'This user\'s favorite enterprises.' => N_('This user\'s favorite institutions'), | ||
18 | - 'A block that displays your favorite enterprises' => N_('A block that displays your favorite institutions'), | ||
19 | - 'All favorite enterprises' => N_('All favorite institutions'), | ||
20 | - 'A search for enterprises by products selled and local' => N_('A search for institutions by products selled and local'), | ||
21 | - 'Edit message for disabled enterprises' => N_('Edit message for disabled institutions'), | ||
22 | - 'Add favorite enterprise' => N_('Add favorite institution'), | ||
23 | - 'Validation info is the information the enterprises will see about how your organization processes the enterprises validations it receives: validation methodology, restrictions to the types of enterprises the organization validates etc.' => N_('Validation info is the information the institutions will see about how your organization processes the institutions validations it receives: validation methodology, restrictions to the types of institutions the organization validates etc.'), | ||
24 | - 'Here are all <b>%s</b>\'s enterprises.' => N_('Here are all <b>%s</b>\'s institutions.'), | ||
25 | - 'Here are all <b>%s</b>\'s favorite enterprises.' => N_('Here are all <b>%s</b>\'s favorite institutions.'), | ||
26 | - 'Favorite Enterprises' => N_('Favorite Institutions'), | ||
27 | - 'Enterprises in "%s"' => N_('Institutions in "%s"'), | ||
28 | - 'Register a new Enterprise' => N_('Register a new Institution'), | ||
29 | - 'Events' => N_('Schedule'), | ||
30 | - 'Manage enterprise fields' => N_('Manage institutions fields'), | ||
31 | - "%s's enterprises" => N_("%s's institutions"), | ||
32 | - 'Activate your enterprise' => N_('Activate your institution'), | ||
33 | - 'Enterprise activation code' => N_('Institution activation code'), | ||
34 | - 'Disable activation of enterprises' => N_('Disable activation of institutions'), | ||
35 | - "%s's favorite enterprises" => N_("%s's favorite institutions"), | ||
36 | - 'Disable Enterprise' => N_('Disable Institution'), | ||
37 | - 'Enable Enterprise' => N_('Enable Institution'), | ||
38 | - 'Enterprise Validation' => N_('Institution Validation'), | ||
39 | - 'Enterprise Info and settings' => N_('Institution Info and settings'), | ||
40 | - 'Enterprises are disabled when created' => N_('Institutions are disabled when created'), | ||
41 | - }) | ||
42 | - end | ||
43 | - | ||
44 | -end |
lib/zen3_terminology.rb
@@ -1,88 +0,0 @@ | @@ -1,88 +0,0 @@ | ||
1 | -require 'noosfero/terminology' | ||
2 | - | ||
3 | -class Zen3Terminology < Noosfero::Terminology::Custom | ||
4 | - | ||
5 | - def initialize | ||
6 | - # NOTE: the hash values must be marked for translation!! | ||
7 | - super({ | ||
8 | - 'My Home Page' => N_('My ePortfolio'), | ||
9 | - 'Homepage' => N_('ePortfolio'), | ||
10 | - 'Communities' => N_('Groups'), | ||
11 | - 'communities' => N_('groups'), | ||
12 | - 'A block that displays your communities' => N_('A block that displays your groups'), | ||
13 | - 'A block that displays your friends' => N_('A block that displays your contacts'), | ||
14 | - 'The communities in which the user is a member' => N_('The groups in which the user is a member'), | ||
15 | - 'All communities' => N_('All groups'), | ||
16 | - 'Community' => N_('Group'), | ||
17 | - 'One community' => N_('One group'), | ||
18 | - '%{num} communities' => N_('%{num} groups'), | ||
19 | - 'Disable search for communities' => N_('Disable search for groups'), | ||
20 | - 'Enterprises' => N_('Organizations'), | ||
21 | - 'enterprises' => N_('organizations'), | ||
22 | - 'The enterprises where this user works.' => N_('The organizations where this user works.'), | ||
23 | - 'A block that displays your enterprises' => N_('A block that displays your organizations.'), | ||
24 | - 'All enterprises' => N_('All organizations'), | ||
25 | - 'Disable search for enterprises' => N_('Disable search for organizations'), | ||
26 | - 'One enterprise' => N_('One organization'), | ||
27 | - '%{num} enterprises' => N_('%{num} organizations'), | ||
28 | - 'Favorite Enterprises' => N_('Favorite Organizations'), | ||
29 | - 'This user\'s favorite enterprises.' => N_('This user\'s favorite organizations'), | ||
30 | - 'A block that displays your favorite enterprises' => N_('A block that displays your favorite organizations'), | ||
31 | - 'All favorite enterprises' => N_('All favorite organizations'), | ||
32 | - 'A search for enterprises by products selled and local' => N_('A search for organizations by products selled and local'), | ||
33 | - 'Edit message for disabled enterprises' => N_('Edit message for disabled organizations'), | ||
34 | - 'Add enterprise as favorite' => N_('Add organization as favorite'), | ||
35 | - 'Validation info is the information the enterprises will see about how your organization processes the enterprises validations it receives: validation methodology, restrictions to the types of enterprises the organization validates etc.' => N_('Validation info is the information the organizations will see about how your organization processes the organizations validations it receives: validation methodology, restrictions to the types of organizations the organization validates etc.'), | ||
36 | - 'Here are all <b>%s</b>\'s enterprises.' => N_('Here all all <b>%s</b>\'s organizations.'), | ||
37 | - 'Here are all <b>%s</b>\'s favorite enterprises.' => N_('Here are all <b>%s</b>\'s favorite organizations.'), | ||
38 | - 'Favorite Enterprises' => N_('Favorite Organizations'), | ||
39 | - 'Enterprises in "%s"' => N_('Organizations in "%s"'), | ||
40 | - 'Register a new Enterprise' => N_('Register a new organization'), | ||
41 | - 'One friend' => N_('One contact'), | ||
42 | - '%s friends' => N_('%s contacts'), | ||
43 | - '%s communities' => N_('%s groups'), | ||
44 | - 'Are you sure you want to remove %s from your friends list?' => N_('Are you sure you want to remove %s from your contacts list?'), | ||
45 | - 'Note that %s will still have you as a friend, unless he/she also wants to remove you from his/her friend list.' => N_('Note that %s will still have you as a contact, unless he/she also wants to remove you from his/her contact list.'), | ||
46 | - 'Yes, I want to remove %s from my friend list' => N_('Yes, I want to remove %s from my contact list'), | ||
47 | - 'Adding %s as a friend' => N_('Adding %s as a contact'), | ||
48 | - 'Are you sure you want to add %s as your friend?' => N_('Are you sure you want to add %s as your contact?'), | ||
49 | - 'Note that %s will need to accept being added as your friend.' => N_('Note that %s will need to accept being added as your contact.'), | ||
50 | - 'Classify your new friend %s: ' => N_('Classify your new contact %s: '), | ||
51 | - 'Yes, I want to add %s as my friend' => N_('Yes, I want to add %s as my contact'), | ||
52 | - 'Manage friends' => N_('Manage contacts'), | ||
53 | - 'Add friend' => N_('Add contact'), | ||
54 | - 'Removing friend: %s' => N_('Removing friend: %s'), | ||
55 | - 'Clicking on this button will remove your friend relation with %s.' => N_('Clicking on this button will remove your contact relation with %s.'), | ||
56 | - 'You have no friends yet.' => N_('You have no contacts yet.'), | ||
57 | - '%s\'s friends' => N_('%s\'s contacts'), | ||
58 | - 'Here are all <b>%s</b>\'s friends.' => N_('Here are all <b>%s</b>\'s contacts.'), | ||
59 | - 'Friends' => N_('Contacts'), | ||
60 | - 'Creating new community' => N_('Creating new group'), | ||
61 | - 'Do you want to join this community?' => N_('Do you want to join this group?'), | ||
62 | - 'Activate your enterprise' => N_('Activate your organization'), | ||
63 | - 'Enterprise activation code' => N_('Organization activation code'), | ||
64 | - 'Disable activation of enterprises' => N_('Disable activation of organizations'), | ||
65 | - 'Manage community fields' => N_('Manage group fields'), | ||
66 | - 'Create a new community' => N_('Create a new group'), | ||
67 | - 'Preferred domain name:' => N_('Choose your host community:'), | ||
68 | - 'My communities' => N_('My groups'), | ||
69 | - 'Community Info and settings' => N_('Group Info and Settings'), | ||
70 | - '{#} community' => N_('{#} group'), | ||
71 | - '{#} communities' => N_('{#} groups'), | ||
72 | - '{#} enterprise' => N_('{#} organization'), | ||
73 | - '{#} enterprises' => N_('{#} organizations'), | ||
74 | - '{#} friend' => N_('{#} contact'), | ||
75 | - '{#} friends' => N_('{#} contacts'), | ||
76 | - "%s's favorite enterprises" => N_("%s's favorite organizations"), | ||
77 | - 'Disable Enterprise' => N_('Disable Organization'), | ||
78 | - 'Enable Enterprise' => N_('Enable Organization'), | ||
79 | - 'Enterprise Validation' => N_('Organization Validation'), | ||
80 | - 'Enterprise Info and settings' => N_('Organization Info and settings'), | ||
81 | - 'Choose the communities you want to join and/or create your own.' => N_('Choose the groups you want to join and/or create your own.'), | ||
82 | - 'New community' => N_('New group'), | ||
83 | - "Tags are important to new users, they'll be able to find your new community more easily." => N_("Tags are important to new users, they'll be able to find your new group more easily."), | ||
84 | - 'Enterprises are disabled when created' => N_('Organizations are disabled when created'), | ||
85 | - }) | ||
86 | - end | ||
87 | - | ||
88 | -end |