[PATCH] Wrong date format in German translation
Paweł Wiśniewski <[email protected]> Thu, 22 Nov 2012 11:45:12 +0100
| Newsgroups | gmane.text.doxygen.devel |
|---|---|
| Message-ID | <CAPA-=32HMXhaVkhzwiKBHn_-rQr3X9gTiSvnRRoDDugCpks_Yg@mail.gmail.com> |
Hallo, Currently I'm working for German company and they said that there is mistake in date format. Now it is: Die Nov 20 2012 should be: 20.11.2012 Without day and month name, but with two digit for day and month. You can check in http://en.wikipedia.org/wiki/Date_format_by_country I think it will be better if it will be DATE_FORMAT in Doxyfile, than it everyone can change it if standard is not ok. Did you think about using QTranslator instead of current translator? Best regards Paweł ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ Doxygen-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/doxygen-develop
translator_de.patch
(application/octet-stream, 727 B)
Index: translator_de.h
===================================================================
--- translator_de.h (revision 835)
+++ translator_de.h (working copy)
@@ -1956,10 +1956,8 @@
int hour,int minutes,int seconds,
bool includeTime)
{
- static const char *days[] = { "Mon","Die","Mit","Don","Fre","Sam","Son" };
- static const char *months[] = { "Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez" };
QCString sdate;
- sdate.sprintf("%s %s %d %d",days[dayOfWeek-1],months[month-1],day,year);
+ sdate.sprintf("%02d.%02d.%d",day,month,year);
if (includeTime)
{
QCString stime;