[Libreoffice-commits] .: Branch 'libreoffice-3-4' - offapi/com

Cédric Bosdonnat cbosdo at kemper.freedesktop.org
Thu Apr 7 09:29:50 PDT 2011


 offapi/com/sun/star/i18n/XOrdinalSuffix.idl |   22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

New commits:
commit 86d31b05473a9c31b9188275ed2c15d32199af2b
Author: Cédric Bosdonnat <cedricbosdo at openoffice.org>
Date:   Thu Apr 7 13:33:51 2011 +0200

    i#20348: made the ordinal suffixe autocorrection internationalized

diff --git a/offapi/com/sun/star/i18n/XOrdinalSuffix.idl b/offapi/com/sun/star/i18n/XOrdinalSuffix.idl
index eb8cde1..3a3dcce 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 );
 };
 
 //============================================================================


More information about the Libreoffice-commits mailing list