HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.30
System: Linux iZj6c1151k3ad370bosnmsZ 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64
User: root (0)
PHP: 7.4.30
Disabled: NONE
Upload Files
File: /var/www/html/www.winghung.com/wp-content/plugins/upkyk-assistant-ai/languages/README.md
# Translating Upkyk Assistant AI

This directory contains translation files for the Upkyk Assistant AI plugin.

## How to Create Translations

### Using Poedit (Recommended)

1. Download and install [Poedit](https://poedit.net/) (available for Windows, macOS, and Linux).
2. Open Poedit and select "Create new translation" from the File menu.
3. Open the `upkyk-assistant-ai.pot` file from this directory.
4. Choose the language you want to translate to.
5. Translate each string by selecting it and entering your translation in the "Translation" field.
6. Save the file. Poedit will automatically create both `.po` (editable) and `.mo` (compiled) files.
7. Name your files according to this pattern:
   - For general translations: `upkyk-assistant-ai-{LANGUAGE_CODE}.po` and `upkyk-assistant-ai-{LANGUAGE_CODE}.mo`
   - For country-specific translations: `upkyk-assistant-ai-{LANGUAGE_CODE}_{COUNTRY_CODE}.po` and `upkyk-assistant-ai-{LANGUAGE_CODE}_{COUNTRY_CODE}.mo`
   
   Examples:
   - German: `upkyk-assistant-ai-de_DE.po` and `upkyk-assistant-ai-de_DE.mo`
   - French: `upkyk-assistant-ai-fr_FR.po` and `upkyk-assistant-ai-fr_FR.mo`
   - Spanish: `upkyk-assistant-ai-es_ES.po` and `upkyk-assistant-ai-es_ES.mo`

### Using WP-CLI

If you're familiar with command line tools, you can use WP-CLI:

1. Install [WP-CLI](https://wp-cli.org/).
2. Run `wp i18n make-pot /path/to/plugin /path/to/plugin/languages/upkyk-assistant-ai.pot` to update the POT file with all translatable strings.
3. Run `wp i18n make-mo /path/to/plugin/languages/` to compile PO files to MO files.

## Installing Translations

1. Place both the `.po` and `.mo` files in this `languages` directory.
2. WordPress will automatically use the appropriate translation based on your site's language setting.

## Testing Translations

1. Set your WordPress site language to the language you've translated to (in Settings > General).
2. Visit the Upkyk Assistant AI settings page to confirm your translations are working correctly.

If you have any issues with translations, please contact support at support@upkyk.com.