From: gilberto d. s. a. <gs...@gm...> - 2016-03-08 03:40:29
|
hi. i will run tests on our environment (pt-br). thanks. 2016-03-07 17:09 GMT-03:00 Andrew Galuski <aga...@re...>: > The problem is with how this screen tries to use the Language function for > translation. > When it outputs 'translated' text using _($FormDesign['name']) > $FormDesign['name'] is not a string but an XML Object > Var_dump($FormDesign['name'] yields > > object(SimpleXMLElement)[2] > string 'FG Label' (length=8) > > If you cast it as a string using _((string)$FormDesign['name']) it works. > If you go through the code everywhere the can do a search and replace on > _($FormDesign[' and change it to _((string)$FormDesign[' same with > _($subkey[' and _($key[' > > I attached a copy that works for me > > > Best Regards, > Andrew Galuski > ResMart LLC. > 817.615.3206 (Office) > 817.821.0544 (Cell) > www.resmart.com > > > -----Original Message----- > From: rfthomas [mailto:rf...@as...] > Sent: Monday, March 07, 2016 12:22 PM > To: web...@li... > Subject: [WebERP-developers] Form Designer errors/warnings > > When we attempt use the Form Designer, the following errors are displayed > in many places ion the screen: > > Warning: array_key_exists(): The first argument should be either a string > or an integer in /ast$www/weberp/includes/php-gettext/gettext.php on line > 258 > > This number of times this is displayed makes the code impossible to use. > > Bob Thomas > > > > -- > View this message in context: > http://weberp-accounting.1478800.n4.nabble.com/Form-Designer-errors-warnings-tp4658541.html > Sent from the web-ERP-developers mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Transform Data into Opportunity. > Accelerate data analysis in your applications with Intel Data Analytics > Acceleration Library. > Click to learn more. > http://makebettercode.com/inteldaal-eval > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > ------------------------------------------------------------------------------ > Transform Data into Opportunity. > Accelerate data analysis in your applications with > Intel Data Analytics Acceleration Library. > Click to learn more. > http://makebettercode.com/inteldaal-eval > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > -- gilberto dos santos alves +55(11)9-8646-5049 sao paulo - sp - brasil |