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

"`"で囲まれたインラインコードの中身を翻訳するか #127

Closed
s3-odara opened this issue Nov 17, 2024 · 2 comments · Fixed by #132
Closed

"`"で囲まれたインラインコードの中身を翻訳するか #127

s3-odara opened this issue Nov 17, 2024 · 2 comments · Fixed by #132

Comments

@s3-odara
Copy link
Contributor

インラインコードを結構装飾ぐらいの感覚で使っているNIPがある気がするので、場合によって翻訳したほうが読みやすいかも。

@Hakkadaikon
Copy link
Contributor

私はコードブロック内の英訳も翻訳することに賛成です。
例えば、以下はNIP-01のコードブロックですが、割と英文が入っています。(特にsigの説明とか。)

{
  "id": <32-bytes lowercase hex-encoded sha256 of the serialized event data>,
  "pubkey": <32-bytes lowercase hex-encoded public key of the event creator>,
  "created_at": <unix timestamp in seconds>,
  "kind": <integer between 0 and 65535>,
  "tags": [
    [<arbitrary string>...],
    // ...
  ],
  "content": <arbitrary string>,
  "sig": <64-bytes lowercase hex of the signature of the sha256 hash of the serialized event data, which is the same as the "id" field>
}

@s3-odara
Copy link
Contributor Author

mdnの翻訳ガイドでもコードブロックはコメント、文字列、出力表現を翻訳するように言ってるのでこれを参考に書き換えても良さそう

https://github.com/mdn/translated-content/blob/main/docs/README.md#localizing-code-blockshttps://github.com/mdn/translated-content/blob/main/docs/README.md#localizing-code-blocks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants