How to Use Mirror Sites to Create a Multilingual Typecho Site
While attempting to use Typecho to create a bilingual blog, I encountered a problem: I wanted the blog to support both Chinese and English languages. However, after some searching, I couldn't find a method to directly implement this function. Therefore, I learned PHP on the fly and tried using the mirror site mode. The blog site is a Chinese site, and the enblog site is an English site. Users can switch between them in the sidebar. This is a crude method, but it's a convenient one for someone like me who isn't very technically proficient. I'm sharing my code here in the hope that it will inspire others to further optimize it.
Here is the original Sidebar.php, used for the Default template.
这是现在的Sidebar.php
Original link:http://enblog.fuyiran.link/Technology/5.html
Copyright: All posts on this blog, unless otherwise stated, are published using theCC BY-NC-SA 4.0 license agreement. Please indicate the source for reprinting Fu Speaking (enblog.fuyiran.link)
I 'do something' on the fly,这个表示的意思是说不经过太多准备(即兴处理)的情况下,迅速地(飞快地)完成了某一个事情。
文章没有什么语病错误,就是意思和中文有偏差。
Thanks for the advice