Note that there are some explanatory texts on larger screens.

plurals
  1. POJMSI18nRoutingBundle symfony2 create the routing tranlations
    primarykey
    data
    text
    <p>I use JMSI18nRoutingBundle in symfony2.</p> <p>I read all the docs --> <a href="http://jmsyst.com/bundles/JMSI18nRoutingBundle" rel="nofollow">http://jmsyst.com/bundles/JMSI18nRoutingBundle</a></p> <p>and used the 3. Scenario in my config:</p> <pre><code>jms_i18n_routing: default_locale: en locales: [en, he] strategy: custom hosts: en: example.com he: example.co.il redirect_to_host: false </code></pre> <p>I even tried to use 2. Scenario</p> <p>that will simply add a prefix for the url for other languages.</p> <p>as I see my problem is that when I enter to the url: example.co.il</p> <p>it says that it cant find a route for it. When I add this-> options: { i18n: false }</p> <p>to the route, it works (this is for "Leaving routes untranslated")</p> <p>as I see that simply means that the routes for the "he" local simply doesn't exist.</p> <p>An ideas how do I implement it?</p> <p>as requested, here is my router:debug --> (I added just a part of it, because it was very long)</p> <pre><code>he_en__RG__site_base_homepage ANY ANY ANY / he__RG__site_base_homepage ANY ANY ANY / en__RG__site_base_homepage ANY ANY ANY / he_en__RG__site_base_about ANY ANY ANY /about he__RG__site_base_about ANY ANY ANY /about en__RG__site_base_about ANY ANY ANY /about he_en__RG__site_base_contact GET ANY ANY /contact he__RG__site_base_contact GET ANY ANY /contact en__RG__site_base_contact GET ANY ANY /contact he_en__RG__site_base_contact_verify POST ANY ANY /contact he__RG__site_base_contact_verify POST ANY ANY /contact en__RG__site_base_contact_verify POST ANY ANY /contact he_en__RG__terms_of_use ANY ANY ANY /terms he__RG__terms_of_use ANY ANY ANY /terms en__RG__terms_of_use ANY ANY ANY /terms </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload