File: other.rb

package info (click to toggle)
ruby-rails-i18n 7.0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,820 kB
  • sloc: ruby: 907; makefile: 5
file content (17 lines) | stat: -rw-r--r-- 323 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module RailsI18n
  module Pluralization
    module Other
      def self.rule
        Proc.new { :other }
      end

      def self.with_locale(locale)
        { locale => {
            :'i18n' => {
              :plural => {
                :keys => [:other],
                :rule => rule }}}}
      end
    end
  end
end