1 | Web-based translation system WoWpreklad
|
---|
2 | =======================================
|
---|
3 |
|
---|
4 | 1) Information about version and source code location:
|
---|
5 |
|
---|
6 | Source code repository: https://app.zdechov.net/wowpreklad
|
---|
7 | Change history: https://app.zdechov.net/wowpreklad/log/
|
---|
8 | License: GNU/GPLv3
|
---|
9 | Authors: Chronos (robie@centrum.cz), Maron (maron2@centrum.cz)
|
---|
10 | Supported software: PHP 8.1
|
---|
11 |
|
---|
12 | 2) Base configuration
|
---|
13 |
|
---|
14 | For initial web setup there is a necessary to copy config.sample.php file to
|
---|
15 | config.php inside directory includes and modify contained settings accrording
|
---|
16 | own needs.
|
---|
17 |
|
---|
18 | 3) Banners display
|
---|
19 |
|
---|
20 | In subdirectory "banners" is used file .htaccess for setting php script execution
|
---|
21 | for image generation and referred address recording.
|
---|
22 | In apache server configuration in file httpd.conf is necessary to set for the
|
---|
23 | directory:
|
---|
24 |
|
---|
25 | <Directory "/var/www/html/wowpreklad/banners/">
|
---|
26 | Allowoverride All
|
---|
27 | </Directory>
|
---|
28 |
|
---|
29 | In the same time it is necessary to have enabled apache module rewrite.
|
---|
30 |
|
---|
31 |
|
---|
32 | 4) Write permissions
|
---|
33 |
|
---|
34 | Write permission for directory "tmp" needs to be set. In this directory
|
---|
35 | temporary files like generated exports are stored.
|
---|
36 |
|
---|
37 |
|
---|
38 | 5) Database initialization
|
---|
39 |
|
---|
40 | Create database in your MySQL server and set login data to file includes/config.php.
|
---|
41 | Continue with database installation on page "admin/install.php".
|
---|
42 |
|
---|
43 |
|
---|
44 | 6) Text import
|
---|
45 |
|
---|
46 | Source files for import are located at directory "source". Here are then placed
|
---|
47 | subdirectories named by single individual game versions. In these subdirectories
|
---|
48 | are also subdirectories dbc, sql a lua from import is taken.
|
---|
49 |
|
---|
50 |
|
---|
51 | 7) Background script for export
|
---|
52 |
|
---|
53 | At system start there is a need to start script Modules/Export/ProcessTask.php
|
---|
54 | for processing long lasting export tasks.
|
---|
55 | Process have to be executed under same user as web server (apache),
|
---|
56 | because of correct permission setting during file creation in directory
|
---|
57 | tmp and because of security.
|
---|
58 |
|
---|
59 |
|
---|
60 | 8) AoWoW download
|
---|
61 |
|
---|
62 | Download AoWoW from repository https://svn.zdechov.net/wowpreklad/aowow
|
---|
63 | as subdirectory to directory of wowpreklad. Process according instructions in
|
---|
64 | file ReadMe.txt at the same directory.
|
---|
65 |
|
---|
66 |
|
---|
67 | 9) AoWoW background script
|
---|
68 |
|
---|
69 | Set periodic run of script for translation synchronization to AoWoW system.
|
---|
70 | Every night let run script Modules/Export/ProcessAoWoWExport.php.
|
---|
71 |
|
---|
72 | Create executable scrip /etc/cron.daily/wowpreklad_aowow_export.sh
|
---|
73 | #!/bin/sh
|
---|
74 | cd /var/www/html/wowprekladu/export/
|
---|
75 | php process_aowow_export.php
|
---|
76 |
|
---|
77 |
|
---|