From 2a02ae829ceebbf6c984df25a818f8c3b91b057b Mon Sep 17 00:00:00 2001
From: Phyks
Date: Tue, 17 Sep 2013 00:03:26 +0200
Subject: [PATCH] French template + Small ergnomoy improvements
---
TODO | 4 +-
inc/Invoices.class.php | 1 +
inc/Paybacks.class.php | 1 +
tpl/default_en/connection.html | 2 +-
tpl/default_en/index.html | 16 ++-
tpl/default_en/new_invoice.html | 4 +-
tpl/default_en/settings.html | 2 +-
tpl/default_fr/connection.html | 13 ++
tpl/default_fr/css/style.css | 173 +++++++++++++++++++++++++
tpl/default_fr/edit_users.html | 69 ++++++++++
tpl/default_fr/favicon-144.png | Bin 0 -> 1841 bytes
tpl/default_fr/favicon-152.png | Bin 0 -> 1948 bytes
tpl/default_fr/favicon-16.png | Bin 0 -> 525 bytes
tpl/default_fr/favicon-32.png | Bin 0 -> 578 bytes
tpl/default_fr/favicon.ico | Bin 0 -> 3638 bytes
tpl/default_fr/footer.html | 7 +
tpl/default_fr/header.html | 34 +++++
tpl/default_fr/img/toggleVisible.png | Bin 0 -> 332 bytes
tpl/default_fr/index.html | 121 +++++++++++++++++
tpl/default_fr/js/jquery-1.10.2.min.js | 6 +
tpl/default_fr/js/main.js | 67 ++++++++++
tpl/default_fr/new_invoice.html | 52 ++++++++
tpl/default_fr/settings.html | 65 ++++++++++
23 files changed, 629 insertions(+), 8 deletions(-)
create mode 100644 tpl/default_fr/connection.html
create mode 100644 tpl/default_fr/css/style.css
create mode 100644 tpl/default_fr/edit_users.html
create mode 100644 tpl/default_fr/favicon-144.png
create mode 100644 tpl/default_fr/favicon-152.png
create mode 100644 tpl/default_fr/favicon-16.png
create mode 100644 tpl/default_fr/favicon-32.png
create mode 100644 tpl/default_fr/favicon.ico
create mode 100755 tpl/default_fr/footer.html
create mode 100755 tpl/default_fr/header.html
create mode 100644 tpl/default_fr/img/toggleVisible.png
create mode 100755 tpl/default_fr/index.html
create mode 100644 tpl/default_fr/js/jquery-1.10.2.min.js
create mode 100644 tpl/default_fr/js/main.js
create mode 100755 tpl/default_fr/new_invoice.html
create mode 100644 tpl/default_fr/settings.html
diff --git a/TODO b/TODO
index 0604b1c..8a44717 100755
--- a/TODO
+++ b/TODO
@@ -4,16 +4,16 @@ None
To fix :
========
-* Best way to not cache the username on index page
+* Better way to not cache the username on index page
Improvements :
==============
-* French template
* User groups
* Search invoice
* JSON output => do index view
* API
* cf TODO in files
+* README file
Manage paybacks :
=================
diff --git a/inc/Invoices.class.php b/inc/Invoices.class.php
index 78e1b1d..56f00ae 100644
--- a/inc/Invoices.class.php
+++ b/inc/Invoices.class.php
@@ -73,6 +73,7 @@
}
public function setAmount ($amount) {
+ $amount = str_replace(',', '.', $amount);
$this->amount = (int) ($amount * 100); // Amount is stored in cents
}
diff --git a/inc/Paybacks.class.php b/inc/Paybacks.class.php
index abdc34d..3049e62 100644
--- a/inc/Paybacks.class.php
+++ b/inc/Paybacks.class.php
@@ -64,6 +64,7 @@
}
public function setAmount($amount) {
+ $amount = str_replace(',', '.', $amount);
$this->amount = (int) ($amount * 100); // Amount is stored in cents
}
diff --git a/tpl/default_en/connection.html b/tpl/default_en/connection.html
index f1e722a..f0bdb1a 100644
--- a/tpl/default_en/connection.html
+++ b/tpl/default_en/connection.html
@@ -1,6 +1,6 @@
{include="header"}
-{$instance_title} - Connexion
+{$instance_title} - Connection
- Note : Leave the field blank to not use any.
+ Note : Leave the field blank to not use any. You must create the necessary tables manually.