Search found 4 matches

by UsagiToxic
Sun Feb 18, 2018 6:09 pm
Forum: Ren'Py Questions and Announcements
Topic: Translation of scrolling credits
Replies: 7
Views: 450

Re: Translation of scrolling credits

Anyway, a few points: 1) Translatable strings should be defined at init time. Easiest way to do this is to use define statement: define authors = (_('title'), _('author')) 2) Combining strings for showing, on the other hand, should be done immideately before showing credits (preferably in screen it...
by UsagiToxic
Sun Feb 18, 2018 5:36 pm
Forum: Ren'Py Questions and Announcements
Topic: Translation of scrolling credits
Replies: 7
Views: 450

Re: Translation of scrolling credits

credits = _('title', 'author') This returns: TypeError: _() takes exactly 1 argument (2 given) credits = __('title', 'author') This makes text appear as two first letters following each other. Same with: credits = __ ('title', 'author') credits = __ (_('title'), _('author')) credits = _(_('title', ...
by UsagiToxic
Sun Feb 18, 2018 1:29 pm
Forum: Ren'Py Questions and Announcements
Topic: Translation of scrolling credits
Replies: 7
Views: 450

Re: Translation of scrolling credits

None of the creits strings in your first example are marked as translateable, so it is expected. TO make strings eligible for translation in first place you need to define them using underscore function: _('some text') So far no standard Ren'Py options worked, neither did workarounds listed in this...
by UsagiToxic
Sun Feb 18, 2018 9:10 am
Forum: Ren'Py Questions and Announcements
Topic: Translation of scrolling credits
Replies: 7
Views: 450

Translation of scrolling credits

Hello, I've been having trouble with the code based on this one: https://lemmasoft.renai.us/forums/viewtopic.php?f=51&t=22481 Whole game has two languages which can be freely switched on the fly, but the credits for some reasons cannot be translated and always show the English ones. So far no standa...