Skip to content

Commit 2dc5b9d

Browse files
committed
Merge pull request #182 from symfony-cmf/admin-help
porting some help texts from simple cms to the routing
2 parents e720772 + 3ab5f05 commit 2dc5b9d

File tree

4 files changed

+28
-4
lines changed

4 files changed

+28
-4
lines changed

Admin/RouteAdmin.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,17 @@ protected function configureFormFields(FormMapper $formMapper)
7575
array('choice_list' => array(), 'select_root_node' => true, 'root_node' => $this->routeRoot)
7676
)
7777
->add('name', 'text')
78-
->add('addFormatPattern', null, array('required' => false))
79-
->add('addTrailingSlash', null, array('required' => false))
80-
->end();
78+
->add('addFormatPattern', null, array('required' => false, 'help' => 'form.help_add_format_pattern'))
79+
->add('addTrailingSlash', null, array('required' => false, 'help' => 'form.help_add_trailing_slash'))
80+
->end();
8181

8282
if (null === $this->getParentFieldDescription()) {
8383
$formMapper
8484
->with('form.group_general')
8585
->add('variablePattern', 'text', array('required' => false))
8686
->add('content', 'doctrine_phpcr_odm_tree', array('choice_list' => array(), 'required' => false, 'root_node' => $this->contentRoot))
8787
->add('defaults', 'sonata_type_immutable_array', array('keys' => $this->configureFieldsForDefaults()))
88-
->end();
88+
->end();
8989
}
9090
}
9191

Resources/translations/CmfRoutingBundle.de.xliff

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,14 @@
106106
<source>form.label_add_trailing_slash</source>
107107
<target>Abschließenden Schrägstrich hinzufügen</target>
108108
</trans-unit>
109+
<trans-unit id="form.help_add_format_pattern">
110+
<source>form.help_add_format_pattern</source>
111+
<target>Format zu URL hinzufügen: /eine/url.{format}. Wenn nichts angegeben wird ist das Format html.</target>
112+
</trans-unit>
113+
<trans-unit id="form.help_add_trailing_slash">
114+
<source>form.help_add_trailing_slash</source>
115+
<target>Die URL hört in diesem Fall mit einem Schrägstrich auf, zum Beispiel /eine/url/.</target>
116+
</trans-unit>
109117
</body>
110118
</file>
111119
</xliff>

Resources/translations/CmfRoutingBundle.en.xliff

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,14 @@
106106
<source>form.label_add_trailing_slash</source>
107107
<target>Add trailing slash</target>
108108
</trans-unit>
109+
<trans-unit id="form.help_add_format_pattern">
110+
<source>form.help_add_format_pattern</source>
111+
<target>Append format to route like /your/route.{format}. Default format is html.</target>
112+
</trans-unit>
113+
<trans-unit id="form.help_add_trailing_slash">
114+
<source>form.help_add_trailing_slash</source>
115+
<target>Append a trailing slash to route like /your/route/.</target>
116+
</trans-unit>
109117
</body>
110118
</file>
111119
</xliff>

Resources/translations/CmfRoutingBundle.fr.xliff

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,14 @@
106106
<source>form.label_add_trailing_slash</source>
107107
<target>Ajouter une barre oblique en fin</target>
108108
</trans-unit>
109+
<trans-unit id="form.help_add_format_pattern">
110+
<source>form.help_add_format_pattern</source>
111+
<target>Ajoute le format à la route tel que /your/route.{format}. Le format par défaut est html.</target>
112+
</trans-unit>
113+
<trans-unit id="form.help_add_trailing_slash">
114+
<source>form.help_add_trailing_slash</source>
115+
<target>Ajoute un slash à la fin de la route tel que /your/route/.</target>
116+
</trans-unit>
109117
</body>
110118
</file>
111119
</xliff>

0 commit comments

Comments
 (0)