Skip to content

Commit

Permalink
Update Style-Guide.md
Browse files Browse the repository at this point in the history
fix typos
  • Loading branch information
taoeffect authored Oct 4, 2023
1 parent 0412650 commit 7368d90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/Style-Guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ For example, a common mistake is to construct strings out of other strings that
Export your {sent_or_received} payment history to .csv
```

The variable name is good because it is very clear what values it might take on, however, it is still better to avoid constructing such strings entirely if possible and instead use two separate, fully-translated strings because we are not guaranteed that the final string will make sense when composed of individually translated parts.
The variable name is good because it is very clear what values it might take on, however, it is still better to avoid constructing such strings entirely if possible and instead use two separate, fully-translated strings because we are not guaranteed that the final string will make sense when composed out of individually translated parts.

In the above example, `{sent_or_received}` could be either the string `"sent"` or `"received"`, but translating these words individually might result in the wrong word that when inserted into the parent string. Sometimes a foreign language will choose to use different words when the full context is known, or it might change the order of words. For example, Google Translate does the following translation from English to Russian:
In the above example, `{sent_or_received}` could be either the string `"sent"` or `"received"`, but translating these words individually might result in the wrong word when inserted into the parent string. Sometimes a foreign language will choose to use different words when the full context is known, or it might change the order of words. For example, Google Translate does the following translation from English to Russian:

```
Export your sent payment history to .csv => Экспортируйте историю отправленных платежей в .csv.
Expand Down

0 comments on commit 7368d90

Please sign in to comment.