Skip to content

Commit

Permalink
Remove support for NvDA core po/pot files.
Browse files Browse the repository at this point in the history
  • Loading branch information
NVDA translation automation committed Feb 7, 2024
1 parent 0beea5d commit 7134935
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 50 deletions.
39 changes: 0 additions & 39 deletions .sh.d/01_nvda2svn.sh
Original file line number Diff line number Diff line change
@@ -1,42 +1,3 @@
potName=/tmp/nvdaBeta.pot

makePot() {
origDir=`pwd`
cd ../mainNVDACode/source
version="beta-`git rev-parse --short beta`"
xgettext -o $potName \
--package-name NVDA --package-version "$version" \
--foreign-user \
--add-comments=Translators: \
--keyword=pgettext:1c,2 \
--keyword=npgettext:1c,2,3 \
--from-code utf-8 \
--language=python \
*.py *.pyw */*.py */*/*.py */*/*/*.py
cd $origDir
# Tweak the headers.
sed -i '
2c# Copyright (C) 2006-'`date +%Y`'NVDA Contributors
3d
16s/CHARSET/UTF-8/
# Present Windows file paths instead of Unix.
/^#: /s,/,\\,g
' $potName
}

# Run by cron from path ${PathToMrRepo}/srt/
mergePot() {
logMsg "Running mergePot"
logMsg "Making pot"
makePot
# Now merge the pot into all available languages.
ls -1 */nvda.po | while read file; do
logMsg "Merging pot into $file"
msgmerge --no-location -U $file $potName || logMsg "Error merging pot into $file"
done
svn commit -m "Merged nvda interface messages from $potName" */nvda.po
}

# Run by cron from path cd ${PathToMrRepo}/srt/
findRevs() {
logMsg "Running findRevs"
Expand Down
11 changes: 0 additions & 11 deletions .sh.d/01_svn2nvda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,6 @@ svn2nvda () {
logMsg "LastSubmittedSvnRev == 0 setting to 1"
lastSubmittedSvnRev=1
fi
if test "60531" -gt "${lastSubmittedSvnRev}"; then
logMsg "Force needsCommitting"
needsCommitting=1
else
needsCommitting=$(svn log -r${lastSubmittedSvnRev}:head ${lang}/nvda.po | grep -iP "r[0-9]+ \|" | grep -viP "commitbot" | wc -l)
fi
logMsg "Needs committing: ${needsCommitting}"
if test "$needsCommitting" != "0" && python3 ../scripts/poChecker.py $lang/nvda.po ; then
logMsg "copying po file"
_cp $lang/nvda.po source/locale/$lang/LC_MESSAGES/nvda.po
fi
_cp $lang/symbols.dic source/locale/$lang/symbols.dic
_cp $lang/characterDescriptions.dic source/locale/$lang/characterDescriptions.dic
_cp $lang/gestures.ini source/locale/$lang/gestures.ini
Expand Down

0 comments on commit 7134935

Please sign in to comment.