Skip to content

Tests: a fixture language pack and loader tests #510

Open

Description

@caseysoftware

CAppUITest::testTranslate (around L131) switches to es and expects Proyectos, so it fails once Spanish leaves core.

  • Add a small fixture pack under unit_tests/fixtures/locales/xx/ and point the test at it (make the locales root configurable for tests).
  • Add loader tests: a valid pack; a bad locale.ini (left off the list); an old-format pack (lang.php, no locale.ini: not loaded, reported); a .php file in a pack (never included); a missing language falling back to English (Fall back to English when the user's or host language isn't installed #501).
  • UpgradeManagerTest expects getLanguageDir() to be locales/en; keep it.

Part of #496.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions