|
Revision 2836, 329 bytes
(checked in by diego_iastrubni, 6 years ago)
|
Automation of localization:
Now there is a scritp which scans the htdocs/admin directory for php files, and retrieves from it all the
messages, to create a POT file. Then, it will merge in the new strings into the existing translations. I have
merged the translations locally, and I see that many of them still contain old strings not used by freepbx, legacy of
good old amportal...
I will see if nothing has been broken, and then I commit the merged in strings.
|
- Property svn:executable set to
*
|
| Line | |
|---|
| 1 |
#! /bin/sh |
|---|
| 2 |
|
|---|
| 3 |
echo "Creating new POT template file" |
|---|
| 4 |
find amp_conf/htdocs/admin -name '*.php' | xargs xgettext -L PHP -o freepbx.pot --keyword=_ - |
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
for i in amp_conf/htdocs/admin/i18n/*/LC_MESSAGES/*.po; do |
|---|
| 8 |
echo "Updating $i" |
|---|
| 9 |
msgmerge $i freepbx.pot -U |
|---|
| 10 |
done |
|---|
| 11 |
|
|---|
| 12 |
echo "Done, now don't forget to commit your work!" |
|---|
| 13 |
#less amportal.pot |
|---|