Giter VIP home page Giter VIP logo

Comments (6)

KevinZonda avatar KevinZonda commented on July 23, 2024

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

from adams.

BigCoke233 avatar BigCoke233 commented on July 23, 2024

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!

from adams.

KevinZonda avatar KevinZonda commented on July 23, 2024

SGTM, thanks a lot

from adams.

KevinZonda avatar KevinZonda commented on July 23, 2024

@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

from adams.

BigCoke233 avatar BigCoke233 commented on July 23, 2024

"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.

from adams.

KevinZonda avatar KevinZonda commented on July 23, 2024

"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

from adams.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.