Skip to content

Commit

Permalink
Programming exercises: Translate programming language names (#9279)
Browse files Browse the repository at this point in the history
  • Loading branch information
magaupp authored and JohannesWt committed Sep 23, 2024
1 parent ebeae90 commit 2ae4366
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
[disabled]="programmingExerciseCreationConfig.isImportFromExistingExercise || !!programmingExercise.id || programmingExerciseCreationConfig.isImportFromFile"
>
@for (supportedLanguage of programmingExerciseCreationConfig.supportedLanguages; track supportedLanguage) {
<option [value]="supportedLanguage">
{{ supportedLanguage.charAt(0).toUpperCase() + supportedLanguage.slice(1).toLowerCase() }}
</option>
<option [value]="supportedLanguage" [jhiTranslate]="'artemisApp.ProgrammingLanguage.' + supportedLanguage"></option>
}
</select>
</div>
Expand Down
17 changes: 16 additions & 1 deletion src/main/webapp/i18n/de/programmingLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,22 @@
"ASSEMBLER": "Assembler",
"SWIFT": "Swift",
"OCAML": "OCaml",
"EMPTY": "Empty"
"JAVASCRIPT": "JavaScript",
"C_SHARP": "C#",
"C_PLUS_PLUS": "C++",
"SQL": "SQL",
"R": "R",
"TYPESCRIPT": "TypeScript",
"RUST": "Rust",
"GO": "Go",
"MATLAB": "MATLAB",
"BASH": "Bash",
"RUBY": "Ruby",
"POWERSHELL": "PowerShell",
"ADA": "Ada",
"DART": "Dart",
"PHP": "PHP",
"EMPTY": "Andere"
}
}
}
17 changes: 16 additions & 1 deletion src/main/webapp/i18n/en/programmingLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,22 @@
"ASSEMBLER": "Assembler",
"SWIFT": "Swift",
"OCAML": "OCaml",
"EMPTY": "Empty"
"JAVASCRIPT": "JavaScript",
"C_SHARP": "C#",
"C_PLUS_PLUS": "C++",
"SQL": "SQL",
"R": "R",
"TYPESCRIPT": "TypeScript",
"RUST": "Rust",
"GO": "Go",
"MATLAB": "MATLAB",
"BASH": "Bash",
"RUBY": "Ruby",
"POWERSHELL": "PowerShell",
"ADA": "Ada",
"DART": "Dart",
"PHP": "PHP",
"EMPTY": "Other"
}
}
}

0 comments on commit 2ae4366

Please sign in to comment.