Opened 16 years ago
Closed 15 years ago
#770 closed Enhancement (fixed)
update_translations.php can't be run directly
Reported by: | Nicolas | Owned by: | davea |
---|---|---|---|
Priority: | Trivial | Milestone: | Undetermined |
Component: | Server - Other | Version: | |
Keywords: | Cc: |
Description
The script in ops/update_translations.php
cannot be run directly as a program, you have to run it as 'php ops/update_translations.php
'. Patch:
-
html/ops/update_translations.php
1 #!/usr/bin/env php 1 2 <?php 2 3 3 4 require_once("../inc/translation.inc"); … … 4 5 buildLanguages($lang_language_dir,$lang_translations_dir, $lang_compiled_dir); 5 6 buildLanguages($lang_language_dir,$lang_prj_translations_dir, $lang_compiled_dir, true); 6 7 7 ?> 8 No newline at end of file 8 ?>
Additionally, set the svn:executable property on the file:
svn propset svn:executable yes html/ops/update_translations.php
Change History (4)
comment:1 Changed 16 years ago by
Type: | Defect → Enhancement |
---|
comment:2 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 Changed 15 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
The change to the python scripts won't work, because the PHP script is not in the $PATH
. They should use ./update_translations.php
(or revert to calling the php
command directly).
comment:4 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
(In [18279]) - make update_translations.php executable; fixes #770