# Translations for PassPass Events Plugin

This directory contains all translation files for the PassPass Events plugin.

## Files

- `passpass-events.pot` - Template file containing all translatable strings
- `passpass-events-fr_FR.po/.mo` - French translations
- `passpass-events-en_US.po/.mo` - English translations  
- `passpass-events-nl_NL.po/.mo` - Dutch translations

## Generating .mo Files

To compile .po files to .mo files (required for WordPress to load translations):

### Method 1: Using gettext tools (recommended)
```bash
msgfmt passpass-events-fr_FR.po -o passpass-events-fr_FR.mo
msgfmt passpass-events-en_US.po -o passpass-events-en_US.mo
msgfmt passpass-events-nl_NL.po -o passpass-events-nl_NL.mo
```

### Method 2: Using the provided PHP script
```bash
php ../compile-translations.php
```

### Method 3: WordPress will automatically load .po files if .mo files are not found

## Language Support

The plugin supports:
- **French (fr_FR)** - Français
- **English (en_US)** - English (default)
- **Dutch (nl_NL)** - Nederlands

Language detection is automatic based on browser settings, with manual override available in the admin settings.

## Adding New Translations

1. Copy the .pot file to a new .po file with the appropriate locale code
2. Translate all msgstr entries
3. Compile to .mo format using one of the methods above
4. Test the translation by setting your WordPress locale