Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extract untranslated strings from PO file

Tags:

gettext

po

I would like to remove all translated strings from a PO file, or generate a PO file with only the untranslated strings.

Is that possible?

like image 359
Pere Avatar asked Jan 20 '14 16:01

Pere


People also ask

How do I open a .po file?

To open PO and POT files, you can use any text editor that supports the format (such as Notepad, Sublime Text, or Notepad++), use specialized software (like Poedit), or Localazy - the online translation management system explicitly made for working with translation file formats.

How do you translate PO files?

Translating PO and POT files is simple with Localazy. Sign up for free, create a new translation project and upload your PO, or POT file. Head to the Translations tab to add new languages and start translating. Localazy gives you a clean UI for translating PO and POT files.

What is a .po file?

A . PO file is a portable object file, which is text-based. These types of files are used in commonly in software development. The . PO file may be referenced by Java programs, GNU gettext, or other software programs as a properties file.


1 Answers

I've found how:

 msgattrib --untranslated source.po -o output.po
like image 54
Pere Avatar answered Sep 22 '22 07:09

Pere