Line 151: |
Line 151: |
| :Save | | :Save |
| :Success | | :Success |
| + | |
| + | == Pootle issues == |
| + | Testing Pootle I have found a few issues. I will try to describe. |
| + | |
| + | Pootle (and Translation Toolkit used by Pootle) use as default a charset UTF-8. Everytime I have create a new language translation, Pootle parse from templates encoding as UTF-8. Everytime I have "Update from templates" the target PO files are updated as UTF-8, and if target has set charset=iso-8859-1, it is then corrupted. I can't found a method to set Pootle to use ISO-8859-1 as default. Because this, and to avoid these issues I have decide to use UTF-8 as charset in Pootle. Please see http://translate.sourceforge.net/wiki/guide/locales/glibc?s=charset#editing |
| + | |
| + | Not only Pootle. Every desktop translation tool set UTF-8 as default charset. |
| + | |
| + | If you want to merged or override a PO file, convert to UTF-8 (if not yet). Then you can upload without corrupt the target file. |
| + | |
| + | One note for admins when Pootle run at contribs.org: I suggest to use a tool for convert from UTF-8 to ISO-8859-1 before make a new language rpm update package (if formmagick can't support utf-8). |
| + | |
| + | I have use this great script to convert between any charset files in a directory: |
| + | |
| + | #!/bin/bash |
| + | |
| + | #./dir_iconv.sh dir cp1251 utf8 - converts all files from directory dir .. cp1251 (windows-1251) to utf8. |
| + | |
| + | ICONVBIN='/usr/bin/iconv' # path to iconv binary |
| + | |
| + | if [ $# -lt 3 ] |
| + | then |
| + | echo "$0 dir from_charset to_charset" |
| + | exit |
| + | fi |
| + | |
| + | for f in $1/* |
| + | do |
| + | if test -f $f |
| + | then |
| + | echo -e "\nConverting $f" |
| + | /bin/mv $f $f.old |
| + | $ICONVBIN -f $2 -t $3 $f.old > $f |
| + | else |
| + | echo -e "\nSkipping $f - not a regular file"; |
| + | fi |
| + | done |