flatxml2po(1)
π flatxml2po β okay bestie, let's translate some flat XML
Heyyy so this is the manual for flatxml2po, one of the little icons living inside Translate Toolkit 3.12.1 (that's the version, bestie, remember it). Manual page name? flatxml2po(1). Say it with me: flat-x-m-l-to-p-o. Slay.
β¨ NAME β¨
flatxml2po β it converts flat XML files into Gettext PO localization files. That's literally the whole job. Girlboss behaviour.
π¦ SYNOPSIS π¦
flatxml2po [--version] [-h|--help] [--manpage] [--progress PROGRESS]
[--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE]
[-o|--output] OUTPUT [-S|--timestamp] [-r|--root] [-v|--value]
[-k|--key] [-n|--namespace]
Like, that's the whole invocation. Read it top to bottom, no skipping. π
πΈ DESCRIPTION πΈ
So the actual docs β the examples and the usage instructions β live over here:
http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/flatxml2po.html
That URL got wrapped across lines in the original page: http://docs.translatehouse.org/projects/translate- + toolkit/en/latest/commands/flatxml2po.html. Same link, I just stitched it back together for you because I'm a good friend. π«Ά
Go read it. It's giving "the real tea is in the docs". β¨
π OPTIONS π
Every single one, no cap. These are the flags, exactly as they are:
--versionβ shows the program's version number and exits. Bounce, bye. π-h,--helpβ shows this help message and exits. The classic.--manpageβ outputs a manpage based on the help. Meta, honestly. Iconic. π--progressβ show progress as:dots,none,bar,names,verbose. Pick your vibe check.--errorlevelβ show errorlevel as:none,message,exception,traceback. From "don't tell me" to "tell me EVERYTHING". π-i,--inputβ reads fromINPUTinxmlformat. Feed it the XML, bestie.-x,--excludeβ exclude names matchingEXCLUDEfrom input paths. Not those ones. Blocked. π«-o,--outputβ writes toOUTPUTinpo,potformats. The glow-up destination. π¦-S,--timestampβ skip the conversion if the output file has a newer timestamp. She's already got the newer fit, leave her alone.-r,--rootβ name of the XML root element, default:"root". Defaults matter, don't @ me.-v,--valueβ name of the XML value element, default:"str".-k,--keyβ name of the XML key attribute, default:"key".-n,--namespaceβ the XML namespace uri, default:None. Yes,Noneis the literal default, that's not me being dramatic for once. π
Heads up bestie: the defaults are the defaults β if you don't pass-r,-v,-k, or-n, you're rolling with"root","str","key", andNonewhether you like it or not. And remember--progressand--errorlevelboth take a value from their little lists. π
Mwah π that's the whole page, every flag and every fact intact, nothing dropped, nothing invented. This page shipped under the Translate Toolkit 3.12.1 banner, and the footer stamped it with that same version β Translate Toolkit 3.12.1 on both the top and bottom of the original, paired with flatxml2po(1) in the corner. Go forth and convert your flat XML, main character. π
π¦ where this page comes from
- opensuse-leap 16.0: python313-translate-toolkit 3.12.1-bp160.1.1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms