forked from I2P_Developers/i2p.www
more translation help
This commit is contained in:
18
README.md
18
README.md
@ -65,13 +65,25 @@ in `etc/translation.vars` can be overridden by creating the file
|
||||
$ ./update-existing-po.sh
|
||||
```
|
||||
|
||||
3. Check in the updated translations:
|
||||
3. Look for errors in po files:
|
||||
|
||||
```
|
||||
$ mtn ci i2p2www/translations/ -m "Updated translations"
|
||||
$ ./checkpo.sh
|
||||
```
|
||||
|
||||
4. Check in any new translations:
|
||||
4. Find which po files have new strings:
|
||||
|
||||
```
|
||||
$ ./findpochanges.sh
|
||||
```
|
||||
|
||||
5. Check in the updated translations:
|
||||
|
||||
```
|
||||
$ mtn ci `cat newtranslations.txt` -m "Updated translations"
|
||||
```
|
||||
|
||||
6. Check in any new translations:
|
||||
First, look to see which translations are supported in i2pwww/__init__.py.
|
||||
For any new translations that are NOT in __init__.py,
|
||||
either delete the po directory i2p2www/translations/xx (if it's not translated enough to add it to the website),
|
||||
|
18
findpochanges.sh
Executable file
18
findpochanges.sh
Executable file
@ -0,0 +1,18 @@
|
||||
TMP=/tmp/findpochanges$$.txt
|
||||
TMP2=newtranslations.txt
|
||||
rm -f $TMP2
|
||||
touch $TMP2
|
||||
for i in i2p2www/translations/*/*/*.po
|
||||
do
|
||||
mtn diff $i | grep '+msgstr' | grep -v '+msgstr ""' > $TMP
|
||||
if [ -s $TMP ]
|
||||
then
|
||||
echo $i >> $TMP2
|
||||
echo $i
|
||||
cat $TMP
|
||||
echo
|
||||
fi
|
||||
done
|
||||
echo 'New strings in the following files:'
|
||||
cat $TMP2
|
||||
rm -f $TMP
|
Reference in New Issue
Block a user