Skip to content

Commit

Permalink
use a global variable for minimum PHP Version
Browse files Browse the repository at this point in the history
  • Loading branch information
antograssiot committed Aug 21, 2016
1 parent ff19635 commit 016af50
Show file tree
Hide file tree
Showing 24 changed files with 37 additions and 33 deletions.
4 changes: 4 additions & 0 deletions config/all.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,3 +305,7 @@
from pygments.lexers.web import PhpLexer

lexers['phpinline'] = PhpLexer(startinline=True)

rst_epilog = """
.. |minphpversion| replace:: 5.6.0
"""
2 changes: 1 addition & 1 deletion en/contributing/code.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Before working on patches for CakePHP, it's a good idea to get your environment
setup. You'll need the following software:

* Git
* PHP 5.6.0 or greater
* PHP |minphpversion| or greater
* PHPUnit 3.7.0 or greater

Set up your user information with your name/handle and working email address::
Expand Down
2 changes: 1 addition & 1 deletion en/index.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Welcome
#######

CakePHP 3 is a web development framework running on **PHP 7** (min. PHP 5.6.0).
CakePHP 3 is a web development framework running on **PHP 7** (min. PHP |minphpversion|).
Read :doc:`CakePHP at a Glance </intro>` to get an introduction to the
fundamentals of CakePHP 3.

Expand Down
6 changes: 3 additions & 3 deletions en/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Requirements

- HTTP Server. For example: Apache. Having mod\_rewrite is preferred, but
by no means required.
- PHP 5.6.0 or greater (including PHP 7).
- PHP |minphpversion| or greater (including PHP 7).
- mbstring PHP extension
- intl PHP extension

Expand Down Expand Up @@ -53,8 +53,8 @@ version:
php -v
You should at least have got installed PHP 5.6.0 (CLI) or higher.
Your webserver's PHP version must also be of 5.6.0 or higher, and should best be
You should at least have got installed PHP |minphpversion| (CLI) or higher.
Your webserver's PHP version must also be of |minphpversion| or higher, and should best be
the same version your command line interface (CLI) PHP version is of.

Installing Composer
Expand Down
2 changes: 1 addition & 1 deletion en/tutorials-and-examples/blog/blog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Here's what you'll need:
though the instructions for using other servers should be very
similar. We might have to play a little with the server
configuration, but most folks can get CakePHP up and running without
any configuration at all. Make sure you have PHP 5.6.0 or greater, and
any configuration at all. Make sure you have PHP |minphpversion| or greater, and
that the ``mbstring`` and ``intl`` extensions are enabled in PHP.
#. A database server. We're going to be using MySQL server in this
tutorial. You'll need to know enough about SQL in order to create a
Expand Down
4 changes: 2 additions & 2 deletions en/tutorials-and-examples/bookmarks/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ version:
php -v
You should at least have got installed PHP 5.6.0 (CLI) or higher.
Your webserver's PHP version must also be of 5.6.0 or higher, and should best be
You should at least have got installed PHP |minphpversion| (CLI) or higher.
Your webserver's PHP version must also be of |minphpversion| or higher, and should best be
the same version your command line interface (CLI) PHP version is of.
If you'd like to see the completed application, checkout `cakephp/bookmarker
<https://github.com/cakephp/bookmarker-tutorial>`__. Let's get started!
Expand Down
2 changes: 1 addition & 1 deletion es/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Requisitos

- Servidor HTTP. Por ejemplo: Apache. mod\_rewrite es recomendado, pero
no requerido.
- PHP 5.6.0 o mayor.
- PHP |minphpversion| o mayor.
- extensión mbstring.
- extensión intl.

Expand Down
2 changes: 1 addition & 1 deletion es/tutorials-and-examples/blog/blog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Esto es lo que necesitarás:
#. Servidor web funcionando. Asumiremos que estás usando Apache, aunque las
instrucciones para otros servidores son similares. Igual tendremos que ajustar
un poco la configuración inicial, pero la mayoría pueden poner en marcha
CakePHP sin configuración alguna. Asegúrate de tener PHP 5.6.0 o superior
CakePHP sin configuración alguna. Asegúrate de tener PHP |minphpversion| o superior
así como tener las extensiones ``mbstring``, ``intl`` y ``mcrypt`` activadas
en PHP.
#. Servidor de base de datos. Usaremos MySQL en este tutorial. Necesitarás saber
Expand Down
2 changes: 1 addition & 1 deletion fr/contributing/code.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ définir la configuration de votre environnement. Vous aurez besoin des logiciel
suivants:

* Git
* PHP 5.6.0 ou supérieur
* PHP |minphpversion| ou supérieur
* PHPUnit 3.7.0 ou supérieur

Mettez en place vos informations d'utilisateur avec votre nom/titre et adresse
Expand Down
2 changes: 1 addition & 1 deletion fr/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Bienvenue
#########

CakePHP 3 est un framework pour le développement web qui fonctionne avec
**PHP 7** (min. PHP 5.6.0).
**PHP 7** (min. PHP |minphpversion|).
Vous pouvez lire :doc:`CakePHP en un coup d'oeil </intro>` pour avoir une
introduction aux fondamentaux de CakePHP 3.

Expand Down
6 changes: 3 additions & 3 deletions fr/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Conditions requises

- HTTP Server. Par exemple: Apache. mod\_rewrite est préférable, mais en
aucun cas nécessaire
- PHP 5.6.0 ou plus (y compris PHP 7)
- PHP |minphpversion| ou plus (y compris PHP 7)
- extension PHP mbstring
- extension PHP intl

Expand Down Expand Up @@ -55,8 +55,8 @@ mise à jour:
php -v
Vous devez avoir installé au moins avoir PHP 5.6.0 (CLI) ou supérieur. La
version de PHP du serveur web doit être la version 5.6.0 ou supérieur, et doit
Vous devez avoir installé au moins avoir PHP |minphpversion| (CLI) ou supérieur. La
version de PHP du serveur web doit être la version |minphpversion| ou supérieur, et doit
être la même version que la version de PHP de votre ligne de commande (CLI).

Installer Composer
Expand Down
2 changes: 1 addition & 1 deletion fr/tutorials-and-examples/blog/blog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Voici ce dont vous aurez besoin :
être assez semblables. Nous aurons peut-être besoin de jouer un peu sur la
configuration du serveur, mais la plupart des personnes peuvent faire
fonctionner CakePHP sans aucune configuration préalable. Assurez-vous
d'avoir PHP 5.6.0 ou supérieur et que les extensions ``mbstring`` et
d'avoir PHP |minphpversion| ou supérieur et que les extensions ``mbstring`` et
``intl`` sont activées dans PHP.
#. Un serveur de base de données. Dans ce tutoriel, nous utiliserons MySQL.
Vous aurez besoin d'un minimum de connaissance en SQL afin de créer une
Expand Down
4 changes: 2 additions & 2 deletions fr/tutorials-and-examples/bookmarks/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ Avant de commencer, vous devez vous assurer que votre version de PHP est à jour
php -v
Vous devez avoir installé au moins la version 5.6.0 (CLI) de PHP ou supérieure.
La version de PHP de votre serveur web doit aussi être 5.6.0 ou supérieure, et
Vous devez avoir installé au moins la version |minphpversion| (CLI) de PHP ou supérieure.
La version de PHP de votre serveur web doit aussi être |minphpversion| ou supérieure, et
doit être préférablement la même version que celle de votre interface en ligne
de commande (CLI).
Si vous souhaitez voir ce que donne l'application au final, regardez
Expand Down
2 changes: 1 addition & 1 deletion ja/contributing/code.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ CakePHP の修正に取りかかる前に自分の環境を整えることをお
以下のソフトウェアが必要になります。

* Git
* PHP 5.6.0 以上
* PHP |minphpversion| 以上
* PHPUnit 3.7.0 以上

ユーザ情報(自分の名前/ハンドル名とメールアドレス)をセットしてください。 ::
Expand Down
2 changes: 1 addition & 1 deletion ja/index.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Welcome
#######

CakePHP 3 は、 **PHP 7** (最小は PHP 5.6.0) 上で動作するウェブ開発フレームワークです。
CakePHP 3 は、 **PHP 7** (最小は PHP |minphpversion|) 上で動作するウェブ開発フレームワークです。
CakePHP 3 の基礎に入門するには :doc:`CakePHP 概要 </intro>` を読んでください。

CakePHP クックブックは、オープンに開発されている、コミュニティで編集可能なドキュメントのプロジェクトです。
Expand Down
6 changes: 3 additions & 3 deletions ja/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ CakePHP は nginx や lighttpd や Microsoft IIS のような様々なウェブ
============

- HTTPサーバー。例: Apache。mod\_rewrite が推奨されますが、必須ではありません。
- PHP 5.6.0 以上 (PHP 7 も含む)
- PHP |minphpversion| 以上 (PHP 7 も含む)
- PHP mbstring 拡張
- PHP intl 拡張

Expand Down Expand Up @@ -51,8 +51,8 @@ CakePHP のインストール
php -v
少なくとも PHP 5.6.0 (CLI) 以上がインストールされていなければなりません。
ウェブサーバー版の PHP もまた 5.6.0 以上でなければりませんし、
少なくとも PHP |minphpversion| (CLI) 以上がインストールされていなければなりません。
ウェブサーバー版の PHP もまた |minphpversion| 以上でなければりませんし、
コマンドラインインターフェース (CLI) 版の PHP と同じバージョンがベストです。

Composer のインストール
Expand Down
2 changes: 1 addition & 1 deletion ja/tutorials-and-examples/blog/blog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#. 動作しているウェブサーバ。Apache を使っているという前提で書いてありますが、
他の種類のサーバを使用する場合でも、ほぼ同じにいけるはずです。サーバの設定を
少し変える必要があるかもしれませんが、たいていの人は、そのままの設定で CakePHP を
動作させることが可能です。PHP 5.6.0 以上が動作していること、そしてPHPで ``mbstring`` と ``intl`` が有効になっていることを確認してください。
動作させることが可能です。PHP |minphpversion| 以上が動作していること、そしてPHPで ``mbstring`` と ``intl`` が有効になっていることを確認してください。
#. データベースサーバ。このチュートリアルでは MySQL を使用します。
データベースを作成できる程度の SQL の知識が必要です。その先は CakePHP が面倒を
みてくれます。MySQL を使用するので、PHP で ``pdo_mysql`` が有効になっていることを
Expand Down
4 changes: 2 additions & 2 deletions ja/tutorials-and-examples/bookmarks/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
php -v
最低でも PHP 5.6.0 (CLI) 以上をインストールしてください。
あなたのウェブサーバーの PHP バージョンもまた、5.6.0 以上でなければなりません。そして、
最低でも PHP |minphpversion| (CLI) 以上をインストールしてください。
あなたのウェブサーバーの PHP バージョンもまた、|minphpversion| 以上でなければなりません。そして、
コマンドラインインターフェース (CLI) の PHP バージョンと同じバージョンがベストです。
完全なアプリケーションを確認したい場合、 `cakephp/bookmarker
<https://github.com/cakephp/bookmarker-tutorial>`__ をチェックアウトしてください。
Expand Down
2 changes: 1 addition & 1 deletion pt/contributing/code.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Antes de trabalhar em *patches* para o CakePHP, é uma boa ideia configurar seu
ambiente. Você vai precisar do seguinte *software*:

* Git
* PHP 5.6.0 ou maior
* PHP |minphpversion| ou maior
* PHPUnit 3.7.0 ou maior

Defina suas informações de usuário com seu nome e endereço de email::
Expand Down
2 changes: 1 addition & 1 deletion pt/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Bem-vindo
#########

O CakePHP 3 é um framework de desenvolvimento web que funciona com o PHP 7 ou no
mínimo com o PHP 5.6.0. Leia a seção :doc:`CakePHP num piscar de olhos </intro>`
mínimo com o PHP |minphpversion|. Leia a seção :doc:`CakePHP num piscar de olhos </intro>`
para ter uma ideia geral dos fundamentos do CakePHP 3.

O *cookbook* do CakePHP é um projeto de documentação editável aberto à
Expand Down
2 changes: 1 addition & 1 deletion pt/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Requisitos

- HTTP Server. Por exemplo: Apache. De preferência com mod\_rewrite ativo, mas
não é obrigatório.
- PHP 5.6.0 ou superior.
- PHP |minphpversion| ou superior.
- extensão mbstring
- extensão intl

Expand Down
2 changes: 1 addition & 1 deletion pt/tutorials-and-examples/blog/blog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Aqui está o que você vai precisar:
o Apache, embora as instruções para outros servidores sejam bem similares.
Talvez seja preciso alterar um pouco a configuração do servidor, mas a
maioria das pessoas pode ter o CakePHP instalado e funcionando sem qualquer
trabalho extra. Certifique-se de que você tem o PHP 5.6.0 ou superior,
trabalho extra. Certifique-se de que você tem o PHP |minphpversion| ou superior,
e que as extensões *mbstring* e *intl* estejam habilitadas no PHP.
Caso não saiba a versão do PHP que está instalada, utilize a função
``phpinfo()`` ou digite ``php -v`` no seu terminal de comando.
Expand Down
2 changes: 1 addition & 1 deletion tr/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Gereksinimler

- HTTP sunucusu. Örneğin: Apache. mod\_rewrite özelliğinin açık
olması tercih edilir ama zorunlu değildir.
- PHP 5.6.0 veya daha yüksek.
- PHP |minphpversion| veya daha yüksek.
- mbstring eklentisi
- intl eklentisi

Expand Down
4 changes: 2 additions & 2 deletions tr/tutorials-and-examples/bookmarks/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ Başlamadan önce PHP versiyonunun güncel olduğuna emin olunuz.
php -v
En azından PHP 5.6.0 (CLI) veya daha yüksek bir versiyonun yüklü olması gerekmektedir.
Webserver PHP versiyonunun en azından 5.6.0 veya yükseği, ve aynı versiyonda
En azından PHP |minphpversion| (CLI) veya daha yüksek bir versiyonun yüklü olması gerekmektedir.
Webserver PHP versiyonunun en azından |minphpversion| veya yükseği, ve aynı versiyonda
komut arayüzünün de olması gerekmektedir. Eğer tüm uygulamayı görmek
istiyorsanız `cakephp/bookmarker <https://github.com/cakephp/bookmarker-tutorial>`__.
kontrol edebilirsiniz. Başlayalım !
Expand Down

0 comments on commit 016af50

Please sign in to comment.