-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindepth_translations.rpy
110 lines (73 loc) · 3.82 KB
/
indepth_translations.rpy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# TODO: Translation updated at 2025-01-26 12:26
# game/indepth_translations.rpy:12
translate italian translations_c4ef181f:
# e "Ren'Py includes support for translating your game into languages other than the one it was originally written in."
e ""
# game/indepth_translations.rpy:14
translate italian translations_20b9a600:
# e "This includes the translation of every string in the game, including dialogue, menu choice, and interface strings, and of images and other assets."
e ""
# game/indepth_translations.rpy:16
translate italian translations_07c7643c:
# e "While Ren'Py can find dialogue and menu choice strings for you, you'll have to indicate which other strings need translation."
e ""
# game/indepth_translations.rpy:20
translate italian translations_317d73e5:
# e "For example, here is how we define a character and her name."
e ""
# game/indepth_translations.rpy:24
translate italian translations_ab0f3c94:
# e "To mark Lucy's name as translatable, we surround it by parentheses preceded by a single underscore."
e ""
# game/indepth_translations.rpy:26
translate italian translations_c81acfc7:
# e "Notice how we don't translate the reddish color that we use for her name. That stays the same for all languages."
e ""
# game/indepth_translations.rpy:33
translate italian translations_8272a0ef:
# e "Once that's done, you can generate the translation files. That's done by going to the launcher, and clicking translate."
e ""
# game/indepth_translations.rpy:35
translate italian translations_fde34832:
# e "After you type in the name of the language you'll be translating to, choosing Generate Translations will scan your game and create translation files."
e ""
# game/indepth_translations.rpy:37
translate italian translations_e2ebb4af:
# e "The files will be generated in game/tl/language, where language is the name of the language you typed in."
e ""
# game/indepth_translations.rpy:39
translate italian translations_28ec40b9:
# e "You'll need to edit those files to include translations for everything in your game."
e ""
# game/indepth_translations.rpy:41
translate italian translations_f6d3fd2d:
# e "If you want to localize image files, you can also place them in game/tl/language."
e ""
# game/indepth_translations.rpy:48
translate italian translations_71bf6e72:
# e "If the default fonts used by the game do not support the language you are translating to, you will have to change them."
e ""
# game/indepth_translations.rpy:50
translate italian translations_82c9748e:
# e "The translate python statement can be used to set the values of gui variables to change the font."
e ""
# game/indepth_translations.rpy:52
translate italian translations_a0042025:
# e "The translate style statement sets style properties more directly."
e ""
# game/indepth_translations.rpy:54
translate italian translations_b10990ce:
# e "If you need to add new files, such as font files, you can place them into the game/tl/language directory where Ren'Py will find them."
e ""
# game/indepth_translations.rpy:58
translate italian translations_01fcacc2:
# e "Finally, you'll have to add support for picking the language of the game. That usually goes into the preferences screen, found in screens.rpy."
e ""
# game/indepth_translations.rpy:60
translate italian translations_a91befcc:
# e "Here's an excerpt of the preferences screen of this tutorial. The Language action tells Ren'Py to change the language. It takes a string giving a language name, or None."
e ""
# game/indepth_translations.rpy:62
translate italian translations_9b7d6401:
# e "The None language is special, as it's the default language that the visual novel was written in. Since this tutorial was written in English, Language(None) selects English."
e ""