Commit graph

2244 commits

Author SHA1 Message Date
Olivier Hallot
d3951ad050 i18n corrections for pt-PT (dates) 2011-11-23 13:54:21 +01:00
Xuacu Saturio
cc2ec946ef added Asturian [ast-ES] genitive case month names 2011-11-23 12:57:55 +01:00
Michael Bauer
d197a4d99c added Gaelic (Scotland) [gd-GB] genitive case month names 2011-11-23 12:47:40 +01:00
Yury Tarasievich
75a49370e6 added Belarusian [be-BY] genitive case month names 2011-11-23 12:29:57 +01:00
Eike Rathke
3b5ee26d2c added partitive case month names
* Locale data:
  * nominative (nouns) month names always given in <MonthsOfYear>
    element
  * optional genitive case month names in <GenitiveMonths> element,
    following the <MonthsOfYear> element; if not given take nominative
    names
  * optional partitive case month names in <PartitiveMonths> element,
    following the <GenitiveMonths> element, or following the
    <MonthsOfYear> element if the <GenitiveMonths> element is not
    present; if not given take genitive case names, or nominative if
    genitive names aren't defined
    * currently known partitive case matters in Finnish locales

* Rules for use of nominative / genitive / partitive case month names in
  number formatter:
  * no day of month (D or DD) present in format code => MMM or MMMM
    display nominative month name (noun)
  * day of month (D or DD) after MMM or MMMM => genitive name
    * no genitive names defined => nominative names
  * day of month (D or DD) before MMM or MMMM => partitive name
    * no partitive names defined => genitive names
      * no genitive names defined => nominative names
2011-11-22 14:52:41 +01:00
Eike Rathke
5e429334a9 remove obsolete linkermapfile-check.awk 2011-11-21 20:49:21 +01:00
Modestas Rimkus
a422892eee added Lithuanian [lt-LT] nominative / genitive case month names 2011-11-21 20:18:41 +01:00
Eike Rathke
3739278cef still cygwin is not unix 2011-11-21 14:13:26 +01:00
Eike Rathke
63d29ac431 hopefully gb_Executable_EXT_for_build does it 2011-11-20 03:14:34 +01:00
Eike Rathke
ef23848eb2 change OUTDIR to OUTDIR_FOR_BUILD for cross-compilation 2011-11-20 01:06:02 +01:00
Caolán McNamara
1777dfacf2 clocaledata is a char array, so can use RTL_CONSTASCII_foo 2011-11-19 21:11:03 +00:00
Eike Rathke
4b030331f7 add narrow (one letter) month names
While introducing Calendar2 and the XCalendar3 interface anyway, as well the
"one letter" narrow month names sometimes needed in calendaring can be added.
These are not always the first capitalized letters of the months in all
locales, and might even not necessarily be just one character.

Introduces a new struct css::i18n::Calendar2 that is not derived from
css::i18n::Calendar because it uses a new struct css::i18n::CalendarItem2 to
hold the NarrowName elements.

In locale data the elements DaysOfMonth, MonthsOfYear and GenitiveMonths now
have an optional element DefaultNarrowName. If not specified, the first
character of DefaultFullName is taken.

LocaleDataWrapper and CalendarWrapper use and return the new Calendar2 and
sequences of CalendarItem2 structs. Application code adapted.

The number formatter now displays narrow month names (genitive if applicable)
for the MMMMM code, previously it displayed the first 16 bit code point of the
full name (not even utf-16 aware).

Narrow day names currently are not used, except in svtools' Calendar control.
2011-11-19 16:15:22 +01:00
Eike Rathke
a7dbdbf820 implement possessive genitive case month names locale data API 2011-11-19 16:15:21 +01:00
Eike Rathke
19f607d783 let's have some sensible indentation 2011-11-19 16:15:20 +01:00
Eike Rathke
f8a352c746 squeeze some duplicated code 2011-11-19 16:15:20 +01:00
Eike Rathke
74ec768623 implement possessive genitive case month names locale data
New optional element GenitiveMonths within the Calendar element, after
MonthsOfYear. If not specified, the MonthsOfYear elements are taken.
2011-11-19 16:15:20 +01:00
Eike Rathke
8eb050cbd6 generated locale data .cxx depends on saxparser generator 2011-11-19 16:15:19 +01:00
Eike Rathke
33f591aa6d adapt doctype url to reality 2011-11-19 16:15:18 +01:00
Stephan Bergmann
c1bd2a254b New LO_{LIB,JAVA}_DIR make special inbuild component handling superfluous. 2011-11-10 13:36:20 +01:00
Caolán McNamara
41c083a7ad expose an API to map from UScriptCode to i18n::ScriptType 2011-10-21 11:27:38 +01:00
Andras Timar
003973f5d4 add Pali language (Latin script) - fdo#41599 2011-10-10 11:48:29 +02:00
Jan Holesovsky
28a9c86ffa Fix typo (SYSTEM_GENCODE, instead of SYSTEM_GENCCODE). 2011-10-04 09:43:17 +02:00
Tor Lillqvist
e0c40b71a9 WaE: possible loss of data, assignment within conditional expression 2011-10-04 07:59:36 +03:00
Jan Holesovsky
b08a764af9 Fix the build / host confusion around icu tools. 2011-10-03 14:10:57 +02:00
David Tardon
e2fdfea605 WaE: suggest braces around empty body in an 'else' statement 2011-10-03 09:10:33 +02:00
Stephan Bergmann
6671fa81db Removed uses of rtl::O[U]String[Buffer]::operator sal_{char|Unicode} const *(). 2011-09-27 20:22:03 +02:00
Andras Timar
a705aec511 add KeyID option to Language dropdown box 2011-09-17 10:18:18 +02:00
Eike Rathke
d3d1481fe8 changed Time100SecSeparator to be identical to DecimalSeparator 2011-09-06 02:39:37 +02:00
Eike Rathke
5456b230a2 fix an_ES locale data details
compiling an_ES.xml gave:
Warning: Time100SecSeparator is different from DecimalSeparator, this may be correct or not. Intended?
Warning: Don't forget to adapt corresponding FormatCode elements when changing separators.
Warning: QuotationStart may be wrong: U+201C “
Warning: QuotationEnd may be wrong: U+201D ”
Warning: DoubleQuotationStart may be wrong: U+2018 ‘
Warning: DoubleQuotationEnd may be wrong: U+2019 ’

* Exchanged Quotation(Start|End) and DoubleQuotation(Start|End)

Not sure about the use of '.' Time100SecSeparator whereas DecimalSeparator is ','
2011-09-04 14:13:01 +02:00
Eike Rathke
9b92ca05cb an_ES indentation 2011-09-04 14:13:01 +02:00
Andras Timar
3f4932e2b8 add an_ES (Aragonese) locale data 2011-09-03 11:19:52 +02:00
Caolán McNamara
cd9038dd39 move to comphelper, and rename 2011-09-02 09:54:17 +01:00
Caolán McNamara
23854ea235 refactor x_rtl_uString_new_WithLength to be consistent
i.e. change x_rtl_uString_new_WithLength to always create a rtl_uString
with ref count of 1, like rtl_uString_new_WithLength, so requiring:

either the explicit use of rtl_uString_release or
passing ownership to an OUString via OUString(pStr, SAL_NO_ACQUIRE)
which will do the same in its dtor
2011-09-01 09:53:36 +01:00
Caolán McNamara
5e51cc84d9 these don't actually take ownership, just copy and leak original 2011-09-01 09:53:36 +01:00
Tor Lillqvist
a8dcd07c92 Make it compile with MSVC 2011-08-29 12:07:17 +03:00
David Tardon
cd379e01c3 use SAL_N_ELEMENTS for table size 2011-08-29 06:33:41 +02:00
Mohammad Elahi
b470e596db Add numbering type in persian word.
Numbering in localized persian word is useful in some areas, at least
for me it is necessary. Since it is not trivial a function and table
is needed.
2011-08-28 00:01:26 +02:00
Mohammad Elahi
9e1b651db7 Add numbering type of arabic abjad sequence
A localized numbering type base on arabic abjad sequence is
added base on a table.
2011-08-28 00:01:26 +02:00
Tor Lillqvist
a1f0f63b37 Fix cross-compilation 2011-08-23 00:44:15 +03:00
Lionel Elie Mamane
2fa3cac022 check array index *before* using it in array, not *after* 2011-08-21 08:04:48 +02:00
Caolán McNamara
b28766f1e5 missed this errno.h 2011-08-19 16:43:37 +01:00
Caolán McNamara
14a255f9c0 add errno.h for errno 2011-08-19 16:23:59 +01:00
Tor Lillqvist
d62e4809df Use cygpath -m on Windows where necessary
We can't pass Cygwin pathnames to non-Cygwin programs.
2011-08-19 18:00:36 +03:00
Tor Lillqvist
a72c7acad9 Improve input and output file open error handling
Tell file name and actual error in error message. Print error message
to stderr. Always exit with failure when not able to open an input or
output file.
2011-08-19 17:59:03 +03:00
Caolán McNamara
bd6fadb384 another one 2011-08-19 15:56:11 +01:00
Caolán McNamara
8fe21bbcaf get localedata to build under windows, lib vs bin 2011-08-19 15:44:28 +01:00
Caolán McNamara
70d60b184c inch closer to windows building 2011-08-19 13:47:21 +01:00
Jan Holesovsky
534b3bccfd Fix i18npool build on Windows. 2011-08-19 09:37:47 +02:00
Tor Lillqvist
4ae8b026a4 Need to use cygpath on Windows 2011-08-18 17:37:05 +03:00
Matúš Kukan
4b60da5d1d add more component prefixes 2011-08-17 23:51:45 +02:00