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 16:39:32 +0200
commit7f29cd8ad491c578d6562453a1168ba33f157e53 (patch)
tree56bb0ba3fef9331c3501f972c98ce12db8e9837c /offapi
parent0faa398df2d8d3befbb0256ff05e7d6789183be0 (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 );
};
//============================================================================