# Editing Translations and Modifying Text

By default, the website is localized in English and Russian. The primary language of the site is English. You can find the language settings in the site management panel under "**Settings**" → "**Language Settings**."

<figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-46c393baf8582bd18b6dc77b33fff719edd1c5e7%2Fimage%20(1153)_eng.png?alt=media" alt=""><figcaption></figcaption></figure>

In the site management panel, you will see the following tabs:

<figure><img src="https://github.com/armydrawer/premium-translate/blob/main/en/.gitbook/assets/Screenshot_47_eng.png" alt=""><figcaption></figcaption></figure>

By switching between the tabs, you can add text for the Russian and English versions of the site accordingly. This way, you can edit or add the main content.

Some of the site's content is in English, as it is the primary language and is directly embedded in the site's code. The corresponding content in Russian is stored in special language files. To edit the content in the site's code, you need to:

1. Using an FTP client or the built-in file manager on your hosting, download the folder `wp-content/plugins/premiumbox/` to your computer.
2. Download the [Poedit](https://poedit.net/download) program, install it, and launch it.
3. In Poedit, open the file `pn-ru_RU.po`, which is located in the downloaded folder `wp-content/plugins/premiumbox/languages/`.

<figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-8b563434b12045582eb82479348de8cbd078e917%2FScreenshot_48_eng.png?alt=media" alt=""><figcaption></figcaption></figure>

4. In Poedit, click the "**Update**" button.

<figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-77b4e175657900054f481319cdb8b0a736f1cd3e%2FScreenshot_49_eng.png?alt=media" alt=""><figcaption></figcaption></figure>

5. On the left side of the program, you will find the original text in English, and on the right side, the translation in Russian. Use the search function ("**Edit**" → "**Find**" or **CTRL+F**) to locate the desired text in either English or Russian. Replace the necessary translation text with your own (do not edit the original text <mark style="color:red;">!).</mark>

Click the "**Save**" button after finishing your edits.

<figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-6634020a6e4b428e07b5d4c7908c952dd618f4aa%2Fimage%20(1430)_eng.png?alt=media" alt=""><figcaption></figcaption></figure>

6. Using an FTP client or the built-in file manager, upload the `wp-content/plugins/premiumbox/` folder from your computer back to the hosting (overwriting the files).
7. You need to perform similar actions for other files:

* To edit the design translation — `wp-content/themes/exchanger/lang/`
* To edit the translation for the Premium Exchanger framework — `wp-content/plugins/premiumbox/premium/languages/`.

## Changing Text in English

<figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-93f4f64c31f40e228561cdbf3732c246cc91cfa1%2FScreenshot_50_eng.png?alt=media" alt=""><figcaption></figcaption></figure>

1. Right-click on the text you want to change. You will see links to the files and line numbers in the script files where this text appears.
2. Using the [Notepad++](https://notepad-plus-plus.org/downloads/) editor, open the specified files (UTF-8 encoding without BOM) on your computer.
3. Go to the specified line in the file and edit the text in English. The modified text should be provided **only in English**; other languages are not allowed. Save your changes.
4. Return to Poedit and click the "**Update**" button.
5. Use the search function to find the English text you just edited in the file.
6. Provide the Russian translation of the text in the designated field. Click the "**Save**" button.
7. Using an FTP client or the built-in file manager, upload the `wp-content/plugins/premiumbox/` folder from your computer back to the hosting (overwriting the files).
