From ef5115dc2c3715b95a124e3ad2631512df44a5fd Mon Sep 17 00:00:00 2001 From: nutbuster Date: Sat, 12 Nov 2022 21:50:06 +1100 Subject: [PATCH] Add _() --- game/src/credits.rpy | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/game/src/credits.rpy b/game/src/credits.rpy index c3cd40c..d48d942 100644 --- a/game/src/credits.rpy +++ b/game/src/credits.rpy @@ -6,7 +6,7 @@ init python: #then iterate the list_credits list_credits = { - 'Coded By:': [ + _('Coded By:'): [ '/dev/non', "[[Untitled]] Anon", 'Schizodev Anon', @@ -15,7 +15,7 @@ init python: 'Inhumanon', 'Spigot the Bear Anon' ], - 'Written by:': [ + _('Written by:'): [ 'AVGN Anon', 'Coomer Anon', '/trash/ Anon', @@ -26,17 +26,17 @@ init python: 'Punished Anon', 'Finn Anon' ], - 'Story by:': [ + _('Story by:'): [ 'AVGN Anon', 'Coomer Anon', 'Alex Anon', 'Singularity Anon', 'Tombstone Anon' ], - 'Production Designer': [ + _('Production Designer'): [ 'Alex Anon' ], - 'Artwork by:': [ + _('Artwork by:'): [ 'Alex Anon', 'Mormon Anon', 'Ccp Anon', @@ -50,7 +50,7 @@ init python: 'Multi Anon', 'Ionanon' ], - 'Additional Artwork by:': [ + _('Additional Artwork by:'): [ 'Backup Anon 1', 'Backup Anon 2', 'Backup Anon 3', @@ -58,28 +58,28 @@ init python: 'Backup Anon 5', 'Backup Anon 6', ], - "\"Love theme\" by:": [ + _("\"Love theme\" by:"): [ 'Only Person In The Team With A\nPortfolio/Experience Anon', ], - 'Music By': [ + _('Music By'): [ 'Shampoo Anon', 'Melo Anon' ], - 'Egg Hunt Contest\nWinner:': [ + _('Egg Hunt Contest\nWinner:'): [ 'Olivia Anon' ], - 'Character Design\nContest Winner:': [ + _('Character Design\nContest Winner:'): [ 'Mono Anon', ], - 'Translators (Spanish):': [ + _('Translators (Spanish):'): [ 'Queso2033 Anon', 'TheShadowTrAnon' ], - 'Proofreader (Spanish):': [ + _('Proofreader (Spanish):'): [ 'ElBan AnĂ³n', 'GMAnon' ], - 'Asset help (Spanish):': [ + _('Asset help (Spanish):'): [ 'Arkiangelo Anon' ] } @@ -95,11 +95,11 @@ init python: SIZE_ENDER = 52*3+10 #there is line_spacing but don't usei t - textlist.append(Text("Snoot Game", size=SIZE_SNOT_GAMES, **alignargs)) + textlist.append(Text(_("Snoot Game"), size=SIZE_SNOT_GAMES, **alignargs) textlist.append(Null(1, 16*1)) - textlist.append(Text("By CaveManon", size=SIZE_TITLE, **alignargs)) + textlist.append(Text(_("By CaveManon"), size=SIZE_TITLE, **alignargs) textlist.append(Null(1, 16*12)) - textlist.append(Text("developed in Ren'py", size=SIZE_ENTRY, **alignargs)) + textlist.append(Text(_("developed in Ren'py"), size=SIZE_ENTRY, **alignargs)) textlist.append(Null(1, 16*12)) for key, arr in list_credits.items(): @@ -111,9 +111,9 @@ init python: textlist.append(Text(concatstr, size=SIZE_ENTRY, **alignargs)) textlist.append(Null(1, 16*2)) - textlist.append(Text("T H E E N D", size=SIZE_ENDER, **alignargs)) + textlist.append(Text(_("T H E E N D"), size=SIZE_ENDER, **alignargs)) textlist.append(Null(1, 16*18)) - textlist.append(Text("Snoot game started development\n on June 19 2020", size=SIZE_ENTRY, **alignargs)) + textlist.append(Text(_("Snoot game started development\n on June 19 2020"), size=SIZE_ENTRY, **alignargs)) credits_hbox = Fixed(VBox(*textlist, xalign=0.5), xalign=0.5) renpy.image('credits_hbox', credits_hbox)