# Notification Bar - Translation Guide

This plugin is fully translatable using the WordPress translation system.

## Available Languages

- English (default)
- Dutch (Nederlands) - included

## How to Translate

### Using Loco Translate (recommended for non-developers)

1. Install the free "Loco Translate" plugin from the WordPress repository
2. Go to Loco Translate > Plugins
3. Select "Notification Bar"
4. Click "New language"
5. Choose your language and start translating

### Manual Translation (for developers)

1. Use the `.pot` file in the `/languages` folder as your template
2. Create a `.po` file for your language (e.g., `notification-bar-fr_FR.po` for French)
3. Translate all strings in the `.po` file
4. Compile the `.po` file to `.mo` using a tool like Poedit
5. Place both `.po` and `.mo` files in the `/languages` folder

## Text Domain

The text domain for this plugin is: `notification-bar`

## Translation Files Location

`/languages/notification-bar.pot` - Translation template
`/languages/notification-bar-nl_NL.po` - Dutch translation (example)
`/languages/notification-bar-nl_NL.mo` - Dutch translation compiled (needs to be generated)

## Contributing Translations

If you've translated this plugin to another language, feel free to share your translation files!

## Tools for Translation

- **Poedit** (https://poedit.net/) - Free desktop app for editing translation files
- **Loco Translate** (WordPress plugin) - In-browser translation editor
- **WP-CLI** (https://wp-cli.org/) - Command-line tools for WordPress

## Notes

- All translatable strings use WordPress i18n functions: `__()`, `_e()`, `esc_html__()`, `esc_html_e()`, `esc_attr__()`, `esc_attr_e()`
- The plugin will automatically load the correct translation based on your WordPress language setting
