mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 20:56:14 +02:00
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:
parent
da3a1c47cd
commit
c3cc4ea704
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user