Digital Paint Discussion Board

Development => General Development => Topic started by: jitspoe on December 15, 2005, 04:33:34 AM

Title: Client-Side Text Translation
Post by: jitspoe on December 15, 2005, 04:33:34 AM
Uh, the "Change texts ?" thread ceased to be.  I accidentally clicked on "Remove" instead of "Reply."  Sorry about that.

The good news, though, is that I've implemented something for build 16 that allows translations of certain strings on the client side.  To test it out, I made a simple "l33t" language.  The lang file and a screenshot are attached.
Title: Re: Client-Side Text Translation
Post by: Eiii on December 15, 2005, 10:34:39 AM
This could be helpful for those of us that would rather see > instead of 'eliminated'.
One of the better features.
Title: Re: Client-Side Text Translation
Post by: XtremeBain on December 15, 2005, 01:20:27 PM
Good stuff =]
Title: Re: Client-Side Text Translation
Post by: toM|vendettA on February 12, 2006, 07:31:53 PM
i made my own lang file. where do i put it to use it??
Title: Re: Client-Side Text Translation
Post by: jitspoe on February 12, 2006, 09:27:04 PM
It won't work until build 16 is released.
Title: Re: Client-Side Text Translation
Post by: jitspoe on February 27, 2006, 06:33:30 PM
Now that build 16 is out (the test, anyway), you can play around with this.  lang files go in paintball2\pball\configs.
Title: Re: Client-Side Text Translation
Post by: FreudDu31 on March 07, 2006, 02:40:40 AM
I make my own french.lang but font like this "é à è" dont work
In files of menu  like setup.txt, it's the same things.

Does it work one day or how can I do?
Title: Re: Client-Side Text Translation
Post by: XtremeBain on March 07, 2006, 12:44:33 PM
That would require changes to the existing font since those characters aren't present.
Title: Re: Client-Side Text Translation
Post by: Eiii on March 07, 2006, 08:28:46 PM
Ah, the poor french. Jits, you might want to get on that, for the 'french' build.
Title: Re: Client-Side Text Translation
Post by: jitspoe on March 07, 2006, 08:46:31 PM
It probably won't be possible without doing some kind of rewrite on the whole input and font system.
Title: Re: Client-Side Text Translation
Post by: FreudDu31 on March 12, 2006, 03:55:39 PM
And how can I add more text if i dont have %n %t %i or something like that?
Title: Re: Client-Side Text Translation
Post by: Eiii on March 12, 2006, 04:35:45 PM
You can't add or remove the variables (name, gun) but you can modify what goes between them.
Title: Re: Client-Side Text Translation
Post by: FreudDu31 on March 18, 2006, 10:35:51 AM
jitspoe can you post a complete file please or just the orignal text because I have any problem with sentences like "Blue team wins the round!" I dont know the color you use for your text
Title: Re: Client-Side Text Translation
Post by: Eiii on March 18, 2006, 12:57:40 PM
The orignal text is in the l337.lang file, you just have to take out the l337 lines.
Title: Re: Client-Side Text Translation
Post by: FreudDu31 on March 18, 2006, 03:55:35 PM
How can i take l337.lang, i search on my computer but i dont have it
Title: Re: Client-Side Text Translation
Post by: Eiii on March 18, 2006, 04:08:15 PM
Um, you download it from the post jits made at the top of the page. :P
Title: Re: Client-Side Text Translation
Post by: FreudDu31 on March 18, 2006, 04:26:30 PM
Yes I know but this files is incomplete
Title: Re: Client-Side Text Translation
Post by: Eiii on March 18, 2006, 04:59:59 PM
Noooo... the lang file at the top of the page is all you need. Just replace the 'l337' phrases with your own.
Title: Re: Client-Side Text Translation
Post by: FreudDu31 on March 18, 2006, 05:22:03 PM
I traduct something like that:
ˆARed team wins the round!
to
ˆAL'equipe rouge gagne cette manche mais pas la guerre!

so it work with other sentence that it havent in l337.lang or I don't know how I do that, lol

but its hard to find all sentences and I want help
Title: Re: Client-Side Text Translation
Post by: jitspoe on March 19, 2006, 12:32:30 AM
This isn't quite everything, but it's what I was able to grab quickly.

PGP
Trracer
Stingray
VM-68
Spyder SE
Carbine
Autococker
Automag
Paint Grenade
Smoke Grenade
20 oz CO2 cartridge
12 oz CO2 cartridge
7 oz CO2 cartridge
12 gram CO2 cartridge 9 
200 round hopper
100 round hopper
200 paintballs
150 paintballs
100 paintballs
50 paintballs
25 paintballs
Brass Barrel
Chrome Barrel
Steel Barrel
Blue Flag
Red Flag
PaintGren
%n entered the game (build %d).
Round started...
%t (%i) eliminated %t (%i).
%t got the Blue flag!
%t got the Red flag!
%n is now observing.
%n disconnected.
Red's %n returned the Blue flag!
Blue's %n returned the Red flag!
ˆ›Blue team wins the round!
%n joined the Blue team.
%n switched from Blue to Red.
ˆARed team wins the round!
%n joined the Red team.
%n switched from Red to Blue

Note: Non-standard characters might get screwed up and converted to unicode here and thus not work properly in the translation file.
Title: Re: Client-Side Text Translation
Post by: FreudDu31 on March 19, 2006, 04:43:43 AM
tx jitspoe :-*
Title: Re: Client-Side Text Translation
Post by: IWC on April 22, 2006, 04:31:11 PM
Can anyone explain me how make my own file lang, i haven't understand what to do
Title: Re: Client-Side Text Translation
Post by: Eiii on April 22, 2006, 08:33:12 PM
Download the l33t.lang file and replace the 'l33t' phrases with your own.
Title: Re: Client-Side Text Translation
Post by: IWC on April 23, 2006, 07:40:29 AM
ok but somes sentences are missing like " you are now observing"

or

"This map require at least 2 teams"
Title: Re: Client-Side Text Translation
Post by: Eiii on April 23, 2006, 12:23:42 PM
Those are in this thread, on the first page.
Title: Re: Client-Side Text Translation
Post by: toM|vendettA on April 25, 2006, 07:45:33 PM
YOOO.

heres mine.
Title: Re: Client-Side Text Translation
Post by: w3b5t3r on March 01, 2008, 07:43:32 AM
Where do i put the file ?
Title: Re: Client-Side Text Translation
Post by: ViciouZ on March 01, 2008, 07:45:27 AM
Now that build 16 is out (the test, anyway), you can play around with this.  lang files go in paintball2\pball\configs.
Title: Re: Client-Side Text Translation
Post by: w3b5t3r on March 01, 2008, 08:00:51 AM
Lol thx
Title: Re: Client-Side Text Translation
Post by: Eiii on March 01, 2008, 05:43:21 PM
For the love of god, read the thread at least a tiny bit before you ask a question that's already been clearly answered. It might keep you from doing so!
Title: Re: Client-Side Text Translation
Post by: w3b5t3r on March 02, 2008, 03:51:37 AM
It don't work, I put in pball/configs the l33t.lang and nothing happen, it's like before
Title: Re: Client-Side Text Translation
Post by: ViciouZ on March 02, 2008, 04:11:51 AM
cl_language l33t
Title: Re: Client-Side Text Translation
Post by: w3b5t3r on March 02, 2008, 10:17:02 AM
ok thanks

I don't have every sentences, like for yellow team and purple...

Is there a full .lang file ?