From: Phil D. <ph...@lo...> - 2014-05-22 08:17:24
|
Doesn't work within comments we would have to add some silly variables or something perhaps at the end of LanguageSetup.php ?? $NotUsed=_('Invoice'); $NotUsed=_('Credit note'); $NotUsed=_('GL - Journal'); $NotUsed=_('GL - Receipt'); etc Phil Phil Daintree Logic Works Ltd - +64 (0)275 567890 http://www.logicworks.co.nz On 22/05/14 19:45, Phil Daintree wrote: > Yes this is a good point - there are a few places where we are using > data from the DB that is displayed. I have resolved the item > descriptions now. > > I am thinking we could use code like: > > echo _($myrow['typename') > > this would then resolve to something like > > _('Invoice') > > and get translated using the usual gettext process. > > then if we had within comments somewhere: > > /* > _('Invoice') > _('Credit Note') > _('Receipt') > . > . > . > > */ > Then xgettext would extract these strings for translation in each of > the translation files and gettext would have the data required to do > the translation :-) > > Is this a plan? > Phil > > Phil Daintree > Logic Works Ltd - +64 (0)275 567890 > http://www.logicworks.co.nz > On 22/05/14 07:00, Rafael Chacón wrote: >> Hi, >> >> The values of "typename" column of the table "systypes" are in >> English. They are used as they are in this column. Almost all of the >> terms do not appear in the dictionary of translations *.po. >> >> To translate this, I found two solutions: >> >> 1.Directly overwrite the database with the local language. >> >> 2. Create a script "Z_SysTypes.php" containing an array of these >> "typename" as line-to-translate, rebuild the languages files, and >> translate. E.g. >> >> Z_SysTypes.php: >> $SysType['0'] = _('Journal - GL'); >> $SysType['1'] = _('Payment - GL'); >> $SysType['2'] = _('Receipt - GL'); >> ... >> $SysType['42'] = _('Asset Category Change'); >> >> >> >> I want a general purpose solution to add to main code (not only for >> my local installations). >> >> What you you think is the best solution? Reviews? Recommendations? >> Suggestions? >> >> Best regards, Rafael. >> >> >> ------------------------------------------------------------------------------ >> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE >> Instantly run your Selenium tests across 300+ browser/OS combos. >> Get unparalleled scalability from the best Selenium testing platform available >> Simple to use. Nothing to install. Get started now for free." >> http://p.sf.net/sfu/SauceLabs >> >> >> _______________________________________________ >> Web-erp-developers mailing list >> Web...@li... >> https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > ------------------------------------------------------------------------------ > "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE > Instantly run your Selenium tests across 300+ browser/OS combos. > Get unparalleled scalability from the best Selenium testing platform available > Simple to use. Nothing to install. Get started now for free." > http://p.sf.net/sfu/SauceLabs > > > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers |