Commit Graph

44 Commits

Author SHA1 Message Date
Maurício Meneghini Fauth
340759e444
Replace scripts/fix-po-twig with a Console command
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-07-11 13:58:25 -03:00
William Desportes
1cba4b2259
Merge all Twig Environment building to one function and split out po replacements
Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-03-11 16:18:03 +01:00
William Desportes
8fefc97644
Ref #16584 - Fix get version in update-po script
Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-02-24 10:09:35 +01:00
Maurício Meneghini Fauth
45e1128122 Move gettext calls to advisory rules files
Removes the need of the AdvisoryRulesCommand.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2020-08-31 15:37:46 -03:00
William Desportes
4856ef812d
Use the standard [ci skip] lowercase
Signed-off-by: William Desportes <williamdes@wdes.fr>
2020-05-20 02:32:41 +02:00
William Desportes
c6301a1542
Add routing cache warmup to warm up command
Signed-off-by: William Desportes <williamdes@wdes.fr>
2020-03-28 10:38:11 +01:00
William Desportes
63c4e3b639
Merge branch 'QA_5_0'
Signed-off-by: William Desportes <williamdes@wdes.fr>
2020-03-12 13:57:08 +01:00
William Desportes
f12364b8fd
Fix update-po command (sed) on MacOSX
[ci skip]
Signed-off-by: William Desportes <williamdes@wdes.fr>
2020-03-12 13:54:46 +01:00
William Desportes
e9e7696962
Improve update-po script and add match-twig-cache script
- Make update-po script return the same order on all workstations
- Make it work on MacOSX
- Remove .phtml extension
- Exclude node_modules folder
- match-twig-cache is made to replace templates by the real file and --reverse way
- this change is made so the order is kept between po files updates

I want to stop unreadable diffs between po files updates. 

Signed-off-by: William Desportes <williamdes@wdes.fr>
2020-03-12 13:10:27 +01:00
Maurício Meneghini Fauth
27d631e164 Use Console command for Twig cache warm up
Extracts the Twig cache generation to a console command.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2020-02-20 23:15:40 -03:00
Maurício Meneghini Fauth
adea61314e Add a console tool
Adds a console tool for phpMyAdmin using the symfony/console component
and moves the advisor2po script to the the console tool.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-10-11 22:04:26 -03:00
Michal Čihař
f7d2997d79 Use php for fixing line information in the Gettext files
The debug information actually maps ranges, not individual lines, so it
needs more logic.

Also the sed was really slow (as it had to replace all lines).

Issue #13344

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-11-02 14:00:00 +01:00
Michal Čihař
5a2a115e88 Include correct line information in Gettext files for twig templates
Fixes #13344

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-11-02 13:31:27 +01:00
Michal Čihař
5d9056367c Fix path to Config.php in master
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-07-18 13:31:50 +02:00
Michal Čihař
9d1b49ae65 Improve extracting translatable strings from Twig templates
- use separate (clean) directory to avoid messing up with stale cache
  data or other files in the temporary dir
- restore filenames for twig templates in Gettext files, the lines still
  don't match, but at least the filename is correct
- extract the _gettext function as well

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-05-17 09:23:59 +02:00
Maurício Meneghini Fauth
d71e097593 Add Twig cache generator and bypass escape option
- Add script to generate cache files for all Twig templates
- Add option in Twig extension that bypass autoescaping

Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-04-06 20:33:32 -03:00
Michal Čihař
4b8fe37b05 Remove phpmyadmin vendor from being translated here
Every library should handle localization on it's own.

Fixes #12013

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-01-23 14:21:28 +01:00
Michal Čihař
0c5acc9127 Merge branch 'QA_4_6' 2016-12-08 11:42:07 +01:00
Michal Čihař
f2bfa7d745 Avoid running shell scripts as CGI
There is really no reason for that besides misconfigured servers.

This is followup for PMASA-2016-54

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-12-08 11:41:42 +01:00
Michal Čihař
e191c6eb39 Do not include vendor strings in po files
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-05-23 14:30:26 +02:00
Michal Čihař
55fec136f7 Add back SQL parser messages to phpMyAdmin
Temporary solution until we decide for something better.

See issue #12013

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-22 14:21:57 +01:00
Michal Čihař
c81561bac4 Avoid extracting translations from third party libraries
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-22 14:19:46 +01:00
Marc Delisle
509dbe3481 Fix update-po due to namespace and filename changes
Signed-off-by: Marc Delisle <marc@infomarc.info>
2015-10-09 12:00:21 -04:00
Michal Čihař
95cc6a5809 Change address for discussing translations
Signed-off-by: Michal Čihař <michal@cihar.com>
2015-09-04 10:18:29 +02:00
Michal Čihař
c29b43a3b1 Move mailing lists to own server
Signed-off-by: Michal Čihař <michal@cihar.com>
2015-07-24 16:24:08 +02:00
Jason
be584def3c Fix update-po script
Signed-off-by: Jason <jason.daurus@gmail.com>
2015-05-22 00:05:29 +08:00
Jason
c6dfa49e60 Improve template system
- Introduce `trim` method for templates
- Complete template of the designer module
- Update tests for template system
- Use phtml as template files extension

Signed-off-by: Jason <jason.daurus@gmail.com>
2015-05-20 01:34:33 +08:00
Michal Čihař
7841666149 Skip CI for PO files update
Signed-off-by: Michal Čihař <michal@cihar.com>
2014-11-05 10:03:51 +01:00
Michal Čihař
fa2a891b3b Prevent scanning release directory 2012-11-12 14:19:14 +01:00
Marc Delisle
824c2804a7 Add the from-code option to xgettext, otherwise it fails on the new ellipsis character 2012-11-03 07:35:55 -04:00
Michal Čihař
e8c80a2916 Automatically commit changes when updating locales 2012-10-31 09:54:24 +01:00
Michal Čihař
b25679cf7f Exit script on failure to prevent posible corruption of entries 2012-06-04 13:46:56 +02:00
Michal Čihař
9e95a48c22 Rename script to reflect reality 2012-04-06 13:06:14 +02:00
Michal Čihař
88376c0385 Include real locations of advisory rules in po files 2012-04-06 10:53:45 +02:00
Michal Čihař
21344f9c50 Remove merging with docs, not needed with Weblate 2012-04-06 10:07:52 +02:00
Michal Čihař
7166723120 Update po generating scripts to include advisor rules 2011-08-11 13:48:07 +02:00
Michal Čihař
86906773f1 LC_ALL is the right one to override 2011-06-27 10:29:25 +02:00
Michal Čihař
cc28728cc3 Really use C locale in all cases 2011-06-17 15:01:49 +02:00
Michal Čihař
35385e307f Do not generate messages for tests 2011-06-17 15:01:06 +02:00
Michal Čihař
53ba93b02e Remove debug code.
This should never be commited.
2011-03-05 15:11:59 +01:00
Michal Čihař
614838a4e5 Update po files 2011-03-03 07:17:58 +01:00
Michal Čihař
f85249062f Always use locale insensitive search to avoid reordering the file every time. 2010-05-10 09:36:08 +02:00
Michal Čihař
5e68c366ef Proper support for ngettext. 2010-03-30 14:29:23 +02:00
Michal Čihař
e9909a2441 Consistent naming. 2010-03-30 10:44:58 +02:00