phpgroupware-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-users] Re: Sitemgr in .001


From: totschnig . michael
Subject: [Phpgroupware-users] Re: Sitemgr in .001
Date: Tue, 21 Jan 2003 20:30:32 -0500
User-agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Common Lisp, i386-redhat-linux)

Marco Gaiarin <address@hidden> a écrit:

> 1) i've installed sitemgr-link, and now
> http://mouse.sv.lnf.it/phpgroupware/admin/index.php say me:
>
>       Warning: Missing argument 3 for display_section() in
>       /usr/local/share/phpgroupware/admin/index.php on line 66

I cannot see how this could be related to sitemgr-link since
sitemgr-link does not define any hook for the administration
application. Did you install another application at the same time?

>
>
> 2) i've some problem with permission, i think. With guest user the
> administration block appear. I've see blockconfig.inc.php, and
> permission seems correctly set to 2 (admin).
> I've also double checked, and guest user have access only to
> sitemgr-site application, group (ospiti, guests in italian) idem.

This is strange, but maybe when you see it appear, you only think
being the anonymous user, but in fact there is still your admin's
session actif? What happens when in this case you click on the admin
link? Do you see sitemgr's administration interface? as what user?

>
> 4) i want also to customize the first row under the title/image of the
> page, i've searched but nothing found. They say me:
>
>  Logged in as: guest  Home    |   Site Contents    |   Site Index    |
>       phpGroupWare  January 20, 2003 
>
> could also the date be translated?!

What template do you use? You can look into the templates directory,
and search for the file main.tpl and if you know some HTML, it should
not be difficult to change it to your needs.
If you are talking about the NukeNews template, you are right, there
are english monthnames hardcoded into it. If you only want italian
monthnames, you'd simply have to change the line
var monthNames = new Array( 
"January","February","March","April","May","June","July","August","September","October","November","December");
For a future version we might look into generally internationalizing
date display in this template.

>
>
> 5) login block say me:
>
>       Don't have an account?
>       Register for one now.
>
> how can i remove these?! I don't want autoregistration...

Just uncomment or delete in file blockconfig the lines where this
block is defined:
       $blocks[]=array(
                'title' => lang('Login'),
                'position' => 'r',
                'blockfile' => 'block-Login.php',
                'view' => 3
        );
As a side note: In sitemgr from HEAD CVS you can configure blocks
without editing PHP files.

>
>
> 6) if i have to translate in Italian the strings, how can i use the
> translation tools of phpgw?! I remember an url that pointed to some
> HOWTO or like, but grep on my local folder have no clue...

I never uses the translation tools. It is not very difficult to edit
the lang files on your own. Just start with file phpgw_en.lang.
In every line that looks like
add a category  sitemgr en      Add a category
replace en with it and the last phrase with your translation. Take
care to preserve tab characters between the four items on each line:
1) the message identifier
2) the application name (sitemgr or sitemgr-site)
3) the lang string (it)
4) the translation

Hope that helps,

Michael




reply via email to

[Prev in Thread] Current Thread [Next in Thread]