Skip to content
Merged
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
41 changes: 35 additions & 6 deletions _po/ja.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"PO-Revision-Date: 2018-10-12 01:20+0900\n"
"PO-Revision-Date: 2018-10-28 02:20+0900\n"
"Language: ja\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -2902,13 +2902,20 @@ msgid ""
"iex> [0] ++ list\n"
"[0, 1, 2, 3]"
msgstr ""
"# `[0]` を走査だけで `list` の先頭へ追加できるので高速\n"
"iex> [0] ++ list\n"
"[0, 1, 2, 3]"

msgid ""
"# This is slow as we need to traverse `list` to append 4\n"
"iex> list ++ [4]\n"
"[1, 2, 3, 4]\n"
"```"
msgstr ""
"# `4` を後尾へ追加する為に `list` の走査が必要なので低速\n"
"iex> list ++ [4]\n"
"[1, 2, 3, 4]\n"
"```"

msgid ""
"# To get all files lib/foo.ex depends on\n"
Expand Down Expand Up @@ -2944,7 +2951,7 @@ msgid "# {{ page.title }}<span hidden>.</span>"
msgstr ""

msgid "## (Linked) Lists"
msgstr "## リスト"
msgstr "## (連結)リスト"

msgid "## @derive"
msgstr ""
Expand Down Expand Up @@ -3283,7 +3290,7 @@ msgid "## Links"
msgstr ""

msgid "## Lists or tuples?"
msgstr ""
msgstr "## リスト or タプル"

msgid "## Logger"
msgstr ""
Expand Down Expand Up @@ -7917,6 +7924,8 @@ msgid ""
"g about processes. For now, let's take a look at some of the basic operators t"
"hat go with our basic types."
msgstr ""
"他にも、 Elixir は `Port` 、 `Reference` 、 `PID` というデータ型も提供しており、プロセス通信で頻繁に利用されます。プロセ"
"スについてお話しする際には簡単に取り上げますが、とりあえず今は基本的な型の扱い方を見ていきましょう。"

msgid ""
"Elixir also provides a [Getting Started guide][6] and has [documentation avail"
Expand Down Expand Up @@ -9218,6 +9227,10 @@ msgid ""
"g.length`, and may be expensive as it relies on a traversal of the entire stri"
"ng."
msgstr ""
"例えば、次に挙げる 4 つのカウント機能を持った関数などがそうです。 `byte_size/1` (文字数を得る) 、 `tuple_size/1` (タプ"
"ルの長さを得る) 、 `length` (リストの長さを得る) 、そして `String.length/1` (文字数を得る) です。ある文字列の数を得る "
"`byte_size` 、これは Unicode 文字の数を取得します。別の手段として `String.length` を使えますが、文字列全体の走査に依存"
"するので高いコストがかかります。"

msgid "For instance, we can create a file called `math.exs`:"
msgstr ""
Expand Down Expand Up @@ -9886,6 +9899,8 @@ msgid ""
"ok` as the first element and the file contents as the second. Otherwise, it re"
"turns a tuple with `:error` and the error description."
msgstr ""
"`File.read/1` に与えられたパスが存在しているのなら、最初の要素を `:ok` としてそれに次ぐ二つ目にファイル内のコンテンツを含むタプルを返し"
"ます。"

msgid ""
"If the repository is private though, you may need to specify the private URL `"
Expand Down Expand Up @@ -11639,6 +11654,8 @@ msgid ""
"t is reached. This means accessing the length of a list is a linear operation:"
" we need to traverse the whole list in order to figure out its size."
msgstr ""
"リストはメモリ上で連結リストとして保持されます。これは、そのリストが終わりに達するまで、リスト内の各要素がその値とそれに次ぐ要素へのポインタを保持していると"
"いう事です。例えば、リストのサイズなどを数え上げる際にリスト内を走査するといったような、リストの長さに対してアクセスする線形演算を想定しています。"

msgid ""
"Local or imported functions, like `is_function/1`, can be captured without the"
Expand Down Expand Up @@ -11963,6 +11980,8 @@ msgid ""
"ple, there is an `elem/2` function to access a tuple item but there is no buil"
"t-in equivalent for lists:"
msgstr ""
"殆どの場合、 Elixir は正しく動作する為にあなたをガイドするようになっています。例えば、 `elem/2` はタプルの要素にアクセスする為の関数ですが"
"、リストに対するそれと等価のものは組み込まれていません。"

msgid ""
"Much better! `with` will retrieve the value returned by the right-side of `<-`"
Expand Down Expand Up @@ -12193,6 +12212,9 @@ msgid ""
"nt of memory allocation the language needs to perform and is only possible tha"
"nks to the immutable semantics of the language."
msgstr ""
"ただし、新たに作り直されるのはタプルそれ自身であって、その中身ではないことに注意してください。それは例えば、タプルを更新しても置き換えられたエントリーを除い"
"たすべてのエントリーが古いタプルと新しいタプルで同じということです。言い換えると、 Elixir におけるリストとタプルはそれらコンテンツを共有可能というこ"
"とを意味しており、言語が機能を果たす為に確保するメモリ量を抑えてくれます。それが可能なのも、この言語のイミュータブルなセマンティクスのおかげです。"

msgid ""
"Note that those functions are polymorphic. They not only convert charlists to "
Expand Down Expand Up @@ -12313,7 +12335,7 @@ msgid ""
"Notice that Elixir allows you to drop the parentheses when invoking named func"
"tions. This feature gives a cleaner syntax when writing declarations and contr"
"ol-flow constructs."
msgstr "Elixr は関数を呼び出す際の括弧を省略できます。これにより、宣言と制御構造での文法的な見晴らしをクリアにします。"
msgstr "Elixir は関数を呼び出す際の括弧を省略できます。これにより、宣言と制御構造での文法的な見晴らしをクリアにします。"

msgid ""
"Notice that `1 = x` is a valid expression, and it matched because both the lef"
Expand Down Expand Up @@ -13346,7 +13368,7 @@ msgstr ""
msgid ""
"Similarly, the performance of list concatenation depends on the length of the "
"left-hand list:"
msgstr ""
msgstr "同様に、リストを連結する際のパフォーマンスは、左側のリストの長さに依存します。"

msgid "Simply running:"
msgstr ""
Expand Down Expand Up @@ -15958,6 +15980,8 @@ msgid ""
" from a function. For example, `File.read/1` is a function that can be used to"
" read file contents. It returns a tuple:"
msgstr ""
"それら動作特性はデータ構造の慣習に影響します。タプルを使用した最も一般的な例のひとつに、関数から特殊な情報を得る為に使うということが挙げられます。例えば `"
"File.read/1` はファイル内のコンテンツを読み出す関数ですが、その戻り値はタプルです。"

msgid ""
"Those situations are quite uncommon in practice except when interfacing with l"
Expand Down Expand Up @@ -16168,6 +16192,8 @@ msgid ""
"or adding elements to tuples is expensive because it requires creating a new t"
"uple in memory:"
msgstr ""
"一方でタプルは、メモリ内で隣接して保持されます。それは、タプルのサイズを得たりインデックスから要素にアクセスするのが高速だということです。しかし、タプルに要"
"素を追加したり更新するには、新たにメモリ内でタプルを作り直さねばならないという高いコストがかかります。"

msgid ""
"Two lists can be concatenated or subtracted using the `++/2` and `--/2` operat"
Expand Down Expand Up @@ -17063,7 +17089,7 @@ msgid ""
msgstr ""

msgid "What is the difference between lists and tuples?"
msgstr ""
msgstr "リストとタプルの違いは何でしょう?"

msgid ""
"What makes `IO.inspect(item, opts \\\\ [])` really useful in debugging is that i"
Expand Down Expand Up @@ -17133,6 +17159,9 @@ msgid ""
"culating the length gets slower as the input grows). As a mnemonic, both \"leng"
"th\" and \"linear\" start with \"l\"."
msgstr ""
"データ構造の要素を数え上げるといった操作をする時、Elixir の関数名は次のルールに従って命名されます。至ってシンプルなものです。その操作が一定時間内のも"
"の(i.e. 値が事前計算されているなど)であれば `size` を添え、その操作が線形のもの(i.e. 入力値を得る毎に遅くなるような長さについて計算する"
"など)であれば `length` を添えます。"

msgid ""
"When creating an ETS table, two arguments are required: the table name and a s"
Expand Down
41 changes: 35 additions & 6 deletions _po/ja/getting-started/basic-types.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"PO-Revision-Date: 2018-10-12 01:20+0900\n"
"PO-Revision-Date: 2018-10-28 02:20+0900\n"
"Language: ja\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -82,7 +82,7 @@ msgid ""
"Notice that Elixir allows you to drop the parentheses when invoking named func"
"tions. This feature gives a cleaner syntax when writing declarations and contr"
"ol-flow constructs."
msgstr "Elixr は関数を呼び出す際の括弧を省略できます。これにより、宣言と制御構造での文法的な見晴らしをクリアにします。"
msgstr "Elixir は関数を呼び出す際の括弧を省略できます。これにより、宣言と制御構造での文法的な見晴らしをクリアにします。"

msgid ""
"Elixir also supports shortcut notations for entering binary, octal, and hexade"
Expand Down Expand Up @@ -449,7 +449,7 @@ msgid ""
msgstr ""

msgid "## (Linked) Lists"
msgstr "## リスト"
msgstr "## (連結)リスト"

msgid ""
"Elixir uses square brackets to specify a list of values. Values can be of any "
Expand Down Expand Up @@ -640,22 +640,24 @@ msgstr ""
"にタプルもイミュータブルです。タプルに対する各操作は新規にタプルを作成することになりますので、元のタプルが改変されることはありません。"

msgid "## Lists or tuples?"
msgstr ""
msgstr "## リスト or タプル"

msgid "What is the difference between lists and tuples?"
msgstr ""
msgstr "リストとタプルの違いは何でしょう?"

msgid ""
"Lists are stored in memory as linked lists, meaning that each element in a lis"
"t holds its value and points to the following element until the end of the lis"
"t is reached. This means accessing the length of a list is a linear operation:"
" we need to traverse the whole list in order to figure out its size."
msgstr ""
"リストはメモリ上で連結リストとして保持されます。これは、そのリストが終わりに達するまで、リスト内の各要素がその値とそれに次ぐ要素へのポインタを保持していると"
"いう事です。例えば、リストのサイズなどを数え上げる際にリスト内を走査するといったような、リストの長さに対してアクセスする線形演算を想定しています。"

msgid ""
"Similarly, the performance of list concatenation depends on the length of the "
"left-hand list:"
msgstr ""
msgstr "同様に、リストを連結する際のパフォーマンスは、左側のリストの長さに依存します。"

msgid ""
"```iex\n"
Expand All @@ -667,20 +669,29 @@ msgid ""
"iex> [0] ++ list\n"
"[0, 1, 2, 3]"
msgstr ""
"# `[0]` を走査だけで `list` の先頭へ追加できるので高速\n"
"iex> [0] ++ list\n"
"[0, 1, 2, 3]"

msgid ""
"# This is slow as we need to traverse `list` to append 4\n"
"iex> list ++ [4]\n"
"[1, 2, 3, 4]\n"
"```"
msgstr ""
"# `4` を後尾へ追加する為に `list` の走査が必要なので低速\n"
"iex> list ++ [4]\n"
"[1, 2, 3, 4]\n"
"```"

msgid ""
"Tuples, on the other hand, are stored contiguously in memory. This means getti"
"ng the tuple size or accessing an element by index is fast. However, updating "
"or adding elements to tuples is expensive because it requires creating a new t"
"uple in memory:"
msgstr ""
"一方でタプルは、メモリ内で隣接して保持されます。それは、タプルのサイズを得たりインデックスから要素にアクセスするのが高速だということです。しかし、タプルに要"
"素を追加したり更新するには、新たにメモリ内でタプルを作り直さねばならないという高いコストがかかります。"

msgid ""
"```iex\n"
Expand All @@ -698,13 +709,18 @@ msgid ""
"nt of memory allocation the language needs to perform and is only possible tha"
"nks to the immutable semantics of the language."
msgstr ""
"ただし、新たに作り直されるのはタプルそれ自身であって、その中身ではないことに注意してください。それは例えば、タプルを更新しても置き換えられたエントリーを除い"
"たすべてのエントリーが古いタプルと新しいタプルで同じということです。言い換えると、 Elixir におけるリストとタプルはそれらコンテンツを共有可能というこ"
"とを意味しており、言語が機能を果たす為に確保するメモリ量を抑えてくれます。それが可能なのも、この言語のイミュータブルなセマンティクスのおかげです。"

msgid ""
"Those performance characteristics dictate the usage of those data structures. "
"One very common use case for tuples is to use them to return extra information"
" from a function. For example, `File.read/1` is a function that can be used to"
" read file contents. It returns a tuple:"
msgstr ""
"それら動作特性はデータ構造の慣習に影響します。タプルを使用した最も一般的な例のひとつに、関数から特殊な情報を得る為に使うということが挙げられます。例えば `"
"File.read/1` はファイル内のコンテンツを読み出す関数ですが、その戻り値はタプルです。"

msgid ""
"```iex\n"
Expand All @@ -720,12 +736,16 @@ msgid ""
"ok` as the first element and the file contents as the second. Otherwise, it re"
"turns a tuple with `:error` and the error description."
msgstr ""
"`File.read/1` に与えられたパスが存在しているのなら、最初の要素を `:ok` としてそれに次ぐ二つ目にファイル内のコンテンツを含むタプルを返し"
"ます。"

msgid ""
"Most of the time, Elixir is going to guide you to do the right thing. For exam"
"ple, there is an `elem/2` function to access a tuple item but there is no buil"
"t-in equivalent for lists:"
msgstr ""
"殆どの場合、 Elixir は正しく動作する為にあなたをガイドするようになっています。例えば、 `elem/2` はタプルの要素にアクセスする為の関数ですが"
"、リストに対するそれと等価のものは組み込まれていません。"

msgid ""
"```iex\n"
Expand All @@ -743,6 +763,9 @@ msgid ""
"culating the length gets slower as the input grows). As a mnemonic, both \"leng"
"th\" and \"linear\" start with \"l\"."
msgstr ""
"データ構造の要素を数え上げるといった操作をする時、Elixir の関数名は次のルールに従って命名されます。至ってシンプルなものです。その操作が一定時間内のも"
"の(i.e. 値が事前計算されているなど)であれば `size` を添え、その操作が線形のもの(i.e. 入力値を得る毎に遅くなるような長さについて計算する"
"など)であれば `length` を添えます。"

msgid ""
"For example, we have used 4 counting functions so far: `byte_size/1` (for the "
Expand All @@ -753,10 +776,16 @@ msgid ""
"g.length`, and may be expensive as it relies on a traversal of the entire stri"
"ng."
msgstr ""
"例えば、次に挙げる 4 つのカウント機能を持った関数などがそうです。 `byte_size/1` (文字数を得る) 、 `tuple_size/1` (タプ"
"ルの長さを得る) 、 `length` (リストの長さを得る) 、そして `String.length/1` (文字数を得る) です。ある文字列の数を得る "
"`byte_size` 、これは Unicode 文字の数を取得します。別の手段として `String.length` を使えますが、文字列全体の走査に依存"
"するので高いコストがかかります。"

msgid ""
"Elixir also provides `Port`, `Reference`, and `PID` as data types (usually use"
"d in process communication), and we will take a quick look at them when talkin"
"g about processes. For now, let's take a look at some of the basic operators t"
"hat go with our basic types."
msgstr ""
"他にも、 Elixir は `Port` 、 `Reference` 、 `PID` というデータ型も提供しており、プロセス通信で頻繁に利用されます。プロセ"
"スについてお話しする際には簡単に取り上げますが、とりあえず今は基本的な型の扱い方を見ていきましょう。"
Expand Down
2 changes: 1 addition & 1 deletion _po/ja/getting-started/basic-types.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-10-12 00:08+0900\n"
"POT-Creation-Date: 2018-10-28 02:24+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down
Loading