Add Debian packaging
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
#define DATABASE_VERSION 2
|
||||
|
||||
#define BDD_FILE "/.kisscount/kc.bdd"
|
||||
#define INIT_SCRIPT "init.sql"
|
||||
#define INIT_SCRIPT RESSOURCES_ROOT "init.sql"
|
||||
|
||||
#define FIX_OP (1 << 0)
|
||||
#define NON_FIX_OP (1 << 1)
|
||||
|
||||
@@ -29,7 +29,7 @@ typedef struct {
|
||||
} language ;
|
||||
|
||||
#define NB_SUPPORTED_LANGUAGES 2
|
||||
#define ICONS_PATH "./ressources/icons"
|
||||
#define ICONS_PATH RESSOURCES_ROOT "icons/"
|
||||
|
||||
extern language languages[NB_SUPPORTED_LANGUAGES];
|
||||
|
||||
|
||||
@@ -28,15 +28,17 @@
|
||||
#define DEFAULT_FONT_SIZE 12
|
||||
#define DEFAULT_FONT(font_name) wxFont font_name(DEFAULT_FONT_SIZE, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, DEFAULT_FONT_NAME);
|
||||
|
||||
#define DELETE_ICON "./ressources/icons/process-stop.png"
|
||||
#define CHECKED_ICON "./ressources/icons/tick-icon.png"
|
||||
#define ACCOUNT_ICON "./ressources/icons/administrator-icon.png"
|
||||
#define STATS_ICON "./ressources/icons/chart-icon.png"
|
||||
#define SEARCH_ICON "./ressources/icons/Search-icon.png"
|
||||
#define PREFS_ICON "./ressources/icons/options-icon.png"
|
||||
#define CHANGE_USER_ICON "./ressources/icons/Clients-icon.png"
|
||||
#define ABOUT_ICON "./ressources/icons/windows-users-icon.png"
|
||||
#define QUIT_ICON "./ressources/icons/system-log-out.png"
|
||||
#define DELETE_ICON RESSOURCES_ROOT "icons/process-stop.png"
|
||||
#define CHECKED_ICON RESSOURCES_ROOT "icons/tick-icon.png"
|
||||
#define ACCOUNT_ICON RESSOURCES_ROOT "icons/administrator-icon.png"
|
||||
#define STATS_ICON RESSOURCES_ROOT "icons/chart-icon.png"
|
||||
#define SEARCH_ICON RESSOURCES_ROOT "icons/Search-icon.png"
|
||||
#define PREFS_ICON RESSOURCES_ROOT "icons/options-icon.png"
|
||||
#define CHANGE_USER_ICON RESSOURCES_ROOT "icons/Clients-icon.png"
|
||||
#define ABOUT_ICON RESSOURCES_ROOT "icons/windows-users-icon.png"
|
||||
#define QUIT_ICON RESSOURCES_ROOT "icons/system-log-out.png"
|
||||
|
||||
#define LANG_ROOT RESSOURCES_ROOT "po/"
|
||||
|
||||
#include "KissPanel.h"
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ bool wxUI::SetLanguage(long language)
|
||||
_locale = new wxLocale( language, wxLOCALE_CONV_ENCODING );
|
||||
|
||||
#ifdef __WXGTK__
|
||||
_locale->AddCatalogLookupPathPrefix(wxT("./ressources/po"));
|
||||
_locale->AddCatalogLookupPathPrefix(wxT(LANG_ROOT));
|
||||
#endif
|
||||
|
||||
_locale->AddCatalog(wxT("french"));
|
||||
@@ -110,7 +110,7 @@ bool wxUI::SetLanguage(long language)
|
||||
_locale = new wxLocale();
|
||||
|
||||
#ifdef __WXGTK__
|
||||
_locale->AddCatalogLookupPathPrefix(wxT("./ressources/po"));
|
||||
_locale->AddCatalogLookupPathPrefix(wxT(LANG_ROOT));
|
||||
#endif
|
||||
|
||||
_locale->AddCatalog(wxT("kisscount"));
|
||||
|
||||
Reference in New Issue
Block a user