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
    12<?php
    23
    34require_once("../inc/translation.inc");
     
    45buildLanguages($lang_language_dir,$lang_translations_dir, $lang_compiled_dir);
    56buildLanguages($lang_language_dir,$lang_prj_translations_dir, $lang_compiled_dir, true);
    67
    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 Nicolas

Type: DefectEnhancement

comment:2 Changed 15 years ago by davea

Resolution: fixed
Status: newclosed

(In [18279]) - make update_translations.php executable; fixes #770

comment:3 Changed 15 years ago by Nicolas

Resolution: fixed
Status: closedreopened

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 davea

Resolution: fixed
Status: reopenedclosed

(In [18282]) - fix python scripts; fixes #770 (from Nicolas)

Note: See TracTickets for help on using tickets.