Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 建議翻譯為【發行】。 #97

Open
hwhsu1231 opened this issue Mar 9, 2023 · 4 comments
Open

Release 建議翻譯為【發行】。 #97

hwhsu1231 opened this issue Mar 9, 2023 · 4 comments
Labels
help wanted Extra attention is needed obfuscate

Comments

@hwhsu1231
Copy link

hwhsu1231 commented Mar 9, 2023

建議

  • 英文字串: Release
  • 當前翻譯: 發佈
  • 建議翻譯: 發行

版本

  • CLion: 2023.1.EAP
  • Plugin: 231.185

擷圖

image

@bluelovers bluelovers added help wanted Extra attention is needed obfuscate labels Apr 2, 2023
@bluelovers
Copy link
Owner

image

@hwhsu1231
Copy link
Author

@bluelovers - 所以目前是因為 Publish 和 Release 都翻譯為「發佈」,所以比較難使用腳本做更改嗎?

@bluelovers
Copy link
Owner

@bluelovers - 所以目前是因為 Publish 和 Release 都翻譯為「發佈」,所以比較難使用腳本做更改嗎?

嗯,需要個別區分才能取代

@bluelovers
Copy link
Owner

bluelovers commented Apr 2, 2023

如果是整個檔案都是同一個邏輯或者可以明確的區分的話
也可以透過這種硬改的方式來取代

else if (/(?:Git(?:hub)?|Vcs(?:Log)?|Svn|Diff)Bundle\.properties$/i.test(file))
{
content_new = content_new
.replace(//g, '獲取')
.replace(//g, '版本庫')
.replace(//g, '統合')
;
}
else if (/LeakableMapKey\.html$/i.test(file))
{
content_new = content_new
.replace(textToRegexp(/|/g), '解除安裝')
;
}
else if (/(JavaScript|InspectionGadgets|Php)Bundle.properties$/i.test(file))
{
content_new = content_new
.replace(textToRegexp(//g), '限縮')
;
}
content_new = content_new
.replace(textToRegexp(/Java (?:|)(.)?/g), ($0, $1) => {
if (textIncludeCJK($1))
{
$1 = ' ' + $1;
}
return 'Java Runtime' + $1
})
;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed obfuscate
Projects
None yet
Development

No branches or pull requests

2 participants