/// <summary> /// Gets localized message text taking plural form into consideration using the /// given numeric value. /// </summary> /// <example> /// <code language="csharp"><![CDATA[ /// int appleCount = 3; /// string text = MyPackageLang.PluralText( /// "You ate an apple.", "You ate {0} apples.", appleCount /// ); /// ]]></code> /// </example> /// <param name="singularMessage">Non-translated message text in root language /// for singular form of <paramref name="value"/>.</param> /// <param name="pluralMessage">Non-translated message text in root language /// for plural form of <paramref name="value"/>.</param> /// <param name="value">The numeric value.</param> /// <returns> /// The localized text or non-translated text if not localized. /// </returns> public static string PluralText(string singularMessage, string pluralMessage, int value) { return(LocalizedStrings.PluralText(singularMessage, pluralMessage, value)); }