Set x axis label to "days" in StatsPanel for in-month stats

This commit is contained in:
Grégory Soutadé 2012-03-20 09:34:30 +01:00
parent f5f787aeec
commit 223106fbfc
4 changed files with 73 additions and 63 deletions

Binary file not shown.

View File

@ -2,7 +2,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-02-26 09:14+0100\n" "POT-Creation-Date: 2012-03-20 09:31+0100\n"
"PO-Revision-Date: \n" "PO-Revision-Date: \n"
"Last-Translator: Soutadé <soutade@gmail.com>\n" "Last-Translator: Soutadé <soutade@gmail.com>\n"
"Language-Team: \n" "Language-Team: \n"
@ -19,7 +19,7 @@ msgstr ""
# This file is distributed under the same license as the PACKAGE package. # This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
# #
#: src/view/StatsPanel.cpp:415 #: src/view/StatsPanel.cpp:416
msgid " - " msgid " - "
msgstr " - " msgstr " - "
@ -71,7 +71,7 @@ msgstr "%d comptes"
msgid "%d categories" msgid "%d categories"
msgstr "%d catégories" msgstr "%d catégories"
#: src/view/StatsPanel.cpp:355 #: src/view/StatsPanel.cpp:360
msgid "0 line" msgid "0 line"
msgstr "Limite 0" msgstr "Limite 0"
@ -90,7 +90,7 @@ msgstr "Compte"
msgid "Account " msgid "Account "
msgstr "Le compte " msgstr "Le compte "
#: src/controller/KissCount.cpp:345 #: src/controller/KissCount.cpp:344
msgid "Account 1" msgid "Account 1"
msgstr "Compte 1" msgstr "Compte 1"
@ -103,7 +103,7 @@ msgstr "Nom du compte"
msgid "Account number" msgid "Account number"
msgstr "Numéro de compte" msgstr "Numéro de compte"
#: src/view/StatsPanel.cpp:354 #: src/view/StatsPanel.cpp:359
#: src/view/PreferencesPanel.cpp:47 #: src/view/PreferencesPanel.cpp:47
msgid "Accounts" msgid "Accounts"
msgstr "Comptes" msgstr "Comptes"
@ -112,7 +112,7 @@ msgstr "Comptes"
msgid "Accounts updated until " msgid "Accounts updated until "
msgstr "Comptes mis à jours jusqu'à " msgstr "Comptes mis à jours jusqu'à "
#: src/view/StatsPanel.cpp:339 #: src/view/StatsPanel.cpp:337
msgid "Amount" msgid "Amount"
msgstr "Montant" msgstr "Montant"
@ -138,7 +138,7 @@ msgstr "Format de fichier non reconnu"
msgid "Are you sure want to delete " msgid "Are you sure want to delete "
msgstr "Etes vous sûr de vouloir supprimer " msgstr "Etes vous sûr de vouloir supprimer "
#: src/view/grid/GridAccount.cpp:757 #: src/view/grid/GridAccount.cpp:776
msgid "Are you sure want to delete : \n" msgid "Are you sure want to delete : \n"
msgstr "Etes vous sûr de vouloir supprimer : \n" msgstr "Etes vous sûr de vouloir supprimer : \n"
@ -168,17 +168,17 @@ msgstr "Bloqué"
msgid "Cancel" msgid "Cancel"
msgstr "Annuler" msgstr "Annuler"
#: src/view/grid/GridAccount.cpp:1247 #: src/view/grid/GridAccount.cpp:1266
#: src/view/grid/GridAccount.cpp:1260 #: src/view/grid/GridAccount.cpp:1279
msgid "Cannot group these operations" msgid "Cannot group these operations"
msgstr "Impossible de grouper ces opérations" msgstr "Impossible de grouper ces opérations"
#: src/view/grid/GridAccount.cpp:1391 #: src/view/grid/GridAccount.cpp:1410
#: src/view/grid/GridAccount.cpp:1397 #: src/view/grid/GridAccount.cpp:1416
msgid "Cannot ungroup these operations" msgid "Cannot ungroup these operations"
msgstr "Impossible de dégrouper ces opérations" msgstr "Impossible de dégrouper ces opérations"
#: src/controller/KissCount.cpp:336 #: src/controller/KissCount.cpp:335
msgid "Car" msgid "Car"
msgstr "Voiture" msgstr "Voiture"
@ -286,6 +286,10 @@ msgstr "Date min"
msgid "Date to" msgid "Date to"
msgstr "Date max" msgstr "Date max"
#: src/view/StatsPanel.cpp:351
msgid "Days"
msgstr "Jours"
#: src/view/grid/GridAccount.cpp:72 #: src/view/grid/GridAccount.cpp:72
msgid "Debit" msgid "Debit"
msgstr "Débit" msgstr "Débit"
@ -313,7 +317,7 @@ msgstr "Description"
msgid "Enter a new description" msgid "Enter a new description"
msgstr "Nouvelle description" msgstr "Nouvelle description"
#: src/view/StatsPanel.cpp:430 #: src/view/StatsPanel.cpp:431
#: src/view/UsersDialog.cpp:90 #: src/view/UsersDialog.cpp:90
#: src/view/UsersDialog.cpp:120 #: src/view/UsersDialog.cpp:120
#: src/view/SearchBanner.cpp:149 #: src/view/SearchBanner.cpp:149
@ -335,10 +339,10 @@ msgstr "Nouvelle description"
#: src/view/PasswordDialog.cpp:64 #: src/view/PasswordDialog.cpp:64
#: src/view/PasswordDialog.cpp:70 #: src/view/PasswordDialog.cpp:70
#: src/view/AccountPanel.cpp:970 #: src/view/AccountPanel.cpp:970
#: src/view/grid/GridAccount.cpp:1247 #: src/view/grid/GridAccount.cpp:1266
#: src/view/grid/GridAccount.cpp:1260 #: src/view/grid/GridAccount.cpp:1279
#: src/view/grid/GridAccount.cpp:1391 #: src/view/grid/GridAccount.cpp:1410
#: src/view/grid/GridAccount.cpp:1397 #: src/view/grid/GridAccount.cpp:1416
#: src/view/grid/FormulaDelegate.cpp:59 #: src/view/grid/FormulaDelegate.cpp:59
#: src/model/Database.cpp:57 #: src/model/Database.cpp:57
#: src/model/Database.cpp:65 #: src/model/Database.cpp:65
@ -381,8 +385,8 @@ msgid "Final value"
msgstr "Valeur finale" msgstr "Valeur finale"
#: src/view/SearchBanner.cpp:70 #: src/view/SearchBanner.cpp:70
#: src/view/grid/GridAccount.cpp:342 #: src/view/grid/GridAccount.cpp:359
#: src/controller/KissCount.cpp:336 #: src/controller/KissCount.cpp:335
msgid "Fix" msgid "Fix"
msgstr "Fixe" msgstr "Fixe"
@ -411,7 +415,7 @@ msgstr "Générer mois"
msgid "Grisbi files (*.gsb)" msgid "Grisbi files (*.gsb)"
msgstr "Fichiers Grisbi (*.gsb)" msgstr "Fichiers Grisbi (*.gsb)"
#: src/controller/KissCount.cpp:336 #: src/controller/KissCount.cpp:335
msgid "Groceries" msgid "Groceries"
msgstr "Courses" msgstr "Courses"
@ -423,7 +427,7 @@ msgstr "Grouper"
msgid "Hidden" msgid "Hidden"
msgstr "Caché" msgstr "Caché"
#: src/controller/KissCount.cpp:336 #: src/controller/KissCount.cpp:335
msgid "Hobbies" msgid "Hobbies"
msgstr "Loisirs" msgstr "Loisirs"
@ -479,7 +483,7 @@ msgstr "Ancien mot de passe invalide"
msgid "Invalid password" msgid "Invalid password"
msgstr "Mot de passe invalide" msgstr "Mot de passe invalide"
#: src/view/StatsPanel.cpp:430 #: src/view/StatsPanel.cpp:431
msgid "Invalide date range" msgid "Invalide date range"
msgstr "Intervalle de temps invalide" msgstr "Intervalle de temps invalide"
@ -541,7 +545,7 @@ msgstr "Charger les opérations"
msgid "Mode" msgid "Mode"
msgstr "Mode" msgstr "Mode"
#: src/view/StatsPanel.cpp:338 #: src/view/StatsPanel.cpp:348
msgid "Months" msgid "Months"
msgstr "Mois" msgstr "Mois"
@ -606,7 +610,7 @@ msgstr "Non rapprochée"
msgid "Number" msgid "Number"
msgstr "Numéro de compte" msgstr "Numéro de compte"
#: src/model/import/OFXImportEngine.cpp:140 #: src/model/import/OFXImportEngine.cpp:141
msgid "OFX files (*.ofx)" msgid "OFX files (*.ofx)"
msgstr "Fichiers OFX (*.ofx)" msgstr "Fichiers OFX (*.ofx)"
@ -637,7 +641,7 @@ msgstr "les opérations ont été importées avec succès"
msgid "Operations successfuly saved" msgid "Operations successfuly saved"
msgstr "Opérations sauvegardées avec succès" msgstr "Opérations sauvegardées avec succès"
#: src/controller/KissCount.cpp:337 #: src/controller/KissCount.cpp:336
msgid "Other" msgid "Other"
msgstr "Autres" msgstr "Autres"
@ -649,7 +653,7 @@ msgstr "Mot de passe "
msgid "Password changed" msgid "Password changed"
msgstr "Mot de passe changé" msgstr "Mot de passe changé"
#: src/view/wxUI.cpp:265 #: src/view/wxUI.cpp:287
msgid "" msgid ""
"Personal accounting software\n" "Personal accounting software\n"
"\n" "\n"
@ -676,7 +680,7 @@ msgstr "Re entrez le mot de passe"
msgid "Preferences" msgid "Preferences"
msgstr "Préférences" msgstr "Préférences"
#: src/view/wxUI.cpp:270 #: src/view/wxUI.cpp:292
msgid "Quit KissCount ?" msgid "Quit KissCount ?"
msgstr "Quitter KissCount ?" msgstr "Quitter KissCount ?"
@ -707,8 +711,8 @@ msgstr "Chercher"
msgid "Shared with" msgid "Shared with"
msgstr "Partagé avec" msgstr "Partagé avec"
#: src/view/StatsPanel.cpp:212 #: src/view/StatsPanel.cpp:215
#: src/view/StatsPanel.cpp:415 #: src/view/StatsPanel.cpp:416
msgid "Statistics" msgid "Statistics"
msgstr "Statistiques" msgstr "Statistiques"
@ -742,7 +746,7 @@ msgstr "Impossible de créer "
msgid "Unable to open Database" msgid "Unable to open Database"
msgstr "Impossible d'ouvrir la base de données" msgstr "Impossible d'ouvrir la base de données"
#: src/controller/KissCount.cpp:337 #: src/controller/KissCount.cpp:336
msgid "Unexpected" msgid "Unexpected"
msgstr "Exceptionnel" msgstr "Exceptionnel"
@ -794,7 +798,7 @@ msgstr "Utilisateurs"
msgid "Virtual" msgid "Virtual"
msgstr "Virtuel" msgstr "Virtuel"
#: src/view/grid/GridAccount.cpp:1053 #: src/view/grid/GridAccount.cpp:1072
msgid "Warning" msgid "Warning"
msgstr "Attention" msgstr "Attention"
@ -806,55 +810,55 @@ msgstr "Quel compte va remplacer celui-ci ?"
msgid "Wich category will replace this one ?" msgid "Wich category will replace this one ?"
msgstr "Quelle catégorie va remplacer celle-ci" msgstr "Quelle catégorie va remplacer celle-ci"
#: src/view/grid/GridAccount.cpp:1053 #: src/view/grid/GridAccount.cpp:1072
msgid "You made a debit on a blocked account" msgid "You made a debit on a blocked account"
msgstr "Vous avez effectué une opération de débit sur un compte bloqué" msgstr "Vous avez effectué une opération de débit sur un compte bloqué"
#: src/view/wxUI.cpp:135 #: src/view/wxUI.cpp:157
msgid "april" msgid "april"
msgstr "avril" msgstr "avril"
#: src/view/wxUI.cpp:139 #: src/view/wxUI.cpp:161
msgid "august" msgid "august"
msgstr "août" msgstr "août"
#: src/view/wxUI.cpp:143 #: src/view/wxUI.cpp:165
msgid "december" msgid "december"
msgstr "décembre" msgstr "décembre"
#: src/view/wxUI.cpp:133 #: src/view/wxUI.cpp:155
msgid "february" msgid "february"
msgstr "février" msgstr "février"
#: src/view/wxUI.cpp:132 #: src/view/wxUI.cpp:154
msgid "january" msgid "january"
msgstr "janvier" msgstr "janvier"
#: src/view/wxUI.cpp:138 #: src/view/wxUI.cpp:160
msgid "july" msgid "july"
msgstr "juillet" msgstr "juillet"
#: src/view/wxUI.cpp:137 #: src/view/wxUI.cpp:159
msgid "june" msgid "june"
msgstr "juin" msgstr "juin"
#: src/view/wxUI.cpp:134 #: src/view/wxUI.cpp:156
msgid "march" msgid "march"
msgstr "mars" msgstr "mars"
#: src/view/wxUI.cpp:136 #: src/view/wxUI.cpp:158
msgid "may" msgid "may"
msgstr "mai" msgstr "mai"
#: src/view/wxUI.cpp:142 #: src/view/wxUI.cpp:164
msgid "november" msgid "november"
msgstr "novembre" msgstr "novembre"
#: src/view/wxUI.cpp:141 #: src/view/wxUI.cpp:163
msgid "october" msgid "october"
msgstr "octobre" msgstr "octobre"
#: src/view/wxUI.cpp:140 #: src/view/wxUI.cpp:162
msgid "september" msgid "september"
msgstr "septembre" msgstr "septembre"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-02-26 14:03+0100\n" "POT-Creation-Date: 2012-03-20 09:31+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -17,7 +17,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
#: src/view/StatsPanel.cpp:415 #: src/view/StatsPanel.cpp:416
msgid " - " msgid " - "
msgstr "" msgstr ""
@ -65,7 +65,7 @@ msgstr ""
msgid "%d categories" msgid "%d categories"
msgstr "" msgstr ""
#: src/view/StatsPanel.cpp:355 #: src/view/StatsPanel.cpp:360
msgid "0 line" msgid "0 line"
msgstr "" msgstr ""
@ -93,7 +93,7 @@ msgstr ""
msgid "Account number" msgid "Account number"
msgstr "" msgstr ""
#: src/view/StatsPanel.cpp:354 src/view/PreferencesPanel.cpp:47 #: src/view/StatsPanel.cpp:359 src/view/PreferencesPanel.cpp:47
msgid "Accounts" msgid "Accounts"
msgstr "" msgstr ""
@ -101,7 +101,7 @@ msgstr ""
msgid "Accounts updated until " msgid "Accounts updated until "
msgstr "" msgstr ""
#: src/view/StatsPanel.cpp:339 #: src/view/StatsPanel.cpp:337
msgid "Amount" msgid "Amount"
msgstr "" msgstr ""
@ -125,7 +125,7 @@ msgstr ""
msgid "Are you sure want to delete " msgid "Are you sure want to delete "
msgstr "" msgstr ""
#: src/view/grid/GridAccount.cpp:757 #: src/view/grid/GridAccount.cpp:776
msgid "Are you sure want to delete : \n" msgid "Are you sure want to delete : \n"
msgstr "" msgstr ""
@ -154,11 +154,11 @@ msgstr ""
msgid "Cancel" msgid "Cancel"
msgstr "" msgstr ""
#: src/view/grid/GridAccount.cpp:1247 src/view/grid/GridAccount.cpp:1260 #: src/view/grid/GridAccount.cpp:1266 src/view/grid/GridAccount.cpp:1279
msgid "Cannot group these operations" msgid "Cannot group these operations"
msgstr "" msgstr ""
#: src/view/grid/GridAccount.cpp:1391 src/view/grid/GridAccount.cpp:1397 #: src/view/grid/GridAccount.cpp:1410 src/view/grid/GridAccount.cpp:1416
msgid "Cannot ungroup these operations" msgid "Cannot ungroup these operations"
msgstr "" msgstr ""
@ -264,6 +264,10 @@ msgstr ""
msgid "Date to" msgid "Date to"
msgstr "" msgstr ""
#: src/view/StatsPanel.cpp:351
msgid "Days"
msgstr ""
#: src/view/grid/GridAccount.cpp:72 #: src/view/grid/GridAccount.cpp:72
msgid "Debit" msgid "Debit"
msgstr "" msgstr ""
@ -289,7 +293,7 @@ msgstr ""
msgid "Enter a new description" msgid "Enter a new description"
msgstr "" msgstr ""
#: src/view/StatsPanel.cpp:430 src/view/UsersDialog.cpp:90 #: src/view/StatsPanel.cpp:431 src/view/UsersDialog.cpp:90
#: src/view/UsersDialog.cpp:120 src/view/SearchBanner.cpp:149 #: src/view/UsersDialog.cpp:120 src/view/SearchBanner.cpp:149
#: src/view/SearchBanner.cpp:159 src/view/SearchBanner.cpp:172 #: src/view/SearchBanner.cpp:159 src/view/SearchBanner.cpp:172
#: src/view/SearchBanner.cpp:181 src/view/ImportPanel.cpp:170 #: src/view/SearchBanner.cpp:181 src/view/ImportPanel.cpp:170
@ -300,8 +304,8 @@ msgstr ""
#: src/view/PreferencesPanel.cpp:1032 src/view/PreferencesPanel.cpp:1038 #: src/view/PreferencesPanel.cpp:1032 src/view/PreferencesPanel.cpp:1038
#: src/view/PreferencesPanel.cpp:1078 src/view/PasswordDialog.cpp:64 #: src/view/PreferencesPanel.cpp:1078 src/view/PasswordDialog.cpp:64
#: src/view/PasswordDialog.cpp:70 src/view/AccountPanel.cpp:970 #: src/view/PasswordDialog.cpp:70 src/view/AccountPanel.cpp:970
#: src/view/grid/GridAccount.cpp:1247 src/view/grid/GridAccount.cpp:1260 #: src/view/grid/GridAccount.cpp:1266 src/view/grid/GridAccount.cpp:1279
#: src/view/grid/GridAccount.cpp:1391 src/view/grid/GridAccount.cpp:1397 #: src/view/grid/GridAccount.cpp:1410 src/view/grid/GridAccount.cpp:1416
#: src/view/grid/FormulaDelegate.cpp:59 src/model/Database.cpp:57 #: src/view/grid/FormulaDelegate.cpp:59 src/model/Database.cpp:57
#: src/model/Database.cpp:65 src/model/Database.cpp:84 #: src/model/Database.cpp:65 src/model/Database.cpp:84
#: src/model/Database.cpp:112 src/model/Database.cpp:118 #: src/model/Database.cpp:112 src/model/Database.cpp:118
@ -336,7 +340,7 @@ msgstr ""
msgid "Final value" msgid "Final value"
msgstr "" msgstr ""
#: src/view/SearchBanner.cpp:70 src/view/grid/GridAccount.cpp:342 #: src/view/SearchBanner.cpp:70 src/view/grid/GridAccount.cpp:359
#: src/controller/KissCount.cpp:335 #: src/controller/KissCount.cpp:335
msgid "Fix" msgid "Fix"
msgstr "" msgstr ""
@ -433,7 +437,7 @@ msgstr ""
msgid "Invalid password" msgid "Invalid password"
msgstr "" msgstr ""
#: src/view/StatsPanel.cpp:430 #: src/view/StatsPanel.cpp:431
msgid "Invalide date range" msgid "Invalide date range"
msgstr "" msgstr ""
@ -492,7 +496,7 @@ msgstr ""
msgid "Mode" msgid "Mode"
msgstr "" msgstr ""
#: src/view/StatsPanel.cpp:338 #: src/view/StatsPanel.cpp:348
msgid "Months" msgid "Months"
msgstr "" msgstr ""
@ -549,7 +553,7 @@ msgstr ""
msgid "Number" msgid "Number"
msgstr "" msgstr ""
#: src/model/import/OFXImportEngine.cpp:140 #: src/model/import/OFXImportEngine.cpp:141
msgid "OFX files (*.ofx)" msgid "OFX files (*.ofx)"
msgstr "" msgstr ""
@ -638,7 +642,7 @@ msgstr ""
msgid "Shared with" msgid "Shared with"
msgstr "" msgstr ""
#: src/view/StatsPanel.cpp:212 src/view/StatsPanel.cpp:415 #: src/view/StatsPanel.cpp:215 src/view/StatsPanel.cpp:416
msgid "Statistics" msgid "Statistics"
msgstr "" msgstr ""
@ -712,7 +716,7 @@ msgstr ""
msgid "Virtual" msgid "Virtual"
msgstr "" msgstr ""
#: src/view/grid/GridAccount.cpp:1053 #: src/view/grid/GridAccount.cpp:1072
msgid "Warning" msgid "Warning"
msgstr "" msgstr ""
@ -724,7 +728,7 @@ msgstr ""
msgid "Wich category will replace this one ?" msgid "Wich category will replace this one ?"
msgstr "" msgstr ""
#: src/view/grid/GridAccount.cpp:1053 #: src/view/grid/GridAccount.cpp:1072
msgid "You made a debit on a blocked account" msgid "You made a debit on a blocked account"
msgstr "" msgstr ""

View File

@ -334,7 +334,6 @@ void StatsPanel::UpdateStats(int monthFrom, int yearFrom, int monthTo, int yearT
KDChart::CartesianAxis *yAxis = new KDChart::CartesianAxis (_plot->lineDiagram()); KDChart::CartesianAxis *yAxis = new KDChart::CartesianAxis (_plot->lineDiagram());
xAxis->setPosition (KDChart::CartesianAxis::Bottom); xAxis->setPosition (KDChart::CartesianAxis::Bottom);
yAxis->setPosition (KDChart::CartesianAxis::Left); yAxis->setPosition (KDChart::CartesianAxis::Left);
xAxis->setTitleText (_("Months"));
yAxis->setTitleText (_("Amount")); yAxis->setTitleText (_("Amount"));
xAxis->setLabels(xlabels); xAxis->setLabels(xlabels);
@ -346,7 +345,10 @@ void StatsPanel::UpdateStats(int monthFrom, int yearFrom, int monthTo, int yearT
KDChart::TextAttributes axisTextAttr(xAxis->textAttributes()); KDChart::TextAttributes axisTextAttr(xAxis->textAttributes());
axisTextAttr.setRotation(-60); axisTextAttr.setRotation(-60);
xAxis->setTextAttributes(axisTextAttr); xAxis->setTextAttributes(axisTextAttr);
xAxis->setTitleText (_("Months"));
} }
else
xAxis->setTitleText (_("Days"));
_plot->lineDiagram()->addAxis(xAxis); _plot->lineDiagram()->addAxis(xAxis);
_plot->lineDiagram()->addAxis(yAxis); _plot->lineDiagram()->addAxis(yAxis);