* @license GNU General Public License, version 2 (GPL-2.0) * * For full copyright and license information, please see * the docs/CREDITS.txt file. * */ namespace phpbb\controller; use Symfony\Component\HttpKernel\Controller\ControllerResolverInterface; use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\HttpFoundation\Request; /** * Controller manager class */ class resolver implements ControllerResolverInterface { /** * ContainerInterface object * @var ContainerInterface */ protected $container; /** * phpbb\template\template object * @var \phpbb\template\template */ protected $template; /** * Request type cast helper object * @var \phpbb\request\type_cast_helper */ protected $type_cast_helper; /** * phpBB root path * @var string */ protected $phpbb_root_path; /** * Construct method * * @param ContainerInterface $container ContainerInterface object * @param string $phpbb_root_path Relative path to phpBB root * @param \phpbb\template\template $template */ public function __construct(ContainerInterface $container, $phpbb_root_path, \phpbb\template\template $template = null) { $this->container = $container; $this->template = $template; $this->type_cast_helper = new \phpbb\request\type_cast_helper(); $this->phpbb_root_path = $phpbb_root_path; } /** * Load a controller callable * * @param \Symfony\Component\HttpFoundation\Request $request Symfony Request object * @return bool|Callable Callable or false * @throws \phpbb\controller\exception */ public function getController(Request $request) { $controller = $request->attributes->get('_controller'); if (!$controller) { throw new \phpbb\controller\exception('CONTROLLER_NOT_SPECIFIED'); } // Require a method name along with the service name if (stripos($controller, ':') === false) { throw new \phpbb\controller\exception('CONTROLLER_METHOD_NOT_SPECIFIED'); } list($service, $method) = explode(':', $controller); if (!$this->container->has($service)) { throw new \phpbb\controller\exception('CONTROLLER_SERVICE_UNDEFINED', array($service)); } $controller_object = $this->container->get($service); /* * If this is an extension controller, we'll try to automatically set * the style paths for the extension (the ext author can change them * if necessary). */ $controller_dir = explode('\\', get_class($controller_object)); // 0 vendor, 1 extension name, ... if (!is_null($this->template) && isset($controller_dir[1])) { $controller_style_dir = 'ext/' . $controller_dir[0] . '/' . $controller_dir[1] . '/styles'; if (is_dir($this->phpbb_root_path . $controller_style_dir)) { $this->template->set_style(array($controller_style_dir, 'styles')); } } return array($controller_object, $method); } /** * Dependencies should be specified in the service definition and can be * then accessed in __construct(). Arguments are sent through the URL path * and should match the parameters of the method you are using as your * controller. * * @param \Symfony\Component\HttpFoundation\Request $request Symfony Request object * @param mixed $controller A callable (controller class, method) * @return array An array of arguments to pass to the controller * @throws \phpbb\controller\exception */ public function getArguments(Request $request, $controller) { // At this point, $controller contains the object and method name list($object, $method) = $controller; $mirror = new \ReflectionMethod($object, $method); $arguments = array(); $parameters = $mirror->getParameters(); $attributes = $request->attributes->all(); foreach ($parameters as $param) { if (array_key_exists($param->name, $attributes)) { if (is_string($attributes[$param->name])) { $value = $attributes[$param->name]; $this->type_cast_helper->set_var($value, $attributes[$param->name], 'string', true, false); $arguments[] = $value; } else { $arguments[] = $attributes[$param->name]; } } else if ($param->getClass() && $param->getClass()->isInstance($request)) { $arguments[] = $request; } else if ($param->isDefaultValueAvailable()) { $arguments[] = $param->getDefaultValue(); } else { throw new \phpbb\controller\exception('CONTROLLER_ARGUMENT_VALUE_MISSING', array($param->getPosition() + 1, get_class($object) . ':' . $method, $param->name)); } } return $arguments; } } 1af3df8f873d5666a22d9cec1a7c'>refslogtreecommitdiffstats
path: root/perl-install/share/po/ta.po
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2005-06-28 07:26:56 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2005-06-28 07:26:56 +0000
commitf60ccf9ff1e11af3df8f873d5666a22d9cec1a7c (patch)
tree4a6098b0a57df4db0c2c8cc0b0fb9e05daba2a6e /perl-install/share/po/ta.po
parent5dad11b9f67e194af7d589f11b64f91c048fd2b3 (diff)
downloaddrakx-f60ccf9ff1e11af3df8f873d5666a22d9cec1a7c.tar
drakx-f60ccf9ff1e11af3df8f873d5666a22d9cec1a7c.tar.gz
drakx-f60ccf9ff1e11af3df8f873d5666a22d9cec1a7c.tar.bz2
drakx-f60ccf9ff1e11af3df8f873d5666a22d9cec1a7c.tar.xz
drakx-f60ccf9ff1e11af3df8f873d5666a22d9cec1a7c.zip
update strings from CVS
Diffstat (limited to 'perl-install/share/po/ta.po')
-rw-r--r--perl-install/share/po/ta.po1017
1 files changed, 521 insertions, 496 deletions
diff --git a/perl-install/share/po/ta.po b/perl-install/share/po/ta.po
index 0ac37717e..a908fd59a 100644
--- a/perl-install/share/po/ta.po
+++ b/perl-install/share/po/ta.po
@@ -8,7 +8,7 @@
msgid ""
msgstr ""
"Project-Id-Version: DrakX 1.0\n"
-"POT-Creation-Date: 2005-06-17 16:16+0200\n"
+"POT-Creation-Date: 2005-06-28 15:58+0200\n"
"PO-Revision-Date: 2002-09-06 00:35+0800\n"
"Last-Translator: prabu anand <prabu_anand2000@yahoo.com>\n"
"Language-Team: Tamil <tamilinix@yahoogroups.com>\n"
@@ -140,18 +140,18 @@ msgstr "உங்களுக்கு தேவையான பாதுகா
#: diskdrake/dav.pm:75 diskdrake/hd_gtk.pm:113 diskdrake/interactive.pm:230
#: diskdrake/interactive.pm:243 diskdrake/interactive.pm:404
#: diskdrake/interactive.pm:422 diskdrake/interactive.pm:558
-#: diskdrake/interactive.pm:563 diskdrake/smbnfs_gtk.pm:41 fsedit.pm:184
-#: install_any.pm:1698 install_any.pm:1750 install_steps.pm:81
+#: diskdrake/interactive.pm:563 diskdrake/smbnfs_gtk.pm:41 fsedit.pm:209
+#: install_any.pm:1721 install_any.pm:1773 install_steps.pm:81
#: install_steps_interactive.pm:37 interactive/http.pm:117
#: interactive/http.pm:118 network/ndiswrapper.pm:27 network/ndiswrapper.pm:42
#: network/ndiswrapper.pm:89 network/ndiswrapper.pm:101
-#: network/netconnect.pm:812 network/netconnect.pm:915
-#: network/netconnect.pm:919 network/netconnect.pm:923
-#: network/netconnect.pm:928 network/netconnect.pm:1058
-#: network/netconnect.pm:1062 network/netconnect.pm:1066
-#: network/netconnect.pm:1070 network/netconnect.pm:1178
-#: network/netconnect.pm:1183 network/netconnect.pm:1203
-#: network/netconnect.pm:1356 network/thirdparty.pm:267
+#: network/netconnect.pm:810 network/netconnect.pm:914
+#: network/netconnect.pm:918 network/netconnect.pm:922
+#: network/netconnect.pm:927 network/netconnect.pm:1057
+#: network/netconnect.pm:1061 network/netconnect.pm:1065
+#: network/netconnect.pm:1069 network/netconnect.pm:1177
+#: network/netconnect.pm:1182 network/netconnect.pm:1202
+#: network/netconnect.pm:1355 network/thirdparty.pm:267
#: network/thirdparty.pm:274 network/thirdparty.pm:310
#: network/thirdparty.pm:312 network/thirdparty.pm:333
#: network/thirdparty.pm:357 printer/printerdrake.pm:244
@@ -594,7 +594,7 @@ msgstr "காட்சியமைப்பு அட்ைட: %s"
#: standalone/drakconnect:158 standalone/drakconnect:848
#: standalone/drakconnect:935 standalone/drakconnect:1031
#: standalone/drakfont:574 standalone/drakfont:586 standalone/drakroam:392
-#: standalone/draksplash:165 standalone/drakups:212 standalone/net_monitor:342
+#: standalone/draksplash:165 standalone/drakups:212 standalone/net_monitor:340
#: ugtk2.pm:409 ugtk2.pm:506 ugtk2.pm:908 ugtk2.pm:931
#, c-format
msgid "Ok"
@@ -612,7 +612,7 @@ msgstr "சரி"
#: standalone/drakconnect:933 standalone/drakconnect:1030
#: standalone/drakfont:586 standalone/drakfont:664 standalone/drakfont:741
#: standalone/draksplash:165 standalone/drakups:219 standalone/logdrake:173
-#: standalone/net_monitor:341 ugtk2.pm:403 ugtk2.pm:504 ugtk2.pm:513
+#: standalone/net_monitor:339 ugtk2.pm:403 ugtk2.pm:504 ugtk2.pm:513
#: ugtk2.pm:908
#, c-format
msgid "Cancel"
@@ -772,7 +772,7 @@ msgstr ""
#: any.pm:142 harddrake/sound.pm:190 interactive.pm:470 pkgs.pm:458
#: standalone/drakconnect:160 standalone/drakconnect:635 standalone/draksec:68
#: standalone/drakups:101 standalone/drakxtv:92 standalone/harddrake2:245
-#: standalone/service_harddrake:206
+#: standalone/service_harddrake:207
#, c-format
msgid "Please wait"
msgstr "தயவுசெய்து காத்திருக்கவும்.."
@@ -924,7 +924,7 @@ msgid "Force No Local APIC"
msgstr ""
#: any.pm:292 any.pm:643 authentication.pm:186 diskdrake/smbnfs_gtk.pm:179
-#: network/netconnect.pm:566 printer/printerdrake.pm:1663
+#: network/netconnect.pm:564 printer/printerdrake.pm:1663
#: printer/printerdrake.pm:1784 standalone/drakbackup:1627
#: standalone/drakbackup:3490 standalone/drakups:299