5da1fdb36808b6ca63ab2d114abb788ca9571531
Fenris Wolf advanced

Fenris Wolf authored 7 years ago

source/structure/personal_pronouns.html.php   1) <?php
fenris advanced

fenris authored 7 years ago

source/structure/personal_pronouns.html.php   2) global $configuration;
source/structure/personal_pronouns.html.php   3) include_once("source/logic/server/data.php");
Christian Fraß better table-snap

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php     4) include_once("source/logic/server/sql.php");
fenris foo

fenris authored 7 years ago

source/structure/personal_pronouns.html.php   5) include_once("source/logic/server/table.php");
Fenris Wolf advanced

Fenris Wolf authored 7 years ago

source/structure/personal_pronouns.html.php   6) 
Christian Fraß repaired tables in content

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php     7) /*
fenris foo

fenris authored 7 years ago

source/structure/personal_pronouns.html.php   8) function convert_persona($persona) {return [0 => "impersonal", 1 => "1st person", 2 => "2nd person", 3 => "3rd person"][$persona];}
source/structure/personal_pronouns.html.php   9) function convert_numerus($numerus) {return [0 => null, 1 => "singular", 2 => "plural"][$numerus];}
source/structure/personal_pronouns.html.php  10) function convert_genus($genus) {return [0 => "common", 1 => "masculine", 2 => "feminine", 3 => "neuter"][$genus];}
Christian Fraß repaired tables in content

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php    11)  */
Fenris Wolf advanced

Fenris Wolf authored 7 years ago

source/structure/personal_pronouns.html.php  12)  ?>
bfadmin-master advanced

bfadmin-master authored 7 years ago

source/structure/personal_pronouns.html.php  13) <section class="subsection" id="personal_pronouns">
Fenris Wolf advanced

Fenris Wolf authored 7 years ago

source/structure/personal_pronouns.html.php  14) 	<header>Personal Pronouns</header>
source/structure/personal_pronouns.html.php  15) <?php
Christian Fraß repaired tables in content

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php    16) 	$data_common = read_json("source/data/common.json");
source/content/personal_pronouns.html.php    17) 	$data_pronouns = read_json("source/data/personal_pronouns.json");
Christian Fraß better table-snap

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php    18) 	
source/content/personal_pronouns.html.php    19) 	$data = $data_pronouns["words"];
source/content/personal_pronouns.html.php    20) 	{
source/content/personal_pronouns.html.php    21) 		{
Christian Fraß improved look of pronoun-table

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php    22) 			if (false)
source/content/personal_pronouns.html.php    23) 			{
source/content/personal_pronouns.html.php    24) 				$data = sql_cross($data, $data_common["counts"]);
source/content/personal_pronouns.html.php    25) 				$data = sql_select($data, function ($row) {return ($row["count_id"] == $row["id"]);});
source/content/personal_pronouns.html.php    26) 				$data = sql_delete($data, ["count_id", "id"]);
source/content/personal_pronouns.html.php    27) 				$data = sql_rename($data, "name", "count_name");
source/content/personal_pronouns.html.php    28) 			}
source/content/personal_pronouns.html.php    29) 			else
source/content/personal_pronouns.html.php    30) 			{
source/content/personal_pronouns.html.php    31) 				$data = sql_rename($data, "count_id", "count_name");
source/content/personal_pronouns.html.php    32) 			}
Christian Fraß better table-snap

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php    33) 		}
source/content/personal_pronouns.html.php    34) 		{
Christian Fraß improved look of pronoun-table

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php    35) 			if (false)
source/content/personal_pronouns.html.php    36) 			{
source/content/personal_pronouns.html.php    37) 				$data = sql_cross($data, $data_common["persons"]);
source/content/personal_pronouns.html.php    38) 				$data = sql_select($data, function ($row) {return ($row["person_id"] == $row["id"]);});
source/content/personal_pronouns.html.php    39) 				$data = sql_delete($data, ["person_id", "id"]);
source/content/personal_pronouns.html.php    40) 				$data = sql_rename($data, "name", "person_name");
source/content/personal_pronouns.html.php    41) 			}
source/content/personal_pronouns.html.php    42) 			else
source/content/personal_pronouns.html.php    43) 			{
source/content/personal_pronouns.html.php    44) 				$data = sql_rename($data, "person_id", "person_name");
source/content/personal_pronouns.html.php    45) 			}
Christian Fraß better table-snap

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php    46) 		}
source/content/personal_pronouns.html.php    47) 		{
Christian Fraß improved look of pronoun-table

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php    48) 			if (false)
source/content/personal_pronouns.html.php    49) 			{
source/content/personal_pronouns.html.php    50) 				$data = sql_cross($data, $data_common["genders"]);
source/content/personal_pronouns.html.php    51) 				$data = sql_select($data, function ($row) {return ($row["gender_id"] == $row["id"]);});
source/content/personal_pronouns.html.php    52) 				$data = sql_delete($data, ["gender_id", "id"]);
source/content/personal_pronouns.html.php    53) 				$data = sql_rename($data, "name", "gender_name");
source/content/personal_pronouns.html.php    54) 			}
source/content/personal_pronouns.html.php    55) 			else
source/content/personal_pronouns.html.php    56) 			{
source/content/personal_pronouns.html.php    57) 				$data = sql_rename($data, "gender_id", "gender_name");
source/content/personal_pronouns.html.php    58) 			}
Christian Fraß better table-snap

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php    59) 		}
source/content/personal_pronouns.html.php    60) 		{
Christian Fraß improved look of pronoun-table

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php    61) 			if (false)
source/content/personal_pronouns.html.php    62) 			{
source/content/personal_pronouns.html.php    63) 				$data = sql_cross($data, $data_pronouns["types"]);
source/content/personal_pronouns.html.php    64) 				$data = sql_select($data, function ($row) {return ($row["type_id"] == $row["id"]);});
source/content/personal_pronouns.html.php    65) 				$data = sql_delete($data, ["type_id", "id"]);
source/content/personal_pronouns.html.php    66) 				$data = sql_rename($data, "name", "type_name");
source/content/personal_pronouns.html.php    67) 			}
source/content/personal_pronouns.html.php    68) 			else
source/content/personal_pronouns.html.php    69) 			{
source/content/personal_pronouns.html.php    70) 				$data = sql_rename($data, "type_id", "type_name");
source/content/personal_pronouns.html.php    71) 			}
Christian Fraß better table-snap

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php    72) 		}
source/content/personal_pronouns.html.php    73) 		{
Christian Fraß included developer-notes; a...

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php    74) 			if (false)
Christian Fraß improved look of pronoun-table

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php    75) 			{
source/content/personal_pronouns.html.php    76) 				$data = sql_cross($data, $data_common["cases"]);
source/content/personal_pronouns.html.php    77) 				$data = sql_select($data, function ($row) {return ($row["case_id"] == $row["id"]);});
source/content/personal_pronouns.html.php    78) 				$data = sql_delete($data, ["case_id", "id"]);
source/content/personal_pronouns.html.php    79) 				$data = sql_rename($data, "name", "case_name");
source/content/personal_pronouns.html.php    80) 			}
source/content/personal_pronouns.html.php    81) 			else
source/content/personal_pronouns.html.php    82) 			{
source/content/personal_pronouns.html.php    83) 				$data = sql_rename($data, "case_id", "case_name");
source/content/personal_pronouns.html.php    84) 			}
Christian Fraß better table-snap

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php    85) 		}
source/content/personal_pronouns.html.php    86) 	}
source/content/personal_pronouns.html.php    87) 	
Christian Fraß improved look of pronoun-table

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php    88) 	{
source/content/personal_pronouns.html.php    89) 		// $data = sql_select($data, function ($row) {return ($row["case_name"] != "pos");});
Christian Fraß minor changes; move to kora...

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php    90) 		$data = sql_select($data, function ($row) {global $configuration; return (($row["language_id"] == "fs") or ($row["language_id"] == $configuration["target"]));});
Christian Fraß improved look of pronoun-table

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php    91) 	}
source/content/personal_pronouns.html.php    92) 	
fenris foo

fenris authored 7 years ago

source/structure/personal_pronouns.html.php  93) 	$table = new class_table
source/structure/personal_pronouns.html.php  94) 	(
source/structure/personal_pronouns.html.php  95) 		[
Christian Fraß better table-snap

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php    96) 			new class_column("Language", "language_id"),
source/content/personal_pronouns.html.php    97) 			new class_column("Count", "count_name"),
source/content/personal_pronouns.html.php    98) 			new class_column("Person", "person_name"),
source/content/personal_pronouns.html.php    99) 			new class_column("Gender", "gender_name"),
source/content/personal_pronouns.html.php   100) 			new class_column("Type", "type_name"),
source/content/personal_pronouns.html.php   101) 			new class_column("Case", "case_name"),
source/content/personal_pronouns.html.php   102) 			new class_column("Words", "words", function ($x) {return json_encode($x);}),
fenris foo

fenris authored 7 years ago

source/structure/personal_pronouns.html.php 103) 		],
Christian Fraß better table-snap

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php   104) 		$data
source/content/personal_pronouns.html.php   105) 	);
source/content/personal_pronouns.html.php   106) 	
Christian Fraß minor changes; move to kora...

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php   107) 	$table->snap
Christian Fraß better table-snap

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php   108) 	(
source/content/personal_pronouns.html.php   109) 		[
source/content/personal_pronouns.html.php   110) 			"label_vertical" => function ($column) {return "";},
source/content/personal_pronouns.html.php   111) 			"columns_vertical" =>
source/content/personal_pronouns.html.php   112) 			[
Christian Fraß repaired tables in content

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php   113) 				$table->columns_get()[1],
source/content/personal_pronouns.html.php   114) 				$table->columns_get()[2],
source/content/personal_pronouns.html.php   115) 				$table->columns_get()[3],
Christian Fraß better table-snap

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php   116) 			],
source/content/personal_pronouns.html.php   117) 			"label_horizontal" => function ($column, $value) {return $value;},
source/content/personal_pronouns.html.php   118) 			"columns_horizontal" =>
source/content/personal_pronouns.html.php   119) 			[
Christian Fraß included developer-notes; a...

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php   120) 				$table->columns_get()[4],
Christian Fraß repaired tables in content

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php   121) 				$table->columns_get()[5],
Christian Fraß better table-snap

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php   122) 			],
source/content/personal_pronouns.html.php   123) 			"columns_data" =>
source/content/personal_pronouns.html.php   124) 			[
source/content/personal_pronouns.html.php   125) 				$table->columns_get()[0],
source/content/personal_pronouns.html.php   126) 				$table->columns_get()[6],
source/content/personal_pronouns.html.php   127) 			],
source/content/personal_pronouns.html.php   128) 			"data_aggregator" => function ($values)
source/content/personal_pronouns.html.php   129) 			{
source/content/personal_pronouns.html.php   130) 				return $values;
source/content/personal_pronouns.html.php   131) 			},
source/content/personal_pronouns.html.php   132) 			"data_formatter" => function ($value)
source/content/personal_pronouns.html.php   133) 			{
Christian Fraß improved look of pronoun-table

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php   134) 				switch (1)
Christian Fraß repaired tables in content

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php   135) 				{
source/content/personal_pronouns.html.php   136) 					case 0:
source/content/personal_pronouns.html.php   137) 					{
source/content/personal_pronouns.html.php   138) 						return _baz($value[0]["words"], "word", "fs");
source/content/personal_pronouns.html.php   139) 						// break;
source/content/personal_pronouns.html.php   140) 					}
source/content/personal_pronouns.html.php   141) 					case 1:
source/content/personal_pronouns.html.php   142) 					{
Christian Fraß minor changes; move to kora...

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php   143) 						global $configuration;
source/content/personal_pronouns.html.php   144) 						$value_ = [];
source/content/personal_pronouns.html.php   145) 						foreach (["fs",$configuration["target"]] as $language_id)
source/content/personal_pronouns.html.php   146) 						{
source/content/personal_pronouns.html.php   147) 							$value_[$language_id] = array_reduce
source/content/personal_pronouns.html.php   148) 							(
source/content/personal_pronouns.html.php   149) 								array_map
source/content/personal_pronouns.html.php   150) 								(
source/content/personal_pronouns.html.php   151) 									function ($dataset) {return $dataset["words"];},
source/content/personal_pronouns.html.php   152) 									array_filter($value, function ($dataset) use (&$language_id) {return ($dataset["language_id"] == $language_id);})
source/content/personal_pronouns.html.php   153) 								),
source/content/personal_pronouns.html.php   154) 								function ($x, $y) {return array_merge($x, $y);},
source/content/personal_pronouns.html.php   155) 								[]
source/content/personal_pronouns.html.php   156) 							);
source/content/personal_pronouns.html.php   157) 						}
Christian Fraß repaired tables in content

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php   158) 						return (
source/content/personal_pronouns.html.php   159) 							_bar("word")
source/content/personal_pronouns.html.php   160) 							(
source/content/personal_pronouns.html.php   161) 								[
Christian Fraß minor changes; move to kora...

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php   162) 									"original" => $value_["fs"],
source/content/personal_pronouns.html.php   163) 									"translated" => $value_[$configuration["target"]],
Christian Fraß repaired tables in content

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php   164) 								]
source/content/personal_pronouns.html.php   165) 							)
source/content/personal_pronouns.html.php   166) 						);
source/content/personal_pronouns.html.php   167) 						// break;
source/content/personal_pronouns.html.php   168) 					}
source/content/personal_pronouns.html.php   169) 					default:
source/content/personal_pronouns.html.php   170) 					{
source/content/personal_pronouns.html.php   171) 						return json_encode($value);
source/content/personal_pronouns.html.php   172) 						// break;
source/content/personal_pronouns.html.php   173) 					}
source/content/personal_pronouns.html.php   174) 				}
Christian Fraß better table-snap

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php   175) 			},
source/content/personal_pronouns.html.php   176) 		]
Christian Fraß minor changes; move to kora...

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php   177) 	)->generate();
Fenris Wolf advanced

Fenris Wolf authored 7 years ago

source/structure/personal_pronouns.html.php 178)  ?>
Christian Fraß included developer-notes; a...

Christian Fraß authored 7 years ago

source/content/personal_pronouns.html.php   179) 	<div class="note note_information">
source/content/personal_pronouns.html.php   180) 		<span class="note_content">
source/content/personal_pronouns.html.php   181) 			<p>Since the word <span class="word lang_fs">man</span> simply means <span class="word lang_en">human being</span>, it can be understood as an implicit way to express an abstract actor; similar words like <span class="word lang_fs">lüd</span> (<span class="word lang_en">people</span>) or <span class="word lang_fs">di</span> can be used as well.</p>
source/content/personal_pronouns.html.php   182) 		</span>
source/content/personal_pronouns.html.php   183) 	</div>
source/content/personal_pronouns.html.php   184) 	<div class="note note_information">
source/content/personal_pronouns.html.php   185) 		<span class="note_content">
source/content/personal_pronouns.html.php   186) 			<p>The honorific salutation is expressed by the plural form <span class="word lang_fs">je</span>; however it should be avoided in usual speech in favor of the singular form <span class="word lang_fs">du</span>.</p>
source/content/personal_pronouns.html.php   187) 		</span>
source/content/personal_pronouns.html.php   188) 	</div>
source/content/personal_pronouns.html.php   189) 	<div class="note note_information">
source/content/personal_pronouns.html.php   190) 		<span class="note_content">
source/content/personal_pronouns.html.php   191) 			<p>A reflexive genitive can be formed by inserting the word <span class="word lang_fs">egen</span> (<span class="word lang_en">own</span>), for example <span class="sentence lang_fs">Han (A) hav givt to ham (B) hans egen buk.</span> ~ <span class="sentence lang_en">He (A) has given (to) him (B) his own book.</span> (A's book was given to B).</p>
source/content/personal_pronouns.html.php   192) 		</span>
source/content/personal_pronouns.html.php   193) 	</div>