Permalink
Browse files

Remove packages/ dir and use default lib/python instead.

  • Loading branch information...
fwenzel committed Jan 25, 2011
1 parent f3469bc commit 7d0a68b084dee3df09b5321305bda28c90917b2e
Showing 5,064 changed files with 500,252 additions and 495,328 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
View
@@ -0,0 +1,27 @@
+#!/Users/fred/.virtualenvs/playdoh/bin/python2.6
+# -*- coding: utf-8 -*-
+#
+# Copyright 2008 Zuza Software Foundation
+#
+# This file is part of translate.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
+
+"""Import units from translations files into tmdb."""
+
+from translate.tools import build_tmdb
+
+if __name__ == '__main__':
+ build_tmdb.main()
+
View
@@ -0,0 +1,27 @@
+#!/Users/fred/.virtualenvs/playdoh/bin/python2.6
+#
+# Copyright 2003, 2004 Zuza Software Foundation
+#
+# This file is part of translate.
+#
+# translate is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# translate is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with translate; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+"""simple script to convert a comma-separated values (.csv) file to a gettext .po localization file"""
+
+from translate.convert import csv2po
+
+if __name__ == '__main__':
+ csv2po.main()
+
View
@@ -0,0 +1,27 @@
+#!/Users/fred/.virtualenvs/playdoh/bin/python2.6
+#
+# Copyright 2006 Zuza Software Foundation
+#
+# This file is part of translate.
+#
+# translate is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# translate is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with translate; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+"""simple script to convert a comma-separated values (.csv) file to a .tbx glossary file"""
+
+from translate.convert import csv2tbx
+
+if __name__ == '__main__':
+ csv2tbx.main()
+
View
@@ -0,0 +1,29 @@
+#!/Users/fred/.virtualenvs/playdoh/bin/python2.6
+#
+# Copyright 2004 Zuza Software Foundation
+#
+# This file is part of translate.
+#
+# translate is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# translate is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with translate; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+
+"""extracts localizable strings from HTML files to gettext .po files
+You can merge translated strings back using po2html"""
+
+from translate.convert import html2po
+
+if __name__ == '__main__':
+ html2po.main()
+
View
@@ -0,0 +1,27 @@
+#!/Users/fred/.virtualenvs/playdoh/bin/python2.6
+#
+# Copyright 2008 Zuza Software Foundation
+#
+# This file is part of translate.
+#
+# translate is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# translate is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with translate; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+"""simple script to convert an iCal file to a gettext .po localization file"""
+
+from translate.convert import ical2po
+
+if __name__ == '__main__':
+ ical2po.main()
+
View
@@ -0,0 +1,27 @@
+#!/Users/fred/.virtualenvs/playdoh/bin/python2.6
+#
+# Copyright 2002, 2003 Zuza Software Foundation
+#
+# This file is part of translate.
+#
+# translate is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# translate is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with translate; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+"""simple script to convert a .ini file to a gettext .po localization file"""
+
+from translate.convert import ini2po
+
+if __name__ == '__main__':
+ ini2po.main()
+
View
@@ -0,0 +1,71 @@
+#!/bin/bash
+#
+# Copyright 2010 Zuza Software Foundation
+#
+# This file is part of The Translate Toolkit.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
+
+files=$*
+
+# local variables
+message=""
+body=""
+failures=0
+successes=0
+
+function failure {
+ pofile=$1
+ body=$(echo $body; echo "<testcase classname=\"$pofile\" name=\"msgfmt\" time=\"\">\n"; echo "<failure message=\"msgfmt failure\">$message</failure>\n</testcase>\n")
+ message=""
+ failures=$(($failures + 1))
+}
+
+function success {
+ pofile=$1
+ body=$(echo $body; echo "<testcase classname=\"$pofile\" name=\"msgfmt\" time=\"\"></testcase>\n")
+ message=""
+ successes=$(($successes + 1))
+}
+
+function run_msgfmt {
+ pofile=$1
+ exit_status=$(msgfmt -cv -o /dev/null $pofile 2>/dev/null > /dev/null; echo $?)
+ message=$(msgfmt -cv -o /dev/null $pofile 2>/dev/stdout | while read i; do echo "$i\n" ; done)
+ return $exit_status
+}
+
+function print_header {
+ echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
+ echo "<testsuite name=\"\" errors=\"0\" failures=\"$failures\" skips=\"0\" tests=\"$((failures + successes))\" time=\"\" >"
+}
+
+function print_body {
+ cat -
+ echo -e $body
+}
+
+function print_footer {
+ cat -
+ echo "</testsuite>"
+}
+
+for pofile in $files
+do
+ run_msgfmt $pofile && success $pofile || failure $pofile
+done
+
+print_header |
+print_body |
+print_footer
View
@@ -0,0 +1,27 @@
+#!/Users/fred/.virtualenvs/playdoh/bin/python2.6
+#
+# Copyright 2004 Zuza Software Foundation
+#
+# This file is part of translate.
+#
+# translate is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# translate is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with translate; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+"""Converts Mozilla .dtd and .properties files to Gettext .po files"""
+
+from translate.convert import moz2po
+
+if __name__ == '__main__':
+ moz2po.main()
+
View
@@ -0,0 +1,9 @@
+#!/Users/fred/.virtualenvs/playdoh/bin/python2.6
+# EASY-INSTALL-ENTRY-SCRIPT: 'nose==1.0.0','console_scripts','nosetests'
+__requires__ = 'nose==1.0.0'
+import sys
+from pkg_resources import load_entry_point
+
+sys.exit(
+ load_entry_point('nose==1.0.0', 'console_scripts', 'nosetests')()
+)
View
@@ -0,0 +1,9 @@
+#!/Users/fred/.virtualenvs/playdoh/bin/python2.6
+# EASY-INSTALL-ENTRY-SCRIPT: 'nose==1.0.0','console_scripts','nosetests-2.6'
+__requires__ = 'nose==1.0.0'
+import sys
+from pkg_resources import load_entry_point
+
+sys.exit(
+ load_entry_point('nose==1.0.0', 'console_scripts', 'nosetests-2.6')()
+)
View
@@ -0,0 +1,35 @@
+#!/Users/fred/.virtualenvs/playdoh/bin/python2.6
+#
+# Copyright 2004 Zuza Software Foundation
+#
+# This file is part of translate.
+#
+# translate is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# translate is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with translate; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+
+"""Extracts localizable strings from OpenDocument files to XLIFF files
+
+Files supported include:
+- .odt (Wordprocessor documents)
+- .ods (Spreadsheets)
+- .odp (Presentations)
+- .sxw (old OpenOffice.org 1.0 Wordprocessor documents)
+"""
+
+from translate.convert import odf2xliff
+
+if __name__ == '__main__':
+ odf2xliff.main()
+
View
@@ -0,0 +1,28 @@
+#!/Users/fred/.virtualenvs/playdoh/bin/python2.6
+#
+# Copyright 2002-2004 Zuza Software Foundation
+#
+# This file is part of translate.
+#
+# translate is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# translate is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with translate; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+
+"""Converts OpenOffice.org exported .oo files to Gettext .po files"""
+
+from translate.convert import oo2po
+
+if __name__ == '__main__':
+ oo2po.main()
+
View
@@ -0,0 +1,27 @@
+#!/Users/fred/.virtualenvs/playdoh/bin/python2.6
+#
+# Copyright 2002-2004 Zuza Software Foundation
+#
+# This file is part of translate.
+#
+# translate is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# translate is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with translate; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+
+"""Converts OpenOffice.org exported .oo files to xliff files"""
+
+from translate.convert import oo2xliff
+
+if __name__ == '__main__':
+ oo2xliff.main()
Oops, something went wrong.

0 comments on commit 7d0a68b

Please sign in to comment.