Commit Graph

248 Commits

Author SHA1 Message Date
Laurent Destailleur
b2e9d4cc21 Merge branch '3.9' of git@github.com:Dolibarr/dolibarr.git into 4.0 2017-05-10 23:42:49 +02:00
jfefe
d410a320d7 WIP #6504: CVE-2017-7886
'defaultlang' attribute was not filtered before database request which cause an SQL injection.
2017-05-10 20:32:54 +02:00
Laurent Destailleur
9fe28c9b2c NEW Can disable all overwrote translations in one click. 2017-05-09 10:08:04 +02:00
Laurent Destailleur
885a636351 Debug new journal list page 2017-05-05 16:35:05 +02:00
Laurent Destailleur
436f60a784 FIX Cache to load currencies was not working when loading all currencies 2017-04-14 18:08:02 +02:00
Laurent Destailleur
39ebaec064 Replace usage of $bc[$var] with class="oddeven" 2017-04-14 11:22:48 +02:00
Laurent Destailleur
07c828d38f Introduce method loadLangs to save code lines 2017-03-03 13:27:51 +01:00
Laurent Destailleur
53661e1e4f Merge pull request #6211 from GPCsolutions/optimizetranslate
[Qual] Optimize language file loading
2017-02-03 11:55:29 +01:00
Laurent Destailleur
6ab9ba3284 Fix management of alternative language for Greek (el_CY) 2017-01-21 21:52:42 +01:00
Laurent Destailleur
3a2d9c8610 Fix for rtl languages 2017-01-21 16:12:25 +01:00
Raphaël Doursenaud
ac92e23b59
[Qual] Optimize language file loading
Using fscanf() and the proper format is about twice as fast as
using fgets() followed by explode() and trim().

This is a small optimization per se but since this code is
called often it yields about 33% rendering time improvement on
the homepage where about 50% of the time is spent on loading the
translation files.
2016-12-23 01:11:50 +01:00
Laurent Destailleur
d24045d831 NEW Editing translation GUI become easier with search translation tool. 2016-09-04 14:45:43 +02:00
Laurent Destailleur
8505c5db09 Code comment 2016-07-06 13:26:49 +02:00
Laurent Destailleur
5aa561598f Fix exit into functions 2016-06-28 02:22:01 +02:00
Laurent Destailleur
e6a78739bd Fix translation from a key that is a numeric 2016-05-19 21:12:09 +02:00
Laurent Destailleur
97bf91cc5d Show both currency symbol and code 2016-04-30 14:09:00 +02:00
Laurent Destailleur
28b8258acb Fix in most cases, we don't need translated value of languages, jsut
list of language code.
Fix cost price was not updated.
2016-02-23 19:50:33 +01:00
Laurent Destailleur
18725b554b Option MAIN_REPLACE_TRANS_xx_XX is now completely implemented. 2015-10-19 13:23:45 +02:00
Laurent Destailleur
9f0c0bfc92 NEW Introduce hidden option MAIN_REPLACE_TRANS_xx_XX to allow simple
replacement of translated string on the fly.
2015-10-13 13:27:44 +02:00
Laurent Destailleur
b1168d223a NEW Introduce table llx_overwrite_trans to be able to overwrite
translations by simple database edition.
2015-09-17 18:44:42 +02:00
Laurent Destailleur
8ff41a8ded Enhance performance of option MAIN_OVERWRITE_TRANS_ 2015-09-17 15:35:51 +02:00
Laurent Destailleur
0a6451d72c Fix memcached effect was lost because init was done each time. 2015-09-07 20:17:05 +02:00
Laurent Destailleur
39cbd7629f Fix error message during import 2015-08-27 23:49:25 +02:00
Laurent Destailleur
ae5b779652 Uniformize code 2015-06-30 01:34:17 +02:00
Raphaël Doursenaud
3f9270ea78 Qual: added deprecation hinting
Added deprecation hinting for class properties
Added syslog warning events for deprecated functions, methods and/or their parameters
Added hinting for some constants
2015-06-01 11:00:11 +02:00
Scrutinizer Auto-Fixer
27e99793a3 Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2015-03-06 02:10:01 +00:00
Laurent Destailleur
608fa5eaed Fix: Avoid to load language when we can not. 2014-11-12 10:25:56 +01:00
Laurent Destailleur
47ebe21f7b Fix: Removed unused property 2014-11-11 23:38:56 +01:00
Laurent Destailleur
c8dd0383d8 New: Function getCurrencyAmount is marked as deprecated. Use function
price to output a price including currency symbol.
2014-10-16 01:26:44 +02:00
aspangaro
1a87d98357 Qual: Renamed table llx_c_civilite into llx_c_civility
field civilite into label in the same table and field civilite into civility in other table
2014-08-12 06:03:27 +02:00
Laurent Destailleur
4922071af9 New: When a translation is not available we always jump to en_US and
only en_US.
2014-08-08 10:50:37 +02:00
Laurent Destailleur
bb8ec0c8f9 Fix: Too many parameter 2014-08-01 14:26:13 +02:00
Marcos García de La Fuente
7e1cf124b8 Merge branch 'develop' into syslog
Conflicts:
	htdocs/commande/class/commande.class.php
	htdocs/compta/facture/class/facture.class.php
	htdocs/core/class/commonobject.class.php
	htdocs/fourn/class/fournisseur.commande.class.php
	htdocs/product/class/product.class.php
	htdocs/product/stock/lib/replenishment.lib.php
	htdocs/societe/soc.php
2014-07-02 21:20:02 +02:00
Laurent Destailleur
2dc3e5b104 Fix: [ bug #1471 ] Several PHP warnings when intercepting USER_CREATE
trigger (Add a protection to avoid multiple errors).
2014-06-20 16:20:39 +02:00
Marcos García de La Fuente
56abf1cd72 Removed duplicated SQL error logging 2014-06-13 02:28:30 +02:00
Marcos García de La Fuente
ca0a6cb307 Removed SQL string from call debug log 2014-06-13 01:34:39 +02:00
Laurent Destailleur
15796ec592 Fix: checkstyle errors 2014-05-14 12:19:45 +02:00
Florian HENRY
1f1a9e46fd Fix warning 2014-05-13 19:12:14 +02:00
Laurent Destailleur
c2c0a9b4bb Merge pull request #1568 from GPCsolutions/closingtagremoval
Qual: Remove the closing PHP tag
2014-05-04 18:08:37 +02:00
Raphaël Doursenaud
f8f502d013 Removed closing php tag
http://php.net/manual/en/language.basic-syntax.phptags.php
2014-05-03 18:18:44 +02:00
Marcos García de La Fuente
105d892d27 Corrected Translate::getLabelFromKey doc 2014-05-03 13:42:34 +02:00
Laurent Destailleur
ee6cac8294 Doc 2014-05-01 16:11:29 +02:00
Raphaël Doursenaud
43606c8ac4 Qual: Fixed typo 2014-04-23 18:23:58 +02:00
Laurent Destailleur
b0e38f7619 Fix: Manage strange language code reported bu chrome browsers. 2013-10-11 10:01:47 +02:00
Maxime Kohlhaas
845deb9a63 Add multilang management in ODT models 2013-10-08 09:17:04 +02:00
Laurent Destailleur
7f660302e2 Fix: Inconsistency arrays into php function 2013-06-19 23:46:18 +02:00
Laurent Destailleur
bae17bc39b Fix: Removed warning 2013-05-16 12:37:46 +02:00
Laurent Destailleur
df6c796413 Fix: [ bug #889 ] Titre civilité ne s'affiche 2013-05-12 17:09:48 +02:00
Laurent Destailleur
a0851ba99f More complete log. 2013-04-14 18:10:02 +02:00
fhenry
c109467d20 Qual : Review code after intalling PHPUnit, CodeSniffer on Eclipse... 2013-04-04 13:58:33 +02:00
Laurent Destailleur
c86f3ef4b4 Merge remote-tracking branch 'origin/3.3' into develop
Conflicts:
	htdocs/commande/fiche.php
	htdocs/core/modules/facture/doc/pdf_crabe.modules.php
2013-03-08 01:57:32 +01:00
Laurent Destailleur
44698fcde0 Fix: dol_is_dir may not be loaded, so call fails 2013-03-08 01:53:41 +01:00
Laurent Destailleur
d786e8ca6e Code comment 2013-02-24 02:42:37 +01:00
Laurent Destailleur
abb6daf2dc Merge remote-tracking branch 'origin/3.3' into develop
Conflicts:
	htdocs/core/boxes/box_activity.php
2013-01-19 16:29:16 +01:00
Laurent Destailleur
a5b174eccc Fix: Architecture of getCurrency was wrong. Cache was not stored
correctly and dict file loaded several times. There was also bug on PHP
without mb_string function.
Now function is a method of $langs object. All bug fixes.
2013-01-18 15:57:11 +01:00
Laurent Destailleur
6091f74b13 New: First changes to simplify/optimize menu management. 2013-01-17 18:39:15 +01:00
Laurent Destailleur
d11cee399a Merge remote-tracking branch 'origin/3.3' into develop
Conflicts:
	COPYRIGHT
	htdocs/core/tpl/freeproductline_create.tpl.php
	htdocs/core/tpl/predefinedproductline_create.tpl.php
	htdocs/install/mysql/tables/llx_c_availability.sql
2013-01-16 15:45:17 +01:00
Laurent Destailleur
8d206fdfb0 Prepare move to other licence. For the moment all answers for licence
upgrade were not yet received. So we prepare for GPL by uniformizing
licence text keys to GPL-3+. Will move later to AGPL if all answers are
positive.
2013-01-16 15:36:08 +01:00
Laurent Destailleur
1e9cb6b1d4 Qual: A translation file must not be loaded into class constructors, but
at output level.
2013-01-15 17:06:53 +01:00
Regis Houssin
b838895db9 Fix: change for a neutral email 2012-12-30 15:13:49 +01:00
Regis Houssin
5740c7e694 Fix: change for a neutral email 2012-12-30 15:11:07 +01:00
Laurent Destailleur
4136c27516 RESTORE CODE WITH ID D2adaf7. The Merge daacf79 as lost more than 50
commits !
2012-12-01 15:45:05 +01:00
Laurent Destailleur
8896803921 New: We can use a dynamic value ($conf->global->XXX for example) into
titles of menus.
New: Can choose menu entry to show with external site module.
2012-11-04 21:19:12 +01:00
Laurent Destailleur
5f3ceb0081 Fix: Label for payment by cheque using the wrong translation key
Fix: Option to overwrite translation did not work as expected
Fix: Bad translation for greece
2012-11-02 15:41:09 +01:00
Laurent Destailleur
ffa1b10061 doxygen 2012-10-19 14:45:00 +02:00
Laurent Destailleur
bdb7becbc6 Fix: Try another fix on getTrad bug. 2012-10-04 09:44:04 +02:00
Laurent Destailleur
2159848490 Fix: getTradFromKey 2012-10-03 17:47:53 +02:00
Marcos García
9b3c89ac47 Removed parenthesis from all include and include_once and replaced with single quotes 2012-08-23 02:40:41 +02:00
Marcos García
706d79986c Removed parenthesis from all require_once and replaced with single quotes 2012-08-22 23:11:24 +02:00
Marcos García
5a73c32f46 Migrated ClassName to __construct() function
Changed $DB to $db
lower-cased "Class"
2012-07-30 17:17:33 +02:00
Laurent Destailleur
ff06360071 Fix: Overwritting code is not role of a template but of a module.
Code is now working as a module change. Also it is faster (no need to
make a failed include when module is not installed) and support
alternative directory.
2012-04-28 17:01:25 +02:00
Laurent Destailleur
4b3d2cc273 Fix: Removed warning 2012-04-04 20:37:36 +02:00
Laurent Destailleur
b3c66fc123 Fix: Removed warning 2012-04-04 20:18:39 +02:00
Regis Houssin
ee86da0e1e Fix: refactorize llx_c_currencies and currency symbol 2012-03-08 11:49:38 +01:00
Laurent Destailleur
2647cb72ac New: Now all features can be provided by a module with all files inside
the directory of module.
2012-02-22 16:18:03 +01:00
Laurent Destailleur
198c453a09 Fix: Default lang on CLI context was wrong 2012-02-20 01:31:02 +01:00
Laurent Destailleur
95efe50dba New: If language code is none_NONE, trnalsation keys are kept not
translated.
2012-02-01 13:28:19 +01:00
Laurent Destailleur
aa8e7b1c0c Uniformize field country_id, country_code, country 2012-01-27 16:10:44 +01:00
Regis Houssin
244af052cc Fix: add MAIN_USE_CUSTOM_TRANSLATION for use /custom/langs directory 2012-01-15 08:29:56 +01:00
Laurent Destailleur
2641ec21af Fix: If data was already found into file into MAIN_FORCELANGDIR, we must
not overwrite it with value of standard lang files.
2012-01-14 14:27:27 +01:00
Laurent Destailleur
efcbc2696a Add comments 2012-01-14 00:54:52 +01:00
Regis Houssin
66bfaf8530 Fix: custom language file was not loaded 2012-01-13 12:17:41 +01:00
Laurent Destailleur
4bb5d68ca9 Use private property 2012-01-11 01:06:34 +01:00
Laurent Destailleur
acd0bc2e10 New: Add hidden option MAIN_OVERWRITE_TRANS 2011-12-12 19:46:46 +01:00
Laurent Destailleur
1b2c0120da Qual: Try to reduce call to convToOutputCharset 2011-12-07 18:10:24 +01:00
Laurent Destailleur
53181aa0c1 Qual: Removed useless calls
Doxygen
2011-12-07 17:28:11 +01:00
Laurent Destailleur
4c95c486f6 Qual: Removed hardcoded code for external module. Replaced by hook. 2011-11-01 18:36:06 +01:00
Regis Houssin
3338649316 [task #217] Move core files in core directory 2011-10-24 14:11:49 +02:00
Regis Houssin
c65238b773 [task #216] Move lib in core directory 2011-10-24 10:45:06 +02:00
Regis Houssin
0b3cbf9b84 Fix: do not use dol_hash function here 2011-10-04 20:57:13 +08:00
Regis Houssin
2c1b3722f2 Fix: replace sizeof() by count() 2011-09-17 19:49:50 +00:00
Laurent Destailleur
b75d19c264 Qual: Uniformize constructors 2011-09-11 18:35:38 +00:00
Regis Houssin
ac4bcfb583 Fix: use dol_hash instead md5 php function 2011-09-06 06:53:52 +00:00
Laurent Destailleur
f198d8bd8e Qual: Better error management 2011-08-27 16:41:30 +00:00
Regis Houssin
2ecc03104c Fix: remove obsolete tags (in progress) 2011-08-27 15:14:31 +00:00
Laurent Destailleur
5b084a925c Perf: Minor speed enhancement 2011-08-24 02:17:57 +00:00
Laurent Destailleur
f6a44ba5bb Qual: Removed deprecated code 2011-08-17 21:51:20 +00:00
Laurent Destailleur
ebc4ed58a4 Code comment 2011-08-17 21:39:08 +00:00
Laurent Destailleur
f0951e317b New: Now a module can embed its own language files. Only modified entries must be provided. 2011-08-15 23:17:14 +00:00
Laurent Destailleur
6ffdfc29ab Fix: Restore feature to have code inside language list 2011-08-01 22:03:50 +00:00
Laurent Destailleur
be771c9d44 Fix: Avoid errors into rpm packages 2011-07-31 23:45:11 +00:00
Laurent Destailleur
a96c13b8ad Doxygen 2011-05-25 13:27:07 +00:00
Laurent Destailleur
1ab91249f8 Qual: Removed deprecated functions 2011-05-09 19:42:56 +00:00
Laurent Destailleur
4b1f775b07 Fix: Fix autodetect language for greek. 2011-03-31 15:11:53 +00:00
Laurent Destailleur
3331c5fcd7 Fix: Fix autodetect language for greek. 2011-03-30 15:53:51 +00:00
Laurent Destailleur
95ce2259b5 Fix: Fix autodetect language for greek. 2011-03-30 15:52:27 +00:00
Laurent Destailleur
8ba659f24c Fix: Use correct translation code 2011-03-29 09:50:12 +00:00
Laurent Destailleur
5b50c3efff Perf: Yeah. Won again 3ms at each page call. 2011-03-08 15:16:03 +00:00
Laurent Destailleur
94910d8c73 Perf: Yeah. Won again 3ms at each page call. 2011-03-08 15:14:42 +00:00
Laurent Destailleur
05c4533b5b Doxygen 2011-03-08 10:09:15 +00:00
Laurent Destailleur
04c61dde3b New: A module can overwrite all default language files by forcing priority on langs directories on its own lang directory. 2011-01-30 13:35:00 +00:00
Laurent Destailleur
8fdeb727fe Fix: Direction was lost when using cache 2011-01-26 12:52:09 +00:00
Laurent Destailleur
f93deb8163 Fix: Direction was lost when using cache 2011-01-26 12:06:49 +00:00
Laurent Destailleur
4fabd98fa7 Fix: Direction was lost when using cache 2011-01-26 11:33:06 +00:00
Laurent Destailleur
e208dd4068 Fix: Translation of civility 2011-01-23 22:39:48 +00:00
Regis Houssin
546d4f20f3 Fix: regression and use an exist alternative root 2010-12-16 10:37:05 +00:00
Regis Houssin
c0913acf92 New: add directory for external module and other customization 2010-12-15 10:58:45 +00:00
Regis Houssin
502bb75d2c Fix: uniformize code 2010-12-15 07:12:28 +00:00
Laurent Destailleur
2498426867 Fix: Restore stable version for 3.0 2010-12-14 23:27:17 +00:00
Regis Houssin
9d46536909 Fix: uniformize code 2010-12-14 15:04:56 +00:00
Laurent Destailleur
4c9ceac2d8 Doxygen 2010-11-22 09:18:54 +00:00
Laurent Destailleur
3fb07a3922 Doxygen 2010-11-22 09:18:53 +00:00
Laurent Destailleur
2f26dbd26b Fix: Do not try to use memcache module if setup not complete 2010-11-13 20:59:06 +00:00
Laurent Destailleur
5eecf7b671 Doxygen 2010-11-13 01:58:19 +00:00
Laurent Destailleur
cc02778a69 New: Work on paypal module (finished) 2010-11-01 12:41:32 +00:00
Laurent Destailleur
5b96527805 Qual: Uniformize code (ligne -> line) 2010-10-27 14:15:30 +00:00
Laurent Destailleur
5e046a91cf Fix: Personalized payment mode is correctly saved and translation returned. 2010-10-18 18:18:12 +00:00
Laurent Destailleur
ea47cebe6f New: task #10473 : Option MAIN_PROFIDx_IN_ADDRESS must no more be hidden 2010-09-15 08:36:13 +00:00
Laurent Destailleur
153d2080f0 Qual: Uniformize dictionnary table names. 2010-09-06 00:02:55 +00:00
Laurent Destailleur
eed75471af Doc is more clear 2010-08-15 15:15:52 +00:00
Laurent Destailleur
91f5bdd7ed Fix: Bad translation of date format 2010-07-23 00:17:46 +00:00
Laurent Destailleur
b05468074c Doxygen 2010-07-21 17:58:22 +00:00
Laurent Destailleur
d2acbc35ec Fix: Fix a lot of bugs (missing translations, sql error, country flag not shown, region management, W3C, ajax too slow...) 2010-07-09 23:49:41 +00:00
Laurent Destailleur
06cca72917 Trad: Add language english (india) 2010-06-26 10:14:54 +00:00
Laurent Destailleur
d2a5fad3d3 Fix usage of cache on all lang files 2010-06-11 01:06:30 +00:00
Laurent Destailleur
bb83d21a1b Fix usage of cache on all lang files 2010-06-11 00:55:15 +00:00
Laurent Destailleur
ad26792ed8 Fix usage of cache on all lang files 2010-06-11 00:41:17 +00:00
Laurent Destailleur
7e3791d847 Doxygen 2010-06-07 23:52:43 +00:00
Laurent Destailleur
4b7d4fa571 Fix a lot of bugs after changes for canvas (photo hidden, edit field for accountancy disappeared, etc...). Too complicated to fix with canvas so I restore the "simple" code. Canvas feature should still works but with some bugs. 2010-05-26 14:52:32 +00:00
Laurent Destailleur
5b31e481fa Fix: Return value for date format 2010-05-22 16:10:41 +00:00
Laurent Destailleur
670fb61190 Fix: Return bad value for date format 2010-05-22 12:50:25 +00:00
Laurent Destailleur
2b57efa032 Change to allow usage of different caching systems 2010-05-08 15:02:04 +00:00
Laurent Destailleur
037e957561 Change to allow usage of different caching systems 2010-05-08 14:18:27 +00:00
Laurent Destailleur
69afbdf08e Change to allow usage of different caching systems 2010-05-08 12:03:08 +00:00
Laurent Destailleur
b4447473a8 Enhancement to allow to use different caching systems for language files 2010-05-08 02:16:29 +00:00
pit
83a1449e21 Fix a bug on install 2010-05-03 10:24:22 +00:00
Laurent Destailleur
0d24efbfd3 Fix: Complete support of euro sign. 2010-04-28 11:14:53 +00:00
Philippe Grand
24725ce2a6 according to new tree directory 2010-04-28 10:11:41 +00:00