aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorywang <yw05@forksworld.de>2021-04-22 19:23:53 +0200
committerY. Wang <yw05@forksworld.de>2022-10-15 01:18:34 +0200
commitc1bf9b360160f9a9b242ba9234af28edd6ccfdd3 (patch)
tree2620e56b35f17a2b2c21935562dbc058d2dca185
parentc224eba9419318d960682e0bf677e9664bcce2ad (diff)
downloadadvtrains-c1bf9b360160f9a9b242ba9234af28edd6ccfdd3.tar.gz
advtrains-c1bf9b360160f9a9b242ba9234af28edd6ccfdd3.tar.bz2
advtrains-c1bf9b360160f9a9b242ba9234af28edd6ccfdd3.zip
Reference MT l10n in translation notes; (update-l10n) do not edit in-place
-rw-r--r--advtrains/locale/README.md2
-rw-r--r--advtrains/locale/update-l10n.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/advtrains/locale/README.md b/advtrains/locale/README.md
index 893f09e..7a414bc 100644
--- a/advtrains/locale/README.md
+++ b/advtrains/locale/README.md
@@ -6,5 +6,5 @@ If there is a translation file for your language (e.g. German), you can edit the
If the translation file for your language needs to be created, create it by copying `template.txt` to `advtrains.XX.tr`, where `XX` is replaced by the language code.
## Translation Notes
-* Translations should be consistent.
+* Translations should be consistent. Use translations in the Minetest as a reference.
* Replacement sequences (`@1`, `@2`, etc) should not be translated. \ No newline at end of file
diff --git a/advtrains/locale/update-l10n.lua b/advtrains/locale/update-l10n.lua
index 011f9c6..ae7d13b 100644
--- a/advtrains/locale/update-l10n.lua
+++ b/advtrains/locale/update-l10n.lua
@@ -41,6 +41,6 @@ for l in f:lines() do
end
f:close()
-local f = io.open(tfn, "wb") or error("Cannot write to translation file")
+local f = io.open(tfn..".new", "wb") or error("Cannot write to translation file")
f:write(table.concat(ot,"\n"))
f:close() \ No newline at end of file