# Language Files for Store Analytics Lite for WooCommerce

This directory contains the language files for the Store Analytics Lite for WooCommerce plugin.

## Files

- `store-analytics-woo-lite.pot` - The template file containing all translatable strings
- `README.md` - This file

## How to Translate

### 1. Get the POT file
The `store-analytics-woo-lite.pot` file contains all the translatable strings from the plugin.

### 2. Create a PO file for your language
Copy the POT file and rename it to match your language code:
- For Spanish: `store-analytics-woo-lite-es_ES.po`
- For French: `store-analytics-woo-lite-fr_FR.po`
- For German: `store-analytics-woo-lite-de_DE.po`
- For Italian: `store-analytics-woo-lite-it_IT.po`
- For Portuguese: `store-analytics-woo-lite-pt_PT.po`
- For Russian: `store-analytics-woo-lite-ru_RU.po`
- For Japanese: `store-analytics-woo-lite-ja.po`
- For Chinese: `store-analytics-woo-lite-zh_CN.po`

### 3. Edit the PO file
Open the PO file in a text editor or use a translation tool like:
- Poedit (https://poedit.net/)
- Loco Translate (WordPress plugin)
- WP-CLI

### 4. Translate the strings
For each `msgid` (English text), provide the translation in the corresponding `msgstr` field.

### 5. Generate the MO file
After translating, generate the compiled MO file. Most translation tools do this automatically.

### 6. Test your translation
Upload both the PO and MO files to the `/languages/` directory of the plugin and test.

## Language Codes

Use the standard WordPress language codes:
- `es_ES` for Spanish (Spain)
- `es_MX` for Spanish (Mexico)
- `fr_FR` for French (France)
- `de_DE` for German (Germany)
- `it_IT` for Italian (Italy)
- `pt_PT` for Portuguese (Portugal)
- `pt_BR` for Portuguese (Brazil)
- `ru_RU` for Russian
- `ja` for Japanese
- `zh_CN` for Chinese (Simplified)
- `zh_TW` for Chinese (Traditional)

## Contributing Translations

If you've created a translation, please consider sharing it with the community by:
1. Submitting it to the WordPress.org translation project
2. Contacting the plugin author at https://auscomp.com

## Notes

- The plugin uses the text domain: `store-analytics-woo-lite`
- All strings are properly internationalized using WordPress functions
- Some strings contain placeholders (like `%s`) - keep these in your translation
- The plugin automatically loads the appropriate language file based on the user's WordPress language setting

## Support

For translation support or questions, please visit:
https://auscomp.com

