PYLUPDATE5(1)

πŸ’– PYLUPDATE5 β€” okay bestie, let's talk translations ✨

Hi hi! So this is the manual page for pylupdate5, living in section 1 of the General Commands Manual. It's a little command-line cutie and I'm obsessed with her, fr fr. πŸŽ€


🌸 NAME 🌸

pylupdate5 β€” create or update Qt Linguist translation files for PyQt5 applications πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

pylupdate5 [OPTION]... PROJECT-FILE
pylupdate5 [OPTION]... SOURCE... -ts TRANSLATION-FILE...

Two whole moods, pick your fighter. πŸ’–


✨ DESCRIPTION ✨

So here's the tea: pylupdate5 reads a qmake project file (that's the .pro file, bestie), finds all the translatable strings in the sources you specified, and then updates the translation files (the .ts files) that are listed inside it. Then those translation files get handed off to a translator, who can open them up with Qt Linguist to read everything and insert the actual translations. πŸ‘‘

And the .ts file format? It's a simple, human-readable XML format β€” which means yes, you can absolutely throw it in your version control system if you want to. No cap. 🌈


πŸŽ€ OPTIONS πŸŽ€

  • -help β€” shows you a little summary of all the options. The "what's going on" button. 🫢
  • -version β€” displays the version of pylupdate5 and then exits, immediately, no further questions. πŸ’…
  • -verbose β€” explains what's being done while it's being done. Narrator mode: ON. πŸ—£οΈ
  • -noobsolete β€” drops all the obsolete strings. Gone. Bye. πŸ’€
  • -tr-function name β€” specifies the name of the function that should be used instead of tr().
  • -translate-function name β€” specifies the name of the function that should be used instead of translate().
Heads up bestie: name is a placeholder, so swap in your actual function name. Keep it exactly as-is otherwise! ⭐

πŸ‘‘ AUTHOR πŸ‘‘

This manual page was written for Debian GNU/Linux by Torsten Marek <shlomme@debian.org> and Dmitry Shachnev <mitya57@debian.org> β€” but it may freely be used by others. Generous queens, honestly. 🫢✨


And that's the whole page, babe! This one's from pylupdate 5.4, dated 2015/01/16 β€” like, vintage but still iconic. Now go forth and translate. Slay. πŸ’–πŸ¦‹πŸŒΈπŸŽ€