Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 86d7d62

Browse files
committed
Merge pull request #688 from symfony-cmf/travis-docker
use travis docker env
2 parents 9bc4682 + 59f6303 commit 86d7d62

File tree

15 files changed

+52
-31
lines changed

15 files changed

+52
-31
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ language: python
33
python:
44
- "2.7"
55

6-
before_script:
7-
- sudo apt-get install enchant
6+
sudo: false
7+
8+
addons:
9+
apt:
10+
packages: [enchant]
811

912
install: "pip install -q -r requirements.txt --use-mirrors"
1013

book/database_layer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ versioning and access control.
3737

3838
Doctrine PHPCR-ODM has the same API as the other Doctrine libraries, like the
3939
`Doctrine ORM`_. The Doctrine PHPCR-ODM adds another great feature to PHPCR:
40-
Multilanguage support.
40+
multi-language support.
4141

4242
.. sidebar:: PHPCR Implementations
4343

book/static_content.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,4 @@ developers with a small and easy to understand starting point you can extend
7878
or use as inspiration to develop your own content types, Controllers and Admin
7979
panels.
8080

81-
.. _`multilanguage support in PHPCR-ODM`: http://docs.doctrine-project.org/projects/doctrine-phpcr-odm/en/latest/reference/multilang.html
8281
.. _SonataDoctrinePHPCRAdminBundle: https://github.com/sonata-project/SonataDoctrinePhpcrAdminBundle

bundles/core/configuration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ If the ``multilang`` option is *not* defined at all, the CoreBundle registers a
210210
listener for Doctrine PHPCR-ODM that modifies PHPCR-ODM metadata to remove the
211211
translatable attribute from all fields.
212212

213-
If multilang is enabled, the ``TranslatableExtension`` for
213+
If multi-language is enabled, the ``TranslatableExtension`` for
214214
``SonataAdminBundle`` is enabled and the locales will be configured on all CMF
215215
bundles that use this configuration:
216216

bundles/create/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ reads like this:
508508
The metadata support in CreatePHP is not as powerful as in Doctrine. There
509509
are currently no drivers for annotation or yml mappings. Mappings are not
510510
inherited from a parent class but need to be repeated each time. And the
511-
mapping file must include the full namespace in the filename to be found.
511+
mapping file must include the full namespace in the file name to be found.
512512

513513
All of these issues will hopefully be fixed in later versions if people
514514
step up and contribute pull requests.

bundles/map.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ bundle based on the key bundles.
108108
Contributed Bundles
109109
~~~~~~~~~~~~~~~~~~~
110110

111-
Besides that, the Symfony CMF team also maintains some 3th party bundles which
111+
Besides that, the Symfony CMF team also maintains some third party bundles which
112112
help with integrating PHPCR concepts into the Symfony Framework.
113113

114114
* :doc:`phpcr_odm/index`

bundles/menu/menu_documents.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ locale to be set via. the ``setLocale`` method::
107107
$menuItem = ...;
108108
$menuItem->setLocale('fr');
109109

110-
See :ref:`Persisting Multilang Documents <bundles-core-multilang-persisting_multilang_documents>` for more details.
110+
See :ref:`Persisting Multi-Language Documents <bundles-core-multilang-persisting_multilang_documents>` for more details.
111111

112112
Publish Workflow
113113
~~~~~~~~~~~~~~~~

bundles/phpcr_odm/fixtures_initializers.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ Initializers have to implement the
3030
``Doctrine\Bundle\PHPCRBundle\Initializer\InitializerInterface``. If you don't
3131
need any special logic and want to create plain PHPCR nodes and not documents,
3232
you can simply define services with ``GenericInitializer``. The generic
33-
initializer expects a name to identify the initializer, an array of repository
33+
Initializer expects a name to identify the Initializer, an array of repository
3434
paths it will create if they do not exist and an optional string defining
3535
namespaces and primary / mixin node types in the CND language that should be
3636
registered with the repository.
3737

3838
.. versionadded:: 1.1
3939
Since version 1.1, the ``GenericInitializer`` expects a name parameter
4040
as first argument. With 1.0 there is no way to specify a custom name
41-
for the generic initializer.
41+
for the generic Initializer.
4242

43-
A service to use the generic initializer looks like this:
43+
A service to use the generic Initializer looks like this:
4444

4545
.. configuration-block::
4646

@@ -87,19 +87,19 @@ A service to use the generic initializer looks like this:
8787
$definition->addTag('doctrine_phpcr.initializer');
8888
$container->setDefinition('acme_content.phpcr.initializer', $definition);
8989
90-
You can execute your initializers using the following command:
90+
You can execute your Initializers using the following command:
9191

9292
.. code-block:: bash
9393
9494
$ php app/console doctrine:phpcr:repository:init
9595
9696
.. versionadded:: 1.1
9797
Since DoctrinePHPCRBundle 1.1 the load data fixtures command will
98-
automatically execute the initializers after purging the database,
98+
automatically execute the Initializers after purging the database,
9999
before executing the fixtures.
100100

101-
The generic initializer only creates PHPCR nodes. If you want to create
102-
specific documents, you need your own initializer. The interesting method
101+
The generic Initializer only creates PHPCR nodes. If you want to create
102+
specific documents, you need your own Initializer. The interesting method
103103
to overwrite is the ``init`` method. It is passed the ``ManagerRegistry``,
104104
from which you can retrieve the PHPCR session but also the document manager::
105105

@@ -149,10 +149,10 @@ from which you can retrieve the PHPCR session but also the document manager::
149149
.. versionadded:: 1.1
150150
Since version 1.1, the ``init`` method is passed the ``ManagerRegistry`` rather
151151
than the PHPCR ``SessionInterface`` to allow the creation of documents in
152-
initializers. With 1.0, you would need to manually set the ``phpcr:class``
152+
Initializers. With 1.0, you would need to manually set the ``phpcr:class``
153153
property to the right value.
154154

155-
Define a service for your initializer as follows:
155+
Define a service for your Initializer as follows:
156156

157157
.. configuration-block::
158158

bundles/phpcr_odm/multilang.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
.. index::
2-
single: Multilanguage; DoctrinePHPCRBundle
2+
single: Multi-Language; DoctrinePHPCRBundle
33

4-
Doctrine PHPCR-ODM Multilanguage Support
5-
========================================
4+
Doctrine PHPCR-ODM Multi-Language Support
5+
=========================================
66

7-
To use the multilanguage features of PHPCR-ODM you need to enable locales in
7+
To use the multi-language features of PHPCR-ODM you need to enable locales in
88
the configuration.
99

1010
Translation Configuration
@@ -167,14 +167,14 @@ depending on the locale.
167167
type: binary
168168
translated: true
169169
170-
Unless you explicitly interact with the multilanguage features of PHPCR-ODM,
170+
Unless you explicitly interact with the multi-language features of PHPCR-ODM,
171171
documents are loaded in the request locale and saved in the locale they where
172172
loaded. (This could be a different locale, if the PHPCR-ODM did not find the
173173
requested locale and had to fall back to an alternative locale.)
174174

175175
.. tip::
176176

177177
For more information on multilingual documents, see the
178-
`PHPCR-ODM documentation on Multilanguage`_.
178+
`PHPCR-ODM documentation on multi-language`_.
179179

180-
.. _`PHPCR-ODM documentation on Multilanguage`: http://docs.doctrine-project.org/projects/doctrine-phpcr-odm/en/latest/reference/multilang.html
180+
.. _`PHPCR-ODM documentation on multi-language`: http://docs.doctrine-project.org/projects/doctrine-phpcr-odm/en/latest/reference/multilang.html

bundles/routing/configuration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ content repository service.
547547

548548
**type**: ``array`` **default**: ``array()``
549549

550-
To enable multilanguage, set the valid locales in this option.
550+
To enable multi-language, set the valid locales in this option.
551551

552552
If the :doc:`CoreBundle <../core/introduction>` is registered, this will
553553
default to the value of ``cmf_core.locales``.

0 commit comments

Comments
 (0)