mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 00:35:30 +00:00
translation stuff
This commit is contained in:
parent
cb76383512
commit
2c02327590
2 changed files with 12522 additions and 0 deletions
|
@ -1,5 +1,28 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Project translation script.
|
||||||
|
# Pre-requisites:
|
||||||
|
# sudo apt install gettext poedit
|
||||||
|
# Instructions:
|
||||||
|
# Execute 'util/translate xx' from your webroot,
|
||||||
|
# where 'xx' is an iso language string.
|
||||||
|
#
|
||||||
|
# If the language directory doesn't exist, create it
|
||||||
|
# by copying the contents of view/en into it.
|
||||||
|
#
|
||||||
|
# Additionally, there are a small number of template files
|
||||||
|
# ending in ".tpl" in the language directory which should
|
||||||
|
# be translated manually. Do not translate template variables
|
||||||
|
# which look like {{$variable}} or "%s" or "%d" or "%1$s".
|
||||||
|
# The text "$projectname" or "$Projectname" should also not
|
||||||
|
# be translated.
|
||||||
|
#
|
||||||
|
# The htconfig.tpl file contains code lines, so just
|
||||||
|
# translate the comment text.
|
||||||
|
#
|
||||||
|
# When finished, commit the result and issue a pull request
|
||||||
|
# to the project repository using standard git workflows.
|
||||||
|
|
||||||
if [ $# -lt 1 ]; then
|
if [ $# -lt 1 ]; then
|
||||||
echo usage: $0 language
|
echo usage: $0 language
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -9,4 +32,5 @@ if [ -e view/$1/messages.po ]; then
|
||||||
msgmerge --update view/$1/messages.po util/messages.po
|
msgmerge --update view/$1/messages.po util/messages.po
|
||||||
poedit view/$1/messages.po
|
poedit view/$1/messages.po
|
||||||
php util/po2php.php view/$1/messages.po
|
php util/po2php.php view/$1/messages.po
|
||||||
|
php -l view/$1/strings.php
|
||||||
fi
|
fi
|
||||||
|
|
12498
view/en/messages.po
Normal file
12498
view/en/messages.po
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue