-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2010-04-05 18:13, Freek de Kruijf wrote:
Op zaterdag 3 april 2010 14:31:14 schreef Carlos E. R.:
On 2010-04-03 11:20, Freek de Kruijf wrote:
Op donderdag 1 april 2010 22:34:05 schreef Carlos E. R.:
On Thursday, 2010-04-01 at 21:39 +0200, Freek de Kruijf wrote:
I do miss in the above script the check on .po files that do not have a counterpart .pot file. In which case the .po file should be deleted. Currently I have in each lcn and webyast 3 of these .po files.
Perhaps it existed in the original script. Anyway, I prefer deleting those manually, once I know they really have to be deleted. Notice that you have to delete the file in svn, or you will get it back on next "svn up".
Below is my script to handle .po files without corresponding .pot files, and merging .po files with newer .pot files and making .po files from a .pot file. It can be run from any directory above the trunk or branch directory.
Perhaps we could design a generalized script. Let me write a wishlist of features (it's beyond my scripting abilities): * assume the trunk directory structure from the cvs. Perhaps needs a configuration file with the paths. * work on any of yast, webyast, lcn, etc. * option to verify the directory structure for missing parts. * option to work on a given po file, or the entire subdirectory (--all) of one of the projects * option "verify": checks for orphaned .po files, new .pot files, non-up-to-date po files. * option "update-po" only updates po files from their corresponding pot files. Option to use memory or not. * option "purge-po" deletes po files (renames to backup, perhaps) that do not have a corresponding pot file. Creates a log file or script to run and remove them from the cvs too. * option "new-po" creates new po files from new pot file. Creates a log file or script to run and add them to the cvs too. All or most of this already exists, only that we do not know where, and only for one project. Ah! When, and who, and how, creates the memory files? - -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iF4EAREIAAYFAku9mLIACgkQja8UbcUWM1yaQwD+NA2b5gmjZBnjrPVAuqphwkEf fgxYtS44O1j5SusEEUEBAICS4nVUxqqmny+2pISZE2Q+fAwCILZiG/Et0OFu2y8N =YC44 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-translation+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-translation+help@opensuse.org