INTLTOOL-MERGE(8)

✨ intltool-merge ✨

okay so bestie, this is a page from the System Manager's Manual β€” it's intltool-merge(8), and it's literally the tool that smooshes your translated strings into whatever kind of file you need. no cap. πŸ’–


🌸 NAME 🌸

intltool-merge β€” merge translated strings into various types of file πŸ¦‹


πŸ’… SYNOPSIS πŸ’…

intltool-merge [option]... PO_DIRECTORY FILENAME OUTPUT_FILE

πŸ‘‘ DESCRIPTION πŸ‘‘

so here's the vibe: it takes the translated strings chilling in the po files inside PO_DIRECTORY, merges them with the original application file FILENAME, and spits out OUTPUT_FILE β€” which contains both the original strings and the localized ones. both. at once. iconic behavior honestly. ✨

and if FILENAME is an XML file? then OUTPUT_FILE is gonna have repeated xml nodes, where each node holds one of the localized strings, tagged up with an xml:lang attribute. so like, every language gets its own little node. it's giving organized. πŸŽ€


🌈 OPTIONS 🌈

🧚 Mode of operation

  • -b, --ba-style β€” merges files in bonobo-activation style, which is the style used for bonobo servers. (iykyk 🫢)
  • -d, --desktop-style β€” merges files in desktop style, which is basically the same vibe as the Windows .ini file format.
  • -k, --keys-style β€” merges files in keys style, the one used for metadata.
  • -o, --oaf-style β€” (OBSOLETE) literally the same thing as -b/--ba-style. like, identical. don't come for me, I'm just the messenger. πŸ’€
  • -r, --rfc822deb-style β€” merges files in RFC 822 style, which is usually what Debian configuration files use.
  • --quoted-style β€” merges files in quoted string style, which just translates any strings sitting inside "". simple. clean. slay.
  • -x, --xml-style β€” merges files in standard XML style, both as attributes and as raw pcdata. double duty, main character energy. πŸ‘‘

πŸ’œ Other options

  • -u, --utf8 β€” converts all strings to UTF-8 before merging.
  • -p, --pass-through β€” uses strings as-is in the .po files, no conversion at all. > STRONGLY unrecommended with -x β€” like, genuinely, don't do it. 🚨
  • -c, --cache β€” (TBD). yeah bestie, that's all the manpage says. mystery behavior. πŸ™ˆ
  • -q, --quiet β€” be quiet while running. shhh. 🀫
  • -v, --version β€” shows version information.
  • -h, --help β€” shows usage and basic help information.

πŸ“ FILES πŸ“

  • po/.intltool-merge-cache β€” the cache file that intltool-merge generates. it holds all strings in all po files, separated by \01. yes, an actual control character as a separator. unhinged but we respect it. πŸ’…

😭 REPORTING BUGS 😭

found a bug? report it over at http://bugs.launchpad.net/intltool β€” they wanna hear about it, fr fr.


⭐ AUTHOR ⭐

  • Darin Adler <darin@bentspoon.com>
  • Kenneth Christiansen <kenneth@gnu.org>
  • Maciej Stachowiak <mjs@eazel.com>

absolute legends, all three of them. πŸ‘‘


πŸ’– SEE ALSO πŸ’–

iconv(1), intltoolize(8), intltool-prepare(8), intltool-extract(8), intltool-update(8)

go read those next, bestie, the whole intltool cinematic universe is waiting. 🌈


and that's the whole page!! this one's from the intltool package, dated 2003-08-02 β€” yes, it's been serving looks since 2003, and it still eats. πŸ«Άβœ¨πŸ’–