[Web-cyradm] some questions for development

Jan Scholten Jammer at gmx.de
Thu Jun 1 22:01:14 CEST 2006


Guten Tag web-cyradm web-cyradm,

I'm preparing some fixes for web-cyradm.

1. alias.php and adminuser.php created a wrong link for next, when count is a multiple of the shown
rows. e.g. if you have 10 aliases (default shown is 10) you see all entries but get a clickable link
to an empty page (for results starting at/after 10). Same is probably found in adminuser.php, have
not checked, as i don't have that many admin users *g* See attached patches.

2. in settings.php I noticed only maxdisplay is (supposed to be see below) stored in the Database,
account_maxdisplay NOT. Nevertheless even maxdisplay is NOT stored, i have set the set maxdisplay to
25 and the database entry still holds the default of 15.. (but i get 25 domains displayed.. strange,
probably stored in session?

So before i go deeper in that: I assume there are some missing database fields for
account_maxdisplay, and probably alias_maxdisplay (which i would like to add). Is that correct?

3. Edit Email Addresses (in browseaccounts.php Line 147) is not translated, it is not even in any .mo file in tha
lang directory (or in the Template). So it is probably an older Version.
which is the correct way to get a new template and keep the old translations?
(i just want to add the new points).
so i get the new template probably with
xgettext -C *.php -o webcyradm.po --keyword=_

how can i add the missing parts?

I assume
msgfmt webcyradm.po --output-file=web-cyradm.mo
should output a new version..


Another Language Question:
How does Web-cyradm determine which locale to chosse? When i select spanish i still only get the
english translation. I even configured my browser to prefer [es] pages and the <Option> at the login
display spanish as default, but the text is english.


Jan

-- 
Nichts bewahrt uns so gründlich vor Illusion, wie ein Blick in den Spiegel

Mit freundlichen Grüßen
Jan Scholten
mailto:Jammer at gmx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch_alias
Type: application/octet-stream
Size: 102 bytes
Desc: not available
Url : http://fix.bitheads.ch/pipermail/web-cyradm/attachments/20060601/fda5e27d/patch_alias.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch_adminuser
Type: application/octet-stream
Size: 136 bytes
Desc: not available
Url : http://fix.bitheads.ch/pipermail/web-cyradm/attachments/20060601/fda5e27d/patch_adminuser.obj


More information about the Web-cyradm mailing list