View Single Post
Old 03-04-2021, 11:53 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,419
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
well gettext doesnt have a way to do reverse lookups, but the gettext database format is pretty trivial so you should be able to write your own. You could use the source code of the msgunfmt utility as a starting point. You can fin the .mo files in resources/localization/locales.zip in a calibre install folder. And this is the file spec: https://www.gnu.org/software/gettext.../MO-Files.html
kovidgoyal is offline   Reply With Quote