Commit Graph

1562 Commits

Author SHA1 Message Date
Thomas Citharel
86324bd1f4 Merge branch 'v1.2.0-alpha.1' into 'develop'
V1.2.0 alpha.1

See merge request framasoft/framadate/framadate!400
2019-05-01 20:54:40 +02:00
Thomas Citharel
082644a021
Version 1.2.0-alpha.1
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-05-01 20:51:55 +02:00
Thomas Citharel
82012628d1
Upgrade deps
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-05-01 20:51:41 +02:00
Thomas Citharel
485fb03405 Merge branch 'locales/update-locales' into 'develop'
Update locales

See merge request framasoft/framadate/framadate!399
2019-04-19 21:13:34 +02:00
Thomas Citharel
6395a3db0b
Update locales
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-04-19 21:11:07 +02:00
Thomas Citharel
2da258509c Merge branch 'deps/update' into 'develop'
Upgrade composer.lock deps

See merge request framasoft/framadate/framadate!398
2019-04-19 20:49:16 +02:00
Thomas Citharel
b93733ab8e
Upgrade composer.lock deps
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-04-19 20:46:59 +02:00
Thomas Citharel
1d0b565594 Merge branch 'create-poll-fix' into 'develop'
fix(create_poll): don't send emails in case of DB transaction errors

See merge request framasoft/framadate/framadate!384
2019-04-19 20:44:14 +02:00
Thomas Citharel
9f2cf79171 Merge branch 'mail/templates' into 'develop'
Extract poll update notification mails into smarty templates

See merge request framasoft/framadate/framadate!390
2019-04-19 20:43:00 +02:00
Thomas Citharel
be80321545 Merge branch 'cleanup/dependencies' into 'develop'
Cleanup/dependencies

See merge request framasoft/framadate/framadate!397
2019-04-19 20:42:44 +02:00
Thomas Citharel
532118ef06
Rebase and add public modifiers
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-04-19 20:40:32 +02:00
Liquidsoul
aa61f40d51
Use Services factory everywhere to initialize variables 2019-04-19 20:37:35 +02:00
Liquidsoul
1a66bd8bbe
Initialize Services factory 2019-04-19 20:37:35 +02:00
Liquidsoul
f641a35f8b
Add Services factory 2019-04-19 20:37:34 +02:00
Liquidsoul
8f23917639
Inject session and purge services in PollService 2019-04-19 20:37:34 +02:00
Thomas Citharel
cd55e9a40a Merge branch 'use-php-intl' into 'develop'
[Big] Move displaying dates from libc to PHP-intl / ICU

See merge request framasoft/framadate/framadate!396
2019-04-19 20:33:36 +02:00
Thomas Citharel
bc964e87a7
[Big] Move displaying dates from libc to PHP-intl / ICU
* Make sure we always work only with DateTimes
* Support slots again under SQLite
* Small fixes

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-04-19 20:29:32 +02:00
Paul B
c93741f475
create_poll: don't send emails in case of DB transaction errors
This commit adds an error message in the STEP 3 of the poll creation
form in case there is a DB transactions error.

It also makes sure to not send emails in case of those DB transaction
errors.
2019-04-19 17:58:59 +02:00
Liquidsoul
cefcb834d7
Extract poll update notification mails into smarty templates 2019-04-19 16:56:10 +02:00
Thomas Citharel
9aaf5b3bbd Merge branch 'ci/lint-verbose' into 'develop'
Add diff option to the linter to see errors/fixes

See merge request framasoft/framadate/framadate!394
2019-04-19 16:41:06 +02:00
Thomas Citharel
13d1103698 Merge branch 'refacto-creation-poll-service' into 'develop'
Refactorisation of the creation poll service

See merge request framasoft/framadate/framadate!383
2019-04-19 16:40:47 +02:00
Thomas Citharel
cb6c0baa26 Merge branch 'use-symfony-translation' into 'develop'
Use Symfony/Translation and use the .po files directly in the repo and app

See merge request framasoft/framadate/framadate!389
2019-04-19 16:38:33 +02:00
Nicolas Bouilleaud
b6723120ab Fix po files following #387
The msgid actually used in yyyy-mm-dd-for-humans, not year-month-day.
2019-04-19 15:56:53 +02:00
Paul B
9dd1a6ecf9
refacto: factorise code between date_poll and classic_poll creation
The last confirmation step during poll creation flow is identical
between date polls and classical polls.

This commit moves the code in the `PollService` to be used in both
creation poll controllers.
2019-04-19 15:52:28 +02:00
Paul B
dd55b7444c
MailService: expose a function 'isEnabled'
The `use_smtp` configuration key really means: Are emails enabled?

Indeed the 'smtp' naming is here for legacy reasons. (cf #425)
2019-04-19 15:52:28 +02:00
Paul B
f0b38fdb42
sessionService: use a generic removeAll function to unset FORM data
Instead of manually removing entries in the SESSION object, let the
SessionService do the work in creating poll controllers.
2019-04-19 15:52:27 +02:00
Paul B
5d74a5600d
cleanup: backport changes from date_poll into classic_poll
The last action of creatin a poll is the same code between classical
and date polls.

This commit backports the minor refactoring to have the exact same
code.

(done with ediff to make sure the code was similar)
2019-04-19 15:52:26 +02:00
Liquidsoul
95e7977c1b
Add diff option to the linter to see errors/fixes 2019-04-19 15:20:04 +02:00
Nicolas Bouilleaud
bc78721381 Fix i18n.php review comments
* Use the actually found locale for $locale in the rest of the app
2019-04-19 14:58:32 +02:00
Nicolas Bouilleaud
955faa108c Fix i18n.php review comments
* Use the DEFAULT_LANGUAGE as the default in locale_lookup.
* Initialise the translators explicitly.
2019-04-19 14:58:32 +02:00
Nicolas Bouilleaud
94739ba971 Fix i18n.php review comments
Use the DEFAULT_LANGUAGE as the default in locale_lookup.
2019-04-19 14:58:32 +02:00
Nicolas Bouilleaud
20240fee15 Fix i18n.php review comments
* remove useless is_string check
* use the DEFAULT_LANGUAGE when Accept-Language is invalid.
2019-04-19 14:58:32 +02:00
Nicolas Bouilleaud
780392bb37 Remove i18n related stuff from gitlab-ci 2019-04-19 14:58:32 +02:00
Nicolas Bouilleaud
aca1b57dfc Enable Hungarian (Magyar) 2019-04-19 14:58:32 +02:00
Nicolas Bouilleaud
0353e6f0d7 Add all po files 2019-04-19 14:58:32 +02:00
Nicolas Bouilleaud
98c43f4685 Remove i18n json files 2019-04-19 14:47:15 +02:00
Nicolas Bouilleaud
e7947354ac Fix smarty_function_markdown_to_text() to use $locale 2019-04-19 14:46:26 +02:00
Nicolas Bouilleaud
1f05d88c42 Remove old buildland / compare 2019-04-19 14:46:26 +02:00
Nicolas Bouilleaud
31f0a26baa Remove o80/i18n 2019-04-19 14:46:26 +02:00
Nicolas Bouilleaud
ecac9ccc94 Remove all scripts for json-based i18n 2019-04-19 14:46:26 +02:00
Nicolas Bouilleaud
3a6317c25a Rework i18n using Symfony/translation
Reimplement the __() and __f() functions using Symfony.
2019-04-19 14:46:26 +02:00
Thomas Citharel
705abe6cd6 Merge branch 'ci-migration-testing' into 'develop'
ci: some cleanup of the gitlab-ci file and testing migrations on MySQL

See merge request framasoft/framadate/framadate!388
2019-04-19 14:32:56 +02:00
PaulR
c26fef6b39 CI: cleanup the gitlab-ci yml file and test MySQL and PostgreSQL migrations
This commit splits the `test` job into three separate jobs:
- test
- lint
- db:migrate

It also factorise some code, and remove useless use of git checkout
2019-04-19 14:32:56 +02:00
Thomas Citharel
d87ca39693 Merge branch 'locales/pot-change-after-387' into 'develop'
Update pot after !387

See merge request framasoft/framadate/framadate!392
2019-04-19 13:51:48 +02:00
Thomas Citharel
2c056068de
Update pot after !387
(also make sure it's pushed to Zanata)

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-04-19 13:50:50 +02:00
Thomas Citharel
36bff4d5cc Merge branch 'localize-date-placeholders' into 'develop'
i18n: localize the date format placeholders

See merge request framasoft/framadate/framadate!387
2019-04-19 13:38:41 +02:00
Thomas Citharel
b63e90e53f Merge branch 'docker/smtp' into 'develop'
Add development SMTP server in docker-compose

See merge request framasoft/framadate/framadate!391
2019-04-19 13:35:21 +02:00
Liquidsoul
e03ad97382
Add development SMTP server 2019-04-19 12:59:13 +02:00
Pierre de La Morinerie
fe5d28e394 i18n: use full nouns in date placeholders 2019-04-18 15:44:06 +02:00
Pierre de La Morinerie
78714069f0 i18n: localize the date format placeholders
For instance, when using French, display the date input placeholder
as "jj/mm/aaaa" (instead of "dd/mm/yyyy").

This doesn't change the way dates are actually parsed – only what is
displayed to the user changes.
2019-04-18 12:18:02 +02:00