From: David T. <tom...@us...> - 2011-03-03 10:19:03
|
Scott Sorry for the late reply, I've been off skiing... To be brutal, the gain from "reusing" code from Joomla (or any other project) is not worth it. Don't be under any illusion that the two projects will cooperate. If you can see the value in the way that they are made, then use that, but don't bloat us with functions that are not needed. Rather use a pure framework (there are enough) for base functions. Zend_translate seems pretty comprehensive for example. But since Mark and Peter have made great efforts to rewrite us without using a framework, it seems excessive to add one now. Therefore I come back to my previous suggestion to use base PHP libraries. Dave Date: Wed, 2 Mar 2011 17:15:41 +0000 From: sco...@gm... To: tsh...@li... Subject: Re: [Tsheetx-developers] Proposal of contribution for a French version The silence regarding my last email is deafening. I've begun to think maybe I should just borrow entire classes, but I don't want this project to be dependant upon joomla, so we have to draw the line somewhere, but approximately where is that appropriate line? I'm pretty much unfamiliar with Joomla, so, uneducated conjecture doesn't get me very far. Do we like how they handle errors? I'm thinking that we would handle errors differently than joomla, if so, the error classes should not be included. I'd originally thought I'd rename the classes to fit our project, but why not leave the names the same? If anyone is familiar with Joomla, this might help other developers improve tsheetx in the future. Please help me think through this stuff before I get sucked into a tar pit :-) -Scott On Mon, Feb 28, 2011 at 5:56 PM, Scott Miller <sco...@gm...> wrote: Hey guys, I was intrigued with the JText stuff Isabelle pointed to in Joomla. I originally was thinking we could just borrow the JText classes etc from them, but that depends on several other Joomla classes. Some of those are also intriguing enough that I'm now considering sucking some more base class stuff from that project. Things I think could be useful for tsheetx: JPath - file system path functions JFolder - file system folder functions JText - language translations JObject - generic object class, the others are built from I'm sure there are probably other things that could be interesting, but this is as far as my research has gone thus far. JStream was also interesting, but there's so much that we don't need that I really don't want to suck that in too. So, I'm sure this is not the first time one project has wanted to borrow things from a different project. What are the feelings of others on doing this? Currently, I'm thinking I only want to bring a sub-set of the functionality provided by those classes. We have little or no need to copy, create, move, or change files or directories, so, I'm just ripping all the unneeded functionality out. I will be crediting the Joomla project of course. -Scott On Sun, Feb 27, 2011 at 6:02 PM, Isabelle Vergely <ver...@fr...> wrote: Hello Mark, I have a little experience with translations with an other CMS: Joomla. There is the class "JText" defined in libraries/joomla/methods.php. There are the following functions in this class: * The function "_" is used for translation of strings without variable; example: JText ::_('search') with 'search' defined in the "French" file "language\fr-FR\fr-FR.com_search.ini" as follows: SEARCH=Recherche * The function "sprintf" is used for translation of strings containing variables; example: JText::sprintf('EMAIL_INVALID', $email) with 'EMAIL_INVALID' defined in the "English" file "language/en-GB/en-GB.com_mailto.ini" as follows: EMAIL_INVALID=The address '%s' does not appear to be a valid e-mail address On Timesheet NG forums, I saw that other people are also interested in Timesheet NG translation (German, Spanish). For version 2.0, if the development team chose to add the ability to easily translate Timesheet NG for non-English speakers, I can help you for the translation into French. Écouter Lire phonétiquement Dictionnaire - Afficher le dictionnaire nom si B adverbe so that such as conjonction if whether Isabelle. ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ Tsheetx-developers mailing list Tsh...@li... https://lists.sourceforge.net/lists/listinfo/tsheetx-developers ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ Tsheetx-developers mailing list Tsh...@li... https://lists.sourceforge.net/lists/listinfo/tsheetx-developers |