Ensure plurals are output even if they don't appear magically in normal
transliatont
This commit is contained in:
parent
22071efd3c
commit
aa853e5506
1 changed files with 8 additions and 0 deletions
|
@ -196,6 +196,14 @@ module Twine
|
|||
value.gsub(/\A *| *\z/) { |spaces| '\u0020' * spaces.length }
|
||||
end
|
||||
|
||||
def should_include_definition(definition, lang)
|
||||
if definition.is_plural?
|
||||
return !definition.plural_translation_for_lang(lang).nil?
|
||||
else
|
||||
return !definition.translation_for_lang(lang).nil?
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Reference in a new issue