Skip to content

Commit 822106a

Browse files
AutoPING-TUIMrSerth
andauthored
Apply suggestions from code review
Aligning the code with the style of this repository. Co-authored-by: Sebastian Serth <[email protected]>
1 parent 00f3e8f commit 822106a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

app/javascript/multilang_de.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
:root[lang="de"] .multilang:not([lang="de"]) {
2-
display: none;
2+
display: none;
33
}

app/javascript/multilang_en.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
:root[lang="en"] .multilang:not([lang="en"]) {
2-
display: none;
2+
display: none;
33
}

docs/multilang.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ The implementation of multilanguage support in CodeOcean is inspired by [Moodle'
1010

1111
## Usage
1212

13-
When making exercise descriptions or tips multilingual, the `.multilang`class must be assigned to all multilingual content. The `lang` attribute must be set to the appropriate locale, e.g. `"en"` or `"de"`. This very simple solution can be applied in many different ways:
13+
When making exercise descriptions or tips multilingual, the `.multilang` class must be assigned to all multilingual content. The `lang` attribute must be set to the appropriate locale, e. g., `"en"` or `"de"`. This very simple solution can be applied in many different ways:
1414

1515
Example 1 (Separated Multilingual Content Blocks):
1616

17-
```
17+
```md
1818
<p class="multilang" lang="de">Implementieren Sie eine Funktion, die für einen gegebenen Parameter entscheidet, ob er gerade oder ungerade ist.</p>
1919
<p class="multilang" lang="en">Implement a function that decides for a given parameter whether it is even or odd.</p>
2020
```
2121

2222
Example 2 (Inline Separation of Multilingual Content):
2323

24-
```
25-
<p><span class="multilang" lang="de">Implementieren Sie eine Funktion, die für einen gegebenen Parameter entscheidet, ob er gerade oder ungerade ist.</span> <span class="multilang" lang="en">Implement a function that decides for a given parameter whether it is even or odd.</span></p>
24+
```md
25+
<p><span class="multilang" lang="de">Implementieren Sie eine Funktion, die für einen gegebenen Parameter entscheidet, ob er gerade oder ungerade ist.</span><span class="multilang" lang="en">Implement a function that decides for a given parameter whether it is even or odd.</span></p>
2626
```
2727

2828
This approach also applies to the description of tips, including their example sections.

0 commit comments

Comments
 (0)