Skip to content

dotcde 1.3.0

Latest

Choose a tag to compare

@suakx suakx released this 08 Sep 02:39
· 1 commit to main since this release

英語版はこのページの後半にあります。 / An English version follows below.


CLI のメッセージを英語で表示できるようになりました

cde が出す説明・エラー・進捗が英語で出せます。--help の説明文も英語になります。

./cde --help --lang en
./cde status --lang en
./cde push --lang en --json

--lang はどのコマンドでも、コマンド名の前でも後でも使えます。

毎回付けたくない場合は、環境変数 DOTCDE_LANG を設定してください。

export DOTCDE_LANG=en

言語は次の順で決まります。上から見て最初に当たったものを使います。

  1. --lang <言語コード>
  2. 環境変数 DOTCDE_LANG
  3. OS の言語設定
  4. 日本語

**Viewer もこの順で決まります。**CLI と Viewer で決め方は同じで、Viewer の1段目が URL の ?lang= になる点だけが違います。

cde view--lang または DOTCDE_LANG 付きで実行すると、自動で開く URL にその言語が載ります。指定していないときは載せません。ブラウザにはブラウザ自身の言語設定があり、CLI がそれを塗り替えるべきではないためです。

外部のライブラリや OS が出す文字はそのまま出ます。no such file or directoryssh: handshake failed のような文字は、dotcde が書いたものではないため訳しません。エラーの中にこうした英語が混ざることがあります。

Viewer を英語で表示できるようになりました

Viewer の画面を英語で表示できます。ブラウザの言語設定が日本語以外の場合は、そのまま英語で開きます。

言語を指定して開くこともできます。

./cde view --lang en
./cde view --lang ja

この指定は、その起動のときだけ効きます。次に --lang を付けずに実行すれば、またブラウザの言語設定に従います。

配布文書に英語の参考訳が付きました

利用許諾契約、免責事項、プライバシー方針、マニュアルなどに、ファイル名の末尾が _EN の英語版が加わりました。正式版は日本語版で、英語版は読むときの参考としてお使いください。

配布文書のファイル名が変わりました

日本語版のファイル名から _JA が外れました。

  • LICENSE_JA.mdLICENSE.md
  • DISCLAIMER_JA.mdDISCLAIMER.md
  • CLI_PRIVACY_JA.mdCLI_PRIVACY.md
  • BRAND_POLICY_JA.mdBRAND_POLICY.md
  • THIRD_PARTY_NOTICES_JA.mdTHIRD_PARTY_NOTICES.md

以前のファイル名でリンクしている場合は、新しい名前へ変更してください。


English

The Japanese text above is the original. This English version is a reference translation.

CLI messages can now be shown in English

The descriptions, errors and progress messages that cde prints can be shown in English. The --help text is translated as well.

./cde --help --lang en
./cde status --lang en
./cde push --lang en --json

--lang works with every command, and it can come before or after the command name.

To avoid typing it every time, set the DOTCDE_LANG environment variable.

export DOTCDE_LANG=en

The language is decided in this order. The first one that matches is used.

  1. --lang <language code>
  2. The DOTCDE_LANG environment variable
  3. The language setting of your OS
  4. Japanese

The Viewer follows the same order. The only difference is that its first step is the ?lang= parameter in the URL.

When you run cde view with --lang or DOTCDE_LANG, that language is put into the URL it opens. When you give neither, it is left out: the browser has its own language setting, and the CLI should not override it.

Text that comes from external libraries or from the OS is printed as it is. Strings such as no such file or directory or ssh: handshake failed are not written by dotcde, so they are not translated. You may see them mixed into an error message.

The Viewer can now be shown in English

The Viewer can be displayed in English. If your browser's language is set to anything other than Japanese, it opens in English.

You can also choose the language explicitly.

./cde view --lang en
./cde view --lang ja

This choice applies only to that run. The next time you run it without --lang, it follows your browser's language setting again.

The distributed documents now include English reference translations

The license agreement, the disclaimer, the privacy policies and the manuals now have English versions whose file names end with _EN. The Japanese version is the official one; please use the English version for reference while reading.

The distributed documents have been renamed

The _JA suffix has been removed from the Japanese file names.

  • LICENSE_JA.mdLICENSE.md
  • DISCLAIMER_JA.mdDISCLAIMER.md
  • CLI_PRIVACY_JA.mdCLI_PRIVACY.md
  • BRAND_POLICY_JA.mdBRAND_POLICY.md
  • THIRD_PARTY_NOTICES_JA.mdTHIRD_PARTY_NOTICES.md

If you link to the old file names, please point them at the new ones.