# maca DownList translations

- **Default language:** English (strings in PHP/JS source code).
- **Included locales:** Swedish, Danish, Norwegian (Bokmål), Finnish, German, French, Spanish.
- WordPress loads the matching `.mo` file automatically from the site language (**Settings → General**).
- If the site language is not in this list, English is used.

## Compile `.mo` files (required for translations to appear)

```bash
# WP-CLI (recommended)
wp i18n make-mo languages/
wp i18n make-json languages/ --no-purge

# Or gettext msgfmt (each file)
msgfmt -o languages/smartfiles-sv_SE.mo languages/smartfiles-sv_SE.po
```

On Windows, from the project root:

```powershell
.\compile-languages.ps1
```

## Locale files

| File | Language |
|------|----------|
| `smartfiles-sv_SE.po` | Swedish |
| `smartfiles-da_DK.po` | Danish |
| `smartfiles-nb_NO.po` | Norwegian (Bokmål) |
| `smartfiles-fi_FI.po` | Finnish |
| `smartfiles-de_DE.po` | German |
| `smartfiles-fr_FR.po` | French |
| `smartfiles-es_ES.po` | Spanish |
