Hello Andreas! On Thu, 3 Apr 2008, Andreas Schamberger wrote:
> I started yesterday with a ezlupdate.php script. I attached what I > came up with until today. Replace "require_once 'init.php';" with your > ezcComponents Setup. > > The script reads all templates in a directory and extracts the > language strings. I used the existing functionality of the translation > component for manipulating translation files. Therefore it's not > possible to delete strings. Maybe there should be a new status > "DELETED" that makes storeContext() delete the string from the file. I > mark obsolete strings but only if the filename properties match. This > is not perfect as the filename is an absolute path at the moment and > not relative to the template dir. I'd recommend to change this. Cool, thanks a lot. I will be checking this somewhere next week thoroughly. > For normal strings this works fine. But if you use HTML or double > quotes, you run into the following problems: > > a) xpath for finding messages in 'ts_backend.php', line 436 > b) the same xpath doesn't work if there is HTML in the string > c) double quotes in translation strings [snip] I added an issue for those, so we won't forget: http://issues.ez.no/IssueView.php?Id=12810 > I hope this is what you were looking for. Yes, pretty much. We will probably need to extend it a bit to handle also the copy from a generated english file to other language's files though. In order to be allowed to bundle this with the eZ Components we'd need a signed CLA however. Would you be willing to sign one? You can find information about it here: http://dev.ezcomponents.org/contributing/cla - let me know if you have any questions or concerns. regards, -- Derick Rethans eZ components Product Manager eZ systems | http://ez.no -- Components mailing list Components@lists.ez.no http://lists.ez.no/mailman/listinfo/components