Units API.

See the Weblate's Web API documentation for detailed description of the API.

GET /api/units/13183960/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "translation": "https://l10n.opensuse.org/api/translations/packages-i18n/perl-master/ja/?format=api",
    "source": [
        "Digest::SHA3 is written in C for speed. If your platform lacks a C compiler, perhaps you can find the module in a binary form compatible with your particular processor and operating system.\n\nThe programming interface is easy to use: it's the same one found in CPAN's Digest module. So, if your applications currently use Digest::SHA and you'd prefer the newer flavor of the NIST standard, it's a simple matter to convert them.\n\nThe interface provides two ways to calculate digests: all-at-once, or in stages. To illustrate, the following short program computes the SHA3-256 digest of \"hello world\" using each approach:\n\n\tuse Digest::SHA3 qw(sha3_256_hex);\n\n\t$data = \"hello world\"; \t@frags = split(//, $data);\n\n\t \t$digest1 = sha3_256_hex($data);\n\n\t \t$state = Digest::SHA3->new(256); \tfor (@frags) { $state->add($_) } \t$digest2 = $state->hexdigest;\n\n\tprint $digest1 eq $digest2 ? \t\t\"that's the ticket!\\n\" : \"oops!\\n\";\n\nTo calculate the digest of an n-bit message where _n_ is not a multiple of 8, use the _add_bits()_ method. For example, consider the 446-bit message consisting of the bit-string \"110\" repeated 148 times, followed by \"11\". Here's how to display its SHA3-512 digest:\n\n\tuse Digest::SHA3; \t$bits = \"110\" x 148 . \"11\"; \t$sha3 = Digest::SHA3->new(512)->add_bits($bits); \tprint $sha3->hexdigest, \"\\n\";\n\nNote that for larger bit-strings, it's more efficient to use the two-argument version _add_bits($data, $nbits)_, where _$data_ is in the customary packed binary format used for Perl strings."
    ],
    "previous_source": "",
    "target": [
        "Digest::SHA3は、速度を上げるためにCで書かれています。プラットフォームにCコンパイラがない場合は、特定のプロセッサやオペレーティングシステムと互換性のあるバイナリ形式のモジュールを見つけることができます。\n\nプログラミング・インターフェースは使いやすく、CPANのDigestモジュールにあるものと同じです。そのため、現在アプリケーションでDigest::SHAを使用していて、NIST標準の新しいバージョンが必要な場合は、簡単に変換できます。\n\nこのインターフェースには、ダイジェストを計算する2つの方法が用意されています。一度にすべて計算する方法と、段階的に計算する方法です。説明のため、次の短いプログラムは、それぞれの方法を使用して「hello world」のSHA3-256ダイジェストを計算します。\n\nuse Digest::SHA3 qw(sha3_256_hex);\n\n\t$data = \"hello world\"; \t@frags = split(//, $data);\n\n\t \t$digest1 = sha3_256_hex($data);\n\n\t \t$state = Digest::SHA3->new(256); \tfor (@frags) { $state->add($_) } \t$digest2 = $state->hexdigest;\n\n\tprint $digest1 eq $digest2 ?\t\"これがチケットです!\\n\" : \"おっと!\\n\";\n\n_n_ が8 の倍数でない n ビットのメッセージのダイジェストを計算するには、_add_bits()_ メソッドを使用します。たとえば、ビット列「110」が148回繰り返され、その後に「11」が続く446ビットメッセージを考えてみましょう。SHA3-512ダイジェストを表示する方法は次のとおりです:\n\n\tuse Digest::SHA3; \t$bits = \"110\" x 148 . \"11\"; \t$sha3 = Digest::SHA3->new(512)->add_bits($bits); \tprint $sha3->hexdigest, \"\\n\";\n\n大きなビット文字列の場合は、2つの引数version_add_bits($data,$nbits)_を使用する方が効率的であることに注意してください。ここで、_$data_はPerl文字列で使用される通常のパックされたバイナリ形式です。"
    ],
    "id_hash": 1932787496004635725,
    "content_hash": 1932787496004635725,
    "location": "",
    "context": "",
    "note": "tumbleweed/perl-Digest-SHA3/description",
    "flags": "",
    "labels": [],
    "state": 20,
    "fuzzy": false,
    "translated": true,
    "approved": false,
    "position": 2505,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": false,
    "num_words": 222,
    "source_unit": "https://l10n.opensuse.org/api/units/13182486/?format=api",
    "priority": 100,
    "id": 13183960,
    "web_url": "https://l10n.opensuse.org/translate/packages-i18n/perl-master/ja/?checksum=9ad2a3fcbdac4c4d",
    "url": "https://l10n.opensuse.org/api/units/13183960/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2022-02-23T16:53:44.319474Z"
}