Comments (6)
曾经也遇见过同样的问题。
arcanist 的确是本地客户端, 但是arc diff的提交模版是来自于 服务端的Phabricator
请参考 arcanist 的 ArcanistWorkflow, 它是通过 'differential.getcommitmessage' api 获取的模版内容。
所以才会导致这个lz说的这个问题。
from phabricator_zh_hans.
将 dist/PhabricatorSimplifiedChineseTranslation.php 文件拷贝到 Phabricator 项目的 phabricator/src/extensions 目录中即可。
汉化未涉及 arcanist。只是针对 phabricator 进行的。不知道您是把汉化文件拷贝到哪里了导致 arcanist 也被汉化了?
from phabricator_zh_hans.
@arielyang 我如果在phabricator上选择中文,arcanist也会出现中文,比如在arc diff审核单,选择英文的时候这些也会变成英文, 难道arcanist也会拉phabricator的字典?
from phabricator_zh_hans.
arcanist 您操作是在本地做的吧,Phabricator 应该是跑在服务端,所以汉化应该在服务端发生的?为什么本地会变成中文?
from phabricator_zh_hans.
曾经也遇见过同样的问题。
arcanist 的确是本地客户端, 但是arc diff的提交模版是来自于 服务端的Phabricator
请参考 arcanist 的 ArcanistWorkflow, 它是通过 'differential.getcommitmessage' api 获取的模版内容。
所以才会导致这个lz说的这个问题。
谢谢指出问题。
- 最简单的办法:注释掉翻译文件
PhabricatorSimplifiedChineseTranslation.php
中包含Differential Revision
的这一行。遗留的问题是其他地方的 Differential Revision 就不再被翻译了。 - 修改源代码的办法:找到文件
phabricator/src/applications/differential/field/DifferentialRevisionIDCommitMessageField.php
,在文件中找到:
public function getFieldName() {
return pht('Differential Revision');
}
修改为:
public function getFieldName() {
return 'Differential Revision';
}
此处的 Differential Revision 不再被翻译,但每次升级的时候需要重新修改。
from phabricator_zh_hans.
已经临时去掉了 Differential Revision 的翻译。后续给官方提一个 commit 来 fix 这个 bug。
from phabricator_zh_hans.
Related Issues (15)
- 用中文后日历打不开、仪表板无法新建!
- 出现错误!没有跑起来 HOT 1
- hi,我遇到了由于把AM,PM翻译为上午,下午,在首页搜索的地方报错 HOT 1
- 出现Error: spawnSync /bin/sh ENOENT 的错误 HOT 4
- Unexpected output: 404: Not Found HOT 1
- 群二维码过期啦 HOT 3
- 提取带有量词“一”的判断写反了
- 微信群二维码过期了 HOT 1
- Docker 镜像bitnami/phabricator适用吗? HOT 6
- Phabricator 修改默认语言的方法 HOT 4
- 搜索功能异常 HOT 2
- 使用插件后 日历App 打不开 HOT 1
- translate words issues
- 微信群二维码过期了,请问还会更新吗?想进去交流下 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phabricator_zh_hans.