Jump to content

Adding language / changing language is not reflecting on the front-end


Recommended Posts

I have installed https://processwire.com/download/site-profiles/#multi-language-site-profile version dev (3.0.245) and running on nginx. I have tried adding new language with name oh, but that is pointing to default language in front-end. Also tried editing existing language German de to ar Arabic. But this time the url appends 'de' and not 'ar' in the url. If we go to the About edit page , now we can see the "Oh" have no name appended. I have deleted sites/cache folder, but not reflecting the front-end . How to fix this ?

image.thumb.png.c577f58fb1be28acbe6ffc29a0f5d3ac.png

image.png.65a6f6b54ac38620e2cb8162e3e2ce4a.png

Link to comment
Share on other sites

image.thumb.png.114ca742facd210562c4376d7bccd438.png

Finally I fixed this manually checking the database. Some how the name* is not updating when we change name from the Setup > Languages.

And the name1022 was null, so added ar to it and everything is showing up. I wonder this is a bug @Rayan

Link to comment
Share on other sites

The name of the language does not automatically apply as a url segment for the homepage (otherwise you would have /default/about instead of /en/about).

For this you have to edit the name of the root page, which is actually what you did in the database directly.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...