laravel-china / laravel-docs Goto Github PK
View Code? Open in Web Editor NEWLaravel 中文文档
Home Page: https://d.laravel-china.org
License: MIT License
Laravel 中文文档
Home Page: https://d.laravel-china.org
License: MIT License
发现5.3及以上版本的翻译文档对比原文,在扩展包开发章节缺少了“命令”,对应原文为Package Development章节的Commands。
commit 6e88811 这个提交,给所有的文章标题添加了 “Laravel 的……” 前缀。
我觉得这个提交,对文档网页的浏览是徒增麻烦。具体看下图。当标签页稍有缩短,标题显示不全时,新的标题造成各个标签页不能区分:
另外,标签页上边的 favicon 已经起到了前缀的作用(毕竟 Laravel 图标我们都认识)。再添加文字前缀,意义重复,画蛇添足。
麻烦 @JokerLinly 审阅并考虑一下这个问题。
blade一文中
上图代码中的文字翻译了一半
上图部分则没有翻译
是否有必要统一翻译此处文字?
Blade
https://doc.laravel-china.org/docs/5.2/eloquent-collections
Eloquent ORM 目录下的, “模型广联”应为“模型关联”
首先感谢各位大大的辛苦翻译,致敬!
因为我本人对中文文档不是很感兴趣,加之时间也没调开,所以没有参与过此项目的工作,很抱歉。
请问是否可以把整个翻译文档转载到我的网站?除了部分官网链接(比如 laravel.com/api )会被重定向到我的网站相应链接外,其他内容会原封不动的转载。
之前写过一个 Laravel 官网镜像脚本 (https://laravel-china.org/topics/5970) ,在自己的测试服务器上部署了一个演示站点 (https://laravel.0x123.com) ,这个网站目前在小范围内使用。有小伙伴希望我把这个中文文档也加上,匹配官网的样式。所以我来问下是否可以转载,谢谢。
Frontend Quickstart
关键步骤根本没翻译过来,看中文的文档是无法正常操作成功的
在 https://d.laravel-china.org/docs/5.5 中搜索内容,无论输入什么关键词,都没结果,不只是algolia的问题,还是别的。
附一个搜索请求包,这里我搜的是:[路由]:
curl 'https://fu55rwgndn-dsn.algolia.net/1/indexes/docs/query?x-algolia-api-key=c41c5de31ca55044dbb0bde815d35121&x-algolia-application-id=FU55RWGNDN&x-algolia-agent=Algolia%20for%20vanilla%20JavaScript%203.7.7' -H 'Pragma: no-cache' -H 'Origin: https://d.laravel-china.org' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: zh-CN,zh;q=0.8,en;q=0.6,zh-TW;q=0.4,fr;q=0.2,la;q=0.2,co;q=0.2,de;q=0.2,nb;q=0.2' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36' -H 'content-type: application/x-www-form-urlencoded' -H 'accept: application/json' -H 'Cache-Control: no-cache' -H 'Referer: https://d.laravel-china.org/docs/5.5' -H 'Connection: keep-alive' --data '{"params":"query=%E8%B7%AF%E7%94%B1&hitsPerPage=5&tagFilters=%5B%225.5%22%5D"}' --compressed
错误文档连接: https://laravel-china.org/docs/5.2/testing#model-factories
原文:
The create method not only creates the model instances, but also saves them to the database using Eloquent's save method
现在错误的翻译:
你不仅可使用 create 方法来创建模型实例,而且也可以使用 Eloquent 的 save 方法来将它们保存至数据库
正确的翻译应当为:
create 方法不仅会创建模型实例, 同时也会将模型实例(通过调用 Eloquent 的 save 方法)保存至数据库.
我已经修复, 并且创建了pull request:
修复一处翻译错误. #85
如题
Chrome 和 IE 都不行,搜索完页面没显示东西,5.4 可以搜索
有时候你仅想在下一个请求之前在 Session 中存入数据,你可以使用 flash 方法。使用这个方法保存在 session 中的数据,只会保留到下个 HTTP 请求到来之前,然后就会被删除。
原文:
Sometimes you may wish to store items in the session only for the next request. You may do so using the flash method. Data stored in the session using this method will only be available during the subsequent HTTP request, and then will be deleted.
这里正确的翻译:
有时候你仅想在 Session 中存入数据用于第二次请求,你可以使用 flash 方法。使用这个方法保存在 session 中的数据,仅会保留到下次 HTTP 请求期内有效,然后就会被删除。
查前面几个版本,问题同样存在。
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.