Author: david
Date: Fri Nov 12 11:17:39 2010
New Revision: 8833
Log:
Fix path to module files. Use local messageSource for save and delete methods.
Modified:
trunk/vendor/symfony/lib/i18n/extract/sfI18nPluginExtract.class.php
Modified: trunk/vendor/symfony/lib/i18n/extract/sfI18nPluginExtract.class.php
==============================================================================
--- trunk/vendor/symfony/lib/i18n/extract/sfI18nPluginExtract.class.php Fri Nov
12 10:50:16 2010 (r8832)
+++ trunk/vendor/symfony/lib/i18n/extract/sfI18nPluginExtract.class.php Fri Nov
12 11:17:39 2010 (r8833)
@@ -51,9 +51,9 @@
foreach
(sfFinder::type('dir')->maxdepth(0)->relative()->in($this->parameters['path'].'/modules')
as $moduleName)
{
$this->extractFromPhpFiles(array(
- $this->parameters['path'].'/'.$moduleName.'/actions',
- $this->parameters['path'].'/'.$moduleName.'/lib',
- $this->parameters['path'].'/'.$moduleName.'/templates',
+ $this->parameters['path'].'/modules/'.$moduleName.'/actions',
+ $this->parameters['path'].'/modules/'.$moduleName.'/lib',
+ $this->parameters['path'].'/modules/'.$moduleName.'/templates',
));
}
@@ -75,4 +75,28 @@
}
}
}
+
+ /**
+ * @see sfI18nExtract
+ */
+ public function saveNewMessages()
+ {
+ foreach ($this->getNewMessages() as $message)
+ {
+ $this->messageSource->append($message);
+ }
+
+ $this->messageSource->save();
+ }
+
+ /**
+ * @see sfI18nExtract
+ */
+ public function deleteOldMessages()
+ {
+ foreach ($this->getOldMessages() as $message)
+ {
+ $this->messageSource->delete($message);
+ }
+ }
}
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.