Skip to content

Need help with translating statusbar

I need help translating the string {n} {files} found in {m:.{prec}f} {seconds}. The problematic words are {files} and {seconds}. I looked at translations in other languages and found two approaches:

  1. If they are kept in english they remain in english (tested with LANG=pt_BR.UTF-8 catfish)not_translated
  2. If they are translated, the statusbar doesn't appear and I get an error in the terminal (LANG=nl_NL.UTF-8 catfish) no_statusbar error
Error message File "/usr/lib/python3.13/site-packages/catfish/CatfishWindow.py", line 2150, in update_results self.show_results(count, duration) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/site-packages/catfish/CatfishWindow.py", line 2173, in show_results self.statusbar_label.set_label(_("{n} {files} found in {m:.{prec}f} {seconds}").format( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ n=count, files=files_str, prec=d_precision, m=duration, seconds=duration_str)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ KeyError: 'bestanden'