View Source t__plural (t__ v0.1.0)

Link to this section Summary

Functions

Select and return the proper translation based on N and plural-forms If the proper translation can not be determined, the method returns first element of Msg parameter.

Link to this section Functions

Link to this function

select(Language, N, Msg)

View Source
-spec select(Language, N, Msg) -> MsgN
          when Language :: string(), N :: integer(), Msg :: list(), MsgN :: string().
Select and return the proper translation based on N and plural-forms If the proper translation can not be determined, the method returns first element of Msg parameter.