RenPY translation
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.
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.
-
- Newbie
- Posts: 7
- Joined: Mon May 25, 2009 12:19 pm
- Contact:
RenPY translation
Hi all. I am Yiu Korochko, a translator, and I wanted to translate a specific renpy game, and to make it easier, i was going to make a pictureless version with the translations for the makers to see if it is good enough, then i would send the project files to them. but, after translating the first line, and making sure the encoding was in UT-8, the characters come up as boxes...btw im translating from english to japanese, and since im still to get a keyboard, im using a jwordprocessor. i am an utter noob in RenPY and the tutorials and walkthroughs are very confusing. i usually learn quickly, but the renpy is difficult so any help would be great.
Yiu Korochko
Yiu Korochko
-
- Newbie
- Posts: 7
- Joined: Mon May 25, 2009 12:19 pm
- Contact:
Re: RenPY translation
after minutes of research, it seems i have to attach a japanese font. is this correct?Yiu Korochko wrote:Hi all. I am Yiu Korochko, a translator, and I wanted to translate a specific renpy game, and to make it easier, i was going to make a pictureless version with the translations for the makers to see if it is good enough, then i would send the project files to them. but, after translating the first line, and making sure the encoding was in UT-8, the characters come up as boxes...btw im translating from english to japanese, and since im still to get a keyboard, im using a jwordprocessor. i am an utter noob in RenPY and the tutorials and walkthroughs are very confusing. i usually learn quickly, but the renpy is difficult so any help would be great.
Yiu Korochko
Re: RenPY translation
Certainly it's the case that if you try and get a font to draw characters which it doesn't have defined, it will draw a generic "I don't know that character" glyph, which is quite frequently an empty square/rectangle. So finding a font which supports Japanese characters and trying again would probably be a good start.Yiu Korochko wrote: after minutes of research, it seems i have to attach a japanese font. is this correct?
Server error: user 'Jake' not found
-
- Regular
- Posts: 160
- Joined: Wed Aug 22, 2007 7:59 pm
- Location: USA: New York City (school) and Massachusetts (home)
- Contact:
Re: RenPY translation
Sazanami Gothic is a reliable and free Japanese font you might want to use.
from the virtual desk of Kazuki Mishima
- PyTom
- Ren'Py Creator
- Posts: 16096
- 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: RenPY translation
http://www.renpy.org/wiki/renpy/doc/coo ... d_Japanese
Has information on how to configure Ren'Py to support Japanese.
Has information on how to configure Ren'Py to support Japanese.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
-
- Newbie
- Posts: 7
- Joined: Mon May 25, 2009 12:19 pm
- Contact:
Re: RenPY translation
lol I am sorry, you three! I have lots of japanese fonts already (been fansubbing for about 18 months) i just don't understand how to set them into the program! I shall fiddle about a little more until another response, thank you much!Jake wrote:Certainly it's the case that if you try and get a font to draw characters which it doesn't have defined, it will draw a generic "I don't know that character" glyph, which is quite frequently an empty square/rectangle. So finding a font which supports Japanese characters and trying again would probably be a good start.Yiu Korochko wrote: after minutes of research, it seems i have to attach a japanese font. is this correct?
Yiu Korochko
-
- Newbie
- Posts: 7
- Joined: Mon May 25, 2009 12:19 pm
- Contact:
Re: RenPY translation
Ah, thank you! this helps!PyTom wrote:http://www.renpy.org/wiki/renpy/doc/coo ... d_Japanese
Has information on how to configure Ren'Py to support Japanese.
Re: RenPY translation
this is the script I made. you can take it as sample.
on top of script.rpy
on options.rpy
I don't know why, but MSPRGOT only worked with size around 23-25.
if you change the font and still showing boxes, try changing the font size.
on top of script.rpy
Code: Select all
init -1 python:
style.default.language = "eastasian"
init:
$ style.large_button_text.font = "DejaVuSans.ttf"
$ config.translations = {
"Start Game" : u"{size=23}初め{/size}",
"Continue Game" : u"{size=23}続き{/size}",
"Preferences" : u"{size=23}環境設定{/size}",
"Quit" : u"{size=23}終了{/size}",
"Return" : u"{size=23}戻る{/size}",
"Begin Skipping" : u"{size=23}スキップ開始{/size}",
"Save Game" : u"{size=23}セーブ{/size}",
"Load Game" : u"{size=23}ロード{/size}",
"Main Menu" : u"{size=23}メインメニュー{/size}",
"Empty Slot" : u"{size=23}Empty Slot{/size}",
"Yes" : u"{size=23}はい{/size}",
"No" : u"{size=23}いいえ{/size}",
"Auto" : u"{size=23}Auto{/size}",
"1" : u"{size=23}1{/size}",
"2" : u"{size=23}2{/size}",
"3" : u"{size=23}3{/size}",
"4" : u"{size=23}4{/size}",
"5" : u"{size=23}5{/size}",
"6" : u"{size=23}6{/size}",
"7" : u"{size=23}7{/size}",
"8" : u"{size=23}8{/size}",
"9" : u"{size=23}9{/size}",
"Please click to continue." : u"{size=23}クリックしてください。{/size}",
"Are you sure you want to quit?" : u"{size=23}ゲームを終了します。{/size}",
"Are you sure you want to return to the main menu?\nThis will lose unsaved progress." : u"{size=23}メインメニューに戻ります。\nプレイ中のデータは失われますがよろしいでしょうか?{/size}",
"Loading will lose unsaved progress.\nAre you sure you want to do this?" : u"{size=23}セーブデータをロードします。\nプレイ中のデータは失われますがよろしいでしょうか?{/size}",
"Are you sure you want to overwrite your save?" : u"{size=23}データを上書きします。{/size}",
"The error message was:" : u"{size=23}エラーメッセージは:{/size}",
"You may want to try saving in a different slot, or playing for a while and trying again later." : u"{size=23}ほかのスロットでセーブするか、時間を置いて試して下さい。{/size}",
"Save Failed." : u"{size=23}セーブ失敗{/size}",
"Previous" : u"{size=23}前{/size}",
"Next" : u"{size=23}次{/size}",
"Voice Volume" : u"{size=23}voice{/size}",
"Skip Mode" : u"{size=23}スキップモード{/size}",
"Fast Skip Mode" : u"{size=23}ファーストスキップモード{/size}",
"While Ren'Py games may be playable without the renpy module, some features may be disabled. For more information, read the module/README.txt file or go to http://www.bishoujo.us/renpy/. : u"{size=23}製作されたゲームはモジュールなしでもプレイ可能ですが、多少の機能が制限されます。 詳しくはmodule/README.txtをお読みください。{/size}",
"renpy module not found." : u"{size=23}モジュールが見つかりません。{/size}",
"The renpy module could not be loaded on your system." : u"{size=23}renpyモジュールの読み込みに失敗しました。{/size}",
"Old renpy module found." : u"{size=23}旧バージョンのモジュールが見つかりました。{/size}",
"An old version (%d) of the Ren'Py module was found on your system, while this game requires version %d." : u"{size=23}バージョン (%d) が見つかりました。このゲームをプレーするにはバージョン %d が必要です。{/size}",
"Test" : u"{size=23}テスト{/size}",
"Joystick Mapping" : u"{size=23}ゲームパッドマッピング{/size}",
"Not Assigned" : u"{size=23}分配されていません。{/size}",
"Music Volume" : u"{size=23}music{/size}",
"Sound Volume" : u"{size=23}sound{/size}",
"Left" : u"{size=23}左{/size}",
"Right" : u"{size=23}右{/size}",
"Up" : u"{size=23}上{/size}",
"Down" : u"{size=23}下{/size}",
"Select/Dismiss" : u"{size=23}セレクト/解散{/size}",
"Rollback" : u"{size=23}ロールバック{/size}",
"Hold to Skip" : u"{size=23}スキップ待ち{/size}",
"Toggle Skip" : u"{size=23}トグルスキップ{/size}",
"Hide Text" : u"{size=23}テキストを隠す{/size}",
"Menu" : u"{size=23}メニュー{/size}",
"Move the joystick or press a joystick button to create the mapping. Click the mouse to remove the mapping." : u"{size=23}マッピング製作のためにゲームパッドのボタンを押してください。マッピングを終了させるにはマウスをクリックしてください。{/size}",
"Display" : u"{size=23}画面モード{/size}",
"Window" : u"{size=23}window{/size}",
"Fullscreen" : u"{size=23}fulscreen{/size}",
"Transitions" : u"{size=23}Transitions{/size}",
"All" : u"{size=23}すべて{/size}",
"Some" : u"{size=23}多少{/size}",
"None" : u"{size=23}無し{/size}",
"Skip" : u"{size=23}スキップ{/size}",
"Seen Messages" : u"{size=23}読み済み{/size}",
"All Messages" : u"{size=23}すべて{/size}",
"After Choices" : u"{size=23}選択肢{/size}",
"Stop Skipping" : u"{size=23}スキップをやめる{/size}",
"Keep Skipping" : u"{size=23}スキップを続ける{/size}",
"Text Speed" : u"{size=23}テキストスピード{/size}",
"Auto-Forward Time" : u"{size=23}オート時のスピード{/size}",
"Joystick..." : u"{size=23}ゲームパッド{/size}",
"Joystick Configuration" : u"{size=23}ゲームパッド設定{/size}",
}
Code: Select all
style.default.font = "MSPRGOT.ttf" #the font should be inside the game folder
style.default.size = 25
I don't know why, but MSPRGOT only worked with size around 23-25.
if you change the font and still showing boxes, try changing the font size.
-
- Newbie
- Posts: 7
- Joined: Mon May 25, 2009 12:19 pm
- Contact:
Re: RenPY translation
Woah...thank you much, I don't think I will ever get a grasp of this language ( >.<) (笑)skythnir wrote:this is the script I made. you can take it as sample...
-
- Newbie
- Posts: 7
- Joined: Mon May 25, 2009 12:19 pm
- Contact:
Re: RenPY translation
Yes, I added mikachanALL.ttc and that worked as soon as I tried it, but with the menu changes and etc, I am baffled!skythnir wrote:this is the script I made. you can take it as sample...
I hope to become as fluent in Ren-Py as I am in Aegisub (笑)
-
- Newbie
- Posts: 7
- Joined: Mon May 25, 2009 12:19 pm
- Contact:
Re: RenPY translation
[quote="skythnir"]this is the script I made. you can take it as sample[\quote]
Eeetooo...
On line 8 of C:\Users\Yiu Korochko\Desktop\Other Progs\renpy-6.9.2\******************* (Jap)/game/script.rpy: is not terminated with a newline. (Check strings and parenthesis.)
$ config.translations = {
???
Update: I see, it was a quotation missing in one of the translation lines, I fixed it sorry ( -_-)
Eeetooo...
On line 8 of C:\Users\Yiu Korochko\Desktop\Other Progs\renpy-6.9.2\******************* (Jap)/game/script.rpy: is not terminated with a newline. (Check strings and parenthesis.)
$ config.translations = {
???
Update: I see, it was a quotation missing in one of the translation lines, I fixed it sorry ( -_-)
-
- Regular
- Posts: 131
- Joined: Sun Feb 08, 2009 2:00 pm
- Projects: Restriction
- Location: Belarus,Minsk
- Contact:
Re: RenPY translation
Emm....Yiu Korochko wrote:skythnir wrote:this is the script I made. you can take it as sample[\quote]
Eeetooo...
On line 8 of C:\Users\Yiu Korochko\Desktop\Other Progs\renpy-6.9.2\******************* (Jap)/game/script.rpy: is not terminated with a newline. (Check strings and parenthesis.)
$ config.translations = {
???
Update: I see, it was a quotation missing in one of the translation lines, I fixed it sorry ( -_-)
maybe this
Code: Select all
$ config.translations[u'Yes'] = u'Да'
#etc
Japanese translation: http://www.renpy.org/wiki/renpy/doc/tra ... s/Japanese
Returned
-
- Regular
- Posts: 63
- Joined: Wed Apr 14, 2010 7:44 am
- Projects: Sakkaku ni Dasu (Delving into Illusion(s)) +18
- Location: Behind you.
- Contact:
Re: RenPY translation
Thanks very much, really getting the hang of it now and actually getting to scripting. ^^georgmay wrote:Japanese translation: http://www.renpy.org/wiki/renpy/doc/tra ... s/Japanese
Who is online
Users browsing this forum: Ahrefs [Bot], Sugar_and_rice, voluorem