[Tutorial] Darkorbit Client | Language Files

08/04/2013 09:28 XxDarthDexterxX#1
So there are currently a few clients buzzing around on here for all those private servers, and I've noticed that they're all in Spanish.

Here's how to have it English (or any language) instead. :P You can even replace things with custom text, too.

Here's a summary of the steps involved in changing the required files.
  1. Locate Spacemap language files (for the client language).
  2. Acquire the required language files.
  3. Replace the language files.
  4. Ensure the changes apply.

INFORMATION: Depending on where you've put your files, the location of the folders below will vary, however it should be easy enough to find.


1. Locating the language file(s).

Navigate to htdocs/flashinput. The client uses these files for the text it displays. Once there, locate the "translationSpacemap.php" file. This is the file we're going to replace in the following step.

2. Acquiring the language file(s).

Attached, is the file I'm using. It's slightly modified to allow for custom messages using the "q2_condition_HONOR_REDEMPTION" client message. It's at the very bottom, and I see no use for it other than to display custom messages.

WARNING: The file above should be virus free, however I cannot make any guarantees. For those concerned about security, here's a link to the VirusTotal scan: [Only registered and activated users can see links. Click Here To Register...]

NOTICE: I'm using the English file in this tutorial. If you require any other languages, I'll locate them and post them here.

Italian: [Only registered and activated users can see links. Click Here To Register...]

3. Replacing the language file(s).

Now you're going to replace the file located in Step 1 with the file in the .zip that you downloaded in Step 2. Congratulations, you've now almost got an English client. Just one more step.

4. Applying changes.

To make sure that you can see the effect of the changes immediately, close the client if it's already open, and then clear your cache. This step isn't required (because .php files aren't normally cached by your browser), but it's always good to be sure.

Now you're done. ;) If this tutorial has helped you, please click "Thanks".

If you have any questions, please feel free to ask. I'm in the mood for doing tutorials, so if you have any tutorial ideas, you're more than welcome to PM me.

P.S. - I've been up all night. If some parts of this don't make sense, then now you know why. ;)
08/04/2013 10:08 megasuperleader#2
In italian? :D

If you do put in a nice italian thanks. I needed a lot.
08/04/2013 10:21 XxDarthDexterxX#3
Quote:
Originally Posted by megasuperleader View Post
In italian? :D

If you do put in a nice italian thanks. I needed a lot.
Certamente!

See attached. :)
08/04/2013 10:24 megasuperleader#4
Quote:
Originally Posted by XxDarthDexterxX View Post
Certamente!

See attached. :)
Sei italiano? Comunque grazie.

You are italian? Anyway thanks.
08/04/2013 10:24 XxDarthDexterxX#5
Quote:
Originally Posted by megasuperleader View Post
Sei italiano? Comunque grazie.

You are italian? Anyway thanks.
No, I am not. I use Google Translate. :3
08/04/2013 10:29 megasuperleader#6
Quote:
Originally Posted by XxDarthDexterxX View Post
No, I am not. I use Google Translate. :3
Lol :)

Please translate ;)

La schermata di gioco resta nera quando clicco su 'INICIO'
08/04/2013 10:40 XxDarthDexterxX#7
Which start button? The one in-game or on the back-page?

Please PM me with your answer. ;) I don't want to clutter up this thread or take it off-topic. :P
08/07/2013 18:20 megasuperleader#8
But this is for Azure?
08/08/2013 10:49 XxDarthDexterxX#9
Quote:
Originally Posted by megasuperleader View Post
But this is for Azure?
This is client-related. The server application you use shouldn't matter.
08/08/2013 11:10 megasuperleader#10
But don't work. On my server i insert this file and the page is black.
08/08/2013 11:34 XxDarthDexterxX#11
I think I know why. Try this:

Find (Line 1):
Code:
<xml version='1.0' encoding='utf-8'>
Change to:
Code:
<?php header("Content-type: text/xml"); ?>
That's a mistake on my part, and it should fix the problem you're having.
08/08/2013 18:40 megasuperleader#12
I HAVE THIS ERROR!!!
[Only registered and activated users can see links. Click Here To Register...]

Ok work. But i have this problem:

[Only registered and activated users can see links. Click Here To Register...]
08/08/2013 19:34 XxDarthDexterxX#13
Did my above solution work or not? I can't help you unless you give me specifics.