Page 1 of 1

Help on strings.prg translations

PostPosted: Thu May 15, 2014 9:50 am
by Antonio Linares
Could someone help to complete these translations ? thanks :-)

In this order: English, Spanish, French, Portuguese, German, Italian

{ "Modify DBF struct", "Modificar estructura DBF", "Changement structure DBF", "HELP_HERE", "HELP_HERE", "HELP_HERE" }

Re: Help on strings.prg translations

PostPosted: Thu May 15, 2014 11:00 am
by Enrico Maria Giordano
Antonio,

{ "Modify DBF struct", "Modificar estructura DBF", "Changement structure DBF", "HELP_HERE", "HELP_HERE", "Modifica struttura DBF" }

EMG

Re: Help on strings.prg translations

PostPosted: Thu May 15, 2014 11:21 am
by Kleyber
Antonio,

{ "Modify DBF struct", "Modificar estructura DBF", "Changement structure DBF", "Alterar estrutura do DBF", "HELP_HERE", "Modifica struttura DBF" }

Re: Help on strings.prg translations

PostPosted: Thu May 15, 2014 11:44 am
by Marc Vanzegbroeck
In Dutch : Aanpassen DBF structuur :D

Re: Help on strings.prg translations

PostPosted: Thu May 15, 2014 12:19 pm
by byte-one
In German: "DBF-Struktur bearbeiten"

Re: Help on strings.prg translations

PostPosted: Thu May 15, 2014 3:14 pm
by Antonio Linares
English, Spanish, French, Portuguese, German, Italian

{ "Modify DBF struct", "Modificar estructura DBF", "Changement structure DBF", "Alterar estrutura do DBF", "DBF-Struktur bearbeiten", "Modifica struttura DBF" }

Thanks! :-)

Re: Help on strings.prg translations

PostPosted: Fri May 16, 2014 4:31 pm
by Silvio.Falconi
Antonio,Emg

I have problem with lang system because I use xbrowse save state .

As I explain here : viewtopic.php?f=3&t=28065

the final user set the lang to english.

the final user open the customer table

when the final user end the customer table save the state of xbrowse ( the procedure restore the state of xbrowse at begining)

the final user change the language from menu main of the application from english to Italian.

the final user open the customer table and it cannot see the xbrowse's column titles with Italian language but with english language


How I can resolve this big problem ?

I also ask to Mr Nages but i not have any messages also...

Re: Help on strings.prg translations

PostPosted: Fri May 16, 2014 5:06 pm
by Antonio Linares
Silvio,

When the user saves the xbrowse state, the current language settings is used.

If the language is changed later on, obviously we can not take the freedom to translate his other language texts.

It seems to me as somehow the user should be warned that the previous saved info was in a different language than the current one.

I appreciate other users comments, thanks :-)

Re: Help on strings.prg translations

PostPosted: Thu May 22, 2014 7:49 am
by Silvio.Falconi
Now I resolved erase the cstate from ini with when someone change the lang

WritePProString("Browse","CuState","",::cIniUser)

but I lose all informations

but I think we can create a function to rewrite only title headers of xbrowse _cHeaders


while we can have all others informations arrays


_nCreationOrders
_nWidths
_lHides
_cGrpHdrs



and the recreate the string of cstate from ini file


a little idea ....

Re: Help on strings.prg translations

PostPosted: Fri May 23, 2014 9:26 pm
by James Bott
Antonio,

To be consistent with the other translations, the English one should probably be changed from:

"Modify DBF struct"

To:

"Modify DBF structure"

Yes, it is a tiny change, but it is consistent.

James

Re: Help on strings.prg translations

PostPosted: Sat May 24, 2014 12:35 pm
by Antonio Linares
James,

Implemented for next build. thanks :-)

Re: Help on strings.prg translations

PostPosted: Sat May 24, 2014 4:10 pm
by Silvio.Falconi
Antonio,
Perhaps I found a solution

see METHOD SaveState( aAdditionalData ) of xbrowse

we can create an Ovverride method to this class if the land is changed

We must change only aData[6] string while we can use the old other strings.. this is only an idea ...

lLang_changed .t. or .f.

aheader_changed If lLang_changed is .t. the procedure call an function where create an array with the new header right


Code: Select all  Expand view


Override Method RestoreState( cState ) In Class TXBROWSE With  RestoreState(lLang_changed,aheader_changed)
..

Function RestoreState(lLang_changed)
          Local Self := hb_QSelf()


     If lLang_changed
     
            ::cHeaders  := aheader_changed
     
      endif

   ::GetDisplayCols()
   ::Super:Refresh()
 
return nil

 


HOw it can be implemented ?