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 6e7af9ea42
Added alternative php. Part 13
2 months ago
..
ar/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
az/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
bg/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
bn/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
bs/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
ca/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
cs/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
da/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
de/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
el/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
es/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
fa/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
fi/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
fr/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
hr/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
hu/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
id/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
it/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
ja/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
ka/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
ko/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
ku/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
nl/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
no/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
pl/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
pt/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
pt-br/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
ro/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
ru/LC_MESSAGES Added alternative php. Part 13 2 months ago
sk/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
sr/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
sv/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
th/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
tr/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
uk/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
ur/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
vi/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
zh-cn/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
zh-tw/LC_MESSAGES Added mo-po converter, added pot-po converter 7 months ago
README Added spec update and docs update 3 months ago
hestiacp.pot Added alternative php. Part 13 2 months ago
hst_convert_mo2po.sh Added mo-po converter, added pot-po converter 7 months ago
hst_convert_po2mo.sh Added mo-po converter, added pot-po converter 7 months ago
hst_convert_pure_po_pot.rb Added passeneg manager. Part 12 3 months ago
hst_scan_i18n.sh Initial 1 year 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
```