Theoyeah-Engine icon indicating copy to clipboard operation
Theoyeah-Engine copied to clipboard

Custom language support

Open Theoyeah opened this issue 2 years ago • 43 comments

Theoyeah avatar May 20 '22 16:05 Theoyeah

@Wither362 when im done with french language, you can put your own language if you want

Theoyeah avatar May 20 '22 16:05 Theoyeah

ok

Wither362 avatar May 20 '22 16:05 Wither362

but you will need to create an update function, because if not, it will not reload the text

Wither362 avatar May 20 '22 16:05 Wither362

but you will need to create an update function, because if not, it will not reload the text

I just started implementing the thing, so it is not ready at all for merge

Theoyeah avatar May 20 '22 16:05 Theoyeah

ok

Wither362 avatar May 20 '22 16:05 Wither362

Bro im so dumb

Theoyeah avatar May 21 '22 07:05 Theoyeah

Dont worry, I will fix it

Wither362 avatar May 21 '22 07:05 Wither362

Can you please translate all the things to your language? I will make the code, ok?

Wither362 avatar May 21 '22 07:05 Wither362

ok

Theoyeah avatar May 21 '22 07:05 Theoyeah

@Wither362 when im done with french language, you can put your own language if you want

Yeah, but there is a problem, in Spanish there is the “ñ”, and in the engine there isn’t any “ñ”

Wither362 avatar May 21 '22 08:05 Wither362

@Wither362 when im done with french language, you can put your own language if you want

Yeah, but there is a problem, in Spanish there is the “ñ”, and in the engine there isn’t any “ñ”

And also in Francais there is the “œ” that in this engine there isn’t, also the “á”, the “ò”, etc

Wither362 avatar May 21 '22 08:05 Wither362

@Wither362 when im done with french language, you can put your own language if you want

Yeah, but there is a problem, in Spanish there is the “ñ”, and in the engine there isn’t any “ñ”

And also in Francais there is the “œ” that in this engine there isn’t, also the “á”, the “ò”, etc

So, how are we going to implement our languages? If there isn’t those letters?

Wither362 avatar May 21 '22 08:05 Wither362

@Wither362 when im done with french language, you can put your own language if you want

Yeah, but there is a problem, in Spanish there is the “ñ”, and in the engine there isn’t any “ñ”

And also in Francais there is the “œ” that in this engine there isn’t, also the “á”, the “ò”, etc

So, how are we going to implement our languages? If there isn’t those letters?

For me, œ isn't a problem

Theoyeah avatar May 21 '22 08:05 Theoyeah

@Wither362 when im done with french language, you can put your own language if you want

Yeah, but there is a problem, in Spanish there is the “ñ”, and in the engine there isn’t any “ñ”

And also in Francais there is the “œ” that in this engine there isn’t, also the “á”, the “ò”, etc

So, how are we going to implement our languages? If there isn’t those letters?

For me, œ isn't a problem

And the rest of the letters?

Wither362 avatar May 21 '22 08:05 Wither362

Are you with the French language? Or you’re not with it?

Wither362 avatar May 21 '22 09:05 Wither362

@BeastlyGhost, can you please create a branch for your Latin alphabet support please? We need it

Wither362 avatar May 21 '22 09:05 Wither362

@Theoyeah! Finish your language please!

Wither362 avatar May 21 '22 10:05 Wither362

@BeastlyGhost, can you please create a branch for your Latin alphabet support please? We need it

sure uhhh hold on

crowplexus avatar May 21 '22 16:05 crowplexus

and there you go

crowplexus avatar May 21 '22 16:05 crowplexus

and there you go

Thanks

Wither362 avatar May 21 '22 16:05 Wither362

also just a quick reminder: haxe fucking sucks balls, you need to type your stuff on somewhere else, then copy it with ctrl+v in game, then it will show up

crowplexus avatar May 21 '22 16:05 crowplexus

also just a quick reminder: haxe fucking sucks balls, you need to type your stuff on somewhere else, then copy it with ctrl+v in game, then it will show up

What do you mean?

Wither362 avatar May 21 '22 17:05 Wither362

also just a quick reminder: haxe fucking sucks balls, you need to type your stuff on somewhere else, then copy it with ctrl+v in game, then it will show up

What do you mean?

let's say you wanna type a ç or ñ

you need to do it somewhere else, open up the dialogue editor or any editor that you can type, open up another application, type what you want, copy from that external application and paste it in-game

crowplexus avatar May 21 '22 17:05 crowplexus

also just a quick reminder: haxe fucking sucks balls, you need to type your stuff on somewhere else, then copy it with ctrl+v in game, then it will show up

What do you mean?

let's say you wanna type a ç or ñ

you need to do it somewhere else, open up the dialogue editor or any editor that you can type, open up another application, type what you want, copy from that external application and paste it in-game

Ok, I will fix that

Wither362 avatar May 21 '22 17:05 Wither362

@Theoyeah, do i implement now the Spanish language?

Wither362 avatar May 22 '22 07:05 Wither362

Portuguese Translation for Week 6:

Senpai - :dad:Ah, uma nova donzela veio em busca do verdadeiro amor! :dad:Uma serenata entre cavalheiros decidirá onde residirá o seu belo coração. :bf:Beep bo bop bop

Roses - :dadi:Nada mal para um verme feio. :dad:Mas desta vez vou arrancar-te as bolas logo após a sua namorada acabar de gargarejar as minhas. :bf:Bop beep be skdoo bep

Thorns - :dad:Contato direto com humanos reais, depois de estar aqui preso por tanto tempo... :dad:com ELA de todas as pessoas. :dad:farei o pai dela pagar pelo que me fez a mim e a todos os outros,,.., :dad:Vou te derrotar e fazer você tomar meu lugar :dad:Vocês não se importariam se seus corpos fossem pegos emprestados, certo? É justo...

crowplexus avatar May 22 '22 21:05 crowplexus

would be more intelligent to do this

		var file:String = Paths.json(songName + '/dialogue'); //Checks for json/Psych Engine dialogue
		var langSuffix:String = '';
		if (OpenFlAssets.exists(file)) {
			dialogueJson = DialogueBoxPsych.parseDialogue(file + langSuffix);
		}

then just make the language suffix change depending on the language, like this

switch (ClientPrefs.language)
{
    case "Francais":
        langSuffix = '-french';
    case "Espanol":
        langSuffix = '-spanish';
    case "Portugues":
       langSuffix = '-pt';

       //etc..
       
    default:
      langSuffix = '';
}

crowplexus avatar May 22 '22 21:05 crowplexus

would be more intelligent to do this

		var file:String = Paths.json(songName + '/dialogue'); //Checks for json/Psych Engine dialogue
		var langSuffix:String = '';
		if (OpenFlAssets.exists(file)) {
			dialogueJson = DialogueBoxPsych.parseDialogue(file + langSuffix);
		}

then just make the language suffix change depending on the language, like this

switch (ClientPrefs.language)
{
    case "Francais":
        langSuffix = '-french';
    case "Espanol":
        langSuffix = '-spanish';
    case "Portugues":
       langSuffix = '-pt';

       //etc..
       
    default:
      langSuffix = '';
}

You’re right, let me put it

Wither362 avatar May 23 '22 06:05 Wither362

Portuguese Translation for Week 6:

Senpai - :dad:Ah, uma nova donzela veio em busca do verdadeiro amor! :dad:Uma serenata entre cavalheiros decidirá onde residirá o seu belo coração. :bf:Beep bo bop bop

Roses - :dadi:Nada mal para um verme feio. :dad:Mas desta vez vou arrancar-te as bolas logo após a sua namorada acabar de gargarejar as minhas. :bf:Bop beep be skdoo bep

Thorns - :dad:Contato direto com humanos reais, depois de estar aqui preso por tanto tempo... :dad:com ELA de todas as pessoas. :dad:farei o pai dela pagar pelo que me fez a mim e a todos os outros,,.., :dad:Vou te derrotar e fazer você tomar meu lugar :dad:Vocês não se importariam se seus corpos fossem pegos emprestados, certo? É justo...

Ready, pt dialogues are ready, now @Theoyeah, I need the French ones

Wither362 avatar May 23 '22 07:05 Wither362

Can someone please correct the translations? The French and Portuguese please

Wither362 avatar May 23 '22 08:05 Wither362