wc3edit.net

United Warcraft 3 map hacking!
It is currently March 28th, 2024, 10:57 pm

All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Translation help~
PostPosted: November 26th, 2017, 2:29 pm 
Offline
Newcomer

Joined: December 9th, 2013, 6:55 am
Posts: 23
I've searched and then tried to translate a map, so far so good except that I'm having an issue of translating the texts that appear in Quests and the texts that pop up(will explain later). So far, what I did was open up object editor, import everything and export strings, then translate. That works for abilities/items/units etc etc. But for Quests in F9, the texts, i can't find all of them in war3.wts file, where can i find the rest to translate? Also for texts that pop up, i'm referring to those that show up from .j file(call displaytext....), those I can edit them 1 by 1 and search for it in jass but it's really troublesome to search 1 by 1 for it then translate, is there a more efficient way, like being able to get strings for all of the texts for example?

P.S : sorry if it's a little confusing :/


Top
 Profile  
 
 Post subject: Re: Translation help~
PostPosted: November 26th, 2017, 3:23 pm 
Offline
Shopping Maul USA Creator
User avatar

Joined: January 18th, 2007, 11:07 am
Posts: 1992
Location: Calgary Canada
Title: No Comment
You can open up a file in notepad, copy and paste it into Google translate. I also used Systran in MS Office to do this as well. It should translate all of the words, and leave the syntax alone. If not you may have to search for different symbols and replace with original syntax.

This is a pc from the W3Q file:
Translated:
Code:
gtp1?

original:
Code:
gtp1          


It's easy enough to "find" and "replace all" in a text editor to fix it.


Top
 Profile  
 
 Post subject: Re: Translation help~
PostPosted: November 26th, 2017, 4:02 pm 
Offline
Newcomer

Joined: December 9th, 2013, 6:55 am
Posts: 23
I'll try and open it in notepad and try it because I've been copying the entire lines(spoiler below) from j file directly into google translate, but it kinda ruins the syntax(notice the translated ones have unnecessary spaces).
Btw, the spoilers are massive
Spoiler:
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())),5.00,"|cffffff00현세로 통하는 우물은 마을 밑에 있습니다.|r")
else
call DoNothing()
endif
if(Trig_Help_Func003001())then
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())),5.00,"|cffffff00전용 무기를 +10까지 강화시키면 강한 공격력과 특색있는 스킬을 맛보실 수 있습니다.|r")
else
call DoNothing()
endif
if(Trig_Help_Func004001())then
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())),5.00,"|cffffff00전용 무기를 +10까지 강화시키면 강한 공격력과 특색있는 스킬을 맛보실 수 있습니다.|r")
else
call DoNothing()
endif
if(Trig_Help_Func005001())then
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())),5.00,"|cffffff00게임 도중 궁금한 점이 있으면 cafe.daum.net/i70 으로 오세요.|r")
else
call DoNothing()
endif
if(Trig_Help_Func006001())then
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())),5.00,"|cffffff00게임 도중 궁금한 점이 있으면 cafe.daum.net/i70 으로 오세요.|r")
else
call DoNothing()
endif
if(Trig_Help_Func007001())then
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())),5.00,"|cffffff00강화가 아닌 조합하는 아이템은 마을 7시 쪽 토토사이에게 가서 하세요.|r")
else
call DoNothing()
endif
if(Trig_Help_Func008001())then
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())),5.00,"|cffffff00약초가 필요하시면 마을 밑에 있는 지넨지에게 가서 구입하세요.|r")
else
call DoNothing()
endif
if(Trig_Help_Func009001())then
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())),5.00,"|cffffff00강화가 아닌 조합하는 아이템은 마을 7시 쪽 토토사이에게 가서 하세요!|r")
else
call DoNothing()
endif
if(Trig_Help_Func010001())then
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())),5.00,"|cffffff00엔딩을 보기 싫으실때는 esc를 누르시면 됩니다.|r")
else
call DoNothing()
endif
if(Trig_Help_Func011001())then
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())),5.00,"|cffffff00+0이 붙은 아이템 강화는 사혼의 구슬 조각으로 할 수 있습니다.|r")
else
call DoNothing()
endif
if(Trig_Help_Func012001())then
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())),5.00,"|cffffff00전용 아이템 강화는 토토사이의 특수 개조 시스템을 이용하시면 됩니다.|r")
else
call DoNothing()
endif
if(Trig_Help_Func013001())then
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())),5.00,"|cffffff00전용 무기를 +10까지 강화시키면 강한 공격력과 특색있는 스킬을 맛보실 수 있습니다.|r")
else
call DoNothing()
endif
if(Trig_Help_Func014001())then
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())),5.00,"|cffffff00토토사이는 마을 7시 쪽에 자리잡고 있으며 개조 아이템을 팝니다.|r")
else
call DoNothing()
endif
endfunction

Link of google translate(copied and pasted the lines in the spoiler above)
Spoiler:
https://translate.google.com/#ko/en/call%20DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit()))%2C5.00%2C%22%7Ccffffff00%ED%98%84%EC%84%B8%EB%A1%9C%20%ED%86%B5%ED%95%98%EB%8A%94%20%EC%9A%B0%EB%AC%BC%EC%9D%80%20%EB%A7%88%EC%9D%84%20%EB%B0%91%EC%97%90%20%EC%9E%88%EC%8A%B5%EB%8B%88%EB%8B%A4.%7Cr%22)%0Aelse%0Acall%20DoNothing()%0Aendif%0Aif(Trig_Help_Func003001())then%0Acall%20DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit()))%2C5.00%2C%22%7Ccffffff00%EC%A0%84%EC%9A%A9%20%EB%AC%B4%EA%B8%B0%EB%A5%BC%20%2B10%EA%B9%8C%EC%A7%80%20%EA%B0%95%ED%99%94%EC%8B%9C%ED%82%A4%EB%A9%B4%20%EA%B0%95%ED%95%9C%20%EA%B3%B5%EA%B2%A9%EB%A0%A5%EA%B3%BC%20%ED%8A%B9%EC%83%89%EC%9E%88%EB%8A%94%20%EC%8A%A4%ED%82%AC%EC%9D%84%20%EB%A7%9B%EB%B3%B4%EC%8B%A4%20%EC%88%98%20%EC%9E%88%EC%8A%B5%EB%8B%88%EB%8B%A4.%7Cr%22)%0Aelse%0Acall%20DoNothing()%0Aendif%0Aif(Trig_Help_Func004001())then%0Acall%20DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit()))%2C5.00%2C%22%7Ccffffff00%EC%A0%84%EC%9A%A9%20%EB%AC%B4%EA%B8%B0%EB%A5%BC%20%2B10%EA%B9%8C%EC%A7%80%20%EA%B0%95%ED%99%94%EC%8B%9C%ED%82%A4%EB%A9%B4%20%EA%B0%95%ED%95%9C%20%EA%B3%B5%EA%B2%A9%EB%A0%A5%EA%B3%BC%20%ED%8A%B9%EC%83%89%EC%9E%88%EB%8A%94%20%EC%8A%A4%ED%82%AC%EC%9D%84%20%EB%A7%9B%EB%B3%B4%EC%8B%A4%20%EC%88%98%20%EC%9E%88%EC%8A%B5%EB%8B%88%EB%8B%A4.%7Cr%22)%0Aelse%0Acall%20DoNothing()%0Aendif%0Aif(Trig_Help_Func005001())then%0Acall%20DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit()))%2C5.00%2C%22%7Ccffffff00%EA%B2%8C%EC%9E%84%20%EB%8F%84%EC%A4%91%20%EA%B6%81%EA%B8%88%ED%95%9C%20%EC%A0%90%EC%9D%B4%20%EC%9E%88%EC%9C%BC%EB%A9%B4%20cafe.daum.net%2Fi70%20%EC%9C%BC%EB%A1%9C%20%EC%98%A4%EC%84%B8%EC%9A%94.%7Cr%22)%0Aelse%0Acall%20DoNothing()%0Aendif%0Aif(Trig_Help_Func006001())then%0Acall%20DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit()))%2C5.00%2C%22%7Ccffffff00%EA%B2%8C%EC%9E%84%20%EB%8F%84%EC%A4%91%20%EA%B6%81%EA%B8%88%ED%95%9C%20%EC%A0%90%EC%9D%B4%20%EC%9E%88%EC%9C%BC%EB%A9%B4%20cafe.daum.net%2Fi70%20%EC%9C%BC%EB%A1%9C%20%EC%98%A4%EC%84%B8%EC%9A%94.%7Cr%22)%0Aelse%0Acall%20DoNothing()%0Aendif%0Aif(Trig_Help_Func007001())then%0Acall%20DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit()))%2C5.00%2C%22%7Ccffffff00%EA%B0%95%ED%99%94%EA%B0%80%20%EC%95%84%EB%8B%8C%20%EC%A1%B0%ED%95%A9%ED%95%98%EB%8A%94%20%EC%95%84%EC%9D%B4%ED%85%9C%EC%9D%80%20%EB%A7%88%EC%9D%84%207%EC%8B%9C%20%EC%AA%BD%20%ED%86%A0%ED%86%A0%EC%82%AC%EC%9D%B4%EC%97%90%EA%B2%8C%20%EA%B0%80%EC%84%9C%20%ED%95%98%EC%84%B8%EC%9A%94.%7Cr%22)%0Aelse%0Acall%20DoNothing()%0Aendif%0Aif(Trig_Help_Func008001())then%0Acall%20DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit()))%2C5.00%2C%22%7Ccffffff00%EC%95%BD%EC%B4%88%EA%B0%80%20%ED%95%84%EC%9A%94%ED%95%98%EC%8B%9C%EB%A9%B4%20%EB%A7%88%EC%9D%84%20%EB%B0%91%EC%97%90%20%EC%9E%88%EB%8A%94%20%EC%A7%80%EB%84%A8%EC%A7%80%EC%97%90%EA%B2%8C%20%EA%B0%80%EC%84%9C%20%EA%B5%AC%EC%9E%85%ED%95%98%EC%84%B8%EC%9A%94.%7Cr%22)%0Aelse%0Acall%20DoNothing()%0Aendif%0Aif(Trig_Help_Func009001())then%0Acall%20DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit()))%2C5.00%2C%22%7Ccffffff00%EA%B0%95%ED%99%94%EA%B0%80%20%EC%95%84%EB%8B%8C%20%EC%A1%B0%ED%95%A9%ED%95%98%EB%8A%94%20%EC%95%84%EC%9D%B4%ED%85%9C%EC%9D%80%20%EB%A7%88%EC%9D%84%207%EC%8B%9C%20%EC%AA%BD%20%ED%86%A0%ED%86%A0%EC%82%AC%EC%9D%B4%EC%97%90%EA%B2%8C%20%EA%B0%80%EC%84%9C%20%ED%95%98%EC%84%B8%EC%9A%94!%7Cr%22)%0Aelse%0Acall%20DoNothing()%0Aendif%0Aif(Trig_Help_Func010001())then%0Acall%20DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit()))%2C5.00%2C%22%7Ccffffff00%EC%97%94%EB%94%A9%EC%9D%84%20%EB%B3%B4%EA%B8%B0%20%EC%8B%AB%EC%9C%BC%EC%8B%A4%EB%95%8C%EB%8A%94%20esc%EB%A5%BC%20%EB%88%84%EB%A5%B4%EC%8B%9C%EB%A9%B4%20%EB%90%A9%EB%8B%88%EB%8B%A4.%7Cr%22)%0Aelse%0Acall%20DoNothing()%0Aendif%0Aif(Trig_Help_Func011001())then%0Acall%20DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit()))%2C5.00%2C%22%7Ccffffff00%2B0%EC%9D%B4%20%EB%B6%99%EC%9D%80%20%EC%95%84%EC%9D%B4%ED%85%9C%20%EA%B0%95%ED%99%94%EB%8A%94%20%EC%82%AC%ED%98%BC%EC%9D%98%20%EA%B5%AC%EC%8A%AC%20%EC%A1%B0%EA%B0%81%EC%9C%BC%EB%A1%9C%20%ED%95%A0%20%EC%88%98%20%EC%9E%88%EC%8A%B5%EB%8B%88%EB%8B%A4.%7Cr%22)%0Aelse%0Acall%20DoNothing()%0Aendif%0Aif(Trig_Help_Func012001())then%0Acall%20DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit()))%2C5.00%2C%22%7Ccffffff00%EC%A0%84%EC%9A%A9%20%EC%95%84%EC%9D%B4%ED%85%9C%20%EA%B0%95%ED%99%94%EB%8A%94%20%ED%86%A0%ED%86%A0%EC%82%AC%EC%9D%B4%EC%9D%98%20%ED%8A%B9%EC%88%98%20%EA%B0%9C%EC%A1%B0%20%EC%8B%9C%EC%8A%A4%ED%85%9C%EC%9D%84%20%EC%9D%B4%EC%9A%A9%ED%95%98%EC%8B%9C%EB%A9%B4%20%EB%90%A9%EB%8B%88%EB%8B%A4.%7Cr%22)%0Aelse%0Acall%20DoNothing()%0Aendif%0Aif(Trig_Help_Func013001())then%0Acall%20DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit()))%2C5.00%2C%22%7Ccffffff00%EC%A0%84%EC%9A%A9%20%EB%AC%B4%EA%B8%B0%EB%A5%BC%20%2B10%EA%B9%8C%EC%A7%80%20%EA%B0%95%ED%99%94%EC%8B%9C%ED%82%A4%EB%A9%B4%20%EA%B0%95%ED%95%9C%20%EA%B3%B5%EA%B2%A9%EB%A0%A5%EA%B3%BC%20%ED%8A%B9%EC%83%89%EC%9E%88%EB%8A%94%20%EC%8A%A4%ED%82%AC%EC%9D%84%20%EB%A7%9B%EB%B3%B4%EC%8B%A4%20%EC%88%98%20%EC%9E%88%EC%8A%B5%EB%8B%88%EB%8B%A4.%7Cr%22)%0Aelse%0Acall%20DoNothing()%0Aendif%0Aif(Trig_Help_Func014001())then%0Acall%20DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit()))%2C5.00%2C%22%7Ccffffff00%ED%86%A0%ED%86%A0%EC%82%AC%EC%9D%B4%EB%8A%94%20%EB%A7%88%EC%9D%84%207%EC%8B%9C%20%EC%AA%BD%EC%97%90%20%EC%9E%90%EB%A6%AC%EC%9E%A1%EA%B3%A0%20%EC%9E%88%EC%9C%BC%EB%A9%B0%20%EA%B0%9C%EC%A1%B0%20%EC%95%84%EC%9D%B4%ED%85%9C%EC%9D%84%20%ED%8C%9D%EB%8B%88%EB%8B%A4.%7Cr%22)%0Aelse%0Acall%20DoNothing()%0Aendif%0Aendfunction


Edit : I've tried opening in notepad, same thing occurs as explained above^ :/ any solutions or I'm stuck with copying only specific words(korean) rather than copying with the english ones and be faster that way, if you get what I mean.


Top
 Profile  
 
 Post subject: Re: Translation help~
PostPosted: November 26th, 2017, 5:51 pm 
Offline
Shopping Maul USA Creator
User avatar

Joined: January 18th, 2007, 11:07 am
Posts: 1992
Location: Calgary Canada
Title: No Comment
Use MS Word to open files might work better.

Spoiler:
call DisplayTimedTextToForce (GetForceOfPlayer (GetOwningPlayer (GetTriggerUnit ())), 5.00, "| cffffff00 Well,
else
call DoNothing ()
endif
if (Trig_Help_Func003001 ()) then
call DisplayTimedTextToForce (GetForceOfPlayer (GetOwningPlayer (GetTriggerUnit ())), 5.00, "| cffffff00 You can enhance your weapons to +10,
else
call DoNothing ()
endif
if (Trig_Help_Func004001 ()) then
call DisplayTimedTextToForce (GetForceOfPlayer (GetOwningPlayer (GetTriggerUnit ())), 5.00, "| cffffff00 You can enhance your weapons to +10,
else
call DoNothing ()
endif
if (Trig_Help_Func005001 ()) then
call DisplayTimedTextToForce (GetForceOfPlayer (GetOwningPlayer (GetTriggerUnit ())), 5.00, "| cffffff00 If you have any questions during the game, please come to cafe.daum.net/i70 | r")
else
call DoNothing ()
endif
if (Trig_Help_Func006001 ()) then
call DisplayTimedTextToForce (GetForceOfPlayer (GetOwningPlayer (GetTriggerUnit ())), 5.00, "| cffffff00 If you have any questions during the game, please come to cafe.daum.net/i70 | r")
else
call DoNothing ()
endif
if (Trig_Help_Func007001 ()) then
call DisplayTimedTextToForce (GetForceOfPlayer (GetOwningPlayer (GetTriggerUnit ())), 5.00, "| cffffff00 Go to Totosai, town 7 o'clock,
else
call DoNothing ()
endif
if (Trig_Help_Func008001 ()) then
call DisplayTimedTextToForce (GetForceOfPlayer (GetOwningPlayer (GetTriggerUnit ())), 5.00, "| cffffff00 If you need herbal medicine, go to Jinenji,
else
call DoNothing ()
endif
if (Trig_Help_Func009001 ()) then
Call DisplayTimedTextToForce (GetForceOfPlayer (GetOwningPlayer (GetTriggerUnit ())), 5.00, "| cffffff00 Go to Totosai, town 7 o'clock,
else
call DoNothing ()
endif
if (Trig_Help_Func010001 ()) then
call DisplayTimedTextToForce (GetForceOfPlayer (GetOwningPlayer (GetTriggerUnit ())), 5.00, "| cffffff00 If you do not want to see the ending, press esc | r"
else
call DoNothing ()
endif
if (Trig_Help_Func011001 ()) then
call DisplayTimedTextToForce (GetForceOfPlayer (GetOwningPlayer (GetTriggerUnit ())), 5.00, "| cffffff00 + 0"
else
call DoNothing ()
endif
if (Trig_Help_Func012001 ()) then
call DisplayTimedTextToForce (GetForceOfPlayer (GetOwningPlayer (GetTriggerUnit ())), 5.00, "| cffffff00 Use special modification system between Toto | r"
else
call DoNothing ()
endif
if (Trig_Help_Func013001 ()) then
call DisplayTimedTextToForce (GetForceOfPlayer (GetOwningPlayer (GetTriggerUnit ())), 5.00, "| cffffff00 You can enhance your weapons to +10,
else
call DoNothing ()
endif
if (Trig_Help_Func014001 ()) then
call DisplayTimedTextToForce (GetForceOfPlayer (GetOwningPlayer (GetTriggerUnit ())), 5.00, "| cffffff00 Totosi is located at 7 o'clock in town and sells modified items. | r"
else
call DoNothing ()
endif
endfunction



This was copy and paste right in Google. Looks ok to me except for some spaces. In word do this:

Copy -----------> "(GetForceOfPlayer (GetOwningPlayer (GetTriggerUnit ())), 5.00, "| cffffff00"
Replace all with "(GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())),5.00,"|cffffff00"

Just replace it with the same line of text without the unnecessary spaces. You will have to do this trick for many other lines of text with the syntax. Just make sure you copy long lines of text to make sure you dont replace other lines in the file. Example:

if you copy only "), 5" to replace the space, it may screw up different areas of the file. More text is better.

I don't know anything about jass, so maybe the spaces are ok?




.


Top
 Profile  
 
 Post subject: Re: Translation help~
PostPosted: November 27th, 2017, 12:41 am 
Offline
Newcomer

Joined: December 9th, 2013, 6:55 am
Posts: 23
ahhhh guess I'll have to do that or just replace only the korean words specifically line by line, gonna take awhile but I guess that's the only solution atm :/ O well!

P.S for some reason after translating there are unnecessary spaces :/ which explains why my skills/items/unit names(translated from strings) shows actual color codes that are broken instead of showing colored texts.


Top
 Profile  
 
 Post subject: Re: Translation help~
PostPosted: November 27th, 2017, 12:58 am 
Offline
V.I.P.
User avatar

Joined: August 5th, 2017, 2:26 am
Posts: 143
Location: Discord:
Title: Moon#6000
You can also learn Regex (Regular Expression) - take out the functions that send a message, translate and put them back to where they belong in the script file.


Top
 Profile  
 
 Post subject: Re: Translation help~
PostPosted: November 27th, 2017, 11:56 am 
Offline
Shopping Maul USA Creator
User avatar

Joined: January 18th, 2007, 11:07 am
Posts: 1992
Location: Calgary Canada
Title: No Comment
juxtapose123 wrote:
P.S for some reason after translating there are unnecessary spaces :/ which explains why my skills/items/unit names(translated from strings) shows actual color codes that are broken instead of showing colored texts.


See my post how to fix it.


Top
 Profile  
 
 Post subject: Re: Translation help~
PostPosted: November 29th, 2017, 7:28 pm 
Offline
Super Moderator
User avatar

Joined: February 24th, 2009, 1:31 pm
Posts: 3815
Location: JEW LAND
spaces dont break syntax in jass. as long as they are at the same ling
string x="value"
and
string x = "value"
are the same


Top
 Profile  
 
 Post subject: Re: Translation help~
PostPosted: November 29th, 2017, 10:13 pm 
Offline
Shopping Maul USA Creator
User avatar

Joined: January 18th, 2007, 11:07 am
Posts: 1992
Location: Calgary Canada
Title: No Comment
That's good to know. it makes translating that much easier.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC


Who is online

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


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO


Privacy Policy Statement
Impressum (German)