diff options
author | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2011-04-07 13:33:51 +0200 |
---|---|---|
committer | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2011-04-07 16:39:32 +0200 |
commit | 86d31b05473a9c31b9188275ed2c15d32199af2b (patch) | |
tree | ade0f3414fae56cfade50d197056f346e6ac1a99 | |
parent | 23f7b49c802fcef717e83c00bc367eb2d735dcda (diff) |
i#20348: made the ordinal suffixe autocorrection internationalized
-rw-r--r-- | offapi/com/sun/star/i18n/XOrdinalSuffix.idl | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/offapi/com/sun/star/i18n/XOrdinalSuffix.idl b/offapi/com/sun/star/i18n/XOrdinalSuffix.idl index eb8cde19f..3a3dcce1e 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 <em>internal</em> and does not have the <em>published</em> 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, - "<b>st</b>", "<b>nd</b>", "<b>rd</b>", "<b>th</b>" - in an English locale. + /** Returns all the possible ordinal suffixes for the number. + + This method will provide "<b>st</b>", "<b>nd</b>", "<b>rd</b>", + "<b>th</b>" 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 <b>st</b> in + English, but <b>er</b> and <b>re</b> 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 ); }; //============================================================================ |