Updating WordPress Theme/Plugin POT file without losing line numbers consistency

use poedit, and build a translation database with it.

Even without poedit you can probably parse an old po file to read all the translation and replace the matching string in the new file.