# Translations

Translation template: **popup-studio.pot** (generate with one of the methods below).

## 1. Generate .pot with WP-CLI (recommended)

Install [WP-CLI](https://wp-cli.org/) if needed, then run from your **WordPress root** (where `wp-config.php` is):

```bash
wp i18n make-pot wp-content/plugins/popup-studio wp-content/plugins/popup-studio/languages/popup-studio.pot --domain=popup-studio
```

Or from the **plugin directory**:

```bash
cd /path/to/wordpress/wp-content/plugins/popup-studio
wp i18n make-pot . languages/popup-studio.pot --domain=popup-studio
```

## 2. Generate .pot with Poedit

1. Install [Poedit](https://poedit.net/).
2. **File → New from POT/PO file** or **New translation**.
3. Set **Source path** to the plugin root (so it scans all PHP files).
4. Set **Text domain** to `popup-studio`.
5. Poedit will extract strings and you can save as `popup-studio.pot` in the `languages` folder.

Alternatively: **Catalog → Update from source**, then **Save as** `.pot`.

## 3. After generating

- Commit **popup-studio.pot** so translators (and [translate.wordpress.org](https://translate.wordpress.org)) can use it.
- Translators create **popup-studio-{locale}.po** (e.g. `popup-studio-hi_IN.po`) and compile to **.mo** in the same folder.
