Skip to content
This repository has been archived by the owner on Dec 30, 2023. It is now read-only.

Commit

Permalink
Merge pull request #912 from guedel/master
Browse files Browse the repository at this point in the history
French translations
  • Loading branch information
SidRoberts committed Nov 14, 2016
2 parents 8456060 + 92a8108 commit 43cfb0b
Show file tree
Hide file tree
Showing 25 changed files with 1,451 additions and 1,445 deletions.
6 changes: 3 additions & 3 deletions fr/_theme/phalcon/layout.html
Expand Up @@ -284,11 +284,11 @@ <h2>Documentation</h2>
<div class="col-xs-4 col-sm-3">
<h4>Download</h4>
<ul>
<li><a href="https://phalconphp.com/download">Installing Phalcon PHP</a></li>
<li><a href="https://phalconphp.com/download">Installer Phalcon PHP</a></li>
<li><a href="https://docs.phalconphp.com/en/latest/index.html" class="header-nav-link" target="_blank">Documentation</a></li>
<li><a href="https://api.phalconphp.com">API</a></li>
<li><a href="https://docs.phalconphp.com/en/latest/reference/tutorial.html">Tutorial</a></li>
<li><a href="https://docs.phalconphp.com/en/latest/reference/tutorial.html#sample-applications">Sample Applications</a></li>
<li><a href="https://docs.phalconphp.com/en/latest/reference/tutorial.html">Tutoriel</a></li>
<li><a href="https://docs.phalconphp.com/en/latest/reference/tutorial.html#sample-applications">Exemples d'applications</a></li>
</ul>
</div>
<div class="col-xs-4 col-sm-3">
Expand Down
11 changes: 4 additions & 7 deletions fr/api/Phalcon_Mvc_Model_Relation.rst
Expand Up @@ -41,7 +41,7 @@ Phalcon\\Mvc\\Model\\Relation constructor

public **setIntermediateRelation** (*string* | *array* $intermediateFields, *string* $intermediateModel, *string* $intermediateReferencedFields)

Sets the intermediate model data for has-*-through relations
Sets the intermediate model data for has-\*-through relations



Expand Down Expand Up @@ -113,19 +113,16 @@ Check if records returned by getting belongs-to/has-many are implicitly cached d

public *string* | *array* **getIntermediateFields** ()

Gets the intermediate fields for has-*-through relations
Gets the intermediate fields for has-\*-through relations



public **getIntermediateModel** ()

Gets the intermediate model for has-*-through relations
Gets the intermediate model for has-\*-through relations



public *string* | *array* **getIntermediateReferencedFields** ()

Gets the intermediate referenced fields for has-*-through relations


Gets the intermediate referenced fields for has-\*-through relations
2 changes: 1 addition & 1 deletion fr/conf.py
Expand Up @@ -126,7 +126,7 @@

# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
html_last_updated_fmt = '%b %d, %Y'
html_last_updated_fmt = '%d/%m/%Y'

# If true, SmartyPants will be used to convert quotes and dashes to
# typographically correct entities.
Expand Down
8 changes: 5 additions & 3 deletions fr/index.rst
Expand Up @@ -3,10 +3,12 @@ Bienvenue

Bienvenue sur le framework Phalcon, une toute nouvelle approche des frameworks PHP. Notre objectif est de vous donner un outil de pointe pour développer des sites Web et des applications sans se soucier des performances.

Qu'est-ce qu'est Phalcon
------------------------
Qu'est-ce que Phalcon ?
-----------------------

Phalcon est un framework PHP 5 complet et open source. Il est écrit en C et disponible en tant qu'extension php ce qui en fait un framework optimisé et très performant. Il n'est pas nécessaire d'apprendre ou d'utiliser le langage C puisque les fonctionnalités sont disponibles en tant que classes pour PHP prêtes à l'utilisation. Phalcon est également extrêmement modulable, vous permettant ainsi d'utiliser ses composants comme vous le souhaitez au sein de votre application, ou de n'importe quelle autre application.
Phalcon est un framework PHP 5 complet et open source. Il est écrit en C et disponible en tant qu'extension php ce qui en fait un framework optimisé et très performant.
Il n'est pas nécessaire d'apprendre ou d'utiliser le langage C puisque les fonctionnalités sont disponibles en tant que classes pour PHP prêtes à l'utilisation.
Phalcon est également extrêmement modulable, vous permettant ainsi d'utiliser ses composants comme vous le souhaitez au sein de votre application, ou de n'importe quelle autre application.

En plus des performances, notre but est de faire de Phalcon un framework robuste, riche en fonctionnalités et facile d'utilisation !

Expand Down
35 changes: 18 additions & 17 deletions fr/reference/apache.rst
@@ -1,12 +1,12 @@
Apache Installation Notes
=========================
Notes d'installation sur Apache
===============================

Apache_ is a popular and well known web server available on many platforms.
Apache_ est un serveur web populaire et bien connu, disponible sur de nombreuses plateformes.

Configuring Apache for Phalcon
Configurer Apache pour Phalcon
------------------------------
The following are potential configurations you can use to setup Apache with Phalcon. These notes are primarily focused on the configuration of the mod_rewrite module allowing to use friendly URLs and the
:doc:`router component <routing>`. Commonly an application has the following structure:
Ce qui suit sont de possibles configurations que vous pouvez utiliser pour configurer Apache pour Phalcon. Ces instruction sont principalement dirigées vers la configuration du module mod_rewrite qui permet l'utilisation d'URLs conviviales
et du :doc:`router component <routing>`. Les applications ont habituellement cette structure:

.. code-block:: php
Expand All @@ -21,11 +21,12 @@ The following are potential configurations you can use to setup Apache with Phal
js/
index.php
Directory under the main Document Root
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This being the most common case, the application is installed in any directory under the document root.
In this case, we use two .htaccess files, the first one to hide the application code forwarding all requests
to the application's document root (public/).
Répertoire à partir de la racine document
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
C'est le cas le plus fréquent. L'application est installée dans n'importe quel dossier sous la racine document.
Dans ce cas nous utilisons deux fichiers .htaccess. Le premier sert à masquer l'application en redirigeant toutes les requêtes
vers la racine de l'application (public/).


.. code-block:: apacheconf
Expand All @@ -37,7 +38,7 @@ to the application's document root (public/).
RewriteRule ((?s).*) public/$1 [L]
</IfModule>
Now a second .htaccess file is located in the public/ directory, this re-writes all the URIs to the public/index.php file:
Le second fichier .htaccess est placé dans le dossier public/. Celui-ci réécrit toutes les URIs vers le fichier public/index.php:

.. code-block:: apacheconf
Expand All @@ -50,7 +51,7 @@ Now a second .htaccess file is located in the public/ directory, this re-writes
RewriteRule ^((?s).*)$ index.php?_url=/$1 [QSA,L]
</IfModule>
If you do not want to use .htaccess files you can move these configurations to the apache's main configuration file:
Si vous ne souhaitez pas utiliser les fichier .htaccess, vous pouvez déplacer ces configurations dans le fichier principal de configuration d'Apache:

.. code-block:: apacheconf
Expand All @@ -71,9 +72,9 @@ If you do not want to use .htaccess files you can move these configurations to t
</IfModule>
Virtual Hosts
^^^^^^^^^^^^^
And this second configuration allows you to install a Phalcon application in a virtual host:
Hôtes Virtuels
^^^^^^^^^^^^^^
Cette deuxième configuration vous permet d'installer une application Phalcon dans un hôte virtuel:

.. code-block:: apacheconf
Expand All @@ -95,7 +96,7 @@ And this second configuration allows you to install a Phalcon application in a v
.. _Apache: http://httpd.apache.org/

Or if you are using Apache 2.4 or above:
Ou si vous utilisez Apache 2.4 et supérieurs:

.. code-block:: apacheconf
Expand Down
16 changes: 8 additions & 8 deletions fr/reference/built-in.rst
@@ -1,15 +1,15 @@
Using PHP Built-in webserver
============================
Utilisation du serveur web interne à PHP
========================================

As of PHP 5.4.0, you can use PHP's on built-in_ web server for development.
A partir de PHP 5.4.0, vous pouvez utiliser un serveur web interne_ pour le développement.

To start the server type:
Tapez pour démarrer le serveur:

.. code-block:: bash
php -S localhost:8000 -t /public
If you want to rewrite the URIs to the index.php file use the following router file (.htrouter.php):
Si vous souhaitez réécrire les URIs pour le fichier index.php utilisez le fichier routeur suivant (.htrouter.php):

.. code-block:: php
Expand All @@ -19,12 +19,12 @@ If you want to rewrite the URIs to the index.php file use the following router f
}
return false;
and then start the server from the base project directory with:
et démarrez le serveur à partir du répertoire de base du projet avec:

.. code-block:: bash
php -S localhost:8000 -t /public .htrouter.php
Then point your browser to http://localhost:8000/ to check if everything is working.
Et ouvrez votre navigateur à l'adresse http://localhost:8000/ pour vérifier que cela fonctionne.

.. _built-in: http://php.net/manual/fr/features.commandline.webserver.php
.. _interne: http://php.net/manual/fr/features.commandline.webserver.php
39 changes: 20 additions & 19 deletions fr/reference/cherokee.rst
@@ -1,57 +1,58 @@
Cherokee Installation Notes
===========================
Notes d'installation pour Cherokee
==================================

Cherokee_ is a high-performance web server. It is very fast, flexible and easy to configure.
Cherokee_ est un serveur web hautement performant. Il est très rapide, flexible et facile à configurer.

Configuring Cherokee for Phalcon

Configurer Cherokee pour Phalcon
--------------------------------
Cherokee provides a friendly graphical interface to configure almost every setting available in the web server.
Start the cherokee administrator by executing with root /path-to-cherokee/sbin/cherokee-admin
Cherokee fournit un interface graphique conviviale pour configurer presque tous les réglages disponibles dans le serveur web.
Démarrez l'administrateur cherokee avec /path-to-cherokee/sbin/cherokee-admin (NDT: On suppose que l'interface d'administration est en anglais)

.. figure:: ../_static/img/cherokee-1.jpg
:align: center

Create a new virtual host by clicking on 'vServers', then add a new virtual server:
Créez un nouveau serveur virtuel en cliquant sur "vServers" et renseignez alors votre nouveau serveur virtuel:

.. figure:: ../_static/img/cherokee-2.jpg
:align: center

The recently added virtual server must appear at the left bar of the screen. In the 'Behaviors' tab
you will see a set of default behaviors for this virtual server. Click the 'Rule Management' button.
Remove those labeled as 'Directory /cherokee_themes' and 'Directory /icons':
Le serveur virtuel nouvellement ajouté doit apparaître dans la barre gauche de l'écran. Dans l'onglet "Behaviors"
vous verrez un ensemble de comportements par défaut pour ce serveur virtuel. Cliquez sur le bouton "Rule Management".
Supprimez ceux qui sont identifiés comme "Directory /cherokee_themes" et "Directory /icons":

.. figure:: ../_static/img/cherokee-3.jpg
:align: center

Add the 'PHP Language' behavior using the wizard. This behavior allow you to run PHP applications:
A l'aide de l'assistant, ajoutez le comportement "PHP Language". Ce comportement vous permet d'exécuter des applications PHP:

.. figure:: ../_static/img/cherokee-4.jpg
:align: center

Normally this behavior does not require additional settings. Add another behavior,
this time in the 'Manual Configuration' section. In 'Rule Type' choose 'File Exists',
then make sure the option 'Match any file' is enabled:
Normalement ce comportement ne nécessite aucun réglage supplémentaire. Ajoutez un autre comportement
cette fois ci en allant dans la section "Manual Configuration". Dans "Rule Type" choisissez "File Exists",
ensuite assurez-vous que l'option "Match any file" soit activée:

.. figure:: ../_static/img/cherokee-55.jpg
:align: center

In the 'Handler' tab choose 'List & Send' as handler:
Dans l'onglet "Handler", choisissez "List & Send" comme gestionnaire:

.. figure:: ../_static/img/cherokee-7.jpg
:align: center

Edit the 'Default' behavior in order to enable the URL-rewrite engine. Change the handler to 'Redirection',
then add the following regular expression to the engine ^(.*)$:
Editez le comportement "Default" afin d'activer le moteur de réécriture d'URL. Définissez le gestionnaire à "Redirection",
et ajouter l'expression régulière ^(.*)$ au moteur:

.. figure:: ../_static/img/cherokee-6.jpg
:align: center

Finally, make sure the behaviors have the following order:
Enfin, assurez-vous que les comportement soient dans l'ordre suivant:

.. figure:: ../_static/img/cherokee-8.jpg
:align: center

Execute the application in a browser:
Lancez l'application dans un navigateur:

.. figure:: ../_static/img/cherokee-9.jpg
:align: center
Expand Down

0 comments on commit 43cfb0b

Please sign in to comment.