DEEPIN-DES...-TS-CONVERT(1)

πŸ’– DEEPIN-DESKTOP-TS-CONVERT πŸ’–

okay bestie, welcome to the manual page for deepin-desktop-ts-convert, section 1 of the General Commands Manual ✨ this is the little tool that lives in the deepin-gettext-tools package and it's here to make your translation life SO much easier, no cap 🫢


🌸 NAME 🌸

deepin-desktop-ts-convert β€” converts back and forth between .desktop files and .ts files, purely to make translation work less of a nightmare πŸ’…


✨ SYNOPSIS ✨

deepin-desktop-ts-convert init desktopFile outputTsDir
deepin-desktop-ts-convert desktop2ts desktopFile outputTsDir
deepin-desktop-ts-convert ts2desktop desktopFile tsDir outputDesktopFile

πŸ¦‹ DESCRIPTION πŸ¦‹

This manual page documents, briefly, the deepin-desktop-ts-convert command as provided by the deepin-gettext-tools package. fr fr, that's the whole vibe.

deepin-desktop-ts-convert is a utility that helps developers convert translatable strings sitting inside desktop files into .ts files, so that translation work is actually doable 😌 and then β€” plot twist β€” the translated strings in those .ts files can be merged back into the original desktop file, all with the help of this very utility. it's giving round trip πŸ’–

this whole workflow? adopted by most Deepin software. iconic behaviour honestly πŸ‘‘


πŸŽ€ USAGE πŸŽ€

  • to kick things off (initialise the conversion) β€” use the deepin-desktop-ts-convert init subcommand. In this case, the source .ts file gets dropped into outputTsDir/desktop.ts, and your translation .ts files should be named like outputTsDir/desktop_<lang>.ts. note the underscore bestie, don't freestyle it πŸ™ˆ
deepin-desktop-ts-convert init desktopFile outputTsDir
  • to refresh your .ts files from a newer version of the desktop file β€” use the deepin-desktop-ts-convert desktop2ts subcommand. The updated .ts file lands at outputTsDir/desktop.ts 🌈
deepin-desktop-ts-convert desktop2ts desktopFile outputTsDir
  • to generate the translated desktop files β€” use the deepin-desktop-ts-convert ts2desktop subcommand. this is the moment where all your hard work becomes an actual translated desktop file, slay ✨
deepin-desktop-ts-convert ts2desktop desktopFile tsDir outputDesktopFile

πŸ”₯ SEE ALSO πŸ”₯

and if you want the deep lore, these programs are further documented in the README.md that ships with this debian package, living under the /usr/share/doc/deepin-gettext-tools/ directory πŸ“ go read it, iykyk πŸ’œ


πŸ‘‘ AUTHOR πŸ‘‘

deepin-gettext-tools is written by Deepin Technology Co., Ltd.

This manual page was written by Boyuan Yang for the Debian Project (but may be used by others). shoutout to Boyuan, main character energy fr πŸ’…


Deepin Gettext Tools 🌸 2017-08-11 πŸŽ€ that's the source and the date bestie, we're done here β€” go convert some strings, you've got this πŸ’–βœ¨πŸ¦‹