From 4a83a947efc3060eaddce32560b39df20ee01af1 Mon Sep 17 00:00:00 2001 From: Cédric Bosdonnat Date: Thu, 7 Apr 2011 13:33:51 +0200 Subject: i#20348: made the ordinal suffixe autocorrection internationalized --- offapi/com/sun/star/i18n/XOrdinalSuffix.idl | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'offapi/com') diff --git a/offapi/com/sun/star/i18n/XOrdinalSuffix.idl b/offapi/com/sun/star/i18n/XOrdinalSuffix.idl index 2ddbdfd93790..9cd444400f66 100644 --- a/offapi/com/sun/star/i18n/XOrdinalSuffix.idl +++ b/offapi/com/sun/star/i18n/XOrdinalSuffix.idl @@ -45,22 +45,24 @@ module com { module sun { module star { module i18n { ATTENTION: This interface is marked internal and does not have the published flag, which means it is subject to change without notice and should not be used outside the OOo core. - The current version is a draft and works only for English language - locales. Future enhancements adding functionality for other locales - should use the "ordinal" RuleBasedNumberFormat of the ICU if - possible, see - http://icu.sourceforge.net/apiref/icu4c/classRuleBasedNumberFormat.html - which might make it necessary to change the interface. */ interface XOrdinalSuffix : com::sun::star::uno::XInterface { //------------------------------------------------------------------------ - /** Returns the ordinal suffix for the number, for example, - "st", "nd", "rd", "th" - in an English locale. + /** Returns all the possible ordinal suffixes for the number. + + This method will provide "st", "nd", "rd", + "th" for an English locale, depending on the provided number. + In some locales like French, Italian or Spanish it ca return several + suffixes for one number. + + Examples: for the number '1', the values will be st in + English, but er and re in French. All these values + may depend on the underlying version of ICU. + */ - string getOrdinalSuffix( [in] long nNumber, [in] com::sun::star::lang::Locale aLocale ); + sequence< string > getOrdinalSuffix( [in] long nNumber, [in] com::sun::star::lang::Locale aLocale ); }; //============================================================================ -- cgit