Welcome!

Join our community of MMORPG enthusiasts and private server developers! By registering, you'll gain access to in-depth discussions on source codes, binaries, and the latest developments in MMORPG server files. Collaborate with like-minded individuals, explore tutorials, and share insights on building and optimizing private servers. Join us today and unlock the full potential of MMORPG 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 fucking 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