panelalpha / PanelAlpha-Translations

Translations for Client Area and Email Templates in PanelAlpha
https://www.panelalpha.com/documentation/getting-started/translations/
MIT License
2 stars 3 forks source link

PanelAlpha Logo

Gain Advantage With Full WordPress Automation


PanelAlpha Translations

Welcome to the PanelAlpha Translations repository! This repository contains translation files for PanelAlpha in multiple languages. Each language has its own directory with translation files organized by category.

[!NOTE] This repository was created with the help of automated tools, specifically DeepL. As a result, some translations may contain inaccuracies.

[!NOTE] We encourage you to contribute improvements or corrections to ensure the best quality.

Available Translations

The following languages are currently available:

Directory Structure

Each language directory contains the following structure:

<lang>
|
├── clientarea       # translation files related to the client area of PanelAlpha
├── email-templates  # translation files for email templates and notifications
└── README.md

Installation

Automatic

To automatically install and use these translations with PanelAlpha, follow these steps:

  1. Download the script to /opt/panelalpha:

    curl -sL -o /opt/panelalpha/sync-translations.sh https://raw.githubusercontent.com/panelalpha/PanelAlpha-Translations/refs/heads/main/scripts/sync-translations.sh
  2. Run the script with the desired language:

    bash /opt/panelalpha/sync-translations.sh --lang "{language_code}"

Manual

To install and use these translations with PanelAlpha, follow these general steps:

  1. Download the Translation Files:

    • Download the language files for your desired language from the repository.
  2. Copy Files to the Server:

    • Copy the translation files to your server's language directory.
  3. Set Appropriate Permissions:

    • Ensure the correct permissions are set for the translation files. Run the following command:
      chmod -R 755 /opt/panelalpha/app/packages/api/resources/lang/<language_code>
  4. Synchronize Notifications:

    • Execute the following command to sync notifications with the new translations:
      docker compose -f /opt/panelalpha/app/docker-compose.yml exec -T api php artisan notifications:sync
  5. Configure the Client Area Language:

    • Administrator Settings:
      The administrator can set the default language for the client area in the PanelAlpha admin interface. Go to Configuration → General → Client Area → Default Language. The selected language here will be the default for all clients.

    • Client Preferences:
      Clients can set their own language preferences and select a language when accessing the client area using the dropdown menu.

    • Account Details:
      In the client area, clients can also change the language via their account details. Navigate to Account Details → Personal Information → Language and choose the preferred language from the dropdown menu.

Additional Information

Contributing

If you'd like to contribute translations or updates to existing translations, please follow these steps:

  1. Fork the repository.
  2. Make your changes in a separate branch.
  3. Submit a pull request with a clear description of the changes made.

License

This repository is licensed under the MIT License.