nomadjimbob / mikio

Customizable, Bootstrap 4 inspired template for Dokuwiki
GNU General Public License v2.0
22 stars 6 forks source link

Add Chinese language, fix the problem that some settings are invalid in Chinese language environment. #81

Open Little-Data opened 2 weeks ago

Little-Data commented 2 weeks ago

I translated the files in the "lang" folder and "conf" folder into Chinese.

The files in the "lang" folder work perfectly. The files in the "conf" folder invalidate some settings. After changing to English, it works fine.

The files in the "conf-zh-cn" folder are translated files, and when I put them in the "conf" folder to test it, the above problem occurs. I hope the "conf" folder supports multiple languages.

I submitted the file changes to PR

Please check.

nomadjimbob commented 1 week ago

Mikio currently does not support languages other than English for strings in the conf directory files as the code does direct comparisons of the string values.

I will need to add in the language keys for this and modify the code to instead compare the conf values against the language keys to confirm the setting values.

I will work on this when I get a chance