# VoxFor Mega Menu - Translation Files

This directory contains translation files for the VoxFor Mega Menu plugin.

## Files Structure

- `voxfor-mega-menu.pot` - Translation template file containing all translatable strings
- Future language files will be added here (e.g., `voxfor-mega-menu-es_ES.po`, `voxfor-mega-menu-fr_FR.po`)

## Translation Workflow

### For Plugin Developers

1. **Update the POT file** when adding new translatable strings:
   ```bash
   wp i18n make-pot . languages/voxfor-mega-menu.pot
   ```

2. **Validate all text strings** are properly wrapped:
   - Use `__('Text', 'voxfor-mega-menu')` for simple strings
   - Use `_e('Text', 'voxfor-mega-menu')` for direct output
   - Use `_n()` for plural forms
   - Use `_x()` for context-specific translations

### For Translators

1. **Using Poedit (Recommended)**:
   - Download and install [Poedit](https://poedit.net/)
   - Open `voxfor-mega-menu.pot`
   - Create new translation for your language
   - Save as `voxfor-mega-menu-{locale}.po` (e.g., `voxfor-mega-menu-es_ES.po`)

2. **Manual Translation**:
   - Copy `voxfor-mega-menu.pot` to `voxfor-mega-menu-{locale}.po`
   - Edit the file and translate all `msgstr ""` values
   - Ensure proper header information

## Language Codes

Common WordPress language codes:
- Spanish (Spain): `es_ES`
- French (France): `fr_FR`
- German: `de_DE`
- Italian: `it_IT`
- Portuguese (Brazil): `pt_BR`
- Russian: `ru_RU`
- Japanese: `ja`
- Chinese (Simplified): `zh_CN`

## WordPress.org Translation

Once the plugin is approved on WordPress.org, translations can be managed through:
- [translate.wordpress.org](https://translate.wordpress.org/)
- Community-driven translation interface
- Automatic integration with WordPress updates

## Notes

- All text strings use the text domain: `voxfor-mega-menu`
- Translation files are loaded automatically by WordPress
- The plugin supports RTL languages
- Translations should maintain HTML tags and placeholders

## Testing Translations

1. Install your language pack in WordPress
2. Change WordPress language in Settings > General
3. Clear any caching plugins
4. Verify translations appear correctly in:
   - Admin dashboard
   - Menu builder interface
   - Frontend menu display
   - Error messages and notifications 