Open tinyoverflow opened 4 years ago
Hi, this is a very good idea, I also have some users who are quite young and who don't understand very well, I would like to be able to translate it into French and that my English customers can also understand via the settings in the profile. Let's hope it will come true!
Localization was available previously, but got removed with the 1.0 frontend to reduce complexity. I'm very much in favor of bringing it back, even though it is very high maintenance.
Let's use this issue to track bringing it back to 1.0. There is another issue regarding per-user language selection, which I'll also keep open as that involves a little more work than just bringing localization back: #1106
@schrej Perfect, thanks!
It would be interesting to know if the Admin Panel is going to be replaced with a React version or if it will continue to be a Blade based website. To be hones, I see no reason to change it.
@schrej per-user languages are actually trivial with the i18n library for React that is implemented currently, it could be done at the same time (especially since I already track languages on the user accounts themselves). Probably best to roll that issue into this one.
With the "more work" part I was referring to storing the language in the user account. If that's already there I guess the other issue can be closed in favour of this one as it really is trivial then.
@tinyoverflow As you asked I want to input my opinion about the administration panel.
I actually believe it should not only be replaced with a React site matching the main site, but actually redesigned in some areas. For example, the save button for startup parameters doesn't make sense considering other factors.
Also, I'd really enjoy if it had a left sided nav menu still as given the large menu list it wouldn't be smooth to use. I'd really enjoy a non-static panel experience everywhere as it makes it super enjoyable to use and with the current layout of the main area I have found 1.X to be the thing that made Pterodactyl the ONLY option for me and stepped on another level of usability.
I'd post mockups of a design I see fit later down the line.
This is very good idea
Maybe instead of actually changing many any files, you could make a preferences drop down menu, and it read the available translations from a json file. You could also try to implement things like google translate, or another API. There are more simple ideas, I'll look into this later.
Should be Nice i also would like multi language
Hi!
I started working on adding translations to the login screen. I am able to dedicate my time into making everything of the client area translatable!
Please let me know if supporting translations is still wanted.
@Miniontoby Awesome! I suggest doing a small part first and draft-PR that to demonstrate your implementation. This way you can get feedback early on and you minimize the risk of investing a lot of work with the risk of not being merged because it doesn't fit somehow.
Sounds great!
I will firstly do the authentication screen (yes I know you cannot request the user's language then, so you will have to use browser setting for this one)
and I will do the dashboard (the main page + the user profile page only).
For the 'allowing the client to select their language' -> At the moment only the admin's can change it... idk if there was a reason for this, but yeah, I guess I will make it possible for the user to select their own language...
Good to hear!
Later on the language could be saved im a cookie, so the login screen knows the preferred language.
This would be a great feature to have!
Is your feature request related to a problem? Please describe. The panel is only available in english. Some people, especially younger kids, may not properly understand it and therefore need help managing their server.
Describe the solution you'd like As an adminstrator, I would like to be able to create / edit language files to show a customized version of the panel to my clients. As a client, I would like to be able to select my preferred language in the profile settings.
I'm a native german speaker and a long-time user of Pterodactyl, I may be able to help you translating. While I cannot help you integrating localization in the React part of the app, I can assist by updating the Admin Blade Templates to use translation files.
Describe alternatives you've considered Keeping everything in english, but that might not be very user friendly.
Additional context The drop down could be implemented in a new Personal Preferences pane in the profile settings.