LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

msguniq

removes duplicate translations from PO files

TLDR

Remove duplicate messages
$ msguniq [input.po] -o [output.po]
copy
Use first occurrence
$ msguniq -u [input.po] -o [output.po]
copy
Report duplicates
$ msguniq -d [input.po]
copy
Sort output
$ msguniq -s [input.po] -o [output.po]
copy
Unique by msgid and msgctxt
$ msguniq --use-first [input.po] -o [output.po]
copy

SYNOPSIS

msguniq [options] [inputfile]

DESCRIPTION

msguniq removes duplicate translations from PO files. It's part of GNU gettext.The tool unifies message entries. Handles duplicates by combining or selecting.

PARAMETERS

INPUTFILE

PO file to process.
-o FILE
Output file.
-u
Keep only unique messages.
-d
Report duplicate messages.
-s
Sort output.
--use-first
Use first of duplicates.
--help
Display help information.

INSTALL

sudo apt install gettext
copy
sudo dnf install gettext
copy
sudo pacman -S gettext
copy
sudo apk add gettext
copy
brew install gettext
copy
nix profile install nixpkgs#gettext
copy

CAVEATS

Part of gettext-tools. Different duplicates merged. May need manual review.

HISTORY

msguniq is part of GNU gettext, helping maintain clean translation files.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid