Units API.

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

GET /api/units/13183934/?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": [
        "String::Formatter is a tool for building sprintf-like formatting routines. It supports named or positional formatting, custom conversions, fixed string interpolation, and simple width-matching out of the box. It is easy to alter its behavior to write new kinds of format string expanders. For most cases, it should be easy to build all sorts of formatters out of the options built into String::Formatter.\n\nNormally, String::Formatter will be used to import a sprintf-like routine referred to as \"'stringf'\", but which can be given any name you like. This routine acts like sprintf in that it takes a string and some inputs and returns a new string:\n\n  my $output = stringf \"Some %a format %s for you to %u.\\n\", { ... };\n\nThis routine is actually a wrapper around a String::Formatter object created by importing stringf. In the following code, the entire hashref after \"stringf\" is passed to String::Formatter's constructor (the 'new' method), save for the '-as' key and any other keys that start with a dash.\n\n  use String::Formatter     stringf => {       -as => 'fmt_time',       codes           => { ... },       format_hunker   => ...,       input_processor => ...,     },     stringf => {       -as => 'fmt_date',       codes           => { ... },       string_replacer => ...,       hunk_formatter  => ...,     },   ;\n\nAs you can see, this will generate two stringf routines, with different behaviors, which are installed with different names. Since the behavior of these routines is based on the 'format' method of a String::Formatter object, the rest of the documentation will describe the way the object behaves.\n\nThere's also a 'named_stringf' export, which behaves just like the 'stringf' export, but defaults to the 'named_replace' and 'require_named_input' arguments. There's a 'method_stringf' export, which defaults 'method_replace' and 'require_single_input'. Finally, a 'indexed_stringf', which defaults to 'indexed_replaced' and 'require_arrayref_input'. For more on these, keep reading, and check out the cookbook.\n\nString::Formatter::Cookbook provides a number of recipes for ways to put String::Formatter to use."
    ],
    "previous_source": "String::Formatter is a tool for building sprintf-like formatting routines. It supports named or positional formatting, custom conversions, fixed string interpolation, and simple width-matching out of the box. It is easy to alter its behavior to write new kinds of format string expanders. For most cases, it should be easy to build all sorts of formatters out of the options built into String::Formatter.\n\nNormally, String::Formatter will be used to import a sprintf-like routine referred to as \"'stringf'\", but which can be given any name you like. This routine acts like sprintf in that it takes a string and some inputs and returns a new string:\n\n  my $output = stringf \"Some %a format %s for you to %u.\\n\", { ... };\n\nThis routine is actually a wrapper around a String::Formatter object created by importing stringf. In the following code, the entire hashref after \"stringf\" is passed to String::Formatter's constructor (the 'new' method), save for the '-as' key and any other keys that start with a dash.\n\n  use String::Formatter     stringf => {       -as => 'fmt_time',       codes           => { ... },       format_hunker   => ...,       input_processor => ...,     },     stringf => {       -as => 'fmt_date',       codes           => { ... },       string_replacer => ...,       hunk_formatter  => ...,     },   ;\n\nAs you can see, this will generate two stringf routines, with different behaviors, which are installed with different names. Since the behavior of these routines is based on the 'format' method of a String::Formatter object, the rest of the documentation will describe the way the object behaves.\n\nThere's also a 'named_stringf' export, which behaves just like the 'stringf' export, but defaults to the 'named_replace' and 'require_named_input' arguments. There's a 'method_stringf' export, which defaults 'method_replace' and 'require_single_input'. Finally, a 'indexed_stringf', which defaults to 'indexed_replaced' and 'require_arrayref_input'. For more on these, keep reading, and check out the cookbook.\n\nthe String::Formatter::Cookbook manpage provides a number of recipes for ways to put String::Formatter to use.",
    "target": [
        "String::Formatterはsprintfのようなフォーマット・ルーチンを作成するためのツールです。名前付きフォーマットまたは位置フォーマット、カスタム変換、固定文字列補間、単純な幅のマッチングなどをサポートしています。新しい種類のフォーマット文字列エクスパンダを作成するために、その動作を変更するのは簡単です。ほとんどの場合、String::Formatterに組み込まれたオプションから、あらゆる種類のフォーマッタを簡単に構築できるはずです。\n\n通常、String::Formatterは\"'stringf'\"と呼ばれるsprintfに似たルーチンをインポートするために使用されますが、任意の名前を付けることができます。このルーチンはsprintfと同じように、文字列といくつかの入力を受け取り、新しい文字列を返します。\n\n  my$output=stringf\" 一部の%aフォーマット%s を %uに変換します。\\n\",{.};\n\nこのルーチンは、実際にはstringfをインポートして作成されたString::Formatterオブジェクトのラッパーです。次のコードでは、「stringf」の後のhashref全体がString::Formatterのコンストラクタ('new'メソッド)に渡されます。ただし、「-as」キーとダッシュで始まるその他のキーは除きます。\n\n  use String::Formatter stringf=>{-as=>'fmt_time',codes=>{.},format_hunker=>.,input_processor=>.,},stringf=>{-as=>'fmt_date',codes=>{.},string_replacer=>.,hunk_formatter=>.,},,;\nご覧のように、これにより、動作が異なる2つのstringfルーチンが生成され、それぞれ異なる名前でインストールされます。\nuse String::Formatter stringf=>{-as=>'fmt_time',codes=>{.},format_hunker=>.,input_processor=>.,},stringf=>{-as=>'fmt_date',codes=>{.},string_replacer=>.,hunk_formatter=>.,},,;これらのルーチンの動作は、String::Formatterオブジェクトの「format」メソッドに基づいているため、以降のドキュメントでは、オブジェクトの動作について説明します。\n\n'named_stringf'エクスポートもあります。これは'stringf'エクスポートと同じように動作しますが、デフォルトでは'named_replace'と'require_named_input'引数が使用されます。'method_stringf'エクスポートがあり、デフォルトは'method_replace'と'require_single_input'です。最後に、「indexed_stringf」(デフォルトは「indexed_replaced」と「require_arrayref_input」)。さらに詳しくは、このクックブックを参照してください。\n\nString::Formatter::Cookbookには、String::Formatterを使うためのレシピが多数用意されています。"
    ],
    "id_hash": 8298998514781755859,
    "content_hash": 8298998514781755859,
    "location": "",
    "context": "",
    "note": "leap/perl-String-Formatter/description",
    "flags": "",
    "labels": [],
    "state": 20,
    "fuzzy": false,
    "translated": true,
    "approved": false,
    "position": 1819,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": false,
    "num_words": 312,
    "source_unit": "https://l10n.opensuse.org/api/units/13182460/?format=api",
    "priority": 100,
    "id": 13183934,
    "web_url": "https://l10n.opensuse.org/translate/packages-i18n/perl-master/ja/?checksum=f32bf72de10f99d3",
    "url": "https://l10n.opensuse.org/api/units/13183934/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2022-02-23T16:53:40.703741Z"
}