Skip to content

Commit

Permalink
feat: allow duplicates of positional parameters, which may be names.
Browse files Browse the repository at this point in the history
Sometimes translations repeat names, instead of using pronouns.
  • Loading branch information
frosch123 committed Apr 30, 2024
1 parent 0382e2e commit 714bc14
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 96 deletions.
46 changes: 23 additions & 23 deletions src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ pub const COMMANDS: &'static [CommandInfo] = &[
name: "COLOUR",
norm_name: None,
dialects: D_GO,
occurence: Occurence::EXACT,
occurence: Occurence::NONZERO,
front_only: false,
allow_case: false,
def_plural_subindex: None,
Expand All @@ -613,7 +613,7 @@ pub const COMMANDS: &'static [CommandInfo] = &[
name: "STRING",
norm_name: None,
dialects: DNGO,
occurence: Occurence::EXACT,
occurence: Occurence::NONZERO,
front_only: false,
allow_case: true,
def_plural_subindex: None,
Expand All @@ -623,7 +623,7 @@ pub const COMMANDS: &'static [CommandInfo] = &[
name: "RAW_STRING",
norm_name: Some("STRING"),
dialects: D_GO,
occurence: Occurence::EXACT,
occurence: Occurence::NONZERO,
front_only: false,
allow_case: false,
def_plural_subindex: None,
Expand All @@ -633,7 +633,7 @@ pub const COMMANDS: &'static [CommandInfo] = &[
name: "STRING1",
norm_name: Some("STRING"),
dialects: D_GO,
occurence: Occurence::EXACT,
occurence: Occurence::NONZERO,
front_only: false,
allow_case: true,
def_plural_subindex: None,
Expand All @@ -643,7 +643,7 @@ pub const COMMANDS: &'static [CommandInfo] = &[
name: "STRING2",
norm_name: Some("STRING"),
dialects: D_GO,
occurence: Occurence::EXACT,
occurence: Occurence::NONZERO,
front_only: false,
allow_case: true,
def_plural_subindex: None,
Expand All @@ -653,7 +653,7 @@ pub const COMMANDS: &'static [CommandInfo] = &[
name: "STRING3",
norm_name: Some("STRING"),
dialects: D_GO,
occurence: Occurence::EXACT,
occurence: Occurence::NONZERO,
front_only: false,
allow_case: true,
def_plural_subindex: None,
Expand All @@ -663,7 +663,7 @@ pub const COMMANDS: &'static [CommandInfo] = &[
name: "STRING4",
norm_name: Some("STRING"),
dialects: D_GO,
occurence: Occurence::EXACT,
occurence: Occurence::NONZERO,
front_only: false,
allow_case: true,
def_plural_subindex: None,
Expand All @@ -673,7 +673,7 @@ pub const COMMANDS: &'static [CommandInfo] = &[
name: "STRING5",
norm_name: Some("STRING"),
dialects: D_GO,
occurence: Occurence::EXACT,
occurence: Occurence::NONZERO,
front_only: false,
allow_case: true,
def_plural_subindex: None,
Expand All @@ -683,7 +683,7 @@ pub const COMMANDS: &'static [CommandInfo] = &[
name: "STRING6",
norm_name: Some("STRING"),
dialects: D_GO,
occurence: Occurence::EXACT,
occurence: Occurence::NONZERO,
front_only: false,
allow_case: true,
def_plural_subindex: None,
Expand All @@ -693,7 +693,7 @@ pub const COMMANDS: &'static [CommandInfo] = &[
name: "STRING7",
norm_name: Some("STRING"),
dialects: D_GO,
occurence: Occurence::EXACT,
occurence: Occurence::NONZERO,
front_only: false,
allow_case: true,
def_plural_subindex: None,
Expand Down Expand Up @@ -1059,7 +1059,7 @@ pub const COMMANDS: &'static [CommandInfo] = &[
name: "CARGO_NAME",
norm_name: None,
dialects: DN__,
occurence: Occurence::EXACT,
occurence: Occurence::NONZERO,
front_only: false,
allow_case: true,
def_plural_subindex: None,
Expand All @@ -1079,7 +1079,7 @@ pub const COMMANDS: &'static [CommandInfo] = &[
name: "INDUSTRY",
norm_name: None,
dialects: D_GO,
occurence: Occurence::EXACT,
occurence: Occurence::NONZERO,
front_only: false,
allow_case: true,
def_plural_subindex: None,
Expand All @@ -1089,7 +1089,7 @@ pub const COMMANDS: &'static [CommandInfo] = &[
name: "WAYPOINT",
norm_name: None,
dialects: D_GO,
occurence: Occurence::EXACT,
occurence: Occurence::NONZERO,
front_only: false,
allow_case: false,
def_plural_subindex: None,
Expand All @@ -1099,7 +1099,7 @@ pub const COMMANDS: &'static [CommandInfo] = &[
name: "STATION",
norm_name: None,
dialects: DNGO,
occurence: Occurence::EXACT,
occurence: Occurence::NONZERO,
front_only: false,
allow_case: false,
def_plural_subindex: None,
Expand All @@ -1109,7 +1109,7 @@ pub const COMMANDS: &'static [CommandInfo] = &[
name: "DEPOT",
norm_name: None,
dialects: D_GO,
occurence: Occurence::EXACT,
occurence: Occurence::NONZERO,
front_only: false,
allow_case: false,
def_plural_subindex: None,
Expand All @@ -1119,7 +1119,7 @@ pub const COMMANDS: &'static [CommandInfo] = &[
name: "TOWN",
norm_name: None,
dialects: D_GO,
occurence: Occurence::EXACT,
occurence: Occurence::NONZERO,
front_only: false,
allow_case: false,
def_plural_subindex: None,
Expand All @@ -1129,7 +1129,7 @@ pub const COMMANDS: &'static [CommandInfo] = &[
name: "GROUP",
norm_name: None,
dialects: D_GO,
occurence: Occurence::EXACT,
occurence: Occurence::NONZERO,
front_only: false,
allow_case: false,
def_plural_subindex: None,
Expand All @@ -1139,7 +1139,7 @@ pub const COMMANDS: &'static [CommandInfo] = &[
name: "SIGN",
norm_name: None,
dialects: D_GO,
occurence: Occurence::EXACT,
occurence: Occurence::NONZERO,
front_only: false,
allow_case: false,
def_plural_subindex: None,
Expand All @@ -1149,7 +1149,7 @@ pub const COMMANDS: &'static [CommandInfo] = &[
name: "ENGINE",
norm_name: None,
dialects: D_GO,
occurence: Occurence::EXACT,
occurence: Occurence::NONZERO,
front_only: false,
allow_case: false,
def_plural_subindex: None,
Expand All @@ -1159,7 +1159,7 @@ pub const COMMANDS: &'static [CommandInfo] = &[
name: "VEHICLE",
norm_name: None,
dialects: D_GO,
occurence: Occurence::EXACT,
occurence: Occurence::NONZERO,
front_only: false,
allow_case: false,
def_plural_subindex: None,
Expand All @@ -1169,7 +1169,7 @@ pub const COMMANDS: &'static [CommandInfo] = &[
name: "COMPANY",
norm_name: None,
dialects: D_GO,
occurence: Occurence::EXACT,
occurence: Occurence::NONZERO,
front_only: false,
allow_case: false,
def_plural_subindex: None,
Expand All @@ -1179,7 +1179,7 @@ pub const COMMANDS: &'static [CommandInfo] = &[
name: "COMPANY_NUM",
norm_name: None,
dialects: D_GO,
occurence: Occurence::EXACT,
occurence: Occurence::NONZERO,
front_only: false,
allow_case: false,
def_plural_subindex: None,
Expand All @@ -1189,7 +1189,7 @@ pub const COMMANDS: &'static [CommandInfo] = &[
name: "PRESIDENT_NAME",
norm_name: None,
dialects: D_GO,
occurence: Occurence::EXACT,
occurence: Occurence::NONZERO,
front_only: false,
allow_case: false,
def_plural_subindex: None,
Expand Down
Loading

0 comments on commit 714bc14

Please sign in to comment.