HolismHolding / Issues

1 stars 0 forks source link

Management of multilingualism in the super admin dashboard #89

Closed 20Amir01 closed 7 months ago

20Amir01 commented 7 months ago

How should I manage multilingualism? Do I have to write separate content for each language? Does changing the language of the dashboard make the content separate from each other? For example, I am currently writing the content of my site in English, but the dashoboard language is Farsi, and when I change the language, the contents are deleted and changed!

Nefcanto commented 7 months ago

This is our current state of multilingualism.

  1. Some entity types are not internationalized. This means that if we change the language of the administration panel, we see the same data. Contacts modules is a good example of this part.
  2. Most entity types are internationalized, however. This means that if we change the language of the administration panel, we see data only related to that language. The blog post is a good example. This decision is made based on our experience creating many internationalized websites for our customers.
  3. If you want to work on Persian content of your website, you should switch your admin panel's language to Persain too. In general, you should change the language of the admin panel when you want to manage the content of that language.
  4. The structure won't change between languages. In other words, if a section has a title, and an image, that title and image would be there to be filled for all languages.
  5. We manage the current locale in our websites using URL path segment: /some-page & /en/some-page
  6. We manage the currentlocale in our administration panels using local storage.
20Amir01 commented 7 months ago

This is our current state of multilingualism.

  1. Some entity types are not internationalized. This means that if we change the language of the administration panel, we see the same data. Contacts modules is a good example of this part.
  2. Most entity types are internationalized, however. This means that if we change the language of the administration panel, we see data only related to that language. The blog post is a good example. This decision is made based on our experience creating many internationalized websites for our customers.
  3. If you want to work on Persian content of your website, you should switch your admin panel's language to Persain too. In general, you should change the language of the admin panel when you want to manage the content of that language.
  4. The structure won't change between languages. In other words, if a section has a title, and an image, that title and image would be there to be filled for all languages.
  5. We manage the current locale in our websites using URL path segment: /some-page & /en/some-page
  6. We manage the currentlocale in our administration panels using local storage.

Unfortunately, I was not aware of this when I started working :( The content of the website I am developing was supposed to be in English , and I wrote in English but the language of the dashboard was Persian. What should I do now ?

Nefcanto commented 7 months ago

@20Amir01, there are two options:

  1. You manually cut/paste content to the correct language
  2. Or the locale of those contents should be changed in the database via a query.

Please let me know your current project you're working on, so that I can do the second options.

20Amir01 commented 7 months ago

@20Amir01, there are two options:

  1. You manually cut/paste content to the correct language
  2. Or the locale of those contents should be changed in the database via a query.

Please let me know your current project you're working on, so that I can do the second options.

The admin page of my site is located on this domain : http://admin.tous.pydr.ir

Nefcanto commented 7 months ago

@20Amir01, sorry to answer late, this is done now. Please check on your side.

20Amir01 commented 7 months ago

Thanks

So from now on, I should pay attention to the language of the dashboard, right?

And that it is not possible to do something so that apart from sections, pages and layouts also remain after changing the language of the dashboard? Because after changing the language of the dashboard, only sections remain with empty values, and pages and layouts are deleted and must be created from scratch.

And I tested : on /some-page everything is good . on /fa/some-page everything is good . but on /en/some-page I got undefined errors .

Nefcanto commented 7 months ago

@20Amir01, creating vital pages and layouts is very easy. Also assigning sections to pages and layouts is very easy. Easy tasks are not worth expensive architectures built for them.

Right now you should create pages in English too, and reassign sections to those pages. Then publish and test, please.

20Amir01 commented 7 months ago

OK . So I will do it