Translate into Italian the words in tDataRow

Translate into Italian the words in tDataRow

Postby mauri.menabue » Wed Jan 08, 2020 12:28 pm

hi all

is there a method to translate into Italian the words: "Data Modified. Save/Discard Changes?", { "Save", "Discard", "Cancel" }
without modifying the tDataRow class?

TIA
User avatar
mauri.menabue
 
Posts: 155
Joined: Thu Apr 17, 2008 2:38 pm

Re: Translate into Italian the words in tDataRow

Postby MarcoBoschi » Wed Jan 08, 2020 3:31 pm

TIA,
take a look into source\classes\datarow.prg
Maybe is in this method

Code: Select all  Expand view  RUN

METHOD CloseMsg( lSave ) CLASS TDataRow

   local nChoice  := 0
   local a

   nChoice  := If( lSave == .t., 1, If( lSave == .f., 2, 0 ) )

   if ::cSrcType $ "ARR"
      AEval( ::aOrg, { |a,i| ASize( ::aData[ i ], Len( a ) ) } )
   elseif ::cSrcType $ "HSH"
      for each a in ::aData
         ::uSource[ a[ 1 ] ] := a[ 2 ]
      next
   elseif ! ::lReadOnly .and. ::Modified()
      if nChoice == 0
         nChoice  := Alert( "Data Modified. Save/Discard Changes?", { "Save", "Discard", "Cancel" } )
      endif
      if nChoice == 1
         ::Save()
      elseif nChoice == 2
         ::Undo()
      else
         return .f.
      endif
   endif

return .t.
 
User avatar
MarcoBoschi
 
Posts: 1066
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: Translate into Italian the words in tDataRow

Postby Silvio.Falconi » Thu Jan 09, 2020 9:43 am

easy use fwstring()
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7075
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 89 guests