From 176093a3624ecc54e10b76418c33acedbb6eb045 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Mon, 12 Jan 2015 19:14:49 -0200 Subject: [PATCH] Remove dead code --- lib/noosfero.rb | 10 ---------- lib/unifreire_terminology.rb | 44 -------------------------------------------- lib/zen3_terminology.rb | 88 ---------------------------------------------------------------------------------------- 3 files changed, 0 insertions(+), 142 deletions(-) delete mode 100644 lib/unifreire_terminology.rb delete mode 100644 lib/zen3_terminology.rb diff --git a/lib/noosfero.rb b/lib/noosfero.rb index 47af972..d7ec786 100644 --- a/lib/noosfero.rb +++ b/lib/noosfero.rb @@ -70,16 +70,6 @@ module Noosfero end end - def self.term(t) - self.terminology.get(t) - end - def self.terminology - @terminology ||= Noosfero::Terminology::Default.instance - end - def self.terminology=(term) - @terminology = term - end - def self.url_options case Rails.env when 'development' diff --git a/lib/unifreire_terminology.rb b/lib/unifreire_terminology.rb deleted file mode 100644 index 3c9d596..0000000 --- a/lib/unifreire_terminology.rb +++ /dev/null @@ -1,44 +0,0 @@ -require 'noosfero/terminology' - -class UnifreireTerminology < Noosfero::Terminology::Custom - - def initialize - # NOTE: the hash values must be marked for translation!! - super({ - 'Enterprises' => N_('Institutions'), - 'enterprises' => N_('institutions'), - 'The enterprises where this user works.' => N_('The institution where this user belongs.'), - 'A block that displays your enterprises' => N_('A block that displays your institutions.'), - 'All enterprises' => N_('All institutions'), - 'Disable search for enterprises' => N_('Disable search for institutions'), - 'One enterprise' => N_('One institution'), - '%{num} enterprises' => N_('%{num} institutions'), - 'Favorite Enterprises' => N_('Favorite Institutions'), - 'This user\'s favorite enterprises.' => N_('This user\'s favorite institutions'), - 'A block that displays your favorite enterprises' => N_('A block that displays your favorite institutions'), - 'All favorite enterprises' => N_('All favorite institutions'), - 'A search for enterprises by products selled and local' => N_('A search for institutions by products selled and local'), - 'Edit message for disabled enterprises' => N_('Edit message for disabled institutions'), - 'Add favorite enterprise' => N_('Add favorite institution'), - '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.'), - 'Here are all %s\'s enterprises.' => N_('Here are all %s\'s institutions.'), - 'Here are all %s\'s favorite enterprises.' => N_('Here are all %s\'s favorite institutions.'), - 'Favorite Enterprises' => N_('Favorite Institutions'), - 'Enterprises in "%s"' => N_('Institutions in "%s"'), - 'Register a new Enterprise' => N_('Register a new Institution'), - 'Events' => N_('Schedule'), - 'Manage enterprise fields' => N_('Manage institutions fields'), - "%s's enterprises" => N_("%s's institutions"), - 'Activate your enterprise' => N_('Activate your institution'), - 'Enterprise activation code' => N_('Institution activation code'), - 'Disable activation of enterprises' => N_('Disable activation of institutions'), - "%s's favorite enterprises" => N_("%s's favorite institutions"), - 'Disable Enterprise' => N_('Disable Institution'), - 'Enable Enterprise' => N_('Enable Institution'), - 'Enterprise Validation' => N_('Institution Validation'), - 'Enterprise Info and settings' => N_('Institution Info and settings'), - 'Enterprises are disabled when created' => N_('Institutions are disabled when created'), - }) - end - -end diff --git a/lib/zen3_terminology.rb b/lib/zen3_terminology.rb deleted file mode 100644 index 09f4f4f..0000000 --- a/lib/zen3_terminology.rb +++ /dev/null @@ -1,88 +0,0 @@ -require 'noosfero/terminology' - -class Zen3Terminology < Noosfero::Terminology::Custom - - def initialize - # NOTE: the hash values must be marked for translation!! - super({ - 'My Home Page' => N_('My ePortfolio'), - 'Homepage' => N_('ePortfolio'), - 'Communities' => N_('Groups'), - 'communities' => N_('groups'), - 'A block that displays your communities' => N_('A block that displays your groups'), - 'A block that displays your friends' => N_('A block that displays your contacts'), - 'The communities in which the user is a member' => N_('The groups in which the user is a member'), - 'All communities' => N_('All groups'), - 'Community' => N_('Group'), - 'One community' => N_('One group'), - '%{num} communities' => N_('%{num} groups'), - 'Disable search for communities' => N_('Disable search for groups'), - 'Enterprises' => N_('Organizations'), - 'enterprises' => N_('organizations'), - 'The enterprises where this user works.' => N_('The organizations where this user works.'), - 'A block that displays your enterprises' => N_('A block that displays your organizations.'), - 'All enterprises' => N_('All organizations'), - 'Disable search for enterprises' => N_('Disable search for organizations'), - 'One enterprise' => N_('One organization'), - '%{num} enterprises' => N_('%{num} organizations'), - 'Favorite Enterprises' => N_('Favorite Organizations'), - 'This user\'s favorite enterprises.' => N_('This user\'s favorite organizations'), - 'A block that displays your favorite enterprises' => N_('A block that displays your favorite organizations'), - 'All favorite enterprises' => N_('All favorite organizations'), - 'A search for enterprises by products selled and local' => N_('A search for organizations by products selled and local'), - 'Edit message for disabled enterprises' => N_('Edit message for disabled organizations'), - 'Add enterprise as favorite' => N_('Add organization as favorite'), - '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.'), - 'Here are all %s\'s enterprises.' => N_('Here all all %s\'s organizations.'), - 'Here are all %s\'s favorite enterprises.' => N_('Here are all %s\'s favorite organizations.'), - 'Favorite Enterprises' => N_('Favorite Organizations'), - 'Enterprises in "%s"' => N_('Organizations in "%s"'), - 'Register a new Enterprise' => N_('Register a new organization'), - 'One friend' => N_('One contact'), - '%s friends' => N_('%s contacts'), - '%s communities' => N_('%s groups'), - '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?'), - '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.'), - 'Yes, I want to remove %s from my friend list' => N_('Yes, I want to remove %s from my contact list'), - 'Adding %s as a friend' => N_('Adding %s as a contact'), - 'Are you sure you want to add %s as your friend?' => N_('Are you sure you want to add %s as your contact?'), - '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.'), - 'Classify your new friend %s: ' => N_('Classify your new contact %s: '), - 'Yes, I want to add %s as my friend' => N_('Yes, I want to add %s as my contact'), - 'Manage friends' => N_('Manage contacts'), - 'Add friend' => N_('Add contact'), - 'Removing friend: %s' => N_('Removing friend: %s'), - 'Clicking on this button will remove your friend relation with %s.' => N_('Clicking on this button will remove your contact relation with %s.'), - 'You have no friends yet.' => N_('You have no contacts yet.'), - '%s\'s friends' => N_('%s\'s contacts'), - 'Here are all %s\'s friends.' => N_('Here are all %s\'s contacts.'), - 'Friends' => N_('Contacts'), - 'Creating new community' => N_('Creating new group'), - 'Do you want to join this community?' => N_('Do you want to join this group?'), - 'Activate your enterprise' => N_('Activate your organization'), - 'Enterprise activation code' => N_('Organization activation code'), - 'Disable activation of enterprises' => N_('Disable activation of organizations'), - 'Manage community fields' => N_('Manage group fields'), - 'Create a new community' => N_('Create a new group'), - 'Preferred domain name:' => N_('Choose your host community:'), - 'My communities' => N_('My groups'), - 'Community Info and settings' => N_('Group Info and Settings'), - '{#} community' => N_('{#} group'), - '{#} communities' => N_('{#} groups'), - '{#} enterprise' => N_('{#} organization'), - '{#} enterprises' => N_('{#} organizations'), - '{#} friend' => N_('{#} contact'), - '{#} friends' => N_('{#} contacts'), - "%s's favorite enterprises" => N_("%s's favorite organizations"), - 'Disable Enterprise' => N_('Disable Organization'), - 'Enable Enterprise' => N_('Enable Organization'), - 'Enterprise Validation' => N_('Organization Validation'), - 'Enterprise Info and settings' => N_('Organization Info and settings'), - '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.'), - 'New community' => N_('New group'), - "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."), - 'Enterprises are disabled when created' => N_('Organizations are disabled when created'), - }) - end - -end -- libgit2 0.21.2