Skip to content

Commit

Permalink
Closes elementary#147: provide reason why string templates shouldn’t …
Browse files Browse the repository at this point in the history
…be used

Specifically, because they cannot be localised.
  • Loading branch information
aral authored Nov 5, 2021
1 parent 9ab520c commit 6be848b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion writing-apps/code-style.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ print ("Hello World");

## String Formatting

Avoid using literals when formatting strings:
Avoid using literals when formatting strings, as they cannot be [localized](https://wiki.gnome.org/TranslationProject/DevGuidelines):

```csharp
var string = @"Error parsing config: $(config_path)";
Expand Down

0 comments on commit 6be848b

Please sign in to comment.