summaryrefslogtreecommitdiff
path: root/offapi
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedricbosdo@openoffice.org>2011-04-07 13:33:51 +0200
committerCédric Bosdonnat <cedricbosdo@openoffice.org>2011-04-07 14:52:20 +0200
commit4a83a947efc3060eaddce32560b39df20ee01af1 (patch)
treee9765aa317c9d6ed9188752861dd2f1212b9106d /offapi
parent02c70c3b931cd0a42357d560d981b9caa7ad4a8a (diff)
i#20348: made the ordinal suffixe autocorrection internationalized
Diffstat (limited to 'offapi')
-rw-r--r--offapi/com/sun/star/i18n/XOrdinalSuffix.idl22
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 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 <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 );
};
//============================================================================