Skip to content

Document the language pack format in locales/README.md #508

Open

Description

@caseysoftware

Write the contract a pack must meet, which also becomes the source of every locale-<code> README:

  • Folder naming and where packs go (locales/<code>/)
  • locale.ini keys and the validation rules (Load language packs from locale.ini instead of lang.php and locales.php #505)
  • The .inc grammar w2p_Utilities_Translations::parse() accepts (strings, =>, commas and comments only) and the file names (one per module, named after the module, plus common.inc)
  • English is the source of keys; untranslated strings show in English (with the locale_alert marker if it's on)
  • How to install a pack (git clone or release zip) and how to contribute translations back

Part of #496.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions