When using GTK2 with Python, there are some things like 'gtk-yes', 'gtk-open' which help in getting e.g. button names translated to the according user language.
What I am searching for are more of these: especially the string 'recently used', like in the file open dialog, and strings for 'files' and 'folders'.
Finally I would like to use something like (…yes, I know Python 2 is old…)
label = "{} {}".format(GTK_STOCK_FILES, GTK_STOCK_RECENTLY_USED)
my_button.set_label(label)
to ensure that in (most) languages the label makes at least some sense to show the users that it opens recent files/folders.
Unfortunately something like gtk.stock_lookup(gtk.STOCK_DIRECTORY) only returns an empty string (although it works for STOCK_OPEN), also there is nothing like that for 'files' and 'recently' I could find.
How can I find, list, and access all the GTK built-in translated strings?
.poand.mowith translations. On Linux it keeps it in folder/usr/share/locale/.pofiles in GTK2