Cocolabs-SAS / cocorico

๐Ÿ‘ Cocorico is an open source marketplace solution for services and rentals. More information right here: https://www.cocorico.io/ ๐Ÿš€ Cocorico is also available in an off-the-shelf SaaS package, check out https://www.hatch.li to launch your platform today. ๐Ÿ˜ We are hiring (telecommute welcome ๐Ÿก): https://www.welcometothejungle.com/en/companies/cocorico/jobs/candidatures-spontanees#apply
https://www.cocolabs.com
MIT License
857 stars 610 forks source link

translate into another language #497

Closed gonzasylv closed 4 years ago

gonzasylv commented 4 years ago
Q A
Bug report? [ ]
Feature request? [ ]
Support request? [ x ]

hi @cocolabssas ,

I added a language :

    cocorico.locales:
            - fr
            - ma
    cocorico.locales_string: fr|ma

http://imgur.com/puHwiWAl.png

php bin/console translation:extract ma --config=cocorico && php bin/console cache:clear --env=prod

I do not see my articles on the home page in the Moroccan language while the fr they are clearly visible

I duplicate the content of my xliff in FR by changing to .ma.xliff, and I change its content FR to MA to keep the same slug etc

but when I want to access a page like "comment รงa marche?" I get an error: comment-ca-marche page not found.

cocolabssas commented 4 years ago

Hi @gonzasylv,

The content you are talking about is related to database content. You need to translate your listings and users to MA and do the same for your pages in admin.

gonzasylv commented 4 years ago

I did not understand, how to do precisely ?

cocolabssas commented 4 years ago

Go to your admin app : http://your-domain.com/admin menu Site > page

gonzasylv commented 4 years ago

Thanks :)