Return-Path: <tokul@users.sourceforge.net>
Received: from muffin ([unix socket])
	by muffin (Cyrus v2.1.13) with LMTP; Fri, 14 Nov 2003 03:59:44 -0500
X-Sieve: CMU Sieve 2.2
Return-Path: <tokul@users.sourceforge.net>
Received: from vartai.eik.lt (vartai.eik.lt [195.14.167.100])
	by muffin.linuxnotes.net (Postfix) with SMTP id 0751124501
	for <quincy@linuxnotes.net>; Fri, 14 Nov 2003 03:59:42 -0500 (EST)
Received: (qmail 29403 invoked by uid 33); 14 Nov 2003 09:01:06 -0000
Received: from 213.190.44.96
        (SquirrelMail authenticated user tomas@topolis.lt)
        by internet.eik.lt with HTTP;
        Fri, 14 Nov 2003 11:01:06 +0200 (EET)
Message-ID: <63336.213.190.44.96.1068800466.squirrel@internet.eik.lt>
In-Reply-To: <1569.68.80.54.61.1068781905.squirrel@linuxnotes.net>
References: <62788.213.190.44.96.1068652495.squirrel@internet.eik.lt>        
    <43171.192.204.186.114.1068667335.squirrel@linuxnotes.net>      
    <33025.213.197.154.156.1068711163.squirrel@internet.eik.lt>    
    <39563.192.204.186.114.1068740500.squirrel@linuxnotes.net>  
    <62882.213.190.44.96.1068745709.squirrel@internet.eik.lt>
    <1569.68.80.54.61.1068781905.squirrel@linuxnotes.net>
Date: Fri, 14 Nov 2003 11:01:06 +0200 (EET)
Subject: Re: abook_group
From: "Tomas Kuliavas" <tokul@users.sourceforge.net>
To: quincy@linuxnotes.net
User-Agent: SquirrelMail/1.4.2.lt-1
MIME-Version: 1.0
Content-Type: multipart/mixed;boundary="----=_20031114110106_11759"
X-Priority: 3
Importance: Normal

------=_20031114110106_11759
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

> > 2. can you provide German translation for testing (it is not part of
> > v.0.32) and give explanation how to reproduce error that you get.
> >
> Tomas,
>
> I am sorry about that last email I sent it as I was running out the door.
>
> To reproduce the error just switch to Deutch and then create a group and
> the try to list it.  The result will be a message that you have no members
> in the group.  In any of the other translations it would list the members.
>
> Thanks again for taking a look at this.  I know you are very busy and I
> really appreciate you taking the time to help me.

You store translated address book name as type. Address book name is
different for every translation.

mysql> select * from addressgroups;
+--------+----------+--------------+-------------------------+
| owner  | nickname | addressgroup | type                    |
+--------+----------+--------------+-------------------------+
| pastas | tomas    | Testas       | Personal address book   |
| pastas | tomas    | nauja        | AsmeninÄ adresÅ³ knyga |
+--------+----------+--------------+-------------------------+
2 rows in set (0.01 sec)

Attached file with queries in German and Lithuanian.

You didn't have problems with other translations, because you tested them
when system operated with English strings. You didn't have problems when
you changed German strings, because you haven't restarted apache and
gettext reverts to English strings, if you modify translation and don't
restart webserver. Once you meat translation that has "Global address
book" or "Personal address book" translated and you switch to different
translation, queries are broken.

Possible solution. Don't use $abookBackendsSname in type field. Use
backend number. But you will have problems, if backend list changes. In
that case you might need to create some "addressbooks changed, find and
replace all types" functions or "name was removed from address book"
warning.

It is possible that global sql addressbook patch will be part of SM 1.5.0
or 1.4.3.

One more glich. Choose "Modify" in address group list, don't change
group's name and click "Modify" button. "Another $groupName already
exists". When $groupName = $newgroupName, message should say "Group name
is unchanged.".

I don't have patches, but maybe explanation of your problem is helpful.
-- 
Tomas
------=_20031114110106_11759
Content-Type: application/octet-stream; name="query.log"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="query.log"

U0VMRUNUIGIubmlja25hbWUsYi5maXJzdG5hbWUsYi5sYXN0bmFtZSxiLmVtYWlsIEZST00gYWRk
cmVzc2dyb3VwcyBhLCBhZGRyZXNzIGIgV0hFUkUgYS5vd25lcj0ncGFzdGFzJyAgQU5EIGEub3du
ZXI9Yi5vd25lciAgQU5EIGEubmlja25hbWU9Yi5uaWNrbmFtZSBBTkQgYS5hZGRyZXNzZ3JvdXAg
PSdUZXN0YXMnIEFORCBhLnR5cGU9J1BlcnMmb3VtbDtubGljaGVzIEFkcmVzc2J1Y2gnIE9SREVS
IEJZIGEubmlja25hbWUgYXNjCgpTRUxFQ1QgYi5uaWNrbmFtZSxiLmZpcnN0bmFtZSxiLmxhc3Ru
YW1lLGIuZW1haWwgRlJPTSBhZGRyZXNzZ3JvdXBzIGEsIGFkZHJlc3MgYiBXSEVSRSBhLm93bmVy
PSdwYXN0YXMnICBBTkQgYS5vd25lcj1iLm93bmVyICBBTkQgYS5uaWNrbmFtZT1iLm5pY2tuYW1l
IEFORCBhLmFkZHJlc3Nncm91cCA9J1Rlc3RhcycgQU5EIGEudHlwZT0nQXNtZW5pbsSXIGFkcmVz
xbMga255Z2EnIE9SREVSIEJZIGEubmlja25hbWUgYXNj
------=_20031114110106_11759--


