BigCoke233 / adams

🍀 简洁而不失优雅的 Typecho 主题

Home Page:https://biji.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Will English version be provided?

KevinZonda opened this issue · comments

Will English version be provided?

I'm trying to translate -> https://github.com/KevinZonda/adams

Hi, Kevin! Thanks for your issue.
It has been a long time since the last update because I'm working on another theme called Miracles and preparing for an important exam. So I have little time to develop Adams. Besides, I haven't completed the Multi-language function of Miracles. I'm glad to see someone working on the English edition of Adams, I would put your repo link in the REAME.md so that the users who speak English can see and use it.
Maybe, in the future, I would make a built-in English version.
And thanks again!

SGTM, thanks a lot

@BigCoke233 Hey, bro. I'm trapped in a problem. (I'm not a web developers, so my web skill is poor. QwQ)
I try to translate the comment.php, but seems that date() function didn't work fine.

https://github.com/KevinZonda/adams/blob/d0c594ca7b050937e268c81417a719bf219e371b/comment.php#L31

image

I also tried patch var/Typecho/I18n.php of typecho, but it still not work.

image

"18 小时前" means "18 hours ago", so maybe it's because the DateDiff setting is turned on. There should be a similar setting in Typecho but I'm not sure where it is and how to turn it off.
But strange, this kind of time should be output by this function, $this->dateWord();. And it works well in the theme Miracles.
Sorry that I can't help.
But it seems that it's a bug of Typecho. If the set language is English, it should output English text instead of Chinese. Typecho official has introduced the Multi-language function in this document. If it's really a bug, you can create an issue to Typecho.

"18 小时前" means "18 hours ago", so maybe it's because the DateDiff setting is turned on. There should be a similar setting in Typecho but I'm not sure where it is and how to turn it off.
But strange, this kind of time should be output by this function, $this->dateWord();. And it works well in the theme Miracles.
Sorry that I can't help.
But it seems that it's a bug of Typecho. If the set language is English, it should output English text instead of Chinese. Typecho official has introduced the Multi-language function in this document. If it's really a bug, you can create an issue to Typecho.

Seems that does't work. I use stable branch, I will try dev branch later. Thanks a lot! :D