From b192128f4abbd83c2a5f817cb846d5311c862358 Mon Sep 17 00:00:00 2001 From: Louis-Arnaud Date: Thu, 3 Sep 2026 13:38:36 +0200 Subject: [PATCH] [Sync-En] ext/yaf: finish the Spanish translation of the loader and regex route pages --- .../yaf/yaf_loader/registerlocalnamespace.xml | 4 +- .../yaf/yaf_loader/registernamespace.xml | 2 +- reference/yaf/yaf_route_regex/construct.xml | 52 +++++++++---------- 3 files changed, 29 insertions(+), 29 deletions(-) diff --git a/reference/yaf/yaf_loader/registerlocalnamespace.xml b/reference/yaf/yaf_loader/registerlocalnamespace.xml index 1de33dc0f..19a4eaec9 100644 --- a/reference/yaf/yaf_loader/registerlocalnamespace.xml +++ b/reference/yaf/yaf_loader/registerlocalnamespace.xml @@ -56,11 +56,11 @@ class Bootstrap extends Yaf_Bootstrap_Abstract $loader = Yaf_Loader::getInstance(); /* Models_User se busca ahora en - * APPLICATION_PATH/library/Models/User.php */ + * APPLICATION_PATH/library/Models/User.php */ $loader->registerLocalNamespace("Models"); /* se registran varios prefijos a la vez, cada uno con su - * propio directorio de búsqueda */ + * propio directorio de búsqueda */ $loader->registerLocalNamespace(array( "Services" => APPLICATION_PATH . "/services", "Vendor" => APPLICATION_PATH . "/vendor", diff --git a/reference/yaf/yaf_loader/registernamespace.xml b/reference/yaf/yaf_loader/registernamespace.xml index 5ecf74204..9ac20c4dd 100644 --- a/reference/yaf/yaf_loader/registernamespace.xml +++ b/reference/yaf/yaf_loader/registernamespace.xml @@ -60,7 +60,7 @@ class Bootstrap extends Yaf_Bootstrap_Abstract } /* new Vendor_Payment_Gateway() se busca ahora en - * APPLICATION_PATH/library/Vendor/Payment/Gateway.php */ + * APPLICATION_PATH/library/Vendor/Payment/Gateway.php */ ?> ]]> diff --git a/reference/yaf/yaf_route_regex/construct.xml b/reference/yaf/yaf_route_regex/construct.xml index 5f5e55489..cce9553f3 100644 --- a/reference/yaf/yaf_route_regex/construct.xml +++ b/reference/yaf/yaf_route_regex/construct.xml @@ -100,24 +100,24 @@ &reftitle.examples; - <classname>Yaf_Route_Regex</classname> via <methodname>Yaf_Router::addRoute</methodname> + <classname>Yaf_Route_Regex</classname> mediante <methodname>Yaf_Router::addRoute</methodname> getRouter()->addRoute( "name", new Yaf_Route_Regex( - "#^/product/([^/]+)/([^/]+)#", // match a URI leading "/product" + "#^/product/([^/]+)/([^/]+)#", // coincide con una URI que empieza por "/product" array( - 'controller' => "product", // route to the product controller + 'controller' => "product", // enruta al controlador product ), array( - 1 => "name", // $request->getParam("name") holds the first capture - 2 => "id", // and $request->getParam("id") the second + 1 => "name", // $request->getParam("name") contiene la primera captura + 2 => "id", // y $request->getParam("id") la segunda ) ) ); @@ -132,18 +132,18 @@ Yaf_Dispatcher::getInstance()->getRouter()->addRoute( getRouter()->addRoute( "name", new Yaf_Route_Regex( - "#^/product/([^/]+)/([^/]+)#i", // match a URI leading "/product" + "#^/product/([^/]+)/([^/]+)#i", // coincide con una URI que empieza por "/product" array( - 'controller' => ":name", // the "name" capture (see map) becomes the controller + 'controller' => ":name", // la captura "name" (véase map) se convierte en el controlador ), array( - 1 => "name", // $request->getParam("name") holds the first capture - 2 => "id", // and $request->getParam("id") the second + 1 => "name", // $request->getParam("name") contiene la primera captura + 2 => "id", // y $request->getParam("id") la segunda ) ) ); @@ -158,17 +158,17 @@ Yaf_Dispatcher::getInstance()->getRouter()->addRoute( getRouter()->addRoute( "name", new Yaf_Route_Regex( - "#^/product/(?[^/]+)/([^/]+)#i", // match a URI leading "/product" + "#^/product/(?[^/]+)/([^/]+)#i", // coincide con una URI que empieza por "/product" array( - 'controller' => ":name", // the "name" capture becomes the controller + 'controller' => ":name", // la captura "name" se convierte en el controlador ), array( - 2 => "id", // group 1 is named, only group 2 needs a map entry + 2 => "id", // el grupo 1 tiene nombre, solo el grupo 2 necesita una entrada en map ) ) ); @@ -177,24 +177,24 @@ Yaf_Dispatcher::getInstance()->getRouter()->addRoute( - <classname>Yaf_Route_Regex</classname> via <methodname>Yaf_Router::addConfig</methodname> + <classname>Yaf_Route_Regex</classname> mediante <methodname>Yaf_Router::addConfig</methodname> array( - "type" => "regex", // a Yaf_Route_Regex route - "match" => "#(.*)#", // match any request URI + "type" => "regex", // una ruta Yaf_Route_Regex + "match" => "#(.*)#", // coincide con cualquier URI de petición "route" => array( - 'controller' => "product", // route to the product controller - 'action' => "dummy", // and to the dummy action + 'controller' => "product", // enruta al controlador product + 'action' => "dummy", // y a la acción dummy ), "map" => array( - 1 => "uri", // $request->getParam("uri") holds the matched URI + 1 => "uri", // $request->getParam("uri") contiene la URI coincidente ), ), );