how to add my own language !?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
shahrzad666
Newbie
Posts: 8
Joined: Fri Feb 28, 2014 4:11 am
Contact:

how to add my own language !?

#1 Post by shahrzad666 »

hi i'm new here ,and don't know if renpy can support my language .
want to Write script in Persian but everything get messy @_@
plz help :<

User avatar
PyTom
Ren'Py Creator
Posts: 16093
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: how to add my own language !?

#2 Post by PyTom »

I don't know enough about Persian to know if Ren'Py supports it or not.

I'd suggest trying:

Code: Select all

init python:
    config.rtl = True
    style.default.font = "persian-font.ttf"
But I'm not sure if the Arabic/Hebrew RTL support will work with Persian.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
shahrzad666
Newbie
Posts: 8
Joined: Fri Feb 28, 2014 4:11 am
Contact:

Re: how to add my own language !?

#3 Post by shahrzad666 »

PyTom wrote:I don't know enough about Persian to know if Ren'Py supports it or not.

I'd suggest trying:

Code: Select all

init python:
    config.rtl = True
    style.default.font = "persian-font.ttf"
But I'm not sure if the Arabic/Hebrew RTL support will work with Persian.
tnx alot <3 it's worked TWT

User avatar
shahrzad666
Newbie
Posts: 8
Joined: Fri Feb 28, 2014 4:11 am
Contact:

Re: how to add my own language !?

#4 Post by shahrzad666 »

XD i'm a zombie
HI
finally i found sometime to continue my works

i can work with arabic ver but i got a question , how can i make the text to be right to left ?

User avatar
PyTom
Ren'Py Creator
Posts: 16093
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: how to add my own language !?

#5 Post by PyTom »

Right above, set config.rtl = True.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
shahrzad666
Newbie
Posts: 8
Joined: Fri Feb 28, 2014 4:11 am
Contact:

Re: how to add my own language !?

#6 Post by shahrzad666 »

http://s5.picofile.com/file/8158544992/Capture.JPG
but it is still on a left sight :<

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: how to add my own language !?

#7 Post by xela »

You just need to align it to the right. Take a look at the documentation/window setups in cookbook.
Like what we're doing? Support us at:
Image

User avatar
asatiir
Regular
Posts: 86
Joined: Tue Oct 01, 2013 6:04 pm
Completed: Within the Walls (Twine)
Projects: Roses Will Rise
Organization: Asatiir's Tales
Skype: asatiir
itch: asatiir
Location: Dubai, UAE
Contact:

Re: how to add my own language !?

#8 Post by asatiir »

PyTom wrote:I don't know enough about Persian to know if Ren'Py supports it or not.

I'd suggest trying:

Code: Select all

init python:
    config.rtl = True
    style.default.font = "persian-font.ttf"
But I'm not sure if the Arabic/Hebrew RTL support will work with Persian.
I tried doing that with the latest version of renpy, depending on the font I'm using it comes broken in various ways. Is there a new method in 6.99 or am I doing something wrong?
Image
Image

Post Reply

Who is online

Users browsing this forum: No registered users