Hi Oscar,
Oscar Manuel Gómez Senovilla schrieb:
Hi.
I’d like to know your opinion about I’ve been thinking about for a lot
of time, but never had the time to do it.
As surely (at least) most of you know, egw has always placed the
translation files (egw_*.lang) in a directory called /setup/,
except for the “setup” application itself, being in setup/lang/ directory.
From my point of view, this has several problems:
- Mix code files (.php files) in the setup directory together with
non-code (lang files) in the same directory. I think this is at least
somehow dirty, and most of the l10n-aware php apps I know dedicate a
directory for lang files only.
One could argue lang files are in setup directory, as they are used
(like the other stuff in that directory) only during setup time.
- Extra coding, because depending on the app, the lang files are
located in one directory or another.
So far every change in the lang files, created more extra code, as we
either have to change all old apps too, or add support for the old and
new location/name, as we did with the last change.
- No need for translators to write in the setup directory, just one
specific and well-known directory. Also, I can’t think at this time (for
most users) of any reason to write in the egw tree (maybe only if the
developer tools -aka translation tools- are installed).
Sorry to say: in my opinion that creates far more trouble then it’s worth!
Specially for us (Stylite), as we create our EPL releases from Trunk
every half a year (as we do it ever 1-2 years with community releases).
Merging of translations from Trunk back into a branch becomes a lot
harder, if it’s not the same file.
A compromise might be to just rename setup’s lang directory to setup
too. That would in fact same some extra code.
Ralf
There maybe others, but these are enough to me.
So, I propose to create and use the ‘lang’ directory in every app to
host the lang files. I’ve been taking a look and I think everything is
in the translation class. The problems that I think that can be found
with this change are:
- The amount of work to be done. I think I can (I’ll try to) do it
myself, but before committing code, I’d ask the changes to be granted,
for if there was something wrong, or bad coding style, etc.
- The change would be only in trunk, so stable releases wouldn’t be
affected. Hopefully next stable release > 1.7 (I haven’t seen any
roadmap about it).
- There has to be some backward compatibility (as it happened when I
changed the prefix from ‘phpgw*.lang’ to ‘egw*.lang’), because there are
some apps running on top of egroupware not being part of the egw
repository itself that would need to change if using the latest trunk,
so there must be some time for them and their users to not force the change.
Well, what do you think?
Regards.
–
Ralf Becker
Director Software Development
Stylite GmbH
[open style of IT]
Morschheimer Strasse 15
67292 Kirchheimbolanden
fon +49 (0) 6352 70629-0
fax +49 (0) 6352 70629-30
mailto: rb@stylite.de
www.stylite.de
www.egroupware.org
Geschäftsführer Andre Keller,
Gudrun Müller, Ralf Becker
Registergericht Kaiserslautern HRB 30575
Umsatzsteuer-Id / VAT-Id: DE214280951
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers