tools: removed script to convert po files to UTF-8, because all our po-files are now UTF-8 encoded; fixes issue #18410.

git-svn-id: trunk@28873 -
This commit is contained in:
vincents 2011-01-06 13:48:52 +00:00
parent da3a1c47cd
commit c3cc4ea704
2 changed files with 0 additions and 24 deletions

1
.gitattributes vendored
View File

@ -5600,7 +5600,6 @@ tools/chmmaker/unit1.lfm svneol=native#text/plain
tools/chmmaker/unit1.lrs svneol=native#text/pascal
tools/chmmaker/unit1.pas svneol=native#text/plain
tools/compile_all.sh svneol=native#text/plain
tools/convert_po_file_to_utf-8.sh svneol=native#text/plain
tools/copy_po_files_to_lazarus_sources.sh -text svneol=native#application/x-sh
tools/debugserver/README.txt svneol=native#text/plain
tools/debugserver/debugserver.ico -text

View File

@ -1,23 +0,0 @@
#!/usr/bin/env bash
#
# Author: Mattias Gaertner
#
# converts a .po files to UTF-8
set -e
#set -x
POFile=$1
if [ -f "$POFile" ]; then
OldCharSet=$(cat $POFile | egrep '^".* charset=' | sed -e 's/.*charset=\(.*\)"/\1/' -e 's/\\n//')
echo $OldCharSet
if [ -n "$OldCharSet"="UTF-8" ]; then
iconv --from-code=$OldCharSet --to-code=UTF-8 $POFile > $POFile.tmp
cat $POFile.tmp | sed -e 's/\(^".* charset\)='$OldCharSet'/\1=UTF-8/' > $POFile
rm $POFile.tmp
fi
else
echo Usage: $0 po-file
exit -1
fi