Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/windirstat.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorOliver Schneider <oliver@assarbad.net>2014-02-18 04:32:39 +0400
committerOliver Schneider <oliver@assarbad.net>2014-02-18 04:32:39 +0400
commit06aa2d426102f2c8ba179cda4bab3c419d8117ce (patch)
tree156b7cc825a41f92aa04163299c50024ab039b48 /common
parent7ff8dd2315f84b58b424031fbcadc6974ff418ff (diff)
Assembling the attribution strings dynamically ... can probably be further improved
Diffstat (limited to 'common')
-rw-r--r--common/common_rsrcstr.h2
-rw-r--r--common/wds_constants.cpp181
-rw-r--r--common/wds_constants.h37
3 files changed, 214 insertions, 6 deletions
diff --git a/common/common_rsrcstr.h b/common/common_rsrcstr.h
index 0a6c547..dec2eac 100644
--- a/common/common_rsrcstr.h
+++ b/common/common_rsrcstr.h
@@ -31,7 +31,7 @@
#define IDSS_TRANSLATORS L"<list too long>"
// Version of resource DLL
-#define IDSS_RESOURCEDLL "Resource Version 4"
+#define IDSS_RESOURCEDLL "Resource Version 5"
// Version information in feedback always appears in English
#define IDSS_FROMsPLATFORMs "From: %1!s!. Platform: %2!s!.\r\n\r\n"
#define IDSS_SEV_CRITICAL "Critical Bug"
diff --git a/common/wds_constants.cpp b/common/wds_constants.cpp
new file mode 100644
index 0000000..9f372e7
--- /dev/null
+++ b/common/wds_constants.cpp
@@ -0,0 +1,181 @@
+// wds_constants.cpp
+//
+// WinDirStat - Directory Statistics
+// Copyright (C) 2014 Oliver Schneider (assarbad.net)
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// Author(s): - assarbad -> http://windirstat.info/contact/oliver/
+//
+
+#include "stdafx.h"
+#include "wds_constants.h"
+
+namespace wds
+{
+ demangle_t translator_demangle_email[] =
+ {
+ { L'/', L'-' },
+ { L'*', L'.' },
+ { L'#', L'\x0040' },
+ { 0, 0 },
+ };
+
+ contact_t authors[] =
+ {
+ { L"Bernhard Seifert", 0, L"https://windirstat.info/contact/bernhard/", L"Creator of the project, original author" },
+ { L"Oliver Schneider", 0, L"https://windirstat.info/contact/oliver/", L"Project maintainer" },
+ { L"Chris Wimmer", 0, L"http://sourceforge.net/users/dezipaitor", L"Contributor" },
+ { 0 },
+ };
+
+ translator_t translators[] =
+ {
+ {
+ MAKELANGID(LANG_CZECH, SUBLANG_CZECH_CZECH_REPUBLIC),
+ L"\x010Ce\x0161tina",
+ L"Czech",
+ L"cs",
+ {
+ { L"'TomR'", L"tomr#horses/online*cz", 0, 0 },
+ { 0 },
+ },
+ },
+ {
+ MAKELANGID(LANG_GERMAN, SUBLANG_GERMAN),
+ L"Deutsch",
+ L"German",
+ L"de-DE",
+ {
+ { L"WDS team", 0, 0, 0 },
+ { 0 },
+ },
+ },
+ {
+ MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US),
+ L"English",
+ L"English",
+ L"en-US",
+ {
+ { L"WDS team", 0, 0, 0 },
+ { 0 },
+ },
+ },
+ {
+ MAKELANGID(LANG_SPANISH, SUBLANG_SPANISH),
+ L"Espa\x00F1ol",
+ L"Spanish",
+ L"es",
+ {
+ { L"Sergio Omar Maurelli", L"sergiomaurelli#hotmail*com", 0, 0 },
+ { 0 },
+ },
+ },
+ {
+ MAKELANGID(LANG_FINNISH, SUBLANG_FINNISH_FINLAND),
+ L"Suomi",
+ L"Finnish",
+ L"fi",
+ {
+ { L"Markus Hietaranta", L"markus*hietaranta#gmail*com", 0, 0 },
+ { 0 },
+ },
+ },
+ {
+ MAKELANGID(LANG_FRENCH, SUBLANG_FRENCH),
+ L"Fran\x00E7ais",
+ L"French",
+ L"fr",
+ {
+ { L"Pascal Delrot", L"tigroo#users*sourceforge*net", 0, 0 },
+ { L"'UltraSam'", L"sam*fd#wanadoo*fr", 0 },
+ { 0 },
+ },
+ },
+ {
+ MAKELANGID(LANG_HUNGARIAN, SUBLANG_HUNGARIAN_HUNGARY),
+ L"Magyar",
+ L"Hungarian",
+ L"hu",
+ {
+ { L"'Leonard Nimoy'", L"sorge#freemail*hu", 0, 0 },
+ { 0 },
+ },
+ },
+ {
+ MAKELANGID(LANG_ITALIAN, SUBLANG_ITALIAN),
+ L"Italiano",
+ L"Italian",
+ L"it",
+ {
+ { L"Maria Antonietta Ricagno", L"ricagno#antotranslation*com", L"http://www.antotranslation.com", 0 },
+ { 0 },
+ },
+ },
+ {
+ MAKELANGID(LANG_DUTCH, SUBLANG_DUTCH),
+ L"Nederlands",
+ L"Dutch (Netherlands)",
+ L"nl",
+ {
+ { L"Gerben Wieringa", L"gerbenwieringa#gmail*com", 0, 0 },
+ { 0 },
+ },
+ },
+ {
+ MAKELANGID(LANG_POLISH, SUBLANG_POLISH_POLAND),
+ L"Polski",
+ L"Polish",
+ L"pl",
+ {
+ { L"Dariusz Ma\x0142" L"achowski", L"d_malachowski#pf*pl", 0, 0 },
+ { 0 },
+ },
+ },
+ {
+ MAKELANGID(LANG_PORTUGUESE, SUBLANG_PORTUGUESE_BRAZILIAN),
+ L"Portugu\x00EAs do Brasil",
+ L"Portuguese (Brazil)",
+ L"pt-BR",
+ {
+ { L"Eliezer Riani de Andrade", L"eliezer#rilaser*com*br", 0, 0 },
+ { 0 },
+ },
+ },
+ {
+ MAKELANGID(LANG_RUSSIAN, SUBLANG_RUSSIAN_RUSSIA),
+ L"\x0420\x0443\x0441\x0441\x043A\x0438\x0439",
+ L"Russian",
+ L"ru",
+ {
+ { L"Sergiy '\x041F\x043E\x043B\x0451\x0442' Polyetayev", L"s_polyetayev#hotmail*com", 0, 0 },
+ { 0 },
+ },
+ },
+ {
+ MAKELANGID(LANG_ESTONIAN, SUBLANG_ESTONIAN_ESTONIA),
+ L"Eesti",
+ L"Estonian",
+ L"et",
+ {
+ { L"'Logard'", 0, 0 },
+ { 0 },
+ },
+ },
+ {
+ 0 /* end marker */
+ },
+ };
+}
diff --git a/common/wds_constants.h b/common/wds_constants.h
index da28c80..47ff49a 100644
--- a/common/wds_constants.h
+++ b/common/wds_constants.h
@@ -2,7 +2,7 @@
//
// WinDirStat - Directory Statistics
// Copyright (C) 2003-2005 Bernhard Seifert
-// Copyright (C) 2004-2006, 2008 Oliver Schneider (assarbad.net)
+// Copyright (C) 2004-2014 Oliver Schneider (assarbad.net)
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -22,12 +22,39 @@
// - assarbad -> http://windirstat.info/contact/oliver/
//
-#ifndef __WDS_CONSTANTS_H__
-#define __WDS_CONSTANTS_H__
+#ifndef __WDS_CONSTANTS_H_VER__
+#define __WDS_CONSTANTS_H_VER__ 2014021723
+#if (defined(_MSC_VER) && (_MSC_VER >= 1020)) || defined(__MCPP)
#pragma once
+#endif // Check for "#pragma once" support
namespace wds
{
+ const size_t maxContacts = 5;
+ typedef struct _demangle_t
+ {
+ WCHAR from;
+ WCHAR to;
+ } demangle_t;
+ typedef struct _contact_t
+ {
+ LPWSTR name;
+ LPWSTR mail;
+ LPWSTR weburl;
+ LPWSTR description;
+ } contact_t;
+ typedef struct _translator_t
+ {
+ LCID id;
+ LPWSTR lngNative;
+ LPWSTR lngEnglish;
+ LPWSTR lngISO639_1;
+ contact_t translators[maxContacts];
+ } translator_t;
+ extern translator_t translators[];
+ extern contact_t authors[];
+ extern demangle_t translator_demangle_email[];
+
// Single character constants
const TCHAR chrSharp = _T('#');
const TCHAR chrBracketOpen = _T('(');
@@ -35,7 +62,7 @@ namespace wds
const TCHAR chrComma = _T(',');
const TCHAR chrDot = _T('.');
const TCHAR chrColon = _T(':');
- const TCHAR chrAt = _T('@');
+ const TCHAR chrAt = _T('\x40');
const TCHAR chrBackslash = _T('\\');
const TCHAR chrPipe = _T('|');
const TCHAR chrZero = _T('0');
@@ -76,4 +103,4 @@ namespace wds
const int iNumDriveLetters = (chrCapZ - chrCapA) + 1;
}
-#endif // __WDS_CONSTANTS_H__
+#endif // __WDS_CONSTANTS_H_VER__