Skip to content

Commit fc82850

Browse files
committed
translations shortcut script
1 parent f3c8384 commit fc82850

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,16 @@ The following steps show how to set up an ERP subject, that is a subject which i
446446
* in case site uses a PHP version different from system one if must be specified the complete path to PHP binary, i.e.
447447

448448
/opt/php-7.3.5/bin/php private/share/vukbgit/simplex/bin/translations.php update local
449+
450+
* at installation time it is also created the script _private/local/simplex/bin/translations.sh_ that can be used to shortcut translation process:
451+
* edit the file and set the PHP binary path according to your system
452+
* soft link the script into webroot, for example:
453+
454+
ln -s private/local/simplex/bin/translations.sh translations.sh
455+
456+
* call it fromn webroot, for example:
457+
458+
./translations.sh update local
449459
* __database__: Simplex encourages a localization ready database architecture, even when site uses just one language (see [Subject set up](#Subject-set-up) > _database architecture_)
450460

451461
## Icon Fonts ##
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
pathToPHPBin=/opt/php-7.3.5/bin/php
3+
command=$*
4+
$pathToPHPBin private/share/vukbgit/simplex/bin/translations.php $command

0 commit comments

Comments
 (0)