©2003 Kåre Sjölander and Jonas Beskow
Introduction Download Documentation Links Forum
WaveSurfer user forum

FAQ  FAQ
Search  Search
Memberlist  Memberlist
Register  Register
Profile  Profile
Login  Login

TRANSLATION & LOCALIZATION

 
Post new topic   Reply to topic    www.speech.kth.se/wavesurfer Forum Index -> WaveSurfer
View previous topic :: View next topic  
Author Message
mance_n



Joined: 15 Jan 2004
Posts: 8
Location: Macedonia

PostPosted: Thu Jan 15, 2004 12:50 pm    Post subject: TRANSLATION & LOCALIZATION Reply with quote

We have translated WaveSurfer in Macedonian languge but we don't know how to Include this mk.msg file in applicatione and we can't have a macedonian version of WaveSurfer.
Please help us and tell us how to do that.

Or We can send u our translation and u will do it for us and we can donload it our versio.

Tnank u in advance!!!
Back to top
View users profile Send private message Visit posters website
kare



Joined: 16 Aug 2002
Posts: 371
Location: KTH, Centre for Speech Technology

PostPosted: Fri Jan 16, 2004 3:29 pm    Post subject: Reply with quote

Please send me the file so I can include it in the source release.

Currently, the binary version doesn't support localization. You will have to use the source version. Hopefully, this will change.

Kåre
Back to top
View users profile Send private message Visit posters website
mance_n



Joined: 15 Jan 2004
Posts: 8
Location: Macedonia

PostPosted: Sat Feb 07, 2004 9:36 pm    Post subject: It is Finished!!! Reply with quote

Hi again. We have now finished the translation of wavesurfer in Macedonian. I will send it to you, and after you includ our translation in the wavesurfer please write me from where can I download our version of it in Macedonian lenguage.
But only one small problem. Where should I send the file, on what e-mail?

Thank U in advance!!!
Back to top
View users profile Send private message Visit posters website
kare



Joined: 16 Aug 2002
Posts: 371
Location: KTH, Centre for Speech Technology

PostPosted: Wed Feb 11, 2004 11:11 am    Post subject: Reply with quote

Hello,

your file is included in the latest source distribution. If you want to use the binary version in Macedonian you can create a plug-in out of your code like this

namespace eval ::util {
::msgcat::mclocale Mk

# code from Mk.msg here #

}

Save the file as Mk.plug and put it in ~/.wavesurfer/1.6/plugins/

Kåre
Back to top
View users profile Send private message Visit posters website
mance_n



Joined: 15 Jan 2004
Posts: 8
Location: Macedonia

PostPosted: Wed Feb 11, 2004 2:24 pm    Post subject: Don't know how!!! Reply with quote

I am new at this so please tell me how can I have my Macedonian verios of it because when I download the binary version I have only one exe file. Where should I put the plug in what you told me to write???


Please tell me what to download to have my Macedonian version under Windows???

Thank U!!!
Back to top
View users profile Send private message Visit posters website
kare



Joined: 16 Aug 2002
Posts: 371
Location: KTH, Centre for Speech Technology

PostPosted: Thu Feb 12, 2004 11:33 am    Post subject: Reply with quote

I've created a plug-in out of your file, check out Help | Plug-ins and install Mk.
Hopefully I haven't managed to damage the file in editing...

After installing it you can search for it "Mk.plug" to see where WaveSurfer wants it.

In my case it is C:\Documents and Settings\kare\.wavesurfer\1.6\plugins\

Kåre
Back to top
View users profile Send private message Visit posters website
mance_n



Joined: 15 Jan 2004
Posts: 8
Location: Macedonia

PostPosted: Thu Feb 12, 2004 1:56 pm    Post subject: Reply with quote

The plug-in that you crated can't be instaled. Here are the error that gives whan I try to instaled it.


extra characters after close-quote
while compiling
"::msgcat::mcset ru_ru.koi8-r "with these values" " "Со овие вредности"

::msgcat::mcset ru_ru.koi8-r "(..."
(in namespace eval "::util" script line 25)
invoked from within
"namespace eval ::util {
::msgcat::mclocale Mk
:п»ї::msgcat::mcset ru_ru.koi8-r "Initializing..." "РЎРµ Р˜РЅРёС†РёС˜Р°Р»РёР..."
(file "C:/Documents and Settings/mance/.wavesurfer/1.6/plugins/Mk.plug" line 1)
invoked from within
"_source {C:/Documents and Settings/mance/.wavesurfer/1.6/plugins/Mk.plug}"
("uplevel" body line 1)
invoked from within
"uplevel _source [list $file]"
(procedure "source" line 5)
invoked from within
"source $plug"
(procedure "LoadPlugins" line 9)
invoked from within
"LoadPlugins [list $plugfile]"
(procedure "_install" line 46)
invoked from within
"_install .plugins"
(in namespace inscope "::wsurf" script line 1)
invoked from within
"::namespace inscope ::wsurf {_install .plugins}"
invoked from within
".plugins.f22.b invoke"
("uplevel" body line 1)
invoked from within
"uplevel #0 [list $w invoke]"
(procedure "tk::ButtonUp" line 24)
invoked from within
"tk::ButtonUp .plugins.f22.b"
(command bound to eve

Please fix the error about plug-in and write me about it. I think that in my Mk.msg file instead of ru_ru.koi8-r in every line sholud be Mk, that is my misteak sory.

Please inform me and make the plug-in work.

Thank U!!!
Back to top
View users profile Send private message Visit posters website
mance_n



Joined: 15 Jan 2004
Posts: 8
Location: Macedonia

PostPosted: Mon Feb 16, 2004 9:40 am    Post subject: Reply with quote

The plug-in that you crated can't be instaled.
Please fix the error about plug-in and write me about it. I think that in my Mk.msg file instead of ru_ru.koi8-r in every line sholud be Mk, that is my misteak sorry.

Please inform me and make the plug-in work.
Back to top
View users profile Send private message Visit posters website
kare



Joined: 16 Aug 2002
Posts: 371
Location: KTH, Centre for Speech Technology

PostPosted: Tue Feb 17, 2004 11:28 am    Post subject: Reply with quote

Simply edit the file
C:/Documents and Settings/mance/.wavesurfer/1.6/plugins/Mk.plug
until you get it to work.

Since I only have Swedish/English computers to test on I can't do very much in this area.
Please send me the corrected file when it works as intended, thanks!

Kåre
Back to top
View users profile Send private message Visit posters website
mance_n



Joined: 15 Jan 2004
Posts: 8
Location: Macedonia

PostPosted: Tue Feb 17, 2004 1:14 pm    Post subject: Reply with quote

Yes, I know that and I have fixed the file so it look's like se.msg but only the text is in Macedonina lenguage. But when I put my file in your plug-in it gives the error that I have send you before.
Please send me what tha plug-in shold look like?
Your plug-in with my text has this format:

namespace eval ::util {

::msgcat::mclocale Mk
:
::msgcat::mcset Mk "Initializing..." "Text in Macedonian"

::msgcat::mcset Mk "Components read:" "Text in Macedonian"
.
.
.
.
::msgcat::mcset Mk "Do you really want to close?" "Text in Macedonian"
}

Sholud the English lenguage stay or should I deleted the text and only the Macedonian one stays?
Is this format Ok or have samo errors in it, becouse I can't find where the errors are?
As soon as the plug-in wokrs I will send it to you, but please help me to find where the errors are?

Thank U!!!
Back to top
View users profile Send private message Visit posters website
kare



Joined: 16 Aug 2002
Posts: 371
Location: KTH, Centre for Speech Technology

PostPosted: Tue Feb 17, 2004 2:33 pm    Post subject: Reply with quote

Your example lines look fine, the English text needs to stay.

The error seems to occur at "::msgcat::mcset ru_ru.koi8-r "with these values" "..."
Try removing that line, or even better copy the whole file somewhere WaveSurfer does not find it, create a minimal plug-in like the lines of your examples, add ::msgcat::mcset-lines a few at the time until an error occurs, correct the error. In this case there seems to be a line break or something, can't tell...

/K
Back to top
View users profile Send private message Visit posters website
mance_n



Joined: 15 Jan 2004
Posts: 8
Location: Macedonia

PostPosted: Wed Feb 18, 2004 1:58 pm    Post subject: Reply with quote

I have created this minimal plug-in with only 2 lines:

namespace eval ::util{
::msgcat::mclocale mk
::msgcat::mcset mk "Initializing..." "Text in Macedonian..."
::msgcat::mcset mk "Components read:" "Text in Macedonian:"
}

I save it like mk.plug and I put it in ...\.wavesurfer\1.6\plugins directory but the errors are still here.
Where I am wrong, everything seem to be Ok as you told me?

Thank U!!!


P.S.The Encoding of the file with my plug-in is UTF-8.
Is this correct encodnig?
Back to top
View users profile Send private message Visit posters website
kare



Joined: 16 Aug 2002
Posts: 371
Location: KTH, Centre for Speech Technology

PostPosted: Fri Feb 20, 2004 3:39 pm    Post subject: Reply with quote

You need a space in "...util{" should be "...util {"

I tried this:

namespace eval ::util {
::msgcat::mclocale mk
::msgcat::mcset mk "File" "Arkiv"
}

Works for me

/K
Back to top
View users profile Send private message Visit posters website
mance_n



Joined: 15 Jan 2004
Posts: 8
Location: Macedonia

PostPosted: Fri May 28, 2004 11:10 am    Post subject: Reply with quote

I still can't get the Macedonian version of WaveSurfer. Please help me!!!
The plug in "MK" that you included in Binary version for Windows dosn't work. It can't be installed. Please tell me what to do. I will send you my translation again to you and you includ it in your WaveSurfer

Thank you in advance!!!


==>MANCE<==
Back to top
View users profile Send private message Visit posters website
kare



Joined: 16 Aug 2002
Posts: 371
Location: KTH, Centre for Speech Technology

PostPosted: Wed Jun 02, 2004 9:55 pm    Post subject: Reply with quote

Use the source version of WaveSurfer, i.e. install Tcl/Tk, install the latest Snack, download and unzip the WaveSurfer source distribution. Now make sure you can run WaveSurfer by double clicking on wavesurfer.tcl.

Now create the file wavesurfer-1.6.4/msgs/Mk.msg
containing the lines

namespace eval ::util {
::msgcat::mclocale mk
::msgcat::mcset mk "File" "Arkiv"
}

Replace the word "Arkiv" with a Macedonian string.

Now start WaveSurfer and verify that this string appears instead of "File" in the menu,

When this works, put the file in .wavesurfer\1.6\plugins as explained earlier and see it it works there.

Kåre
Back to top
View users profile Send private message Visit posters website
Display posts from previous:   
Post new topic   Reply to topic    www.speech.kth.se/wavesurfer Forum Index -> WaveSurfer All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.1 © 2001, 2002 phpBB Group