PrestaShop / PrestaShop/docker

PS_COUNTRY list ?

Open
#383 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dockerfile
Stars
281
Forks
190
PR merge metrics
No merged PRs in 30d

Description

After having googled for a while I still can't figure out where I'm supposed to find country and language codes.

I've tried PS_LANGUAGE=fr and PS_COUNTRY=CH for switzerland but had this error :

lasticot_new      | PrestaShop\PrestaShop\Core\Localization\RTL\Exception\GenerationException: Cannot generate BO themes: "/var/www/html/admin-dev" is not a directory in /var/www/html/src/Core/Localization/RTL/Processor.php:178
lasticot_new      | Stack trace:
lasticot_new      | #0 /var/www/html/classes/Language.php(261): PrestaShop\PrestaShop\Core\Localization\RTL\Processor->process()
lasticot_new      | #1 /var/www/html/classes/Language.php(1164): LanguageCore->add(true, false, false)
lasticot_new      | #2 /var/www/html/classes/Language.php(1437): LanguageCore::checkAndAddLanguage('he', Array, false, Array)
lasticot_new      | #3 /var/www/html/src/PrestaShopBundle/Install/Install.php(657): LanguageCore::installFirstLanguagePack('he', Array, Array)
lasticot_new      | #4 /var/www/html/src/PrestaShopBundle/Install/Install.php(1212): PrestaShopBundle\Install\Install->PrestaShopBundle\Install\{closure}()
lasticot_new      | #5 /var/www/html/src/PrestaShopBundle/Install/Install.php(658): PrestaShopBundle\Install\Install->callWithUnityAutoincrement(Object(Closure))
lasticot_new      | #6 /var/www/html/src/PrestaShopBundle/Install/Install.php(460): PrestaShopBundle\Install\Install->installLanguages()
lasticot_new      | #7 /var/www/html/install/controllers/console/process.php(226): PrestaShopBundle\Install\Install->installDefaultData('PrestaShop', 'CH', 1, true)
lasticot_new      | #8 /var/www/html/install/controllers/console/process.php(152): InstallControllerConsoleProcess->processInstallDefaultData()
lasticot_new      | #9 /var/www/html/install/classes/controllerConsole.php(139): InstallControllerConsoleProcess->process()
lasticot_new      | #10 /var/www/html/install/index_cli.php(57): InstallControllerConsole::execute(17, Array)

If the list exists somewhere it would be nice to add a link in the documentation.

Thanks !

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Docker installation documentation page linked in the issue, then trace the PS_LANGUAGE and PS_COUNTRY handling through install/controllers/console/process.php and classes/Language.php. Done means the documentation links to an authoritative list of country and language codes and explains how to use them during installation.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, php
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.