• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

Translation

1) Number of lines is important, because the dialog.c file refers to the dialog.h file by the line number.
Length of the text does not matter.

2) I think these are from the Quick-Equip key: "You equipped a worn saber", for example.
Of course keeping the grammar correct in different languages is going to be a lot harder than just replacing the English texts with German ones. <img src="style_emoticons/<#EMO_DIR#>/icon_confused.gif" style="vertical-align:middle" emoid=":?" border="0" alt="icon_confused.gif" />

3) Trick: Add your PROGRAM to the Windows search index and search for "sw_portuguese". You will see all files where this line is used so you can find out the context yourself. <img src="style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />

4) Sounds like a mistake somewhere. <img src="style_emoticons/<#EMO_DIR#>/icon_confused.gif" style="vertical-align:middle" emoid=":?" border="0" alt="icon_confused.gif" />
 
<!--quoteo(post=248683:date=Apr 2 2008, 07:01 PM:name=Pieter Boelen)--><div class='quotetop'>QUOTE (Pieter Boelen @ Apr 2 2008, 07:01 PM) <a href="index.php?act=findpost&pid=248683"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->1) Number of lines is important, because the dialog.c file refers to the dialog.h file by the line number.<!--QuoteEnd--></div><!--QuoteEEnd-->
Sure about that? I thought a line begins with a " and ends with a ". Example:
"This would be line one of the dialog file...blah...blah...blah....
blah...blah"
" And this I thought would then be line 2"

<!--quoteo(post=248683:date=Apr 2 2008, 07:01 PM:name=Pieter Boelen)--><div class='quotetop'>QUOTE (Pieter Boelen @ Apr 2 2008, 07:01 PM) <a href="index.php?act=findpost&pid=248683"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->4) Sounds like a mistake somewhere. <img src="style_emoticons/<#EMO_DIR#>/icon_confused.gif" style="vertical-align:middle" emoid=":?" border="0" alt="icon_confused.gif" /><!--QuoteEnd--></div><!--QuoteEEnd-->
Right, but where? I copied the english dialog file back and played the tutorial again...works like a charm.
 
1) Hmm. Good point. Never tried it with enters inbetween. I recommend just keeping each part between ""s on it's own line.

4) Possibly a mistake with the line numbers because of those added enters?
 
Thank you for the help so far, I will check Malcolm´s dialog and see if I accidently forgot or added a " ...wouldn´t it be boring if everything worked without any problem? <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />

You wrote: "Add your PROGRAM to the Windows search index..."
Don´t forget that I am an computer illiterate and need a manual even for switching this thing on or off. <img src="style_emoticons/<#EMO_DIR#>/icon_wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="icon_wink.gif" />
Could you please tell how to do that and how to remove it again afterwards?
 
I have Windows Vista, so it might be different in your Windows. What I do is just right-click the folder, select "search", type in something and have it search. Then you will probably get some sort of message on the screen saying that you can speed up the search by adding the folder to the search index. Do that. You need to wait for a while after that or restart the computer or so. You don't really need to remove it again; it is most useful to keep it there. <img src="style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />
 
Also don't forget the <b>coma</b> at the end of each line. So in fact it should be like this <b>"",</b> you put the text in between the "" on the same line.



<b>Cheers,</b> <img src="style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" />
 
Yesssssss...there seems to be a light at the end of the dark tunnel. I think I understood how it works and what to do with the search results. The course of the game will reveal if I am right.
And I will check if I deleted a comma by mistake, good tip.

Thanks for the help, I bow to your wisdom.
<img src="style_emoticons/<#EMO_DIR#>/me.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="me.gif" />
 
Emmm....does anybody know by coincidence what the following error message means?

COMPILE ERROR - file: dialogs\English\Danielle_dialog.h; line: 1
Invalid array 'DLG_TEXT' initialization parameters list
COMPILE ERROR - file: dialogs\Danielle_dialog.c; line: 43
Invalid Expression
Undeclared identifier: DLG_TEXT

I didn´t change anything in the c-files (I don´t even know how to count the lines there).
<img src="style_emoticons/<#EMO_DIR#>/dunno.gif" style="vertical-align:middle" emoid=":shrug" border="0" alt="dunno.gif" />
 
Probably something wrong in your dialog.h file. A missed ; perhaps? There's a lot of things that might be wrong. Be sure to check line 43 of the .c file.
 
<!--quoteo(post=249109:date=Apr 5 2008, 01:32 PM:name=Pieter Boelen)--><div class='quotetop'>QUOTE (Pieter Boelen @ Apr 5 2008, 01:32 PM) <a href="index.php?act=findpost&pid=249109"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Be sure to check line 43 of the .c file.<!--QuoteEnd--></div><!--QuoteEEnd-->
I don´t think the problem is in the c-file because when I copied the original (english) h-file back the problem was gone.
So I need to know the answer of question #1 of my first post: Is the number of lines important (Example: a part of the original dialog consists of five lines, but the German translation has eight lines.)? Has it something to do with it or does (as Pieter wrote) everything between two " count as one line?

If not: how do you count the lines? Example:
A certain sentence of a dialog file consists of three lines in wordpad. If I open it in notepad it has only two lines because of a different seize and/or style.

Share your wisdom, gods of modding.
<img src="style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" />
 
First of all, when coding you shouldn't use the option that makes all text fit on the screen. Every line of code must be on it's own line. I recommend to keep every sentence on its own line as well. So the entire <i>"text here",</i> goes on one line and the next sentence goes on the next line.
 
I think I found the problem: Is it possible that the ingame text window can display just a certain numbers of lines? And rest is being cut off and thus the dialog file gets mixed up?
And can you avoid that by splitting a longer text block into parts by using "\n"? Or does that count as a new line?
 
"\n" is rather odd; sometimes it works, sometimes it doesn't. Quite a lot of text can fit into a dialog box, but not infinitely much. I never tried to find out how much can fit in there really.
 
Well, it seems that "my" version runs fine so far...thanks for your help so far.
But I noticed that now I have funny dialogs as my prename is replaced by my rank.
Example: "You can call me captain Lieutenant." <img src="style_emoticons/<#EMO_DIR#>/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />
(Should also happen in the english version)

Any idea how and where to change this?
 
Compare your PROGRAM folder with the original one using <a href="http://winmerge.org" target="_blank">WinMerge</a> and see where are the differences. It used to work right.
 
Thanks for the link.
Unfortunately I couldn´t find any important difference and to be honest I didn´t expect to find anything because "inserting" the ranks is not done by the translated dialog files (as fas as I understand it).
So it would be great if someone could confirm if this also happens in the "normal" Build13 final or not (You must have a letter of marque and must have been promoted at least one time).
 
Indeed there WAS a problem with that at some point; I thought it was fixed eventually, but I'm not entirely sure. I thought you meant you got that problem only after your changes. Sorry; my mistake. <img src="style_emoticons/<#EMO_DIR#>/mybad.gif" style="vertical-align:middle" emoid=":facepalm" border="0" alt="mybad.gif" />
 
Would you please inform me if you discover or remember how to fix that?
I promise I will include you in my night prayer. <img src="style_emoticons/<#EMO_DIR#>/icon_wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="icon_wink.gif" />
 
It's got to do with some faulty references in the dialog files if I remember. I think it's fixed by Maximus in one of the Alpha's then. <img src="style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" />
 
Back
Top