Hi Nathan,
I think I know what the problem is:
When translation class does not find a translation for a phrase, it
lowercases the phrase and tries again. If the lowercased version
succeeds, the used case gets stored too, to save that effort the next time.
If you now re-add Addressbook translations, it only overwrites the
lowercase version, but not the matching case.
I’m reworking translation class currently (no longer storing
translations in the database, loading them directly from lang files into
cache). I plan to remove that optimization of storing the correct case,
as it only helps in the rare case of the translation is used again in
the same request.
Ralf
In addressbook, Title is translated differently (Job title) than the
common translation (Title). However when exporting, even when I load
the addressbook translations, it doesn’t use them. It exports ‘Title’
instead of ‘Job title’. The different case between ‘Title’ and
’title’ and caching appears to be involved, but I can’t figure out
what to do. The only way I can get it to work consistently is to
forcibly remove the translation for ‘Title’, and reload addressbook
translations.
I’m looking at phpgwapi/inc/class.translation.inc.php, around lines 224 and 284.
Any help would be appreciated.
Nathan
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers
–
Ralf Becker
Director Software Development
Stylite AG
Morschheimer Strasse 15 | Tel. +49 6352 70629 0
D-67292 Kirchheimbolanden | Fax. +49 6352 70629 30
Email: rb@stylite.de
www.stylite.de | www.egroupware.org
Managing Directors: Andre Keller | Ralf Becker | Gudrun Mueller
Chairman of the supervisory board: Prof. Dr. Birger Leon Kropshofer
VAT DE214280951 | Registered HRB 31158 Kaiserslautern Germany
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers