panel icon indicating copy to clipboard operation
panel copied to clipboard

Localization of Client Area

Open tinyoverflow opened this issue 4 years ago • 14 comments

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. grafik

tinyoverflow avatar Oct 14 '20 11:10 tinyoverflow

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!

MathisDlb avatar Oct 14 '20 12:10 MathisDlb

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 avatar Oct 14 '20 12:10 schrej

@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.

tinyoverflow avatar Oct 14 '20 13:10 tinyoverflow

@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.

DaneEveritt avatar Oct 14 '20 15:10 DaneEveritt

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.

schrej avatar Oct 14 '20 15:10 schrej

@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.

Mechite avatar Feb 14 '21 02:02 Mechite

This is very good idea

wolfier74 avatar Feb 18 '21 20:02 wolfier74

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.

broimsuperman avatar Apr 07 '21 18:04 broimsuperman

Should be Nice i also would like multi language

finnie2006 avatar Apr 18 '21 16:04 finnie2006

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 avatar Feb 16 '24 09:02 Miniontoby

@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.

tinyoverflow avatar Feb 16 '24 15:02 tinyoverflow

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...

Miniontoby avatar Feb 16 '24 19:02 Miniontoby

Good to hear!

Later on the language could be saved im a cookie, so the login screen knows the preferred language.

tinyoverflow avatar Feb 17 '24 01:02 tinyoverflow

This would be a great feature to have!

1Ronkkeli avatar Feb 17 '24 07:02 1Ronkkeli