justjavac / flarum-ext-simplified-chinese Goto Github PK
View Code? Open in Web Editor NEWFlarum Simplified Chinese Language / 简体中文语言包
License: Other
Flarum Simplified Chinese Language / 简体中文语言包
License: Other
reflar/gamification 这个插件似乎还没有汉化
https://docs.flarum.org/extend/update-b14.html#frontend-javascript
The moment library has been removed, and replaced by the dayjs library. The global moment can still be used for now, but is deprecated.
如题,请问,后台安装语言包,需要怎么操作~
谢谢
可以直接把locale下的yml,替换成英文版本下面yml
我已经替换,而且已经成功
已经替换的http://d.139.sh/3813267033/flarum-english.zip
如果能支持 Composer 的话,安装和更新都会很方便
zh不太规范,而且像 https://github.com/sijad/flarum-ext-recaptcha/blob/master/js/forum/dist/extension.js#L53 会调用 app.locale 选择语言。
如题
有计划什么时候适配吗?我可以帮忙的。
临时解决方法也没法用吧,除了安装的时候替换,缓存都不能乱删。。。
你有製作繁體版的計畫嗎?或是知道誰做了繁體版?
版本信息:
flarum为官方github最新版
中文插件也为github最新版
另外对composer不熟悉,可能存在操作不当的问题,希望能指出!
以下是我安装步骤:
git clone 至 vendor/flarum/ 下,执行```
composer require jsthon/flarum-ext-simplified-chinese
其他目录也尝试过,依旧报错。
报错:
[InvalidArgumentException]
Could not find package jsthon/flarum-ext-simplified-chinese at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability
require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-update] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--] [<packages>]...
然后整个网站都进不去就显示这个了。。。
beta6 十天前发布了。请考虑补充其翻译。
beta5 的版本通过 composer 安装仍然可用,但是部分区域出现缺失字符串的情况。
我在Hostinger空间部署Flarum Beta 4时,试图安装中文语言包。
可当我将文件上传到目录并启用插件的时候,发生了一个错误,返回如下:
PHP Fatal error:Call to undefined method Flarum\Event\ConfigureLocales::loadLanguagePackFrom() in $in /home/nitrous/code/public_html/extensions/flarum-ext-simplified-chinese/bootstrap.php on line 8
此时,我删除了上传的语言包插件,网站恢复访问。
由于是bootstarp.php引发的错误,我将英文插件的bootstarp覆盖了中文插件,发现可以正常使用。
不知道是不是引用的问题。
我不知道其中的原因,可否解答一下?
谢谢
Fatal error: Call to undefined method Flarum\Event\ConfigureLocales::loadLanguagePackFrom() in 根目录\extensions\flarum-ext-simplified-chinese\bootstrap.php on line 8
<?php
use Flarum\Event\ConfigureLocales;
use Illuminate\Contracts\Events\Dispatcher;
return function (Dispatcher $events) {
$events->listen(ConfigureLocales::class, function (ConfigureLocales $event) {
$event->loadLanguagePackFrom(__DIR__);
});
};
虽然英文log in和log out对应地翻译为 登入和登出 似乎很合适(?),但是大陆地区不这么翻译,也不符合多数简体用户的习惯(参考大陆网站及各网站简体中文版)。
建议使用“登录 - 退出”
单独开始simplified-chinese会出现core.forum.discussion_list.empty_text 这样的字样。
开启English 会显示英文。
版本v0.1.0-beta.4
Fatal error: Call to undefined method Flarum\Event\ConfigureLocales::loadLanguagePackFrom() in /alidata/private/ctbu/extensions/flarum-ext-simplified-chinese/bootstrap.php on line 8
下载下来 文件夹怎么命名呢?
flarum-chinses
还是不用改 直接解压flarum-ext-simplified-chinese-master
但是下来之后在后台安装这个扩展 失败 报错
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.