Skip to content
This repository has been archived by the owner on May 12, 2023. It is now read-only.

Commit

Permalink
remove unnecessary encoding lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Fuchs committed Nov 6, 2010
1 parent 2d43846 commit 268690f
Show file tree
Hide file tree
Showing 20 changed files with 5 additions and 45 deletions.
2 changes: 0 additions & 2 deletions lib/i18n.rb
@@ -1,5 +1,3 @@
# encoding: utf-8

# Authors:: Sven Fuchs (http://www.artweb-design.de),
# Joshua Harvey (http://www.workingwithrails.com/person/759-joshua-harvey),
# Stephan Soller (http://www.arkanis-development.de/),
Expand Down
2 changes: 0 additions & 2 deletions lib/i18n/backend/base.rb
@@ -1,5 +1,3 @@
# encoding: utf-8

require 'yaml'
require 'i18n/core_ext/hash'

Expand Down
2 changes: 0 additions & 2 deletions lib/i18n/backend/cache.rb
@@ -1,5 +1,3 @@
# encoding: utf-8

# This module allows you to easily cache all responses from the backend - thus
# speeding up the I18n aspects of your application quite a bit.
#
Expand Down
4 changes: 0 additions & 4 deletions lib/i18n/backend/cascade.rb
@@ -1,7 +1,3 @@
# encoding: utf-8

# EXPERIMENTAL
#
# The Cascade module adds the ability to do cascading lookups to backends that
# are compatible to the Simple backend.
#
Expand Down
2 changes: 0 additions & 2 deletions lib/i18n/backend/chain.rb
@@ -1,5 +1,3 @@
# encoding: utf-8

module I18n
module Backend
# Backend that chains multiple other backends and checks each of them when
Expand Down
3 changes: 1 addition & 2 deletions lib/i18n/backend/cldr.rb
@@ -1,4 +1,3 @@
# encoding: utf-8
require 'cldr'

module I18n
Expand Down Expand Up @@ -97,4 +96,4 @@ def raise_unspecified_currency!
end
end
end
end
end
2 changes: 0 additions & 2 deletions lib/i18n/backend/fallbacks.rb
@@ -1,5 +1,3 @@
# encoding: utf-8

# I18n locale fallbacks are useful when you want your application to use
# translations from other locales when translations for the current locale are
# missing. E.g. you might want to use :en translations when translations in
Expand Down
2 changes: 0 additions & 2 deletions lib/i18n/backend/gettext.rb
@@ -1,5 +1,3 @@
# encoding: utf-8

require 'i18n/gettext'
require 'i18n/gettext/po_parser'

Expand Down
4 changes: 1 addition & 3 deletions lib/i18n/backend/interpolation_compiler.rb
@@ -1,5 +1,3 @@
# encoding: utf-8

# The InterpolationCompiler module contains optimizations that can tremendously
# speed up the interpolation process on the Simple backend.
#
Expand Down Expand Up @@ -120,4 +118,4 @@ def compile_all_strings_in(data)
end
end
end
end
end
4 changes: 1 addition & 3 deletions lib/i18n/backend/key_value.rb
@@ -1,5 +1,3 @@
# encoding: utf-8

require 'i18n/backend/base'
require 'active_support/json'

Expand Down Expand Up @@ -99,4 +97,4 @@ def lookup(locale, key, scope = [], options = {})
include Implementation
end
end
end
end
4 changes: 1 addition & 3 deletions lib/i18n/backend/memoize.rb
@@ -1,5 +1,3 @@
# encoding: utf-8
#
# Memoize module simply memoizes the values returned by lookup using
# a flat hash and can tremendously speed up the lookup process in a backend.
#
Expand Down Expand Up @@ -45,4 +43,4 @@ def reset_memoizations!(locale=nil)
end
end
end
end
end
2 changes: 0 additions & 2 deletions lib/i18n/backend/pluralization.rb
@@ -1,5 +1,3 @@
# encoding: utf-8

# I18n locale fallbacks are useful when you want your application to use
# translations from other locales when translations for the current locale are
# missing. E.g. you might want to use :en translations when translations in
Expand Down
2 changes: 0 additions & 2 deletions lib/i18n/backend/simple.rb
@@ -1,5 +1,3 @@
# encoding: utf-8

module I18n
module Backend
# A simple backend that reads translations from YAML files and stores them in
Expand Down
4 changes: 1 addition & 3 deletions lib/i18n/core_ext/string/interpolate.rb
@@ -1,5 +1,3 @@
# encoding: utf-8

=begin
heavily based on Masao Mutoh's gettext String interpolation extension
http://github.com/mutoh/gettext/blob/f6566738b981fe0952548c421042ad1e0cdfb31e/lib/gettext/core_ext/string.rb
Expand Down Expand Up @@ -95,4 +93,4 @@ def %(args)
end
end
end
end
end
2 changes: 0 additions & 2 deletions lib/i18n/gettext.rb
@@ -1,5 +1,3 @@
# encoding: utf-8

module I18n
module Gettext
PLURAL_SEPARATOR = "\001"
Expand Down
1 change: 0 additions & 1 deletion lib/i18n/gettext/helpers.rb
@@ -1,4 +1,3 @@
# encoding: utf-8
require 'i18n/gettext'

module I18n
Expand Down
2 changes: 0 additions & 2 deletions lib/i18n/locale/fallbacks.rb
@@ -1,5 +1,3 @@
# encoding: utf-8

# Locale Fallbacks
#
# Extends the I18n module to hold a fallbacks instance which is set to an
Expand Down
2 changes: 0 additions & 2 deletions lib/i18n/locale/tag/parents.rb
@@ -1,5 +1,3 @@
# encoding: utf-8

module I18n
module Locale
module Tag
Expand Down
2 changes: 0 additions & 2 deletions lib/i18n/locale/tag/rfc4646.rb
@@ -1,5 +1,3 @@
# encoding: utf-8

# RFC 4646/47 compliant Locale tag implementation that parses locale tags to
# subtags such as language, script, region, variant etc.
#
Expand Down
2 changes: 0 additions & 2 deletions lib/i18n/locale/tag/simple.rb
@@ -1,5 +1,3 @@
# encoding: utf-8

# Simple Locale tag implementation that computes subtags by simply splitting
# the locale tag at '-' occurences.
module I18n
Expand Down

0 comments on commit 268690f

Please sign in to comment.