/// <summary> /// Gets localized message text taking plural form into consideration using the /// given numeric value with an explicit context to help disambiguate meaning for /// translators. /// </summary> /// <example> /// <code language="csharp"><![CDATA[ /// int appleCount = 3; /// string text = MyPackageLang.ParticularPluralText( /// "Fruit", "You ate an apple.", "You ate {0} apples.", appleCount /// ); /// ]]></code> /// </example> /// <param name="context">The context.</param> /// <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 ParticularPluralText(string context, string singularMessage, string pluralMessage, int value) { return(LocalizedStrings.ParticularPluralText(context, singularMessage, pluralMessage, value)); }