[PUSHED] Change in core[libreoffice-3-6]: resolved fdo#52240 fdo#52137 fdo#52288 user editable date pa...

Gerrit gerrit at gerrit.libreoffice.org
Fri Sep 7 03:27:47 PDT 2012


>From Caolán McNamara <caolanm at redhat.com>:

Caolán McNamara has submitted this change and it was merged.

Change subject: resolved fdo#52240 fdo#52137 fdo#52288 user editable date patterns
......................................................................


resolved fdo#52240 fdo#52137 fdo#52288 user editable date patterns

Implemented user editable date acceptance patterns.

The introduction of strict date parsing using locale dependent date
acceptance patterns in 3.6.0 wasn't always welcomed. Besides that not
every locale had patterns for incomplete (only day and month) date
input, users also complained about not being able to key in dates on
numeric keypads if the locale's date separator wasn't '/' or '-'

This commit implements a "Date acceptance patterns" edit field under
Tools->Options->LanguageSettings->Languages that follows the selected
locale and enables the user to add patterns.

Example de-DE locale:
* default patterns: D.M.Y;D.M.
* to enable additional input on numeric keypad: D.M.Y;D.M.;D-M-Y;D-M
  * if 3-4 shall not result in a date, D-M- could be used instead of D-M
  * note that to enter an ISO 8601 Y-M-D date with a D-M-Y pattern
    active one needs to enter a year >31 or with at least 3 digits, e.g.
    011

(cherry picked from commit bf10f4d62a5fe308ea47f9a0aac4f6f7e264ae3e)

Conflicts:

	cui/source/options/optgdlg.hrc
	svl/source/numbers/zforfind.cxx
	unotools/source/config/syslocaleoptions.cxx

Change-Id: Ic1ce91b1f9d29f1837d56b45ba0ae16f6d9cb17c
---
M cui/source/options/optgdlg.cxx
M cui/source/options/optgdlg.hrc
M cui/source/options/optgdlg.hxx
M cui/source/options/optgdlg.src
M officecfg/registry/schema/org/openoffice/Setup.xcs
M svl/inc/svl/zforlist.hxx
M svl/source/numbers/zforfind.cxx
M svl/source/numbers/zforfind.hxx
M svl/source/numbers/zforlist.cxx
M unotools/inc/unotools/localedatawrapper.hxx
M unotools/inc/unotools/syslocaleoptions.hxx
M unotools/source/config/syslocaleoptions.cxx
M unotools/source/i18n/localedatawrapper.cxx
M unotools/source/misc/syslocale.cxx
14 files changed, 429 insertions(+), 46 deletions(-)

Approvals:
  Caolán McNamara: Looks good to me, approved
  Markus Mohrhard: Looks good to me, but someone else must approve
  Petr Mladek: Verified; Looks good to me, but someone else must approve


--
To view, visit https://gerrit.libreoffice.org/511
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic1ce91b1f9d29f1837d56b45ba0ae16f6d9cb17c
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: libreoffice-3-6
Gerrit-Owner: Eike Rathke <erack at redhat.com>
Gerrit-Reviewer: Caolán McNamara <caolanm at redhat.com>
Gerrit-Reviewer: Markus Mohrhard <markus.mohrhard at googlemail.com>
Gerrit-Reviewer: Petr Mladek <pmladek at suse.cz>



More information about the LibreOffice mailing list