Tobias Toedter <[EMAIL PROTECTED]> tapota :

> Hi,
>
> On Monday 09 February 2004 09:59, Mathieu Roy wrote:
>> > So what's the desired procedure for this? Should I change "Savannah" into
>> > "%s" and append the sys_name global?
>>
>> Exactly. It must be done via sprintf, otherwise gettext will not work
>> (it cannot have variables inside the strings).
>>
>> One exception: if it is about the Savane program, it must be changed
>> into Savane (for instance: powered by Savane)
>>
>> Also, if you find ftp.gnu.org, this content is unlikely to be printed
>> in normal conditions, exists for backward reasons, and you can safely
>> ignore it.
>
> Hmm, I don't know if this applies to the place I found it, then. It's from 
> frontend/php/files/add.php:
>
>     if ( $project->getTypeName() == 'GNU' ){
>       $scp_dir = "*not available*".$files_dir;
>       echo '<h3 class="error">'._("Note for GNU projects").'</h3>';
>       echo '<p>'._("Currently, since file uploads to ftp.gnu.org are not
>               supported by Savannah at present (You should get in touch
>               with [EMAIL PROTECTED] to get permissions to do them), the
>               form below cannot be used.").'</p>';
>       echo '<p>'._("But, file release system should work if you respect
>               the standard tree explained below.").'</p>';
>     }
>
> What do you think?

Well, this is exactly the backward stuff I had in mind.

When you have conditions like ($project->getTypeName() == 'GNU') it is
likely to be a GNU specific stuff. 

In fact, this is crap (I'm guilty as charged for it, the kind of dirty
hacks that shouldn't be given a future), it should be site specific
content, not in the code. Feel free to do it if you want. There is a
specific command for site-specific-content.

The site-specific-content must be added in
etc/site-specific-content/files/blabla, and printed by
utils_get_content("files/blabla");


(hum I must reprovide a doxygen doc!)

(Do you have a test install of Savane? Or do you use the test install
at gna.org?)




-- 
Mathieu Roy

  +---------------------------------------------------------------------+
  | General Homepage:           http://yeupou.coleumes.org/             |
  | Computing Homepage:         http://alberich.coleumes.org/           |
  | Not a native english speaker:                                       |
  |     http://stock.coleumes.org/doc.php?i=/misc-files/flawed-english  |
  +---------------------------------------------------------------------+

Reply via email to