Commit 722d53c5 authored by 神楽坂玲奈's avatar 神楽坂玲奈

私聊bug,翻译

parent c9b84c87
...@@ -112,7 +112,7 @@ Candy.View.Pane.Message. ...@@ -112,7 +112,7 @@ Candy.View.Pane.Message.
// Before we add the new message, check to see if we should be automatically scrolling or not. // Before we add the new message, check to see if we should be automatically scrolling or not.
let messagePane = Candy.View.Pane.Room.getPane(roomJid, '.message-pane'); let messagePane = Candy.View.Pane.Room.getPane(roomJid, '.message-pane');
let enableScroll; let enableScroll;
if (stanza.children('delay').length > 0) { if (stanza && stanza.children('delay').length > 0) {
enableScroll = true; enableScroll = true;
} else { } else {
enableScroll = enableScroll =
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<button i18n [disabled]="!appsService.allReady(app)" (click)="request_match('entertain')" type="button" class="btn btn-secondary btn-sm">娱乐匹配</button> <button i18n [disabled]="!appsService.allReady(app)" (click)="request_match('entertain')" type="button" class="btn btn-secondary btn-sm">娱乐匹配</button>
<button i18n [disabled]="!appsService.allReady(app)" type="button" class="btn btn-secondary btn-sm" data-toggle="modal" data-target="#game-list-modal">自定义游戏</button> <button i18n [disabled]="!appsService.allReady(app)" type="button" class="btn btn-secondary btn-sm" data-toggle="modal" data-target="#game-list-modal">自定义游戏</button>
<button i18n [disabled]="!appsService.allReady(app)" type="button" class="btn btn-secondary btn-sm" data-toggle="modal" data-target="#game-create-windbot">单人模式</button> <button i18n [disabled]="!appsService.allReady(app)" type="button" class="btn btn-secondary btn-sm" data-toggle="modal" data-target="#game-create-windbot">单人模式</button>
<button i18n [disabled]="!appsService.allReady(app)" type="button" class="btn btn-secondary btn-sm" data-toggle="modal" data-target="#game-replay-modal">观战录像</button> <button i18n [disabled]="!appsService.allReady(app)" type="button" class="btn btn-secondary btn-sm" data-toggle="modal" data-target="#game-replay-modal">观战录像</button>
</div> </div>
<!-- 匹配中 --> <!-- 匹配中 -->
...@@ -203,9 +203,7 @@ ...@@ -203,9 +203,7 @@
<th class="title"> <th class="title">
<span i18n>游戏模式</span> <span i18n>游戏模式</span>
<div id="watch-filter" class="dropdown"> <div id="watch-filter" class="dropdown">
<button class="btn btn-secondary dropdown-toggle btn-sm" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <button i18n class="btn btn-secondary dropdown-toggle btn-sm" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">筛选</button>
筛选
</button>
<div class="dropdown-menu"> <div class="dropdown-menu">
<h6 i18n class="dropdown-header">匹配</h6> <h6 i18n class="dropdown-header">匹配</h6>
<div class="form-check dropdown-item"> <div class="form-check dropdown-item">
......
...@@ -3,27 +3,27 @@ ...@@ -3,27 +3,27 @@
<body> <body>
<trans-unit datatype="html" id="86738bd5d32223ffbb690a7c71360ddf8e7b1b2e"> <trans-unit datatype="html" id="86738bd5d32223ffbb690a7c71360ddf8e7b1b2e">
<source>竞技匹配</source> <source>竞技匹配</source>
<target>Ranked Match</target> <target>Ranked</target>
</trans-unit> </trans-unit>
<trans-unit datatype="html" id="0bf938a69dc640aba46428d1cbbd2fef34c88daa"> <trans-unit datatype="html" id="0bf938a69dc640aba46428d1cbbd2fef34c88daa">
<source>娱乐匹配</source> <source>娱乐匹配</source>
<target>Unranked Match</target> <target>Unranked</target>
</trans-unit> </trans-unit>
<trans-unit datatype="html" id="5026868223e028297430142f8cafdf6dd6fcf004"> <trans-unit datatype="html" id="5026868223e028297430142f8cafdf6dd6fcf004">
<source>自定义游戏</source> <source>自定义游戏</source>
<target>Custom Game</target> <target>Custom</target>
</trans-unit> </trans-unit>
<trans-unit datatype="html" id="3768b60a7e2625bb1fc2db37eb8c6b8e4bd99101"> <trans-unit datatype="html" id="3768b60a7e2625bb1fc2db37eb8c6b8e4bd99101">
<source>单人模式</source> <source>单人模式</source>
<target>Single Mode</target> <target>Vs. Com</target>
</trans-unit> </trans-unit>
<trans-unit datatype="html" id="4115bf4e35def25bcfa6d4e649f5e006225c691a"> <trans-unit datatype="html" id="44e77a67a8818ad255773958c6b32c6280fb9faa">
<source>观战录像</source> <source>观战录像</source>
<target>Watch Replay</target> <target>Replay</target>
</trans-unit> </trans-unit>
<trans-unit datatype="html" id="157bc28ebe7ecf3f455852f64687ea580dfe23dc"> <trans-unit datatype="html" id="157bc28ebe7ecf3f455852f64687ea580dfe23dc">
...@@ -195,6 +195,11 @@ ...@@ -195,6 +195,11 @@
<source>游戏模式</source> <source>游戏模式</source>
<target>Game Mode</target> <target>Game Mode</target>
</trans-unit>
<trans-unit datatype="html" id="b4e8477152d07e8eba5ff8e205c4531816b47292">
<source>筛选</source>
<target>Filter</target>
</trans-unit> </trans-unit>
<trans-unit datatype="html" id="968e4d8a0f7b5eaaa1d588a738abdaa0ec389d16"> <trans-unit datatype="html" id="968e4d8a0f7b5eaaa1d588a738abdaa0ec389d16">
<source>匹配</source> <source>匹配</source>
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
"tsc": "tsc", "tsc": "tsc",
"i18n": "ng-xi18n && sed -i.bak 's/source-language=\"en\"/source-language=\"zh-CN\"/' messages.xlf", "i18n": "ng-xi18n && sed -i.bak 's/source-language=\"en\"/source-language=\"zh-CN\"/' messages.xlf",
"i18n:upload": "npm run i18n && curl --location --user ${TRANSIFEX_USERNAME}:${TRANSIFEX_PASSWORD} --request PUT --header 'Content-type: multipart/form-data' --form content=@messages.xlf https://www.transifex.com/api/2/project/mycard/resource/messages/content/", "i18n:upload": "npm run i18n && curl --location --user ${TRANSIFEX_USERNAME}:${TRANSIFEX_PASSWORD} --request PUT --header 'Content-type: multipart/form-data' --form content=@messages.xlf https://www.transifex.com/api/2/project/mycard/resource/messages/content/",
"i18n:translate": "open https://www.transifex.com/mycard/mycard/translate/#en_US/messages/108367258?translated=no",
"i18n:download": "curl --output locale/messages.en-US.xlf --retry 5 --location --user ${TRANSIFEX_USERNAME}:zh112998 https://www.transifex.com/api/2/project/mycard/resource/messages/translation/en_US/?file && sed -i.bak 's/\\&amp;/\\&/g; s/\\&lt;/</g; s/\\&gt;/>/g; s/\\&quot;/\"/g;' locale/messages.en-US.xlf" "i18n:download": "curl --output locale/messages.en-US.xlf --retry 5 --location --user ${TRANSIFEX_USERNAME}:zh112998 https://www.transifex.com/api/2/project/mycard/resource/messages/translation/en_US/?file && sed -i.bak 's/\\&amp;/\\&/g; s/\\&lt;/</g; s/\\&gt;/>/g; s/\\&quot;/\"/g;' locale/messages.en-US.xlf"
}, },
"dependencies": { "dependencies": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment