Skip to content

Commit 871815b

Browse files
committed
Maintaining .po made easy
Added a bash script to update / maintain .po(t) files Change nl_NL / us_US to nl and us
1 parent 207cfeb commit 871815b

File tree

7 files changed

+3812
-0
lines changed

7 files changed

+3812
-0
lines changed

web/locale/NOTES.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Hestia Update guide for improved language system
2+
3+
### Create new translation
4+
5+
Open hestiacp.pot in a .po(t) editor for example Poedit-2, gtranslator or online tools like https://localise.biz/free/poeditor
6+
Translate the file. Make sure you escape " with a slash. Save and update it in the folder. "iso"/LC_MESSAGES Please be aware that English (en) becomes en and Dutch (nl) becomes nl
7+
8+
For example I create the file for Spanish:
9+
10+
Folder becomes locale/nl/LC_MESSAGES
11+
12+
Run the command ./hst-convert-po2mo.sh language (./hst-convert-po2mo.sh nl)
13+
14+
### Upadate translation
15+
16+
Open .po file in /locale/{language}/LC_MESSAGES .po(t) editor
17+
18+
### Add / remove language strings
19+
20+
Run the command ./hst_scan_i18n.sh

0 commit comments

Comments
 (0)