Theoyeah / Theoyeah-Engine

A modified Version of Psych Engine by Theoyeah
Apache License 2.0
37 stars 19 forks source link

Custom language support #133

Open Theoyeah opened 2 years ago

Theoyeah commented 2 years ago

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

Wither362 commented 2 years ago

ok

Wither362 commented 2 years ago

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

Theoyeah commented 2 years ago

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

Wither362 commented 2 years ago

ok

Theoyeah commented 2 years ago

Bro im so dumb

Wither362 commented 2 years ago

Dont worry, I will fix it

Wither362 commented 2 years ago

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

Theoyeah commented 2 years ago

ok

Wither362 commented 2 years ago

@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 commented 2 years ago

@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 commented 2 years ago

@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?

Theoyeah commented 2 years ago

@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

Wither362 commented 2 years ago

@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 commented 2 years ago

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

Wither362 commented 2 years ago

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

Wither362 commented 2 years ago

@Theoyeah! Finish your language please!

crowplexus commented 2 years ago

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

sure uhhh hold on

crowplexus commented 2 years ago

and there you go

Wither362 commented 2 years ago

and there you go

Thanks

crowplexus commented 2 years ago

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

Wither362 commented 2 years ago

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?

crowplexus commented 2 years ago

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

Wither362 commented 2 years ago

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 commented 2 years ago

@Theoyeah, do i implement now the Spanish language?

crowplexus commented 2 years ago

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 commented 2 years ago

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 = '';
}
Wither362 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

crowplexus commented 2 years ago

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

Portuguese: Resume Song = Continuar Musica Restart Song = Reiniciar Musica Leave Charting Mode = Sair do Charting Mode Skip Time = Pular Tempo End Song = Terminar Musica Toggle Practice Mode = Ligar Modo Pratica Toggle Botplay = Ligar Botplay

Wither362 commented 2 years ago

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

Portuguese: Resume Song = Continuar Musica Restart Song = Reiniciar Musica Leave Charting Mode = Sair do Charting Mode Skip Time = Pular Tempo End Song = Terminar Musica Toggle Practice Mode = Ligar Modo Pratica Toggle Botplay = Ligar Botplay

Thanks

Wither362 commented 2 years ago

Can someone please correct my translations? All of them

Theoyeah commented 2 years ago

so, it is my turn to finish my language

Wither362 commented 2 years ago

so, it is my turn to finish my language

Yeah, and I will repair the code later, don’t worry about the errors

Theoyeah commented 2 years ago

btw im fixing the confits rn

Theoyeah commented 2 years ago

I started to translate some thing, but you need to recover some of your traduction

Wither362 commented 2 years ago

I started to translate some thing, but you need to recover some of your traduction

ok

Wither362 commented 2 years ago

Do I start to translate to my language and correct the errors?

Theoyeah commented 2 years ago

ok

JustJasonLol commented 2 years ago

demo if you read this i did NOT take this code for Funkin.AVI

JustJasonLol commented 2 years ago

demo if you read this i did NOT take this code for Funkin.AVI

Pls belive me is my first original thing and i didnt used Theoyeah engine :sob:

Wither362 commented 2 years ago

Im going to create a new branch for this and bring the new changes of the code, and I will make more support