aboutsummaryrefslogtreecommitdiff
path: root/README.i18n.md
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2019-05-15 16:10:40 +0200
committerRiccardo Spagni <ric@spagni.net>2019-05-15 16:10:41 +0200
commite8487fa46b8a5a7b9b3f0322348168f19ea3a42a (patch)
tree715eb8ae1558c3018a35a8dbede2b3e4ebaf8ffa /README.i18n.md
parentMerge pull request #5535 (diff)
parentChanged odd bullet point to low level header (diff)
downloadmonero-e8487fa46b8a5a7b9b3f0322348168f19ea3a42a.tar.xz
Merge pull request #5539
3f612cda Changed odd bullet point to low level header (Rohaq) af9bc4ec Used subeaders to avoid slightly wonky looking formatting (Rohaq) 1873af35 Made code block usage consistent across all .md files (Rohaq) 68103075 Updated Copyright notice (Rohaq) 39bd157f Added Table of Contents to main README.md (Rohaq)
Diffstat (limited to 'README.i18n.md')
-rw-r--r--README.i18n.md24
1 files changed, 18 insertions, 6 deletions
diff --git a/README.i18n.md b/README.i18n.md
index a3bd8070e..5df277624 100644
--- a/README.i18n.md
+++ b/README.i18n.md
@@ -15,23 +15,33 @@ You do not need anything from Qt in order to use the final translations.
To update ts files after changing source code:
- ./utils/translations/update-translations.sh
+```bash
+./utils/translations/update-translations.sh
+```
To add a new language, eg Spanish (ISO code es):
- cp translations/monero.ts translations/monero_es.ts
+```bash
+cp translations/monero.ts translations/monero_es.ts
+```
To edit translations for Spanish:
- linguist translations/monero_es.ts
+```bash
+linguist translations/monero_es.ts
+```
To build translations after modifying them:
- ./utils/translations/build-translations.sh
+```bash
+./utils/translations/build-translations.sh
+```
To test a translation:
- LANG=es ./build/release/bin/monero-wallet-cli
+```bash
+LANG=es ./build/release/bin/monero-wallet-cli
+```
To add new translatable strings in the source code:
@@ -39,6 +49,8 @@ Use the `tr(string)` function if possible. If the code is in a class, and this c
If you're getting messages of the form:
- Class 'cryptonote::simple_wallet' lacks Q_OBJECT macro
+```
+Class 'cryptonote::simple_wallet' lacks Q_OBJECT macro
+```
all is fine, we don't actually need that here.