start
Table of Contents

poorphan

DELETEME this is deprecated use pomigrate2 instead.

Takes a directory of PO files and compares them to new POT files. It will identify PO files with no POT file ie old PO files, POT files with no translated PO files, ie new files. It outputs commands such as rm and msginit that can be copy and pasted to actually perform the intialisation or deletion. It does not perform these tasks automatically.

Prerequisites

None

Usage

poorphan [-l locale] /po-directory/ /pot-directory/

where:

po-directory is a directory of existing PO files
pot-directory is the directory of new POT files
locale is an optional locale in the format xx_XX

Operation

poorphan traverses firstly the PO directory to check for matching POT files outputing an example “rm” command if a POT file is missing.

It then traverses the POT directory to see if any files need to be initialised, it outputs and example “msginit” command to initialise the files. If you supply a locale the file will be initialised blank, if no locale is supplied then it will be initialised as fully translated with translation = original/English.

Finaly it identifies orphaned files and tries to identify potential places that it could be copied to. It outputs various cp commands, the user needs to decide which is more appropriate and whether they should “mv” or “cp” the file.

Bugs

Should probably be part of pomigrate.