From: Scott M. <sco...@gm...> - 2011-02-28 17:56:20
|
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 inTimesheet > 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<http://www.google.fr/dictionary?source=translation&hl=fr&q=L%27%C3%A9quivalent%20pour%20le%20CMS%20Joomla%20est%20la%20m%C3%A9thode%20JText&langpair=fr%7Cen> > > 1. nom > 1. si > 2. B > 2. adverbe > 1. so > 2. that > 3. such > 4. as > 3. conjonction > 1. if > 2. 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 > > |