You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Alexey Berezhok cc59572a59
Added fix for memory calculation
1 month ago
..
ar/LC_MESSAGES Backport github changes to the devel 1 month ago
az/LC_MESSAGES Backport github changes to the devel 1 month ago
bg/LC_MESSAGES Backport github changes to the devel 1 month ago
bn/LC_MESSAGES Backport github changes to the devel 1 month ago
bs/LC_MESSAGES Backport github changes to the devel 1 month ago
ca/LC_MESSAGES Backport github changes to the devel 1 month ago
cs/LC_MESSAGES Backport github changes to the devel 1 month ago
da/LC_MESSAGES Backport github changes to the devel 1 month ago
de/LC_MESSAGES Backport github changes to the devel 1 month ago
el/LC_MESSAGES Backport github changes to the devel 1 month ago
es/LC_MESSAGES Backport github changes to the devel 1 month ago
fa/LC_MESSAGES Backport github changes to the devel 1 month ago
fi/LC_MESSAGES Backport github changes to the devel 1 month ago
fr/LC_MESSAGES Backport github changes to the devel 1 month ago
hr/LC_MESSAGES Backport github changes to the devel 1 month ago
hu/LC_MESSAGES Backport github changes to the devel 1 month ago
id/LC_MESSAGES Backport github changes to the devel 1 month ago
it/LC_MESSAGES Backport github changes to the devel 1 month ago
ja/LC_MESSAGES Backport github changes to the devel 1 month ago
ka/LC_MESSAGES Backport github changes to the devel 1 month ago
ko/LC_MESSAGES Backport github changes to the devel 1 month ago
ku/LC_MESSAGES Backport github changes to the devel 1 month ago
nl/LC_MESSAGES Backport github changes to the devel 1 month ago
no/LC_MESSAGES Backport github changes to the devel 1 month ago
pl/LC_MESSAGES Backport github changes to the devel 1 month ago
pt/LC_MESSAGES Backport github changes to the devel 1 month ago
pt-br/LC_MESSAGES Backport github changes to the devel 1 month ago
ro/LC_MESSAGES Backport github changes to the devel 1 month ago
ru/LC_MESSAGES Added fix for memory calculation 1 month ago
sk/LC_MESSAGES Backport github changes to the devel 1 month ago
sq/LC_MESSAGES Backport github changes to the devel 1 month ago
sr/LC_MESSAGES Backport github changes to the devel 1 month ago
sv/LC_MESSAGES Backport github changes to the devel 1 month ago
th/LC_MESSAGES Backport github changes to the devel 1 month ago
tr/LC_MESSAGES Backport github changes to the devel 1 month ago
uk/LC_MESSAGES Backport github changes to the devel 1 month ago
ur/LC_MESSAGES Backport github changes to the devel 1 month ago
vi/LC_MESSAGES Backport github changes to the devel 1 month ago
zh-cn/LC_MESSAGES Backport github changes to the devel 1 month ago
zh-tw/LC_MESSAGES Backport github changes to the devel 1 month ago
README Added spec update and docs update 6 months ago
hestiacp.pot Added fix for memory calculation 1 month ago
hst_convert_mo2po.sh Backport github changes to the devel 1 month ago
hst_convert_po2mo.sh Backport github changes to the devel 1 month ago
hst_convert_pure_po_pot.rb Backport github changes to the devel 1 month ago
hst_scan_i18n.sh Backport github changes to the devel 1 month ago
languages.json Initial 1 year ago

README

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# Работа с утилитами по работе с файлами локализации

Все действия производить в текущем каталоге

## Convert mo to po

Для восстановления текстовых po файлов из скомпиллированных mo файлов:
```
./hst_convert_mo2po.sh
```

## Update pot file

Для того, чтобы обновить шаблон локализации:
```
./hst_scan_i18n.sh
```

## Формирование нового файла локализации на основе старого po

Старый po файл, восстановлен из mo и не имеет комментариев, где втсречается строка.
Для восстановления комментариев необходимо из pot собрать информацию, а из po файла собрать лоаклизацию.
Это делается командой:
```
./hst_convert_pure_po_pot.rb ru/LC_MESSAGES/hestiacp.po pot
```
получаем файл ru/LC_MESSAGES/hestiacp.po.new

## Обновление mo файла после добавления локализации

```
./hst_convert_po2mo.sh ru
```