Rename ressources into resources

This commit is contained in:
2015-06-20 18:22:51 +02:00
parent 7e5f13c445
commit 9dac732efe
36 changed files with 518 additions and 394 deletions

View File

@@ -36,7 +36,7 @@
#endif
#define BDD_FILE "kc.bdd"
#define INIT_SCRIPT RESSOURCES_ROOT "init.sql"
#define INIT_SCRIPT RESOURCES_ROOT "init.sql"
// if (!_db.CheckSyntax(req))

View File

@@ -21,7 +21,7 @@
#define SUPPORTEDLANGUAGES_H
namespace SupportedLanguages {
#define ICONS_PATH RESSOURCES_ROOT "icons/"
#define ICONS_PATH RESOURCES_ROOT "icons/"
enum Language {English, French, NB_SUPPORTED_LANGUAGES} ;

View File

@@ -32,29 +32,29 @@ namespace view {
#define DEFAULT_FONT(font_name) QFont font_name;
};
#define DELETE_ICON RESSOURCES_ROOT "icons/delete.png"
#define CHECKED_ICON RESSOURCES_ROOT "icons/check.png"
#define DELETE_ICON RESOURCES_ROOT "icons/delete.png"
#define CHECKED_ICON RESOURCES_ROOT "icons/check.png"
#define USER_ICON RESSOURCES_ROOT "icons/user.png"
#define STATS_ICON RESSOURCES_ROOT "icons/charts.png"
#define SEARCH_ICON RESSOURCES_ROOT "icons/search.png"
#define PREFS_ICON RESSOURCES_ROOT "icons/preferences.png"
#define IMPORT_ICON RESSOURCES_ROOT "icons/import.png"
#define EXPORT_ICON RESSOURCES_ROOT "icons/export.png"
#define CHANGE_USER_ICON RESSOURCES_ROOT "icons/switch_user.png"
#define ABOUT_ICON RESSOURCES_ROOT "icons/about.png"
#define QUIT_ICON RESSOURCES_ROOT "icons/exit.png"
#define USER_ICON RESOURCES_ROOT "icons/user.png"
#define STATS_ICON RESOURCES_ROOT "icons/charts.png"
#define SEARCH_ICON RESOURCES_ROOT "icons/search.png"
#define PREFS_ICON RESOURCES_ROOT "icons/preferences.png"
#define IMPORT_ICON RESOURCES_ROOT "icons/import.png"
#define EXPORT_ICON RESOURCES_ROOT "icons/export.png"
#define CHANGE_USER_ICON RESOURCES_ROOT "icons/switch_user.png"
#define ABOUT_ICON RESOURCES_ROOT "icons/about.png"
#define QUIT_ICON RESOURCES_ROOT "icons/exit.png"
#define USER_LOW_ICON RESSOURCES_ROOT "icons/user_low.png"
#define STATS_LOW_ICON RESSOURCES_ROOT "icons/charts_low.png"
#define SEARCH_LOW_ICON RESSOURCES_ROOT "icons/search_low.png"
#define PREFS_LOW_ICON RESSOURCES_ROOT "icons/preferences_low.png"
#define IMPORT_LOW_ICON RESSOURCES_ROOT "icons/import_low.png"
#define EXPORT_LOW_ICON RESSOURCES_ROOT "icons/export_low.png"
#define CHANGE_USER_LOW_ICON RESSOURCES_ROOT "icons/switch_user_low.png"
#define ABOUT_LOW_ICON RESSOURCES_ROOT "icons/about_low.png"
#define QUIT_LOW_ICON RESSOURCES_ROOT "icons/exit_low.png"
#define USER_LOW_ICON RESOURCES_ROOT "icons/user_low.png"
#define STATS_LOW_ICON RESOURCES_ROOT "icons/charts_low.png"
#define SEARCH_LOW_ICON RESOURCES_ROOT "icons/search_low.png"
#define PREFS_LOW_ICON RESOURCES_ROOT "icons/preferences_low.png"
#define IMPORT_LOW_ICON RESOURCES_ROOT "icons/import_low.png"
#define EXPORT_LOW_ICON RESOURCES_ROOT "icons/export_low.png"
#define CHANGE_USER_LOW_ICON RESOURCES_ROOT "icons/switch_user_low.png"
#define ABOUT_LOW_ICON RESOURCES_ROOT "icons/about_low.png"
#define QUIT_LOW_ICON RESOURCES_ROOT "icons/exit_low.png"
#define LANG_ROOT RESSOURCES_ROOT "po/"
#define LANG_ROOT RESOURCES_ROOT "po/"
#endif

View File

@@ -144,10 +144,10 @@ bool wxUI::SetLanguage(QString language)
if (i != SupportedLanguages::English)
{
if (!_translator.load(SupportedLanguages::languages[i].filename, RESSOURCES_ROOT "po"))
if (!_translator.load(SupportedLanguages::languages[i].filename, RESOURCES_ROOT "po"))
{
i = SupportedLanguages::English;
_translator.load(SupportedLanguages::languages[i].filename, RESSOURCES_ROOT "po");
_translator.load(SupportedLanguages::languages[i].filename, RESOURCES_ROOT "po");
_language = SupportedLanguages::languages[i].name;
res = false;
}
@@ -316,7 +316,7 @@ void wxUI::ChangeUser()
void wxUI::OnButtonAbout()
{
QMessageBox::information(0, "KissCount " APP_VERSION, _("Personal accounting software") + "\n\nhttp://indefero.soutade.fr/p/kisscount/\n\n" + _("Licenced under GNU GPL v3") + "\n\nCopyright (C) 2010-2014 Grégory Soutadé");
QMessageBox::information(0, "KissCount " APP_VERSION, _("Personal accounting software") + "\n\nhttp://indefero.soutade.fr/p/kisscount/\n\n" + _("Licenced under GNU GPL v3") + "\n\nCopyright (C) 2010-2015 Grégory Soutadé");
}
void wxUI::OnButtonQuit()