How to translate some parts of sample01 ( spanish ) ?

How to translate some parts of sample01 ( spanish ) ?

Postby ukoenig » Fri Mar 08, 2019 9:47 am

Hello,

I want to modify the < sample01.prg > and translate it to german.
It is a nice calendar but I couldn't detect the text of month- and weekday-names
for translation inside the prg ( it seems to embedded somewhere )

maybe to be changed :?:
REQUEST HB_LANG_ES
REQUEST HB_CODEPAGE_ESWIN

Image
Last edited by ukoenig on Fri Mar 08, 2019 10:06 am, edited 3 times in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: How to translate some parts of sample01 ( spanish ) ?

Postby Silvio.Falconi » Fri Mar 08, 2019 9:52 am

Perhaps :

REQUEST HB_LANG_DE

and on source

HB_LangSelect("DE")
HB_SetCodePage("DEWIN")

see here https://harbour.github.io/doc/harbour.h ... langselect


on your image I see the calendar on Germany language, Calex on spagnol language and some text on Italian language and some string in english language
Perhaps there is some problems... :)
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: 7056
Joined: Thu Oct 18, 2012 7:17 pm

Re: How to translate some parts of sample01 ( spanish ) ?

Postby Silvio.Falconi » Fri Mar 08, 2019 9:58 am

Uwe,
How create the image with the effect of paper cutted?
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: 7056
Joined: Thu Oct 18, 2012 7:17 pm

Re: How to translate some parts of sample01 ( spanish ) ?

Postby ukoenig » Fri Mar 08, 2019 10:05 am

Silvio,

Yes that works monthnames and daynames are translated.
( your question : the image-border can be selected from inside the screenshot-software )

but there is a problem with one month :

Januar-Februar
März
April-Mai-Juni-Juli
August-September-Oktober
November-Dezember

Code: Select all  Expand view
days are translated
REQUEST DBFCDX
REQUEST HB_LANG_DE
REQUEST HB_CODEPAGE_ESWIN

Static nPop   := 0
Static oItems
Static aChecks

//----------------------------------------------------------------------------//

function Main()

   local oBrush
   local oMenu
   local oWnd

   oItems   := Array( 6 )
   aChecks  := { .F., .F., .F., .F., .F., .F. }

   HB_CDPSELECT("DEWIN")
   HB_LangSelect( "DE" )
 


Image

regards
Uwe :(
Last edited by ukoenig on Fri Mar 08, 2019 2:51 pm, edited 1 time in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: How to translate some parts of sample01 ( spanish ) ?

Postby Silvio.Falconi » Fri Mar 08, 2019 11:28 am

REQUEST DBFCDX
REQUEST HB_LANG_DE
REQUEST HB_CODEPAGE_ESWIN <------------------error Dewin

I not remember but the string are with fwstring function ?
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: 7056
Joined: Thu Oct 18, 2012 7:17 pm

Re: How to translate some parts of sample01 ( spanish ) ?

Postby ukoenig » Fri Mar 08, 2019 11:45 am

Silvio,

it seems the problem belongs only to

REQUEST HB_LANG_DE

REQUEST HB_CODEPAGE_DEWIN
doesn't have any effect.

maybe something else must be added

regards
Uwe :(
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: How to translate some parts of sample01 ( spanish ) ?

Postby Silvio.Falconi » Fri Mar 08, 2019 12:11 pm

strange
here run ok

Image

Image

Image


Image

Code: Select all  Expand view


REQUEST HB_LANG_IT
REQUEST DBFCDX
REQUEST DBFFPT

EXTERNAL  ordkeyno, ordkeycount,ordcreate,ordkeygoto

FUNCTION Main()

   PUBLIC oApp

   RddSetDefault( "DBFCDX" )


    HB_LangSelect("IT")



   SetHandleCount( 100 )

   SET DATE FORMAT "dd-mm-yyyy"
   SET DELETED     ON
   SET CENTURY     ON
   SET EPOCH TO    year( date() ) - 20
   SET MULTIPLE    OFF


 
Last edited by Silvio.Falconi on Fri Mar 08, 2019 12:27 pm, edited 1 time in total.
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: 7056
Joined: Thu Oct 18, 2012 7:17 pm

Re: How to translate some parts of sample01 ( spanish ) ?

Postby Silvio.Falconi » Fri Mar 08, 2019 12:16 pm

Now I made a test on Germany and there are errors with Germany lang !!!

Image

Image

Image
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: 7056
Joined: Thu Oct 18, 2012 7:17 pm

Re: How to translate some parts of sample01 ( spanish ) ?

Postby ukoenig » Fri Mar 08, 2019 12:22 pm

Silvio,

the program is ok and works fine
it is only the german translation of the month < März >
because it is defined in < HB_LANG_DE >
day names are ok no ä ö ü are included.

regards
Uwe
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: How to translate some parts of sample01 ( spanish ) ?

Postby Silvio.Falconi » Fri Mar 08, 2019 12:30 pm

I'm thinking there is a command to set these letter of alphabet....
Perhaps Otto Know wich is the command

Cristobal ?
Nages ?
Antonio?
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: 7056
Joined: Thu Oct 18, 2012 7:17 pm

Re: How to translate some parts of sample01 ( spanish ) ?

Postby byte-one » Fri Mar 08, 2019 2:32 pm

Uwe, probiere dies:

Code: Select all  Expand view
    REQUEST HB_CODEPAGE_DEWIN   //// Sortierung in Harbour
    HB_SETCODEPAGE("DEWIN")
    #ifdef AUSTRIA
        REQUEST HB_LANG_DE_AT
        HB_LANGSELECT("de_at")
    #else
        REQUEST HB_LANG_DEWIN
        HB_LANGSELECT("DEWIN")
    #endif
 
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: How to translate some parts of sample01 ( spanish ) ?

Postby ukoenig » Fri Mar 08, 2019 2:52 pm

Günther,

Thank You very much,
tested and works fine

it is a nice tool and I will add some improvements and extensions.
There will be a language-file and color-adjustment.

Image

the changes on top of the prog.
:
Code: Select all  Expand view

REQUEST DBFCDX
REQUEST HB_CODEPAGE_DEWIN   //// Sorting in Harbour

Static nPop   := 0
Static oItems
Static aChecks

//---------------------------------

FUNCTION MAIN()
local oBrush
local oMenu
local oWnd

oItems   := Array( 6 )
aChecks  := { .F., .F., .F., .F., .F., .F. }

HB_SETCODEPAGE("DEWIN")
#ifdef AUSTRIA
        REQUEST HB_LANG_DE_AT
        HB_LANGSELECT("de_at")
#else
        REQUEST HB_LANG_DEWIN
        HB_LANGSELECT("DEWIN")
#endif

HB_CDPSELECT("DEWIN")
 


regards
Uwe :D
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], nageswaragunupudi and 73 guests