tteck / Proxmox

Proxmox VE Helper-Scripts
https://Helper-Scripts.com
MIT License
14.28k stars 2.33k forks source link

Heimdall Dashboard LXC only for English #1695

Closed Stoony1 closed 1 year ago

Stoony1 commented 1 year ago

A clear and concise description of the issue.

Heimdall Dashboard LXC only for English aviable language change not aviable. On the Original i can change it here in the LXC it is not work. Who is that problem?

If relevant, including screenshots or a code block can be helpful in clarifying the issue.

Screenshot 2023-08-15 212915

Please provide detailed steps to reproduce the issue.

Install Heimdall Dashboard from here "https://tteck.github.io/Proxmox/" via LXC "Heimdall Dashboard LXC". Now try Change the language. Thats not work.

tteck commented 1 year ago

Apologies, I'm not aware of any specific actions to take in this situation. The files are there:

root@heimdalldashboard:/opt/Heimdall/resources/lang# ls
br  cs  da  de  el  en  es  fi  fr  hu  it  jp  ko  lmo  nl  no  pl  pt  ru  sl  sv  tr  uk  zh  zh_TW
X-Anonymous-Y commented 1 year ago

Heimdall needs INTL PHP Extension maybe this is the problem

Stoony1 commented 1 year ago

Heimdall needs INTL PHP Extension maybe this is the problem

The Dashboard is running an all is funktionally. The only Problem is that i cant chance the language. PhP 8.2 is running.

Stoony1 commented 1 year ago

/opt/Heimdall/resources/lang# ls

All files are aviable Screenshot_1

tteck commented 1 year ago

I plan to label the instructions as English-only and close this matter, given that I haven't discovered a solution. If I do come across a solution later on, I will reconsider the English-only restriction.

tteck commented 1 year ago

Screenshot 2023-08-17 2 47 35 PM

SnakeEater96 commented 1 year ago

Die Parameter sollen bitte vor dem ersten Start von Heimdall in der .env bearbeitet werden da sonst Heimdall damit probleme hat im nachhinein per url aufgelöst zu werden (über Reverse Proxy)

  - DB_CONNECTION=mysql
  - DB_HOST=<IP ADDRESSE>
  - DB_PORT=<DB PORT>
  - DB_DATABASE=<DATABASE NAME>
  - DB_USERNAME=<DB USER>
  - DB_PASSWORD=<DB PASSWORT>
xaimes commented 11 months ago

The problem is in the addition of intl. You need to add php-intl to the installer and everything should work.

There is something like this in the Heimdall files:

        if (! class_exists('Locale')) {
            Log::info('PHP Extension Intl not found. Falling back to English language support only.');
            return json_encode(['en' => 'English']);
        }

A workaround for this problem is when selecting a language to examine the element and change the value en to e.g. pl in the select option and save.

image

@tteck I think the only thing to do is to add here https://github.com/tteck/Proxmox/blob/6b31484fffc896e5eabec06119da11deb39d02fd/install/heimdalldashboard-install.sh $STD apt-get install -y php-intl

Whereas I am not in a position to test it now.

tteck commented 11 months ago

It has been added.

tteck commented 11 months ago

Screenshot 2023-12-11 6 19 34 AM