User Tools

Site Tools


en:autotranslation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:autotranslation [2025/06/06 08:25] – [7. Configure the Script - The ChatGPT instructions] juras17en:autotranslation [2025/06/07 09:58] (current) – [Chmod the targen directory and subpages] juras17
Line 1: Line 1:
-====== How to translate Wiki ======+====== How to Translate the Wiki ======
  
 The original Wiki version is written in the English language and the Czech version is the result of the automatic translation using Open AI. The original Wiki version is written in the English language and the Czech version is the result of the automatic translation using Open AI.
Line 7: Line 7:
 Reproduce steps carefuly. Reproduce steps carefuly.
  
-==== 1. Install Python ====+==== Install Python ====
  
-There is lot of tutorials about how to install the Python, try to find one - it's not difficult.+There is lot of tutorials about how to install the Python, try to find one - it's not difficult. The Python version shall be about 3.7 and higer. Don't forget to install libraries - which one ou will know if you try to execute the script. Paste the error to ChatGPT if you will don't know wha to do.
  
-==== 2. Get access to Wiki folder ====+==== Get access to Wiki folder ====
  
 On Arkhalia server there is a folder with the main PHP webpage: On Arkhalia server there is a folder with the main PHP webpage:
Line 27: Line 27:
 You need the "sh" user access to make changes in that folder (ask Shadow). You need the "sh" user access to make changes in that folder (ask Shadow).
  
-==== 3. Locate the wiki pages folders ====+==== Locate the wiki pages folders ====
  
 All the pages written in Wiki are placed in this folder: All the pages written in Wiki are placed in this folder:
Line 40: Line 40:
 You can see that it contains everything which is visible in the "site-map". You can see that it contains everything which is visible in the "site-map".
  
-==== 4. Backup the old "cs" folder ====+==== Backup the old "cs" folder ====
  
 Rename the old "cs" article folder: Rename the old "cs" article folder:
Line 49: Line 49:
  
  
-==== 5. Configure the Script - The Api key ====+==== Configure the Script - The Api key ====
  
 The Python script for translation is present here: The Python script for translation is present here:
Line 70: Line 70:
 We have to add there billing method, or you can write me (Jurass17) and I will provide mine. One translation of the Wiki cost approx. <1 dollar.  We have to add there billing method, or you can write me (Jurass17) and I will provide mine. One translation of the Wiki cost approx. <1 dollar. 
  
-==== 6. Configure the Script - The input and output folder ====+==== Configure the Script - The input and output folder ====
  
 As you can see in script: As you can see in script:
Line 81: Line 81:
 This paths shall be pointing directly to the folders where the input "en" directory and the output "cs" directory (where all the articles will be translated are present) This paths shall be pointing directly to the folders where the input "en" directory and the output "cs" directory (where all the articles will be translated are present)
  
-==== 7. Configure the Script - The ChatGPT instructions ====+==== Configure the Script - The ChatGPT instructions ====
  
 The last thing which need revisioon are instructions for ChatGPT: The last thing which need revisioon are instructions for ChatGPT:
Line 113: Line 113:
  
  
-==== 7. Execute the script ====+==== Execute the script ====
  
 Then finally, you can execute the script running something like: Then finally, you can execute the script running something like:
Line 122: Line 122:
  
 You shall see the pages are created in the target directory. It takes several minutes. You shall see the pages are created in the target directory. It takes several minutes.
-==== 8. Chmod the targen directory and subpages ====+==== Chmod the target directory and subpages ====
  
 Then you need to move the new "cs" directory to the "wiki/data/pages" directory and ensure, that they have proper rights so wiki can access them. As user "sh" execute: Then you need to move the new "cs" directory to the "wiki/data/pages" directory and ensure, that they have proper rights so wiki can access them. As user "sh" execute:
Line 131: Line 131:
  
  
-==== 9. Change the sidebar ====+==== Change the sidebar ====
  
 One last thing, in the new czech version sidebar, you have to manually change the link to the english version of the Wiki as follow: One last thing, in the new czech version sidebar, you have to manually change the link to the english version of the Wiki as follow:
en/autotranslation.1749198326.txt.gz · Last modified: 2025/06/06 08:25 by juras17