# NWS Product Filter - Translations

This directory contains translation files for the NWS Product Filter plugin.

## Available Languages

- **Slovak (sk_SK)** - Complete translation
- **Template (POT)** - Source template for new translations

## Files Structure

- `nws-filter.pot` - Template file containing all translatable strings
- `nws-filter-sk_SK.po` - Slovak translation source file (human-readable)
- `nws-filter-sk_SK.mo` - Slovak translation binary file (used by WordPress)

## Creating New Translations

1. **Generate POT file** (if strings changed):
   ```bash
   wp i18n make-pot wp-content/plugins/nws-filter wp-content/plugins/nws-filter/languages/nws-filter.pot --domain=nws-filter
   ```

2. **Create new translation** (replace 'es_ES' with your locale):
   ```bash
   cp nws-filter.pot nws-filter-es_ES.po
   ```

3. **Edit the PO file** to add translations:
   - Update header information (Language, Last-Translator, etc.)
   - Translate all `msgstr ""` entries

4. **Compile to MO file**:
   ```bash
   wp i18n make-mo nws-filter-es_ES.po
   ```

## Updating Existing Translations

1. **Update POT file** (when strings change):
   ```bash
   wp i18n update-po wp-content/plugins/nws-filter/languages/ wp-content/plugins/nws-filter/languages/nws-filter.pot
   ```

2. **Compile updated translations**:
   ```bash
   wp i18n make-mo wp-content/plugins/nws-filter/languages/
   ```

## Automatic Loading

WordPress will automatically load the appropriate translation file based on the site's locale setting. The plugin uses the text domain `nws-filter` and loads translations from this directory.

## Translation Status

- Slovak (sk_SK): ✅ Complete (24 strings translated)
- English (en_US): ✅ Default (source language)

## Contributing Translations

To contribute a new translation:

1. Create a PO file for your language using the POT template
2. Translate all strings
3. Test the translation in WordPress
4. Submit the PO file

For questions about translations, contact: info@neonus.sk
