Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 67 additions & 21 deletions _po/ja.po
Original file line number Diff line number Diff line change
Expand Up @@ -1265,6 +1265,9 @@ msgid ""
" * Keys are ordered, as specified by the developer.\n"
" * Keys can be given more than once."
msgstr ""
" * キーはアトムである\n"
" * キーは開発者が指定した通りに並ぶ\n"
" * キーはいくつでも与えられる"

msgid ""
" * Local because keys and values are only accessible to the current node (opp"
Expand All @@ -1279,6 +1282,8 @@ msgid ""
" * Maps allow any value as a key.\n"
" * Maps' keys do not follow any ordering."
msgstr ""
" * マップはどんな値もキーにできる\n"
" * マップのキーは順序がない"

msgid ""
" * Maps can now scale from dozens to millions of keys. Therefore, usage of th"
Expand Down Expand Up @@ -3273,7 +3278,7 @@ msgid "## Interpolation and escaping in sigils"
msgstr ""

msgid "## Keyword lists"
msgstr ""
msgstr "## キーワードリスト"

msgid "## Language improvements"
msgstr ""
Expand Down Expand Up @@ -3309,7 +3314,7 @@ msgid "## Macros hygiene"
msgstr ""

msgid "## Maps"
msgstr ""
msgstr "## マップ"

msgid "## Maps, structs and the future"
msgstr ""
Expand Down Expand Up @@ -3354,7 +3359,7 @@ msgid "## Nested access"
msgstr ""

msgid "## Nested data structures"
msgstr ""
msgstr "## ネストされたデータ構造"

msgid "## Notable differences"
msgstr ""
Expand Down Expand Up @@ -4714,6 +4719,11 @@ msgid ""
"redirect_from: /getting-started/maps-and-dicts.html\n"
"---"
msgstr ""
"---\n"
"layout: getting-started\n"
"title: キーワードリストとマップ\n"
"redirect_from: /getting-started/maps-and-dicts.html\n"
"---"

msgid ""
"---\n"
Expand Down Expand Up @@ -6172,6 +6182,10 @@ msgid ""
"consider using [the `HashDict` module](https://hexdocs.pm/elixir/HashDict.html"
")."
msgstr ""
"Note: マップは最近になって Erlang <abbr title=\"Virtual Machine\">VM</abbr> に導入されたばかりで、何百万"
"という沢山のキーを効率的に保持できるのは Elixir v1.2 以降だけです。もしも今、あなたが以前のバージョンの Elixir (v1.0 or v1."
"1) を使っていて、少なくとも数百のキーをサポートする必要があるなら、[`HashDict` モジュール](https://hexdocs.pm/elixi"
"r/HashDict.html) の使用を検討してもよいかも知れません。"

msgid ""
"> Note: Mix is an Elixir executable. This means that in order to run `mix`, yo"
Expand Down Expand Up @@ -6805,7 +6819,7 @@ msgid ""
"Although we can pattern match on keyword lists, it is rarely done in practice "
"since pattern matching on lists requires the number of items and their order t"
"o match:"
msgstr ""
msgstr "キーワードリストでパターンマッチを利用できるのですが、要素の数とその順序が一致している必要がある為に殆ど利用されません。"

msgid ""
"Although we have overlooked some details, this is the main idea behind creatin"
Expand Down Expand Up @@ -6974,7 +6988,7 @@ msgstr ""
msgid ""
"Another interesting property of maps is that they provide their own syntax for"
" accessing atom keys:"
msgstr ""
msgstr "マップのもう一つ興味深い特質として、アトムのキーにアクセスする独自の構文が用意されていることが挙げられます。"

msgid ""
"Another issue with the solution above is that the `Enum.flat_map/2` step will "
Expand Down Expand Up @@ -7091,7 +7105,7 @@ msgstr ""
msgid ""
"As shown above, a map matches as long as the keys in the pattern exist in the "
"given map. Therefore, an empty map matches all maps."
msgstr ""
msgstr "見ての通り、パターン内のキーが与えられたマップ内に存在する間はマッチします。よって、空のマップは完全にどのマップとも一致します。"

msgid ""
"As soon as we started working on Logger, we realized we could go further than "
Expand Down Expand Up @@ -7178,6 +7192,8 @@ msgid ""
"e keyword lists are lists, we can use all operations available to lists. For e"
"xample, we can use `++` to add new values to a keyword list:"
msgstr ""
"上のコードで分かる通り、Elixir は同じことを `[key: value]` という風に書ける特別な構文をサポートしています。キーワードリストはリストで"
"すから、リストに対して行える全ての操作がキーワードリストにも利用できます。例えば、新しく値を追加する為に `++` を使うことができます。"

msgid ""
"As you can see in the example, tuples are a compound type and each tuple is id"
Expand Down Expand Up @@ -7653,7 +7669,7 @@ msgstr ""
"推奨されますが、人気があることが提案が受け入れられることを意味するものではありません。"

msgid "Compared to keyword lists, we can already see two differences:"
msgstr ""
msgstr "キーワードリストと比較すると二つの違いが見て取れます。"

msgid ""
"Comprehensions discard all elements for which the filter expression returns `f"
Expand Down Expand Up @@ -8035,6 +8051,10 @@ msgid ""
"s insight and examples on how you get more concise and faster software by writ"
"ing assertive code in Elixir."
msgstr ""
"一般的に Elixir を使う開発者は、マップを用いた操作で `Map` モジュールの関数を使うよりも、パターンマッチと `map.field` という構文"
"を好んで使います。その方が確定的なコードを書けるようになるからです。[このブログ記事](http://blog.plataformatec.com.br/2"
"014/09/writing-assertive-code-with-elixir/) では、Elixir の確定的なコードで如何に簡潔かつ高速なソフトウェ"
"アを手に入れるかの例と洞察を紹介しています。"

msgid "Elixir developers will often use module attributes as constants:"
msgstr ""
Expand Down Expand Up @@ -9214,6 +9234,8 @@ msgid ""
"For example, [the Ecto library](https://github.com/elixir-lang/ecto) makes use"
" of these features to provide an elegant DSL for writing database queries:"
msgstr ""
"例えば、[Ecto ライブラリ](https://github.com/elixir-lang/ecto) ではデータベースのクエリを書く為に使われる洗練さ"
"れた DSL を提供する為にそれら機能を利用しています。"

msgid ""
"For example, a bitstring generator can be used with the `:into` option in orde"
Expand Down Expand Up @@ -10203,7 +10225,7 @@ msgid ""
msgstr ""

msgid "Imagine you have the following structure:"
msgstr ""
msgstr "以下のような構造があるとします。"

msgid ""
"Imagine you manually implemented `unless` as a macro, that does the opposite o"
Expand Down Expand Up @@ -10326,7 +10348,7 @@ msgstr ""
msgid ""
"In Elixir, we have two main associative data structures: keyword lists and map"
"s. It's time to learn more about them!"
msgstr ""
msgstr "Elixir では主にキーワードリストとマップという二つの連想データ構造があります。これらについて学んでいきましょう。"

msgid "In Elixir, you can define a binary using `<<>>`:"
msgstr "Elixir では `<<>>` を使ってバイナリを定義できます。"
Expand Down Expand Up @@ -10429,7 +10451,7 @@ msgid ""
"In contrast to keyword lists, maps are very useful with pattern matching. When"
" a map is used in a pattern, it will always match on a subset of the given val"
"ue:"
msgstr ""
msgstr "キーワードリストと違ってマップのパターンマッチは非常に有用です。パターンにマップを使うと、与えられた値のサブセットとマッチします。"

msgid ""
"In fact if you compile any Elixir code, including the Elixir source, you will "
Expand All @@ -10447,7 +10469,7 @@ msgstr ""
msgid ""
"In general, when the keyword list is the last argument of a function, the squa"
"re brackets are optional."
msgstr ""
msgstr "一般的にキーワードリストが関数の最後の引数である時は、角括弧を任意で省略できます。"

msgid ""
"In light of this observation, we should consider moving to another supervision"
Expand All @@ -10471,6 +10493,8 @@ msgid ""
"e have a list of tuples and the first item of the tuple (i.e. the key) is an a"
"tom, we call it a keyword list:"
msgstr ""
"大抵の関数型プログラミング言語は、キーと値を表現する為にタプルのリストを使うのが一般的です。Elixir では、タプルの最初にキーとしてアトムを使っているリ"
"ストのことを、キーワードリストと呼んでいます。"

msgid ""
"In order for the cache mechanism to work, the created ETS table needs to have "
Expand Down Expand Up @@ -10567,6 +10591,10 @@ msgid ""
" guarantee one-key associates with at maximum one-value, you should use maps i"
"nstead."
msgstr ""
"Elixir はキーワードリストを操作する為に [`Keyword` モジュール](https://hexdocs.pm/elixir/Keyword.ht"
"ml) を提供しています。ただし、キーワードリストは単なるリストであり、それ自体はリストとして同じ線形的な運用特性があることは覚えておいてください。リストが"
"長いほどキーの検索や要素数のカウントに時間がかかります。その理由は、Elixir のキーワードリストが主にオプション値を渡す為に使われる為です。要素をたくさ"
"ん保持したり、一つのキーが一つの値とだけ関連づけられることの保証が必要な場合は、キーワードリストの代わりにマップを使うべきです。"

msgid ""
"In order to run Elixir on the LING VM, you need to produce a Xen image of your"
Expand Down Expand Up @@ -11260,7 +11288,7 @@ msgid ""
msgstr ""

msgid "It happens we can also use this same syntax for updating the value:"
msgstr ""
msgstr "これと同じ構文を値の更新に使うこともできます。"

msgid ""
"It is also possible to create atoms that start with a character other than a l"
Expand Down Expand Up @@ -11412,7 +11440,7 @@ msgid ""
msgstr ""

msgid "Keyword lists are important because they have three special characteristics:"
msgstr ""
msgstr "キーワードリストは以下に挙げる 3 つに特徴づけられた重要なものです。"

msgid ""
"Keyword lists play an important role in the language and are quite common in m"
Expand Down Expand Up @@ -11838,7 +11866,7 @@ msgid "Maps do not have a explicit ordering and keys and values can be any term.
msgstr ""

msgid "Maps have the following syntax for updating a key's value:"
msgstr ""
msgstr "マップはキーが持つ値を更新する為に以下の構文をサポートします。"

msgid ""
"Maps naturally solve issues `1.` and `2.` above. In particular, maps that have"
Expand Down Expand Up @@ -12288,7 +12316,7 @@ msgid ""
msgstr "これらの関数は多態的に機能します。文字リストを文字列に変換するだけでなく、整数を文字列に変換したり、アトムを文字列に変換することもできます。"

msgid "Note that values added to the front are the ones fetched on lookup:"
msgstr ""
msgstr "探索する際に引き出される値が先頭に追加された値であることに注意してください。"

msgid ""
"Note that we have also defined a private function named `lookup/2` to help wit"
Expand Down Expand Up @@ -12659,6 +12687,8 @@ msgid ""
"s you would find in imperative languages while keeping the immutable propertie"
"s of the language."
msgstr ""
"マップの中でさらにマップやキーワードリスト等が必要なケースが往々にしてあります。Elixir は `put_in/2` や `update_in/2` 及び"
"、命令型言語に見られるものと同様に便利なその他のマクロよって、属性をイミュータブルに保ったまま多次元のデータ構造を操作するという利便性を提供しています。"

msgid ""
"On **Unix systems**, you need to [find your shell profile file](https://unix.s"
Expand Down Expand Up @@ -13650,6 +13680,8 @@ msgid ""
"Different languages call these different names like dictionaries, hashes, asso"
"ciative arrays, etc."
msgstr ""
"今までのところ、とある値をキーと関連づけすることが出来るようなデータ構造についてまだ触れていません。言語によってはそういうデータ構造のことを辞書、ハッシュ、"
"あるいは連想配列という風に異なる名前で呼んでいます。"

msgid ""
"So far, all examples have used `/` to delimit a regular expression. However, s"
Expand Down Expand Up @@ -14200,7 +14232,7 @@ msgstr ""
msgid ""
"The `do:` and `else:` pairs are keyword lists! In fact, the call above is equi"
"valent to:"
msgstr ""
msgstr "`do:` と `else:` という二つのペアはキーワードリストなのです!実際に上記の呼び出しは以下と同等です。"

msgid ""
"The `do_interleave` function first calls `a` (`af` from `interleave`) with the"
Expand Down Expand Up @@ -14288,6 +14320,8 @@ msgid ""
"ols how the value changes. For example, let's remove \"Clojure\" from Mary's lis"
"t of languages:"
msgstr ""
"マクロ `update_in/2` もこれと似ていますが、値をどのように変更するかを制御する為に関数を渡すことができます。例えば、Mary の言語リストから"
" \"Clojure\" を削除してみましょう。"

msgid ""
"The `use` macro is frequently used as an extension point. This means that, whe"
Expand Down Expand Up @@ -15283,6 +15317,8 @@ msgid ""
" keys. For example, using it with the `:c` key failed because there is no `:c`"
" in the map."
msgstr ""
"上記の構文は与えられたキーが存在する必要があります。これを新しいキーの追加には使えません。`:c` というキーを使った例では、マップ内に `:c` が存在し"
"ないので失敗しています。"

msgid ""
"The syntax for sending and receiving differs only slightly between Erlang and "
Expand Down Expand Up @@ -15480,6 +15516,10 @@ msgid ""
"ocumentation in the `Kernel` module for more information](https://hexdocs.pm/e"
"lixir/Kernel.html)."
msgstr ""
"値を取り除いたり、データ構造を一度に更新するのことができる `get_and_update_in/2` も含めて `put_in/2` と `update_"
"in/2` をもっと知る必要があるでしょう。動的にデータ構造へアクセスできる `put_in/3` と `update_in/3` 、 `get_and_u"
"pdate_in/3` もあります。それぞれの詳しいドキュメントは [`Kernel` モジュール](https://hexdocs.pm/elixir/K"
"ernel.html) を参照してください。"

msgid ""
"There is much more to Mix, and we will continue to explore it as we build our "
Expand Down Expand Up @@ -15536,6 +15576,8 @@ msgid ""
"ism for passing options to functions in Elixir. In chapter 5, when we discusse"
"d the `if/2` macro, we mentioned the following syntax is supported:"
msgstr ""
"Elixir で関数にオプションを渡す手法がキーワードリストとなっているのは、これらの特性によるきっかけです。5 章でマクロの `if/2` について触れた"
"時に、以下のような構文がサポートされていることを言及しました。"

msgid ""
"These expectations also apply to future releases under the v1 branch, except f"
Expand Down Expand Up @@ -15653,6 +15695,8 @@ msgid ""
"will find out that, given keyword lists and maps, you will always have the rig"
"ht tool to tackle problems that require associative data structures in Elixir."
msgstr ""
"ここで Elixir における連想データ構造の紹介を終わりとします。キーワードリストとマップがある時に、あなたはいつでも連想データ構造を必要とする問題に立ち"
"向かう為の適切なツールがあることが分かると思います。"

msgid ""
"This concludes our optimization chapter. We have used ETS as a cache mechanism"
Expand Down Expand Up @@ -16443,7 +16487,7 @@ msgid ""
msgstr ""

msgid "Variables can be used when accessing, matching and adding map keys:"
msgstr ""
msgstr "変数を使って値にアクセスしたり、マッチングやキーを追加することが出来ます。"

msgid "Variables in Elixir can be rebound:"
msgstr "Elixir の変数は再代入ができます。"
Expand Down Expand Up @@ -16764,7 +16808,7 @@ msgid ""
"We have a keyword list of users where each value is a map containing the name,"
" age and a list of programming languages each user likes. If we wanted to acce"
"ss the age for john, we could write:"
msgstr ""
msgstr "名前と年齢、そして各ユーザーが好きな言語リストで構成されるマップを含んだキーワードリストがあります。John の年齢にアクセスしたい時はこう書きます。"

msgid ""
"We have added a new `:env` key to the application. It returns the application "
Expand Down Expand Up @@ -17227,7 +17271,7 @@ msgstr ""
msgid ""
"When all the keys in a map are atoms, you can use the keyword syntax for conve"
"nience:"
msgstr ""
msgstr "マップ内のすべてのキーがアトムの時は便利なキーワード構文を使って簡潔に書けます。"

msgid "When asking questions, remember these two tips:"
msgstr "質問する際は以下の二点を念頭においてください。"
Expand Down Expand Up @@ -17468,7 +17512,7 @@ msgstr ""
msgid ""
"Whenever you need a key-value store, maps are the \"go to\" data structure in El"
"ixir. A map is created using the `%{}` syntax:"
msgstr ""
msgstr "キーと値のペアで保持したいものがある時にはマップが打ってつけのデータ構造です。マップは `%{}` という構文を使って作成します。"

msgid "Which can also be used for partially applying functions and macros:"
msgstr ""
Expand All @@ -17480,7 +17524,7 @@ msgid ""
msgstr ""

msgid "Which, as we have seen above, is the same as:"
msgstr ""
msgstr "以下もまた上記と同じように、どちらも等しいものです。"

msgid ""
"While Elixir allows any metadata to be given, those tools currently exhibit on"
Expand Down Expand Up @@ -18135,6 +18179,8 @@ msgid ""
"[The `Map` module](https://hexdocs.pm/elixir/Map.html) provides a very similar"
" API to the `Keyword` module with convenience functions to manipulate maps:"
msgstr ""
"[`Map` モジュール](https://hexdocs.pm/elixir/Map.html) は `Keyword` モジュールが備えている便利な関数"
"とよく似た API をマップの操作の為に提供しています。"

msgid ""
"[The `math` module](http://erlang.org/doc/man/math.html) contains common\n"
Expand Down
Loading