Commit Graph

22 Commits

Author SHA1 Message Date
Thomas Citharel
1062f72d56 Merge branch 'fix-trads' into 'develop'
scripts: fix translations

See merge request framasoft/framadate/framadate!377
2019-04-17 16:01:03 +02:00
Pierre de La Morinerie
d110ee558f scripts: fix translations
Translations with a comma in the key are rewritten to be on a single
line.

But this failed when the comma was just preceded by a dot (like in
`etc.,`).

Fix the script so that it works even in those cases.
2019-04-17 12:51:37 +02:00
Paul B
64f086c04f
i18n: adds a check on missing translation keys in locale/*.json file
This commit adds a script to check all keys from translation files to
make sure no missing keys / no translation files are incorrect.

Even if missing keys should not happen (because we use a script to add
keys automatically) this script made helped to understand that all
three `ar`, `eo` and `fr_FR` translation files were completly off
compared to the `en.json` file.

I believe we can safely delete `ar`, `eo` and `fr_FR` locales from
Zanata (because those languages are not set in the ALLOWED_LANGUAGES
config array). ⚠️ this needs to be check in the production `config.php`
file ⚠️.

Deleting the `fr_FR` locale file should solve both !358 and #395

closes !358 #395
2019-04-16 14:55:15 +02:00
Luc Didry
ff88628acf
[zanata] Use git branch to specify the version of zanata's project 2018-08-17 13:58:43 +02:00
Luc Didry
6b3c5f0610
WIP Working on locales 2018-08-14 14:35:08 +02:00
Thomas Citharel
4b8fe75f95
Secure push-trad-to-zanata
Test json files with python module to make sure they're valid before converting them to po

Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Remove &&
2018-05-28 10:03:05 +02:00
Luc Didry
7d9f5becec Add script to add a key/value in locale/en.json + put all scripts in scripts/ 2018-04-17 11:46:15 +02:00
Thomas Citharel
3157d6a590 Run php-cs-fixer with a custom config. This may break a lot of things
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-02-19 19:43:30 +01:00
Olivier Perez
651289ec2d Merge branch 'bugfix/typo-in-comment-header' into 'develop'
Correcting comment typo in file header

Fix #190 

See merge request !144
2016-08-04 22:26:50 +02:00
Olivier Perez
362f08cd4c Refactor the packaging script 2015-04-10 16:55:17 +02:00
Olivier PEREZ
db5e9d8862 Add scripts/packaging.php that create a ZIP of the Framadate 2015-04-10 00:45:31 +02:00
Olivier PEREZ
5ebcfca91e Delete deprecated scripts 2015-04-10 00:44:54 +02:00
FramaJosephK
7f87858ff7 Mise à jour du dépôt avec la dernière version sur Github 2014-09-04 17:52:18 +02:00
Jean-Philippe Guérard
e3e9683be0 The removal function needs access to the database 2012-01-11 00:02:02 +01:00
Jean-Philippe Guérard
f86f2e3d76 Put sondage deletion in a function 2012-01-10 23:28:21 +01:00
Jean-Philippe Guérard
aa8523e318 Rewritten to use transactions 2011-12-30 04:16:41 +01:00
Jean-Philippe Guérard
5f1825179a PostgreSQL compatibility: suppress JOIN in DELETE 2011-12-29 19:40:49 +01:00
Simon Leblanc
5d4e4bbc46 Interdiction d'aller dans le répertoire des scripts 2011-06-25 20:24:54 +02:00
Simon Leblanc
d434e6e28d Correction de la requete SQL de suppression de sondage et correction lors de l'utilisation de la fonction error_log 2011-06-25 19:52:12 +02:00
pyg77
06a388283e nombreuses modifs : cf changelog 22 et 23 juin 2011-06-23 16:52:10 +02:00
Simon Leblanc
4f380d8f8d clean code (identation, if with {) 2011-05-15 03:56:54 +02:00
Simon Leblanc
475556c0e3 STUdS fork 2011-05-15 01:32:47 +02:00