rakugoteam / Rakugo-Dialogue-System

Inspired by Ren'Py, Rakugo is a project aiming to provide a way to make narrative-based games on Godot easily. Simplify your project, if it is a visual novel, point and click, RPG, interactive text game or many other styles and blends of styles.
https://rakugoteam.github.io
MIT License
219 stars 7 forks source link

Better support for translation #238

Open Jeremi360 opened 1 year ago

Jeremi360 commented 1 year ago

So now the only why it is to for translation using RDS is to use build-in Godot Rempas tool and remaping each rkscript to its other langue version, like on screenshot bellow - which is a very bad soluction. image

I propose to use godot build in tr() function this works with godot build in translation form .csv file. So then it can works like this in RakuScript:

dialog_with_translation:
    dev tr[welcome_in_my_game]
    player.name = ? tr[player_name_question]

    menu translated_menu:
      tr[choice_01]
      tr[choice_02]

What do you think @theludovyc ?