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 08e5b49cab
Backport github changes to the devel
1 week ago
..
ar/LC_MESSAGES Backport github changes to the devel 1 week ago
az/LC_MESSAGES Backport github changes to the devel 1 week ago
bg/LC_MESSAGES Backport github changes to the devel 1 week ago
bn/LC_MESSAGES Backport github changes to the devel 1 week ago
bs/LC_MESSAGES Backport github changes to the devel 1 week ago
ca/LC_MESSAGES Backport github changes to the devel 1 week ago
cs/LC_MESSAGES Backport github changes to the devel 1 week ago
da/LC_MESSAGES Backport github changes to the devel 1 week ago
de/LC_MESSAGES Backport github changes to the devel 1 week ago
el/LC_MESSAGES Backport github changes to the devel 1 week ago
es/LC_MESSAGES Backport github changes to the devel 1 week ago
fa/LC_MESSAGES Backport github changes to the devel 1 week ago
fi/LC_MESSAGES Backport github changes to the devel 1 week ago
fr/LC_MESSAGES Backport github changes to the devel 1 week ago
hr/LC_MESSAGES Backport github changes to the devel 1 week ago
hu/LC_MESSAGES Backport github changes to the devel 1 week ago
id/LC_MESSAGES Backport github changes to the devel 1 week ago
it/LC_MESSAGES Backport github changes to the devel 1 week ago
ja/LC_MESSAGES Backport github changes to the devel 1 week ago
ka/LC_MESSAGES Backport github changes to the devel 1 week ago
ko/LC_MESSAGES Backport github changes to the devel 1 week ago
ku/LC_MESSAGES Backport github changes to the devel 1 week ago
nl/LC_MESSAGES Backport github changes to the devel 1 week ago
no/LC_MESSAGES Backport github changes to the devel 1 week ago
pl/LC_MESSAGES Backport github changes to the devel 1 week ago
pt/LC_MESSAGES Backport github changes to the devel 1 week ago
pt-br/LC_MESSAGES Backport github changes to the devel 1 week ago
ro/LC_MESSAGES Backport github changes to the devel 1 week ago
ru/LC_MESSAGES Backport github changes to the devel 1 week ago
sk/LC_MESSAGES Backport github changes to the devel 1 week ago
sq/LC_MESSAGES Backport github changes to the devel 1 week ago
sr/LC_MESSAGES Backport github changes to the devel 1 week ago
sv/LC_MESSAGES Backport github changes to the devel 1 week ago
th/LC_MESSAGES Backport github changes to the devel 1 week ago
tr/LC_MESSAGES Backport github changes to the devel 1 week ago
uk/LC_MESSAGES Backport github changes to the devel 1 week ago
ur/LC_MESSAGES Backport github changes to the devel 1 week ago
vi/LC_MESSAGES Backport github changes to the devel 1 week ago
zh-cn/LC_MESSAGES Backport github changes to the devel 1 week ago
zh-tw/LC_MESSAGES Backport github changes to the devel 1 week ago
README Added spec update and docs update 5 months ago
hestiacp.pot Added alternative php. Part 13 4 months ago
hst_convert_mo2po.sh Backport github changes to the devel 1 week ago
hst_convert_po2mo.sh Backport github changes to the devel 1 week ago
hst_convert_pure_po_pot.rb Backport github changes to the devel 1 week ago
hst_scan_i18n.sh Backport github changes to the devel 1 week 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
```