sulu: French translation and title that does not appear in the administration
Hello,
I am developing a small site with Sulu, a Symfony CMS.
In first, I would like to understand why the titles of my fields do not display while I am well in the file homepage.xml :
`<?xml version="1.0" ?> <template xmlns="http://schemas.sulu.io/template/template" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.sulu.io/template/template http://schemas.sulu.io/template/template-1.0.xsd">
<key>homepage</key>
<view>pages/homepage</view>
<controller>Sulu\Bundle\WebsiteBundle\Controller\DefaultController::indexAction</controller>
<cacheLifetime>86400</cacheLifetime>
<meta>
<title lang="fr">Accueil</title>
</meta>
<properties>
<property name="title" type="text_line" mandatory="true">
<meta>
<title lang="fr">Titre</title>
</meta>
<params>
<param name="headline" value="true"/>
</params>
<tag name="sulu.rlp.part"/>
</property>
<property name="url" type="resource_locator" mandatory="true">
<meta>
<title lang="fr">Lien de la page</title>
</meta>
<tag name="sulu.rlp"/>
</property>
<property name="article" type="text_editor">
<meta>
<title lang="fr">Description</title>
</meta>
</property>
<property name="adresse_france" type="text_line">
<meta>
<title lang="fr">Adresse France</title>
</meta>
</property>
<property name="adresse_madagascar" type="text_line">
<meta>
<title lang="fr">Adresse Madagascar</title>
</meta>
</property>
<property name="email" type="email">
<meta>
<title lang="fr">E-Mail</title>
</meta>
</property>
<property name="phone" type="phone">
<meta>
<title lang="fr">Phone number</title>
</meta>
</property>
</properties>
</template>`
In a second time, I used this version of Sulu: https://github.com/sulu/sulu
I unfortunately can not put the administration in French, I would like to know if it was possible to add a translation file for my administration.
Thank you in advance for your answers.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (7 by maintainers)
I think the problem is that you have an old translation file 😕 Where have you got that from? Most of th keys have changed, and the format in which the message are written was changed as well…
What if you just go to
/admin/translations
copy the content, and put that into your translation file? I know it will show the wrong translations, but at least we would know if it works.@devdaxou
sulu/sulu is only the library and for developing sulu itself. Starting a new project should always be done like in the docs using
composer create-project sulu/skeleton
see http://docs.sulu.io/en/2.0/book/getting-started.htmlIf you want to have the admin interface in other languages you would need to configure it in e.g.
config/packages/sulu_core.yaml
as written above.