Module: Gitlab::I18n::Pluralization::FastGettextClassMethods

Defined in:
lib/gitlab/i18n/pluralization.rb

Instance Method Summary collapse

Instance Method Details

#pluralisation_ruleObject

FastGettext allows to set the rule via FastGettext.pluralisation_rule= which is on thread-level.

Because we are patching FastGettext at boot time per thread values won’t work so we have to override the method implementation.

FastGettext.pluralisation_rule= has now no effect.



81
82
83
# File 'lib/gitlab/i18n/pluralization.rb', line 81

def pluralisation_rule
  Gitlab::I18n::Pluralization
end