Hi! Sorry in advance if this is a silly question, I'm still new to Renpy. Is there a way to show a timestamp (a month, to be exact) in another language? I'm making a game in Russian, my Renpy is in Russian too, and I can see that the timestamp can be shown in Russian (e.g. in slots when saving/loading). But I can't quite figure out how to do the same when working with your code. I have no problem with formatting, the question is about the names of the months: I want "Получено 18 мая 2026", but it's shown as "Получено 18 May 2026". Thank you so much for all your work!!
Viewing post in Need Support? Post here!
I looked more closely into how Ren'Py handles the FileTime time stamps - try changing the get_timestamp function in the backend as follows:
def get_timestamp(self, format=_("%b %d, %Y @ %I:%M %p{#achievement_timestamp}")):
"""
Return the timestamp when this achievement was granted,
using the provided string format.
"""
if self.has():
format = renpy.translation.translate_string(format)
return _strftime(format, self._timestamp)
else:
return ""
And let me know if that works!
upd: I found a workaround by using the second, get_timestamp method and by just redacting stuff in quotes lol, that's good enough for me. I should've done that from the start, sorry for the trouble 😞
But yeah, if you work with translated Renpy and use text a.timestamp when showing a timestamp it still wil be in English.