summaryrefslogtreecommitdiffstats
path: root/core/subsurfacestartup.c
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-08-01 21:59:21 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-08-02 08:55:08 -0700
commit90c7be07727e719473cb975987aaf4b71807ea29 (patch)
treee5bf1771c88747138dd606ada6de0f46cc187396 /core/subsurfacestartup.c
parent8c036234e240078c4d2d594d2b69458496982b01 (diff)
downloadsubsurface-90c7be07727e719473cb975987aaf4b71807ea29.tar.gz
Cleanup: shrink size of three-letter month name strings to 4
There was a comment reading /*++GETTEXT: these are three letter months - we allow up to six code bytes*/ but this is not valid (anymore), since the array contains only untranslated strings, which will be translated on-the-fly. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/subsurfacestartup.c')
-rw-r--r--core/subsurfacestartup.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/subsurfacestartup.c b/core/subsurfacestartup.c
index 1210004cb..f234ac86f 100644
--- a/core/subsurfacestartup.c
+++ b/core/subsurfacestartup.c
@@ -114,8 +114,7 @@ struct units *get_units()
/* random helper functions, used here or elsewhere */
const char *monthname(int mon)
{
- static const char month_array[12][7] = {
- /*++GETTEXT: these are three letter months - we allow up to six code bytes*/
+ static const char month_array[12][4] = {
QT_TRANSLATE_NOOP("gettextFromC", "Jan"), QT_TRANSLATE_NOOP("gettextFromC", "Feb"), QT_TRANSLATE_NOOP("gettextFromC", "Mar"), QT_TRANSLATE_NOOP("gettextFromC", "Apr"), QT_TRANSLATE_NOOP("gettextFromC", "May"), QT_TRANSLATE_NOOP("gettextFromC", "Jun"),
QT_TRANSLATE_NOOP("gettextFromC", "Jul"), QT_TRANSLATE_NOOP("gettextFromC", "Aug"), QT_TRANSLATE_NOOP("gettextFromC", "Sep"), QT_TRANSLATE_NOOP("gettextFromC", "Oct"), QT_TRANSLATE_NOOP("gettextFromC", "Nov"), QT_TRANSLATE_NOOP("gettextFromC", "Dec"),
};