Compare source and translated messages
A PO catalog keeps the source text beside its translation. Use that pairing to review terminology and confirm that each message still says what your interface needs.
Upload your PO file and choose a target language. Translate the messages your users see, with the goal of keeping the source strings and catalog structure intact. Download the translated file for review in your project.
Translation example
A five-message catalog written for this page. The source messages and five file references match in the result, all five translations are filled in, and the %(count)d placeholder is retained.
2026-10-08 verified — Amanda Lee
A PO catalog keeps the source text beside its translation. Use that pairing to review terminology and confirm that each message still says what your interface needs.
Download the five-message English and Spanish files below. Compare their source strings, file references and named count placeholder before trying your own catalog.
A PO catalog keeps each source message in msgid and its translation in msgstr. The goal is to translate the text your users read while retaining the source messages that identify it. The GNU gettext manual explains the entry format and its comment types.
Keep a copy of your original catalog so you can compare the download. Short labels need particular attention: a word such as “Open” can name an action or describe a state. Read those translations where they appear in your application before approving them.
The downloadable example contains five messages. All five msgid values and their file-reference comments match in the result; the five empty translations are filled in Spanish. The named placeholder %(count)d also appears unchanged in the translated message, and the Language header changes from en to es.
Both files and their full previews are below. This example has no msgctxt entries or gettext plural entries, so it does not demonstrate how those cases are handled. The message about unread messages uses a count placeholder, but that alone is not a plural-form test.
Compare placeholders with the source and read the translated labels in the interface. A preserved placeholder is useful only if the sentence still makes sense when your application inserts a value. Longer translations may also need room in buttons or menus.
For catalogs with plural entries, review the indexed translations and the target language’s Plural-Forms header together. Use your project’s gettext validation and build checks before release. GNU’s msgfmt documentation describes catalog checks; passing them does not replace a language review.
Upload a copy of your PO file
Keep the original catalog for comparison, then upload the .po file you want to translate.
Choose the target language
Select the language your users need. Keep your project’s preferred terms nearby for the review.
Translate and download the catalog
Run the translation and save the resulting PO file so you can compare it with the original.
Review it in your project
Check the translated messages and placeholders, run your catalog checks, and read the text in its actual interface before release.
Keep the source messages unchanged when translating an existing catalog; the translated wording belongs in msgstr. In the downloadable example, all five source messages match between the English and Spanish files.
The literal %(count)d is present in both the source message and its Spanish translation. That checks one named placeholder in one file. There is no msgid_plural or indexed msgstr entry in this example, so it does not test plural-form handling.
Find the screen or action where the label appears and choose wording that fits that use. Gettext can distinguish identical source text with msgctxt, but the sample here has no context entries. Check any context entries in your own catalog separately.
Review it first. Compare the placeholders and source messages, check any plural entries, and run your project’s catalog validation. Then test the text in the application; a valid file can still contain a misleading label or text that does not fit a button.
Upload a copy of your PO file, choose a target language, and review the translated messages before release.