logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

deepin-desktop-ts-convert - convert between .desktop file and .ts file to ease translation

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).

Deepin Gettext Tools                               2017-08-11                       DEEPIN-DESKTOP-TS-CONVERT(1)

Description

       This  manual  page documents briefly the deepin-desktop-ts-convert command as provided by deepin-gettext-tools package.

       deepin-desktop-ts-convert is a utility that helps developers  convert  translatable  strings  in  desktop
       files  into  ts  files  to  ease  translation  work. Translated strings in ts files can be merged back to
       original desktop file too with the help of this utility.

       Such workflow is adopted by most Deepin software.

Name

       deepin-desktop-ts-convert - convert between .desktop file and .ts file to ease translation

See Also

deepin-update-pot(1), deepin-generate-mo(1), deepin-policy-ts-convert(1).

       The  programs  are  further  documented  in  the  README.md  as  provided  with this debian package under
       /usr/share/doc/deepin-gettext-tools/ directory.

Synopsis

deepin-desktop-ts-convertinitdesktopFileoutputTsDirdeepin-desktop-ts-convertdesktop2tsdesktopFileoutputTsDirdeepin-desktop-ts-convertts2desktopdesktopFiletsDiroutputDesktopFile

Usage

       To initialise conversion, use deepin-desktop-ts-convertinit subcommand.  In which case  source  ts  file
       will   be   put   into   outputTsDir/desktop.ts   and   translation   ts   files   should   be  named  as
       outputTsDir/desktop_<lang>.ts.

           deepin-desktop-ts-convert init desktopFile outputTsDir

       To update ts files  from  a  new  version  of  desktop  file,  use  deepin-desktop-ts-convertdesktop2ts
       subcommand.  The updated ts file given as outputTsDir/desktop.ts file.

           deepin-desktop-ts-convert desktop2ts desktopFile outputTsDir

       To generate translated desktop files, use deepin-desktop-ts-convertts2desktop subcommand.

           deepin-desktop-ts-convert ts2desktop desktopFile tsDir outputDesktopFile

See Also