Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

How to Translate Dialogues without Breaking Python Scripts

Newbie Spellweaver
Joined
Jun 2, 2021
Messages
19
Reaction score
11
Русский
Просто переводите весь документ на ваш язык , а плохой переведенный участок заменить на оригинал , чтобы не сломать скрипты. Это конечно страшно , но лучше чем ебаться недели две
English
Just translate the entire document into your language, and replace the bad translated section with the original so as not to break the scripts.
It's scary, of course, but it's better than Ducking for two weeks.
Code:
[COLOR=#808080]#replace your translate [/COLOR][COLOR=#808080]# нпс to npc
[/COLOR][COLOR=#808080]# #бр to #br
[/COLOR][COLOR=#cc7832]if [/COLOR]__name__ == [COLOR=#6a8759]'__main__'[/COLOR]:
    [COLOR=#cc7832]with [/COLOR][COLOR=#8888c6]open[/COLOR]([COLOR=#6a8759]'T_Dialogue.ini'[/COLOR][COLOR=#cc7832], [/COLOR][COLOR=#6a8759]'r'[/COLOR]) [COLOR=#cc7832]as [/COLOR]f:
        old_data = f.read()

    new_data = old_data.replace([COLOR=#6a8759]'нпс'[/COLOR][COLOR=#cc7832], [/COLOR][COLOR=#6a8759]'npc'[/COLOR])

    [COLOR=#cc7832]with [/COLOR][COLOR=#8888c6]open[/COLOR]([COLOR=#6a8759]'T_Dialogue.ini'[/COLOR][COLOR=#cc7832], [/COLOR][COLOR=#6a8759]'w'[/COLOR]) [COLOR=#cc7832]as [/COLOR]f:
        f.write(new_data)
 
Back
Top