SF.net SVN: geany-plugins:[697] trunk
eht16 at users.sourceforge.net
eht16 at xxxxx
Wed Jun 10 22:29:07 UTC 2009
Revision: 697
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=697&view=rev
Author: eht16
Date: 2009-06-10 22:29:07 +0000 (Wed, 10 Jun 2009)
Log Message:
-----------
Create geany-plugins module as the base for a common plugins release.
Move the Waf based build system, the Addons, Spell Check and Shift Column plugins into the geany-plugins module (no code changes so far).
Remove now obsolete plugin specific autotools files.
Added Paths:
-----------
trunk/geany-plugins/
trunk/geany-plugins/README.waf
trunk/geany-plugins/addons/
trunk/geany-plugins/po/
trunk/geany-plugins/po/LINGUAS
trunk/geany-plugins/po/POTFILES.in
trunk/geany-plugins/po/be.po
trunk/geany-plugins/po/de.po
trunk/geany-plugins/po/dk.po
trunk/geany-plugins/po/es.po
trunk/geany-plugins/po/fr.po
trunk/geany-plugins/po/geany-plugins.pot
trunk/geany-plugins/po/ru.po
trunk/geany-plugins/shiftcolumn/
trunk/geany-plugins/shiftcolumn/AUTHORS
trunk/geany-plugins/shiftcolumn/ChangeLog
trunk/geany-plugins/shiftcolumn/NEWS
trunk/geany-plugins/shiftcolumn/README
trunk/geany-plugins/shiftcolumn/src/
trunk/geany-plugins/shiftcolumn/src/shiftcolumn.c
trunk/geany-plugins/spellcheck/
trunk/geany-plugins/waf
trunk/geany-plugins/wscript
Removed Paths:
-------------
trunk/README.waf
trunk/addons/
trunk/geany-plugins/addons/Makefile.am
trunk/geany-plugins/addons/autogen.sh
trunk/geany-plugins/addons/configure.in
trunk/geany-plugins/addons/makefile.win32
trunk/geany-plugins/addons/po/
trunk/geany-plugins/addons/src/Makefile.am
trunk/geany-plugins/spellcheck/Makefile.am
trunk/geany-plugins/spellcheck/autogen.sh
trunk/geany-plugins/spellcheck/configure.in
trunk/geany-plugins/spellcheck/makefile.win32
trunk/geany-plugins/spellcheck/po/
trunk/geany-plugins/spellcheck/src/Makefile.am
trunk/shiftcolumn/
trunk/spellcheck/
trunk/waf
trunk/wscript
Deleted: trunk/README.waf
===================================================================
--- trunk/README.waf 2009-06-09 22:15:27 UTC (rev 696)
+++ trunk/README.waf 2009-06-10 22:29:07 UTC (rev 697)
@@ -1,36 +0,0 @@
-You can use Waf (http://code.google.com/p/waf/) to build
-the Geany plugins in this repository.
-
-Usage:
-./waf configure
-./waf build
-./waf install
-
-This will configure, build and install most of the available plugins.
-To exclude some plugins, ./waf configure accepts the option ""-enable-plugins"
-which takes a comma-separated list of plugins to compile, e.g.
-
-./waf configure --enable-plugins=geanysendmail,spellcheck
-
-Similarly you can also disable certain plugins from the list with
-
-./waf configure --skip-plugins=geanydoc,geanyvc
-
-To update the language catalogues of plugins with enabled I18n support, run:
-
-./waf --update-po
-
-
-For more configure options, run
-./waf configure --help
-
-
-For convenience, running './waf configure' will create a simple Makefile
-as a wrapper for './waf [options]'.
-Currently, the following make targets are available:
-
-make all
-make install
-make uninstall
-make update-po
-make clean
Property changes on: trunk/geany-plugins
___________________________________________________________________
Added: svn:ignore
+ Makefile
_build_
.lock-wscript
.waf-*
Copied: trunk/geany-plugins/README.waf (from rev 696, trunk/README.waf)
===================================================================
--- trunk/geany-plugins/README.waf (rev 0)
+++ trunk/geany-plugins/README.waf 2009-06-10 22:29:07 UTC (rev 697)
@@ -0,0 +1,36 @@
+You can use Waf (http://code.google.com/p/waf/) to build
+the Geany plugins in this repository.
+
+Usage:
+./waf configure
+./waf build
+./waf install
+
+This will configure, build and install most of the available plugins.
+To exclude some plugins, ./waf configure accepts the option ""-enable-plugins"
+which takes a comma-separated list of plugins to compile, e.g.
+
+./waf configure --enable-plugins=geanysendmail,spellcheck
+
+Similarly you can also disable certain plugins from the list with
+
+./waf configure --skip-plugins=geanydoc,geanyvc
+
+To update the language catalogues of plugins with enabled I18n support, run:
+
+./waf --update-po
+
+
+For more configure options, run
+./waf configure --help
+
+
+For convenience, running './waf configure' will create a simple Makefile
+as a wrapper for './waf [options]'.
+Currently, the following make targets are available:
+
+make all
+make install
+make uninstall
+make update-po
+make clean
Deleted: trunk/geany-plugins/addons/Makefile.am
===================================================================
--- trunk/addons/Makefile.am 2009-06-09 22:15:27 UTC (rev 696)
+++ trunk/geany-plugins/addons/Makefile.am 2009-06-10 22:29:07 UTC (rev 697)
@@ -1,33 +0,0 @@
-
-SUBDIRS = src po
-
-DOCDIR = $(DESTDIR)$(docdir)
-
-EXTRA_DIST = \
- autogen.sh \
- makefile.win32
-
-dist-bzip2: distdir
- BZIP2=$(BZIP2_ENV) $(AMTAR) --bzip2 -chof $(distdir).tar.bz2 $(distdir)
- -rm -rf $(distdir)
-
-sign:
- if test -f $(PACKAGE)-$(VERSION).tar.gz; then \
- gpg --detach-sign --digest-algo SHA512 $(PACKAGE)-$(VERSION).tar.gz; fi
- if test -f $(PACKAGE)-$(VERSION).tar.bz2; then \
- gpg --detach-sign --digest-algo SHA512 $(PACKAGE)-$(VERSION).tar.bz2; fi
-
-html:
- rst2html README index.html
-
-install-data-local:
- $(mkinstalldirs) $(DOCDIR)
- $(INSTALL_DATA) $(top_srcdir)/README $(DOCDIR)
- $(INSTALL_DATA) $(top_srcdir)/ChangeLog $(DOCDIR)
- $(INSTALL_DATA) $(top_srcdir)/NEWS $(DOCDIR)
- $(INSTALL_DATA) $(top_srcdir)/COPYING $(DOCDIR)
- $(INSTALL_DATA) $(top_srcdir)/AUTHORS $(DOCDIR)
-
-uninstall-local:
- rm -rf $(DOCDIR);
-
Deleted: trunk/geany-plugins/addons/autogen.sh
===================================================================
--- trunk/addons/autogen.sh 2009-06-09 22:15:27 UTC (rev 696)
+++ trunk/geany-plugins/addons/autogen.sh 2009-06-10 22:29:07 UTC (rev 697)
@@ -1,88 +0,0 @@
-#!/bin/sh
-# Run this to generate all the initial makefiles, etc.
-
-srcdir=`dirname $0`
-test -z "$srcdir" && srcdir=.
-
-DIE=0
-
-(test -f $srcdir/configure.in) || {
- echo "**Error**: Directory "\`$srcdir\'" does not look like the top-level package directory"
- exit 1
-}
-
-(autoconf --version) < /dev/null > /dev/null 2>&1 || {
- echo
- echo "**Error**: You must have \`autoconf' installed."
- echo "Download the appropriate package for your distribution,"
- echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
- DIE=1
-}
-
-(intltoolize --version) < /dev/null > /dev/null 2>&1 || {
- echo
- echo "**Error**: You must have \`intltool' installed."
- echo "You can get it from:"
- echo " ftp://ftp.gnome.org/pub/GNOME/"
- DIE=1
-}
-
-(glib-gettextize --version) < /dev/null > /dev/null 2>&1 || {
- echo
- echo "**Error**: You must have \`glib' installed."
- echo "You can get it from: ftp://ftp.gtk.org/pub/gtk"
- DIE=1
-}
-
-(libtoolize --version) < /dev/null > /dev/null 2>&1 || {
- (glibtoolize --version) < /dev/null > /dev/null 2>&1 || {
- echo
- echo "**Error**: You must have \`libtool' installed."
- echo "You can get it from:"
- echo " http://www.gnu.org/software/libtool/"
- DIE=1
- }
-}
-
-(automake --version) < /dev/null > /dev/null 2>&1 || {
- echo
- echo "**Error**: You must have \`automake' (1.7 or later) installed."
- echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/"
- DIE=1
- NO_AUTOMAKE=yes
-}
-
-
-# if no automake, don't bother testing for aclocal
-test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
- echo
- echo "**Error**: Missing \`aclocal'. The version of \`automake'"
- echo "installed doesn't appear recent enough."
- echo "You can get automake from ftp://ftp.gnu.org/pub/gnu/"
- DIE=1
-}
-
-if test "$DIE" -eq 1; then
- exit 1
-fi
-
-if test -z "$*"; then
- echo "**Warning**: I am going to run \`configure' with no arguments."
- echo "If you wish to pass any to it, please specify them on the"
- echo \`$0\'" command line."
- echo
-fi
-
-echo "Processing configure.ac"
-
-echo "no" | glib-gettextize --force --copy
-intltoolize --copy --force --automake
-libtoolize --copy --force || glibtoolize --copy --force
-aclocal
-autoheader
-automake --add-missing --copy --gnu
-autoconf
-
-echo "Running $srcdir/configure $@ ..."
-$srcdir/configure "$@" && echo "Now type 'make' to compile." || exit 1
-
Deleted: trunk/geany-plugins/addons/configure.in
===================================================================
--- trunk/addons/configure.in 2009-06-09 22:15:27 UTC (rev 696)
+++ trunk/geany-plugins/addons/configure.in 2009-06-10 22:29:07 UTC (rev 697)
@@ -1,65 +0,0 @@
-# Process this file with autoconf to produce a configure script.
-# $Id$
-
-AC_INIT(configure.in)
-AM_INIT_AUTOMAKE(addons, 0.3)
-
-AM_CONFIG_HEADER(config.h)
-
-AC_PROG_CC
-
-AC_DISABLE_STATIC
-AM_PROG_LIBTOOL
-LIBTOOL="$LIBTOOL --silent"
-
-AC_PROG_INSTALL
-AC_PROG_INTLTOOL
-
-# checking for Geany
-PKG_CHECK_MODULES(GEANY, [geany >= 0.16])
-AC_SUBST(GEANY_CFLAGS)
-AC_SUBST(GEANY_LIBS)
-
-
-GEANY_VERSION=`$PKG_CONFIG --modversion geany`
-GTK_VERSION=`$PKG_CONFIG --modversion gtk+-2.0`
-
-# i18n
-GETTEXT_PACKAGE=geanyaddons
-AC_SUBST(GETTEXT_PACKAGE)
-AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])
-
-ALL_LINGUAS="`sed -e '/^#/d' $srcdir/po/LINGUAS`" # take all languages found in file po/LINGUAS
-
-AM_GLIB_GNU_GETTEXT
-# workaround for intltool bug (http://bugzilla.gnome.org/show_bug.cgi?id=490845)
-if test "x$MSGFMT" = "xno"; then
- AC_MSG_ERROR([msgfmt not found. Please install the gettext package.])
-fi
-
-# intltool hack to define install_sh on Debian/Ubuntu systems
-if test "x$install_sh" = "x"; then
- install_sh="`pwd`/install-sh"
- AC_SUBST(install_sh)
-fi
-
-# get the plugin installed at the correct location for Geany
-# TODO find a way to NOT override --libdir/--docdir command line option if given
-libdir="`$PKG_CONFIG --variable=libdir geany`/geany"
-docdir="${datarootdir}/doc/geany-plugins/${PACKAGE}"
-
-
-AC_OUTPUT([
-Makefile
-src/Makefile
-po/Makefile.in
-])
-
-echo "----------------------------------------"
-echo "Install Addons plugin binary in : ${libdir}"
-echo "Install Addons files in : ${prefix}"
-echo "Using Geany version : ${GEANY_VERSION}"
-echo "Using GTK version : ${GTK_VERSION}"
-echo ""
-echo "Configuration is done OK."
-echo ""
Deleted: trunk/geany-plugins/addons/makefile.win32
===================================================================
--- trunk/addons/makefile.win32 2009-06-09 22:15:27 UTC (rev 696)
+++ trunk/geany-plugins/addons/makefile.win32 2009-06-10 22:29:07 UTC (rev 697)
@@ -1,58 +0,0 @@
-#
-# localwin32.mk is an optional file to override make variables.
-# Use localwin32.mk instead of editing variables as it is included in sub
-# makefiles.
-# localwin32.mk to set PREFIX instead of the default C:\libs
-# For MSYS use localwin32.mk to set CP and RM.
-# By default this will work in a Windows command prompt.
-
-CC = gcc
-CP = copy
-RM = del
-PREFIX = C:\libs
-GEANY_SRC = c:\geany_svn
-TARGET = addons.dll
-.SUFFIXES: .c .o
--include localwin32.mk
-
-
-OBJS = addons.o ao_openuri.o ao_doclist.o ao_systray.o tasks.o
-INCLUDEDIRS= -I. \
- -I$(GEANY_SRC) \
- -I$(GEANY_SRC)\src \
- -I$(GEANY_SRC)\plugins \
- -I$(GEANY_SRC)\tagmanager\include \
- -I$(GEANY_SRC)\scintilla\include \
- -I$(PREFIX)/include/gtk-2.0 \
- -I$(PREFIX)/lib/gtk-2.0/include \
- -I$(PREFIX)/include/atk-1.0 \
- -I$(PREFIX)/include/pango-1.0 \
- -I$(PREFIX)/include/cairo \
- -I$(PREFIX)/include/glib-2.0 \
- -I$(PREFIX)/lib/glib-2.0/include \
- -I$(PREFIX)/include/gettext \
- -I$(PREFIX)/include
-
-ALL_GTK_LIBS= \
- -L"$(PREFIX)/lib" \
- -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 \
- -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl -liconv
-CCFLAGS=-Wall -O2 -mms-bitfields -DHAVE_CONFIG_H -DLOCALEDIR=\"share\"
-
-
-all: $(TARGET)
-
-deps.mak:
- $(CC) -MM $(CCFLAGS) $(INCLUDEDIRS) src/*.c >deps.mak
-
-$(OBJS):
- $(CC) $(CCFLAGS) $(INCLUDEDIRS) -c $<
-
-$(TARGET): deps.mak $(OBJS)
- $(CC) -shared $(OBJS) $(ALL_GTK_LIBS) -o $(TARGET)
-
-clean:
- -$(RM) deps.mak *.o *.dll
-
-# Generate header dependencies with "make deps.mak"
-include deps.mak
Deleted: trunk/geany-plugins/addons/src/Makefile.am
===================================================================
--- trunk/addons/src/Makefile.am 2009-06-09 22:15:27 UTC (rev 696)
+++ trunk/geany-plugins/addons/src/Makefile.am 2009-06-10 22:29:07 UTC (rev 697)
@@ -1,12 +0,0 @@
-
-lib_LTLIBRARIES = addons.la
-addons_la_SOURCES = \
- addons.c addons.h \
- ao_doclist.c ao_doclist.h \
- ao_openuri.c ao_openuri.h \
- ao_systray.c ao_systray.h \
- tasks.c tasks.h
-addons_la_LDFLAGS = -module -avoid-version
-addons_la_LIBADD = @GEANY_LIBS@ $(INTLLIBS)
-
-AM_CFLAGS = @GEANY_CFLAGS@ -DLOCALEDIR=\""$(localedir)"\" -DDOCDIR=\""$(docdir)"\"
Added: trunk/geany-plugins/po/LINGUAS
===================================================================
--- trunk/geany-plugins/po/LINGUAS (rev 0)
+++ trunk/geany-plugins/po/LINGUAS 2009-06-10 22:29:07 UTC (rev 697)
@@ -0,0 +1,2 @@
+# set of available languages (in alphabetic order)
+be de ru fr es dk
Property changes on: trunk/geany-plugins/po/LINGUAS
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Added: trunk/geany-plugins/po/POTFILES.in
===================================================================
--- trunk/geany-plugins/po/POTFILES.in (rev 0)
+++ trunk/geany-plugins/po/POTFILES.in 2009-06-10 22:29:07 UTC (rev 697)
@@ -0,0 +1,16 @@
+# List of source files containing translatable strings.
+
+# Addons
+addons/src/ao_systray.c
+addons/src/tasks.c
+addons/src/ao_openuri.c
+addons/src/addons.c
+addons/src/ao_doclist.c
+
+# Spell Check
+spellcheck/src/speller.c
+spellcheck/src/scplugin.c
+spellcheck/src/gui.c
+
+# Shift Column
+shiftcolumn/src/shiftcolumn.c
Property changes on: trunk/geany-plugins/po/POTFILES.in
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Added: trunk/geany-plugins/po/be.po
===================================================================
--- trunk/geany-plugins/po/be.po (rev 0)
+++ trunk/geany-plugins/po/be.po 2009-06-10 22:29:07 UTC (rev 697)
@@ -0,0 +1,199 @@
+# Belarussian translation for geany-plugins
+# Copyright (C) 2009 THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the geany-plugins package.
+# Yura Siamshka <yurand2 at gmail.com>
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: geany-plugins 0.1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2009-06-10 23:55+0200\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"X-Poedit-Language: Belarusian\n"
+"X-Poedit-Country: BELARUS\n"
+"X-Poedit-SourceCharset: utf-8\n"
+
+#: ../addons/src/tasks.c:311
+msgid "Tasks"
+msgstr ""
+
+#: ../addons/src/ao_openuri.c:169
+msgid "Open URI"
+msgstr ""
+
+#: ../addons/src/ao_openuri.c:175
+msgid "Copy URI"
+msgstr ""
+
+#: ../addons/src/addons.c:55
+msgid "Addons"
+msgstr ""
+
+#: ../addons/src/addons.c:55
+msgid "Various small addons for Geany."
+msgstr ""
+
+#: ../addons/src/addons.c:176 ../spellcheck/src/scplugin.c:143
+msgid "Plugin configuration directory could not be created."
+msgstr ""
+
+#: ../addons/src/addons.c:198
+msgid "Show toolbar item to show a list of currently open documents"
+msgstr ""
+
+#. TODO fix the string
+#: ../addons/src/addons.c:205
+msgid "Show a 'Open URI' menu item in the editor menu"
+msgstr ""
+
+#: ../addons/src/addons.c:211
+msgid "Show available tasks in the Message Window"
+msgstr ""
+
+#: ../addons/src/addons.c:217
+msgid "Show status icon in the Notification Area"
+msgstr ""
+
+#: ../addons/src/ao_doclist.c:209
+msgid "Close Ot_her Documents"
+msgstr ""
+
+#: ../addons/src/ao_doclist.c:214
+msgid "C_lose All"
+msgstr ""
+
+#: ../addons/src/ao_doclist.c:244
+msgid "Show Document List"
+msgstr ""
+
+#: ../spellcheck/src/speller.c:101
+msgid "Try: "
+msgstr ""
+
+#: ../spellcheck/src/speller.c:180
+msgid "Checking"
+msgstr ""
+
+#: ../spellcheck/src/speller.c:193
+#, c-format
+msgid "Checking file \"%s\" (lines %d to %d using %s):"
+msgstr ""
+
+#: ../spellcheck/src/speller.c:203
+#, c-format
+msgid "Checking file \"%s\" (using %s):"
+msgstr ""
+
+#: ../spellcheck/src/speller.c:221
+msgid "The checked text is spelled correctly."
+msgstr ""
+
+#: ../spellcheck/src/speller.c:231
+#, c-format
+msgid "The Enchant library couldn't be initialized (%s)."
+msgstr ""
+
+#: ../spellcheck/src/speller.c:232
+msgid "unknown error (maybe the chosen language is not available)"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:59
+msgid "Spell Check"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:59
+msgid "Checks the spelling of the current document."
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:60
+msgid "The Geany developer team"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:199
+msgid "Run Spell Check"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:202
+msgid "Toggle Check While Typing"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:213
+msgid "Check spelling while typing"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:217
+msgid "Show toolbar item to toggle spell checking"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:222
+msgid "Print misspelled words and suggestions in the messages window"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:226
+msgid "Language to use for the spell check:"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:66
+msgid "Spell checking while typing is now enabled"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:68
+msgid "Spell checking while typing is now disabled"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:276
+msgid "More..."
+msgstr ""
+
+#: ../spellcheck/src/gui.c:290
+msgid "(No Suggestions)"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:297
+#, c-format
+msgid "Add \"%s\" to Dictionary"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:303
+msgid "Ignore All"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:408
+#, c-format
+msgid "Default (%s)"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:409 ../spellcheck/src/gui.c:420
+msgid "unknown"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:419
+#, c-format
+msgid "Toggle spell check while typing (current language: %s)"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:480
+msgid "Spelling Suggestions"
+msgstr ""
+
+#: ../shiftcolumn/src/shiftcolumn.c:46
+msgid "Shift Column"
+msgstr ""
+
+#: ../shiftcolumn/src/shiftcolumn.c:47
+msgid "Shift a selection left and right"
+msgstr ""
+
+#: ../shiftcolumn/src/shiftcolumn.c:375 ../shiftcolumn/src/shiftcolumn.c:395
+msgid "Shift Left"
+msgstr ""
+
+#: ../shiftcolumn/src/shiftcolumn.c:382 ../shiftcolumn/src/shiftcolumn.c:397
+msgid "Shift Right"
+msgstr ""
+
+#~ msgid "Yura Siamshka <yurand2 at gmail.com>"
+#~ msgstr "Юра Сямашка <yurand2 at gmail.com>"
Property changes on: trunk/geany-plugins/po/be.po
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Added: trunk/geany-plugins/po/de.po
===================================================================
--- trunk/geany-plugins/po/de.po (rev 0)
+++ trunk/geany-plugins/po/de.po 2009-06-10 22:29:07 UTC (rev 697)
@@ -0,0 +1,196 @@
+# German translation for geany-plugins
+# Copyright (C) 2009 THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the geany-plugins package.
+# Andrew Janke <a.janke at gmail.com>, 2009
+# Frank Lanitz <frank at frank.uvena.de>, 2009
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: geany-plugins 0.1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2009-06-10 23:55+0200\n"
+"PO-Revision-Date: 2009-03-09 20:50+1000\n"
+"Last-Translator: Andrew Janke <a.janke at gmail.com>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: ../addons/src/tasks.c:311
+msgid "Tasks"
+msgstr ""
+
+#: ../addons/src/ao_openuri.c:169
+msgid "Open URI"
+msgstr ""
+
+#: ../addons/src/ao_openuri.c:175
+msgid "Copy URI"
+msgstr ""
+
+#: ../addons/src/addons.c:55
+msgid "Addons"
+msgstr ""
+
+#: ../addons/src/addons.c:55
+msgid "Various small addons for Geany."
+msgstr ""
+
+#: ../addons/src/addons.c:176 ../spellcheck/src/scplugin.c:143
+msgid "Plugin configuration directory could not be created."
+msgstr ""
+
+#: ../addons/src/addons.c:198
+msgid "Show toolbar item to show a list of currently open documents"
+msgstr ""
+
+#. TODO fix the string
+#: ../addons/src/addons.c:205
+msgid "Show a 'Open URI' menu item in the editor menu"
+msgstr ""
+
+#: ../addons/src/addons.c:211
+msgid "Show available tasks in the Message Window"
+msgstr ""
+
+#: ../addons/src/addons.c:217
+msgid "Show status icon in the Notification Area"
+msgstr ""
+
+#: ../addons/src/ao_doclist.c:209
+msgid "Close Ot_her Documents"
+msgstr ""
+
+#: ../addons/src/ao_doclist.c:214
+msgid "C_lose All"
+msgstr ""
+
+#: ../addons/src/ao_doclist.c:244
+msgid "Show Document List"
+msgstr ""
+
+#: ../spellcheck/src/speller.c:101
+msgid "Try: "
+msgstr ""
+
+#: ../spellcheck/src/speller.c:180
+msgid "Checking"
+msgstr ""
+
+#: ../spellcheck/src/speller.c:193
+#, c-format
+msgid "Checking file \"%s\" (lines %d to %d using %s):"
+msgstr ""
+
+#: ../spellcheck/src/speller.c:203
+#, c-format
+msgid "Checking file \"%s\" (using %s):"
+msgstr ""
+
+#: ../spellcheck/src/speller.c:221
+msgid "The checked text is spelled correctly."
+msgstr ""
+
+#: ../spellcheck/src/speller.c:231
+#, c-format
+msgid "The Enchant library couldn't be initialized (%s)."
+msgstr ""
+
+#: ../spellcheck/src/speller.c:232
+msgid "unknown error (maybe the chosen language is not available)"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:59
+msgid "Spell Check"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:59
+msgid "Checks the spelling of the current document."
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:60
+msgid "The Geany developer team"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:199
+msgid "Run Spell Check"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:202
+msgid "Toggle Check While Typing"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:213
+msgid "Check spelling while typing"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:217
+msgid "Show toolbar item to toggle spell checking"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:222
+msgid "Print misspelled words and suggestions in the messages window"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:226
+msgid "Language to use for the spell check:"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:66
+msgid "Spell checking while typing is now enabled"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:68
+msgid "Spell checking while typing is now disabled"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:276
+msgid "More..."
+msgstr ""
+
+#: ../spellcheck/src/gui.c:290
+msgid "(No Suggestions)"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:297
+#, c-format
+msgid "Add \"%s\" to Dictionary"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:303
+msgid "Ignore All"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:408
+#, c-format
+msgid "Default (%s)"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:409 ../spellcheck/src/gui.c:420
+msgid "unknown"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:419
+#, c-format
+msgid "Toggle spell check while typing (current language: %s)"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:480
+msgid "Spelling Suggestions"
+msgstr ""
+
+#: ../shiftcolumn/src/shiftcolumn.c:46
+msgid "Shift Column"
+msgstr "Auswahl verschieben"
+
+#: ../shiftcolumn/src/shiftcolumn.c:47
+msgid "Shift a selection left and right"
+msgstr "Verschiebt eine Auswahl nach Links oder Rechts"
+
+#: ../shiftcolumn/src/shiftcolumn.c:375 ../shiftcolumn/src/shiftcolumn.c:395
+msgid "Shift Left"
+msgstr "Auswahl nach Links verschieben"
+
+#: ../shiftcolumn/src/shiftcolumn.c:382 ../shiftcolumn/src/shiftcolumn.c:397
+msgid "Shift Right"
+msgstr "Auswahl nach Rechts verschieben"
Property changes on: trunk/geany-plugins/po/de.po
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Added: trunk/geany-plugins/po/dk.po
===================================================================
--- trunk/geany-plugins/po/dk.po (rev 0)
+++ trunk/geany-plugins/po/dk.po 2009-06-10 22:29:07 UTC (rev 697)
@@ -0,0 +1,195 @@
+# Danish translation for geany-plugins
+# Copyright (C) 2009 THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the geany-plugins package.
+# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: geany-plugins 0.1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2009-06-10 23:55+0200\n"
+"PO-Revision-Date: 2009-03-10 10:56+1000\n"
+"Last-Translator: Andrew L Janke <a.janke at gmail.com>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: ../addons/src/tasks.c:311
+msgid "Tasks"
+msgstr ""
+
+#: ../addons/src/ao_openuri.c:169
+msgid "Open URI"
+msgstr ""
+
+#: ../addons/src/ao_openuri.c:175
+msgid "Copy URI"
+msgstr ""
+
+#: ../addons/src/addons.c:55
+msgid "Addons"
+msgstr ""
+
+#: ../addons/src/addons.c:55
+msgid "Various small addons for Geany."
+msgstr ""
+
+#: ../addons/src/addons.c:176 ../spellcheck/src/scplugin.c:143
+msgid "Plugin configuration directory could not be created."
+msgstr ""
+
+#: ../addons/src/addons.c:198
+msgid "Show toolbar item to show a list of currently open documents"
+msgstr ""
+
+#. TODO fix the string
+#: ../addons/src/addons.c:205
+msgid "Show a 'Open URI' menu item in the editor menu"
+msgstr ""
+
+#: ../addons/src/addons.c:211
+msgid "Show available tasks in the Message Window"
+msgstr ""
+
+#: ../addons/src/addons.c:217
+msgid "Show status icon in the Notification Area"
+msgstr ""
+
+#: ../addons/src/ao_doclist.c:209
+msgid "Close Ot_her Documents"
+msgstr ""
+
+#: ../addons/src/ao_doclist.c:214
+msgid "C_lose All"
+msgstr ""
+
+#: ../addons/src/ao_doclist.c:244
+msgid "Show Document List"
+msgstr ""
+
+#: ../spellcheck/src/speller.c:101
+msgid "Try: "
+msgstr ""
+
+#: ../spellcheck/src/speller.c:180
+msgid "Checking"
+msgstr ""
+
+#: ../spellcheck/src/speller.c:193
+#, c-format
+msgid "Checking file \"%s\" (lines %d to %d using %s):"
+msgstr ""
+
+#: ../spellcheck/src/speller.c:203
+#, c-format
+msgid "Checking file \"%s\" (using %s):"
+msgstr ""
+
+#: ../spellcheck/src/speller.c:221
+msgid "The checked text is spelled correctly."
+msgstr ""
+
+#: ../spellcheck/src/speller.c:231
+#, c-format
+msgid "The Enchant library couldn't be initialized (%s)."
+msgstr ""
+
+#: ../spellcheck/src/speller.c:232
+msgid "unknown error (maybe the chosen language is not available)"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:59
+msgid "Spell Check"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:59
+msgid "Checks the spelling of the current document."
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:60
+msgid "The Geany developer team"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:199
+msgid "Run Spell Check"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:202
+msgid "Toggle Check While Typing"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:213
+msgid "Check spelling while typing"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:217
+msgid "Show toolbar item to toggle spell checking"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:222
+msgid "Print misspelled words and suggestions in the messages window"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:226
+msgid "Language to use for the spell check:"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:66
+msgid "Spell checking while typing is now enabled"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:68
+msgid "Spell checking while typing is now disabled"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:276
+msgid "More..."
+msgstr ""
+
+#: ../spellcheck/src/gui.c:290
+msgid "(No Suggestions)"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:297
+#, c-format
+msgid "Add \"%s\" to Dictionary"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:303
+msgid "Ignore All"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:408
+#, c-format
+msgid "Default (%s)"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:409 ../spellcheck/src/gui.c:420
+msgid "unknown"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:419
+#, c-format
+msgid "Toggle spell check while typing (current language: %s)"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:480
+msgid "Spelling Suggestions"
+msgstr ""
+
+#: ../shiftcolumn/src/shiftcolumn.c:46
+msgid "Shift Column"
+msgstr "Flyt Kolonne"
+
+#: ../shiftcolumn/src/shiftcolumn.c:47
+msgid "Shift a selection left and right"
+msgstr "Flyt det valgte til højre/venstre"
+
+#: ../shiftcolumn/src/shiftcolumn.c:375 ../shiftcolumn/src/shiftcolumn.c:395
+msgid "Shift Left"
+msgstr "Flyt til Venstre"
+
+#: ../shiftcolumn/src/shiftcolumn.c:382 ../shiftcolumn/src/shiftcolumn.c:397
+msgid "Shift Right"
+msgstr "Flyt til Højre"
Property changes on: trunk/geany-plugins/po/dk.po
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Added: trunk/geany-plugins/po/es.po
===================================================================
--- trunk/geany-plugins/po/es.po (rev 0)
+++ trunk/geany-plugins/po/es.po 2009-06-10 22:29:07 UTC (rev 697)
@@ -0,0 +1,195 @@
+# Spanish translation for geany-plugins
+# Copyright (C) 2009 THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the geany-plugins package.
+# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: geany-plugins 0.1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2009-06-10 23:55+0200\n"
+"PO-Revision-Date: 2009-03-10 10:56+1000\n"
+"Last-Translator: Andrew L Janke <a.janke at gmail.com>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: ../addons/src/tasks.c:311
+msgid "Tasks"
+msgstr ""
+
+#: ../addons/src/ao_openuri.c:169
+msgid "Open URI"
+msgstr ""
+
+#: ../addons/src/ao_openuri.c:175
+msgid "Copy URI"
+msgstr ""
+
+#: ../addons/src/addons.c:55
+msgid "Addons"
+msgstr ""
+
+#: ../addons/src/addons.c:55
+msgid "Various small addons for Geany."
+msgstr ""
+
+#: ../addons/src/addons.c:176 ../spellcheck/src/scplugin.c:143
+msgid "Plugin configuration directory could not be created."
+msgstr ""
+
+#: ../addons/src/addons.c:198
+msgid "Show toolbar item to show a list of currently open documents"
+msgstr ""
+
+#. TODO fix the string
+#: ../addons/src/addons.c:205
+msgid "Show a 'Open URI' menu item in the editor menu"
+msgstr ""
+
+#: ../addons/src/addons.c:211
+msgid "Show available tasks in the Message Window"
+msgstr ""
+
+#: ../addons/src/addons.c:217
+msgid "Show status icon in the Notification Area"
+msgstr ""
+
+#: ../addons/src/ao_doclist.c:209
+msgid "Close Ot_her Documents"
+msgstr ""
+
+#: ../addons/src/ao_doclist.c:214
+msgid "C_lose All"
+msgstr ""
+
+#: ../addons/src/ao_doclist.c:244
+msgid "Show Document List"
+msgstr ""
+
+#: ../spellcheck/src/speller.c:101
+msgid "Try: "
+msgstr ""
+
+#: ../spellcheck/src/speller.c:180
+msgid "Checking"
+msgstr ""
+
+#: ../spellcheck/src/speller.c:193
+#, c-format
+msgid "Checking file \"%s\" (lines %d to %d using %s):"
+msgstr ""
+
+#: ../spellcheck/src/speller.c:203
+#, c-format
+msgid "Checking file \"%s\" (using %s):"
+msgstr ""
+
+#: ../spellcheck/src/speller.c:221
+msgid "The checked text is spelled correctly."
+msgstr ""
+
+#: ../spellcheck/src/speller.c:231
+#, c-format
+msgid "The Enchant library couldn't be initialized (%s)."
+msgstr ""
+
+#: ../spellcheck/src/speller.c:232
+msgid "unknown error (maybe the chosen language is not available)"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:59
+msgid "Spell Check"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:59
+msgid "Checks the spelling of the current document."
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:60
+msgid "The Geany developer team"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:199
+msgid "Run Spell Check"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:202
+msgid "Toggle Check While Typing"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:213
+msgid "Check spelling while typing"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:217
+msgid "Show toolbar item to toggle spell checking"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:222
+msgid "Print misspelled words and suggestions in the messages window"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:226
+msgid "Language to use for the spell check:"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:66
+msgid "Spell checking while typing is now enabled"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:68
+msgid "Spell checking while typing is now disabled"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:276
+msgid "More..."
+msgstr ""
+
+#: ../spellcheck/src/gui.c:290
+msgid "(No Suggestions)"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:297
+#, c-format
+msgid "Add \"%s\" to Dictionary"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:303
+msgid "Ignore All"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:408
+#, c-format
+msgid "Default (%s)"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:409 ../spellcheck/src/gui.c:420
+msgid "unknown"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:419
+#, c-format
+msgid "Toggle spell check while typing (current language: %s)"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:480
+msgid "Spelling Suggestions"
+msgstr ""
+
+#: ../shiftcolumn/src/shiftcolumn.c:46
+msgid "Shift Column"
+msgstr "Mover Columna"
+
+#: ../shiftcolumn/src/shiftcolumn.c:47
+msgid "Shift a selection left and right"
+msgstr "Mover Selección a la izquierda y a la derecha"
+
+#: ../shiftcolumn/src/shiftcolumn.c:375 ../shiftcolumn/src/shiftcolumn.c:395
+msgid "Shift Left"
+msgstr "Mover a la Izquierda"
+
+#: ../shiftcolumn/src/shiftcolumn.c:382 ../shiftcolumn/src/shiftcolumn.c:397
+msgid "Shift Right"
+msgstr "Mover a la Derecha"
Property changes on: trunk/geany-plugins/po/es.po
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Added: trunk/geany-plugins/po/fr.po
===================================================================
--- trunk/geany-plugins/po/fr.po (rev 0)
+++ trunk/geany-plugins/po/fr.po 2009-06-10 22:29:07 UTC (rev 697)
@@ -0,0 +1,195 @@
+# French translation for geany-plugins
+# Copyright (C) 2009 THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the geany-plugins package.
+# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: geany-plugins 0.1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2009-06-10 23:55+0200\n"
+"PO-Revision-Date: 2009-03-10 10:56+1000\n"
+"Last-Translator: Andrew L Janke <a.janke at gmail.com>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: ../addons/src/tasks.c:311
+msgid "Tasks"
+msgstr ""
+
+#: ../addons/src/ao_openuri.c:169
+msgid "Open URI"
+msgstr ""
+
+#: ../addons/src/ao_openuri.c:175
+msgid "Copy URI"
+msgstr ""
+
+#: ../addons/src/addons.c:55
+msgid "Addons"
+msgstr ""
+
+#: ../addons/src/addons.c:55
+msgid "Various small addons for Geany."
+msgstr ""
+
+#: ../addons/src/addons.c:176 ../spellcheck/src/scplugin.c:143
+msgid "Plugin configuration directory could not be created."
+msgstr ""
+
+#: ../addons/src/addons.c:198
+msgid "Show toolbar item to show a list of currently open documents"
+msgstr ""
+
+#. TODO fix the string
+#: ../addons/src/addons.c:205
+msgid "Show a 'Open URI' menu item in the editor menu"
+msgstr ""
+
+#: ../addons/src/addons.c:211
+msgid "Show available tasks in the Message Window"
+msgstr ""
+
+#: ../addons/src/addons.c:217
+msgid "Show status icon in the Notification Area"
+msgstr ""
+
+#: ../addons/src/ao_doclist.c:209
+msgid "Close Ot_her Documents"
+msgstr ""
+
+#: ../addons/src/ao_doclist.c:214
+msgid "C_lose All"
+msgstr ""
+
+#: ../addons/src/ao_doclist.c:244
+msgid "Show Document List"
+msgstr ""
+
+#: ../spellcheck/src/speller.c:101
+msgid "Try: "
+msgstr ""
+
+#: ../spellcheck/src/speller.c:180
+msgid "Checking"
+msgstr ""
+
+#: ../spellcheck/src/speller.c:193
+#, c-format
+msgid "Checking file \"%s\" (lines %d to %d using %s):"
+msgstr ""
+
+#: ../spellcheck/src/speller.c:203
+#, c-format
+msgid "Checking file \"%s\" (using %s):"
+msgstr ""
+
+#: ../spellcheck/src/speller.c:221
+msgid "The checked text is spelled correctly."
+msgstr ""
+
+#: ../spellcheck/src/speller.c:231
+#, c-format
+msgid "The Enchant library couldn't be initialized (%s)."
+msgstr ""
+
+#: ../spellcheck/src/speller.c:232
+msgid "unknown error (maybe the chosen language is not available)"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:59
+msgid "Spell Check"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:59
+msgid "Checks the spelling of the current document."
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:60
+msgid "The Geany developer team"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:199
+msgid "Run Spell Check"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:202
+msgid "Toggle Check While Typing"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:213
+msgid "Check spelling while typing"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:217
+msgid "Show toolbar item to toggle spell checking"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:222
+msgid "Print misspelled words and suggestions in the messages window"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:226
+msgid "Language to use for the spell check:"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:66
+msgid "Spell checking while typing is now enabled"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:68
+msgid "Spell checking while typing is now disabled"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:276
+msgid "More..."
+msgstr ""
+
+#: ../spellcheck/src/gui.c:290
+msgid "(No Suggestions)"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:297
+#, c-format
+msgid "Add \"%s\" to Dictionary"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:303
+msgid "Ignore All"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:408
+#, c-format
+msgid "Default (%s)"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:409 ../spellcheck/src/gui.c:420
+msgid "unknown"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:419
+#, c-format
+msgid "Toggle spell check while typing (current language: %s)"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:480
+msgid "Spelling Suggestions"
+msgstr ""
+
+#: ../shiftcolumn/src/shiftcolumn.c:46
+msgid "Shift Column"
+msgstr "Déplacer la colonne"
+
+#: ../shiftcolumn/src/shiftcolumn.c:47
+msgid "Shift a selection left and right"
+msgstr "Déplacer la sélection vers la droite ou la gauche"
+
+#: ../shiftcolumn/src/shiftcolumn.c:375 ../shiftcolumn/src/shiftcolumn.c:395
+msgid "Shift Left"
+msgstr "Déplacer vers la droit"
+
+#: ../shiftcolumn/src/shiftcolumn.c:382 ../shiftcolumn/src/shiftcolumn.c:397
+msgid "Shift Right"
+msgstr "Déplacer vers la gauche"
Property changes on: trunk/geany-plugins/po/fr.po
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Added: trunk/geany-plugins/po/geany-plugins.pot
===================================================================
--- trunk/geany-plugins/po/geany-plugins.pot (rev 0)
+++ trunk/geany-plugins/po/geany-plugins.pot 2009-06-10 22:29:07 UTC (rev 697)
@@ -0,0 +1,196 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2009-06-10 23:55+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"Language-Team: LANGUAGE <LL at li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: ../addons/src/tasks.c:311
+msgid "Tasks"
+msgstr ""
+
+#: ../addons/src/ao_openuri.c:169
+msgid "Open URI"
+msgstr ""
+
+#: ../addons/src/ao_openuri.c:175
+msgid "Copy URI"
+msgstr ""
+
+#: ../addons/src/addons.c:55
+msgid "Addons"
+msgstr ""
+
+#: ../addons/src/addons.c:55
+msgid "Various small addons for Geany."
+msgstr ""
+
+#: ../addons/src/addons.c:176 ../spellcheck/src/scplugin.c:143
+msgid "Plugin configuration directory could not be created."
+msgstr ""
+
+#: ../addons/src/addons.c:198
+msgid "Show toolbar item to show a list of currently open documents"
+msgstr ""
+
+#. TODO fix the string
+#: ../addons/src/addons.c:205
+msgid "Show a 'Open URI' menu item in the editor menu"
+msgstr ""
+
+#: ../addons/src/addons.c:211
+msgid "Show available tasks in the Message Window"
+msgstr ""
+
+#: ../addons/src/addons.c:217
+msgid "Show status icon in the Notification Area"
+msgstr ""
+
+#: ../addons/src/ao_doclist.c:209
+msgid "Close Ot_her Documents"
+msgstr ""
+
+#: ../addons/src/ao_doclist.c:214
+msgid "C_lose All"
+msgstr ""
+
+#: ../addons/src/ao_doclist.c:244
+msgid "Show Document List"
+msgstr ""
+
+#: ../spellcheck/src/speller.c:101
+msgid "Try: "
+msgstr ""
+
+#: ../spellcheck/src/speller.c:180
+msgid "Checking"
+msgstr ""
+
+#: ../spellcheck/src/speller.c:193
+#, c-format
+msgid "Checking file \"%s\" (lines %d to %d using %s):"
+msgstr ""
+
+#: ../spellcheck/src/speller.c:203
+#, c-format
+msgid "Checking file \"%s\" (using %s):"
+msgstr ""
+
+#: ../spellcheck/src/speller.c:221
+msgid "The checked text is spelled correctly."
+msgstr ""
+
+#: ../spellcheck/src/speller.c:231
+#, c-format
+msgid "The Enchant library couldn't be initialized (%s)."
+msgstr ""
+
+#: ../spellcheck/src/speller.c:232
+msgid "unknown error (maybe the chosen language is not available)"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:59
+msgid "Spell Check"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:59
+msgid "Checks the spelling of the current document."
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:60
+msgid "The Geany developer team"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:199
+msgid "Run Spell Check"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:202
+msgid "Toggle Check While Typing"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:213
+msgid "Check spelling while typing"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:217
+msgid "Show toolbar item to toggle spell checking"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:222
+msgid "Print misspelled words and suggestions in the messages window"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:226
+msgid "Language to use for the spell check:"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:66
+msgid "Spell checking while typing is now enabled"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:68
+msgid "Spell checking while typing is now disabled"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:276
+msgid "More..."
+msgstr ""
+
+#: ../spellcheck/src/gui.c:290
+msgid "(No Suggestions)"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:297
+#, c-format
+msgid "Add \"%s\" to Dictionary"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:303
+msgid "Ignore All"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:408
+#, c-format
+msgid "Default (%s)"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:409 ../spellcheck/src/gui.c:420
+msgid "unknown"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:419
+#, c-format
+msgid "Toggle spell check while typing (current language: %s)"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:480
+msgid "Spelling Suggestions"
+msgstr ""
+
+#: ../shiftcolumn/src/shiftcolumn.c:46
+msgid "Shift Column"
+msgstr ""
+
+#: ../shiftcolumn/src/shiftcolumn.c:47
+msgid "Shift a selection left and right"
+msgstr ""
+
+#: ../shiftcolumn/src/shiftcolumn.c:375 ../shiftcolumn/src/shiftcolumn.c:395
+msgid "Shift Left"
+msgstr ""
+
+#: ../shiftcolumn/src/shiftcolumn.c:382 ../shiftcolumn/src/shiftcolumn.c:397
+msgid "Shift Right"
+msgstr ""
Property changes on: trunk/geany-plugins/po/geany-plugins.pot
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Added: trunk/geany-plugins/po/ru.po
===================================================================
--- trunk/geany-plugins/po/ru.po (rev 0)
+++ trunk/geany-plugins/po/ru.po 2009-06-10 22:29:07 UTC (rev 697)
@@ -0,0 +1,195 @@
+# Russian translation for geany-plugins
+# Copyright (C) 2009 THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the geany-plugins package.
+# Andrew Janke <a.janke at gmail.com>, 2009
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: geany-plugins 0.1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2009-06-10 23:55+0200\n"
+"PO-Revision-Date: 2009-03-09 20:37+1000\n"
+"Last-Translator: Andrew Janke <a.janke at gmail.com>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: ../addons/src/tasks.c:311
+msgid "Tasks"
+msgstr ""
+
+#: ../addons/src/ao_openuri.c:169
+msgid "Open URI"
+msgstr ""
+
+#: ../addons/src/ao_openuri.c:175
+msgid "Copy URI"
+msgstr ""
+
+#: ../addons/src/addons.c:55
+msgid "Addons"
+msgstr ""
+
+#: ../addons/src/addons.c:55
+msgid "Various small addons for Geany."
+msgstr ""
+
+#: ../addons/src/addons.c:176 ../spellcheck/src/scplugin.c:143
+msgid "Plugin configuration directory could not be created."
+msgstr ""
+
+#: ../addons/src/addons.c:198
+msgid "Show toolbar item to show a list of currently open documents"
+msgstr ""
+
+#. TODO fix the string
+#: ../addons/src/addons.c:205
+msgid "Show a 'Open URI' menu item in the editor menu"
+msgstr ""
+
+#: ../addons/src/addons.c:211
+msgid "Show available tasks in the Message Window"
+msgstr ""
+
+#: ../addons/src/addons.c:217
+msgid "Show status icon in the Notification Area"
+msgstr ""
+
+#: ../addons/src/ao_doclist.c:209
+msgid "Close Ot_her Documents"
+msgstr ""
+
+#: ../addons/src/ao_doclist.c:214
+msgid "C_lose All"
+msgstr ""
+
+#: ../addons/src/ao_doclist.c:244
+msgid "Show Document List"
+msgstr ""
+
+#: ../spellcheck/src/speller.c:101
+msgid "Try: "
+msgstr ""
+
+#: ../spellcheck/src/speller.c:180
+msgid "Checking"
+msgstr ""
+
+#: ../spellcheck/src/speller.c:193
+#, c-format
+msgid "Checking file \"%s\" (lines %d to %d using %s):"
+msgstr ""
+
+#: ../spellcheck/src/speller.c:203
+#, c-format
+msgid "Checking file \"%s\" (using %s):"
+msgstr ""
+
+#: ../spellcheck/src/speller.c:221
+msgid "The checked text is spelled correctly."
+msgstr ""
+
+#: ../spellcheck/src/speller.c:231
+#, c-format
+msgid "The Enchant library couldn't be initialized (%s)."
+msgstr ""
+
+#: ../spellcheck/src/speller.c:232
+msgid "unknown error (maybe the chosen language is not available)"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:59
+msgid "Spell Check"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:59
+msgid "Checks the spelling of the current document."
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:60
+msgid "The Geany developer team"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:199
+msgid "Run Spell Check"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:202
+msgid "Toggle Check While Typing"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:213
+msgid "Check spelling while typing"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:217
+msgid "Show toolbar item to toggle spell checking"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:222
+msgid "Print misspelled words and suggestions in the messages window"
+msgstr ""
+
+#: ../spellcheck/src/scplugin.c:226
+msgid "Language to use for the spell check:"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:66
+msgid "Spell checking while typing is now enabled"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:68
+msgid "Spell checking while typing is now disabled"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:276
+msgid "More..."
+msgstr ""
+
+#: ../spellcheck/src/gui.c:290
+msgid "(No Suggestions)"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:297
+#, c-format
+msgid "Add \"%s\" to Dictionary"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:303
+msgid "Ignore All"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:408
+#, c-format
+msgid "Default (%s)"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:409 ../spellcheck/src/gui.c:420
+msgid "unknown"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:419
+#, c-format
+msgid "Toggle spell check while typing (current language: %s)"
+msgstr ""
+
+#: ../spellcheck/src/gui.c:480
+msgid "Spelling Suggestions"
+msgstr ""
+
+#: ../shiftcolumn/src/shiftcolumn.c:46
+msgid "Shift Column"
+msgstr "Сдвинуть Столбец"
+
+#: ../shiftcolumn/src/shiftcolumn.c:47
+msgid "Shift a selection left and right"
+msgstr "Сдвинить Выделение влево и вправо"
+
+#: ../shiftcolumn/src/shiftcolumn.c:375 ../shiftcolumn/src/shiftcolumn.c:395
+msgid "Shift Left"
+msgstr "Сдвинуть Влево"
+
+#: ../shiftcolumn/src/shiftcolumn.c:382 ../shiftcolumn/src/shiftcolumn.c:397
+msgid "Shift Right"
+msgstr "Сдвинуть Вправо"
Property changes on: trunk/geany-plugins/po/ru.po
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Added: trunk/geany-plugins/shiftcolumn/AUTHORS
===================================================================
--- trunk/geany-plugins/shiftcolumn/AUTHORS (rev 0)
+++ trunk/geany-plugins/shiftcolumn/AUTHORS 2009-06-10 22:29:07 UTC (rev 697)
@@ -0,0 +1 @@
+Andrew L Janke <a.janke at gmail.com>
Added: trunk/geany-plugins/shiftcolumn/ChangeLog
===================================================================
--- trunk/geany-plugins/shiftcolumn/ChangeLog (rev 0)
+++ trunk/geany-plugins/shiftcolumn/ChangeLog 2009-06-10 22:29:07 UTC (rev 697)
@@ -0,0 +1,33 @@
+2009-03-31 Andrew L Janke <a.janke at gmail.com>
+
+ * src/shiftcolumn.c: Check if document is open
+ before doing anything (Thanks Frank)
+
+2009-03-17 Andrew L Janke <a.janke at gmail.com>
+
+ * src/shiftcolumn.c: Added VERSION instead of static string
+
+2009-03-12 Andrew L Janke <a.janke at gmail.com>
+
+ * Added dk translation - Thanks Anders
+
+2009-03-10 Andrew L Janke <a.janke at gmail.com>
+
+ * Added es translation - Thanks Jon
+ * Added fr translation - Thanks Laurence
+
+2009-03-10 Andrew L Janke <a.janke at gmail.com>
+
+ * Added i18n headers to shiftcolumn.c
+ * Added ru and de translations
+
+2009-03-10 Andrew L Janke <a.janke at gmail.com>
+
+ * Added GPL license and a few patches from Frank
+ * added a few translations in the process of learning pot
+
+2009-03-09 Andrew L Janke <a.janke at gmail.com>
+
+ * Actually works now
+
+
Added: trunk/geany-plugins/shiftcolumn/NEWS
===================================================================
--- trunk/geany-plugins/shiftcolumn/NEWS (rev 0)
+++ trunk/geany-plugins/shiftcolumn/NEWS 2009-06-10 22:29:07 UTC (rev 697)
@@ -0,0 +1,11 @@
+
+New in Version 0.3
+------------------
+
+* added license and po files (de,fr,ru,sw translations)
+* will no longer crash if called when no document is open
+
+New in Version 0.2
+------------------
+
+* it works
Added: trunk/geany-plugins/shiftcolumn/README
===================================================================
--- trunk/geany-plugins/shiftcolumn/README (rev 0)
+++ trunk/geany-plugins/shiftcolumn/README 2009-06-10 22:29:07 UTC (rev 697)
@@ -0,0 +1,54 @@
+Shift Column Plugin
+===================
+
+.. contents::
+
+About
+-----
+This plugin allows you to move blocks of text horizontally
+
+Requirements
+------------
+For compiling the plugin yourself, you will need the GTK (>= 2.8.0) libraries
+and header files. You will also need its dependency libraries and header
+files, such as Pango, Glib and ATK. All these files are available at
+http://www.gtk.org.
+
+Installation
+------------
+Compiling and installing the code is done by the following three commands:
+$ ./configure
+$ make
+$ make install
+
+For more configuration details run
+$ ./configure --help
+
+If there are any errors during compilation, check your build environment
+and try to find the error, otherwise contact one of the authors.
+
+
+Usage
+-----
+After installed successfully, load the plugin in Geany's plugin manager
+and a new menu item in the Tools menu will appear. Alternatively, you can
+assign a keyboard shortcut in Geany's preferences dialog. By default
+the mappings are to <Ctrl>9 and <Ctrl>0
+
+
+Known issues
+------------
+ * none, my code rocks.. (well I can hope)
+
+License
+-------
+Shift Column is distributed 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. A copy of this license
+can be found in the file COPYING included with the source code of this
+program.
+
+
+Ideas, questions, patches and bug reports
+-----------------------------------------
+Andrew Janke <a.janke at gmail.com>
Added: trunk/geany-plugins/shiftcolumn/src/shiftcolumn.c
===================================================================
--- trunk/geany-plugins/shiftcolumn/src/shiftcolumn.c (rev 0)
+++ trunk/geany-plugins/shiftcolumn/src/shiftcolumn.c 2009-06-10 22:29:07 UTC (rev 697)
@@ -0,0 +1,403 @@
+/* shiftcolumn.c - a Geany plugin
+ *
+ * Copyright 2009 Andrew L Janke <a.janke at gmail.com>
+ *
+ * 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, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ */
+
+
+#include "geany.h"
+#include "support.h"
+
+#ifdef HAVE_LOCALE_H
+# include <locale.h>
+#endif
+
+#include "ui_utils.h"
+
+#include "sciwrappers.h"
+#include "document.h"
+#include "keybindings.h"
+#include "plugindata.h"
+#include "geanyfunctions.h"
+
+#include <glib.h>
+#include <glib/gprintf.h>
+#include <gdk/gdkkeysyms.h>
+
+GeanyPlugin *geany_plugin;
+GeanyData *geany_data;
+GeanyFunctions *geany_functions;
+
+PLUGIN_VERSION_CHECK(130);
+PLUGIN_SET_INFO(_("Shift Column"),
+ _("Shift a selection left and right"),
+ VERSION, "Andrew L Janke <a.janke at gmail.com>");
+
+
+static GtkWidget *menu_item_shift_left = NULL;
+static GtkWidget *menu_item_shift_right = NULL;
+
+/* Keybinding(s) */
+enum{
+ KB_SHIFT_LEFT,
+ KB_SHIFT_RIGHT,
+ KB_COUNT
+ };
+PLUGIN_KEY_GROUP(shiftcolumn, KB_COUNT)
+
+
+static void shift_left_cb(G_GNUC_UNUSED GtkMenuItem *menuitem,
+ G_GNUC_UNUSED gpointer gdata){
+ gchar *txt;
+ gchar *txt_i;
+ gchar char_before;
+ gint txt_len;
+
+ gint startpos;
+ gint endpos;
+
+ gint startline;
+ gint endline;
+ gint line_iter;
+ gint linepos;
+ gint linelen;
+
+ gint startcol;
+ gint endcol;
+
+ gint i;
+
+ gint n_spaces;
+ gchar *spaces;
+
+ ScintillaObject *sci;
+
+ /* get a pointer to the scintilla object */
+ sci = document_get_current()->editor->sci;
+
+ if (sci_has_selection(sci)){
+
+ startpos = sci_get_selection_start(sci);
+ endpos = sci_get_selection_end(sci);
+
+ /* sanity check -- we dont care which way the block was selected */
+ if(startpos > endpos){
+ i = endpos;
+ endpos = startpos;
+ startpos = i;
+ }
+
+ startline = sci_get_line_from_position(sci, startpos);
+ endline = sci_get_line_from_position(sci, endpos);
+
+ /* normal mode */
+ // if(sci_get_selection_mode(sci) == 1){
+ if(startline == endline){
+
+ /* get the text in question */
+ txt_len = endpos - startpos;
+ txt_i = g_malloc(txt_len + 1);
+ txt = g_malloc(txt_len + 2);
+ sci_get_selected_text(sci, txt_i);
+
+ char_before = sci_get_char_at(sci, startpos - 1);
+
+ /* set up new text buf */
+ (void) g_sprintf(txt, "%s%c", txt_i, char_before);
+
+ /* start undo */
+ sci_start_undo_action(sci);
+
+ /* put the new text in */
+ sci_set_selection_start(sci, startpos - 1);
+ sci_replace_sel(sci, txt);
+
+ /* select the right bit again */
+ sci_set_selection_start(sci, startpos - 1);
+ sci_set_selection_end(sci, endpos - 1);
+
+ /* end undo */
+ sci_end_undo_action(sci);
+
+ g_free(txt);
+ g_free(txt_i);
+ }
+
+ /* rectangle mode (we hope!) */
+ else{
+ startcol = sci_get_col_from_position(sci, startpos);
+ endcol = sci_get_col_from_position(sci, endpos);
+
+ /* return early for the trivial case */
+ if(startcol == 0 || startcol == endcol){
+ return;
+ }
+
+ /* start undo */
+ sci_start_undo_action(sci);
+
+ for(line_iter = startline; line_iter <= endline; line_iter++){
+ linepos = sci_get_position_from_line(sci, line_iter);
+ linelen = sci_get_line_length(sci, line_iter);
+
+ /* do we need to do something */
+ if(linelen >= startcol - 1 ){
+
+ /* if between the two columns */
+ /* pad to the end first */
+ if(linelen <= endcol){
+
+ /* bung in some spaces -- sorry, I dont like tabs */
+ n_spaces = endcol - linelen + 1;
+ spaces = g_malloc(sizeof(gchar) * (n_spaces + 1));
+ for(i = 0; i < n_spaces; i++){
+ spaces[i] = ' ';
+ }
+ spaces[i] = '\0';
+
+ sci_insert_text(sci, linepos + linelen - 1, spaces);
+ g_free(spaces);
+ }
+
+ /* now move the text itself */
+ sci_set_selection_mode(sci, 0);
+ sci_set_selection_start(sci, linepos + startcol);
+ sci_set_selection_end(sci, linepos + endcol);
+
+ txt_len = sci_get_selected_text_length(sci);
+ txt_i = g_malloc(txt_len + 1);
+ txt = g_malloc(txt_len + 2);
+
+ sci_get_selected_text(sci, txt_i);
+ char_before = sci_get_char_at(sci, linepos + startcol - 1);
+
+ /* set up new text buf */
+ (void) g_sprintf(txt, "%s%c", txt_i, char_before);
+
+ /* put the new text in */
+ sci_set_selection_start(sci, linepos + startcol - 1);
+ sci_replace_sel(sci, txt);
+
+ g_free(txt);
+ g_free(txt_i);
+ }
+ }
+
+ /* put the selection box back */
+ /* here we rely upon the last result of linepos */
+ sci_set_selection_mode(sci, 1);
+ sci_set_selection_start(sci, startpos - 1);
+ sci_set_selection_end(sci, linepos + endcol - 1);
+
+ /* end undo action */
+ sci_end_undo_action(sci);
+ }
+
+ }
+ }
+
+static void shift_right_cb(G_GNUC_UNUSED GtkMenuItem *menuitem,
+ G_GNUC_UNUSED gpointer gdata){
+ gchar *txt;
+ gchar *txt_i;
+ gchar char_after;
+ gint txt_len;
+
+ gint startpos;
+ gint endpos;
+
+ gint startline;
+ gint endline;
+ gint line_iter;
+ gint linepos;
+ gint linelen;
+
+ gint startcol;
+ gint endcol;
+
+ gint i;
+
+ ScintillaObject *sci;
+
+ /* get a pointer to the scintilla object */
+ sci = document_get_current()->editor->sci;
+
+ if (sci_has_selection(sci)){
+
+ startpos = sci_get_selection_start(sci);
+ endpos = sci_get_selection_end(sci);
+
+ /* sanity check -- we dont care which way the block was selected */
+ if(startpos > endpos){
+ i = endpos;
+ endpos = startpos;
+ startpos = i;
+ }
+
+ startline = sci_get_line_from_position(sci, startpos);
+ endline = sci_get_line_from_position(sci, endpos);
+
+ /* normal mode */
+ if(startline == endline){
+
+ /* get the text in question */
+ txt_len = endpos - startpos;
+ txt_i = g_malloc(txt_len + 1);
+ txt = g_malloc(txt_len + 2);
+ sci_get_selected_text(sci, txt_i);
+
+ char_after = sci_get_char_at(sci, endpos);
+
+ /* set up new text buf */
+ (void) g_sprintf(txt, "%c%s", char_after, txt_i);
+
+ /* start undo */
+ sci_start_undo_action(sci);
+
+ /* put the new text in */
+ sci_set_selection_end(sci, endpos + 1);
+ sci_replace_sel(sci, txt);
+
+ /* select the right bit again */
+ sci_set_selection_start(sci, startpos + 1);
+ sci_set_selection_end(sci, endpos + 1);
+
+ /* end undo */
+ sci_end_undo_action(sci);
+
+ g_free(txt);
+ g_free(txt_i);
+ }
+
+ /* rectangle mode (we hope!) */
+ else{
+ startcol = sci_get_col_from_position(sci, startpos);
+ endcol = sci_get_col_from_position(sci, endpos);
+
+ /* start undo */
+ sci_start_undo_action(sci);
+
+ for(line_iter = startline; line_iter <= endline; line_iter++){
+ linepos = sci_get_position_from_line(sci, line_iter);
+ linelen = sci_get_line_length(sci, line_iter);
+
+ /* do we need to do something */
+ if(linelen >= startcol - 1 ){
+
+ /* if between the two columns or at the end */
+ /* add in a space */
+ if(linelen <= endcol || linelen - 1 == endcol){
+ txt = g_malloc(sizeof(gchar) * 2);
+ sprintf(txt, " ");
+
+ sci_insert_text(sci, linepos + startcol, txt);
+ g_free(txt);
+ }
+
+ else{
+ /* move the text itself */
+ sci_set_selection_mode(sci, 0);
+ sci_set_selection_start(sci, linepos + startcol);
+ sci_set_selection_end(sci, linepos + endcol);
+
+ txt_len = sci_get_selected_text_length(sci);
+ txt_i = g_malloc(txt_len + 1);
+ txt = g_malloc(txt_len + 2);
+
+ sci_get_selected_text(sci, txt_i);
+ char_after = sci_get_char_at(sci, linepos + endcol);
+
+ /* set up new text buf */
+ (void) g_sprintf(txt, "%c%s", char_after, txt_i);
+
+ /* put the new text in */
+ sci_set_selection_end(sci, linepos + endcol + 1);
+ sci_replace_sel(sci, txt);
+
+ g_free(txt);
+ g_free(txt_i);
+ }
+ }
+ }
+
+ /* put the selection box back */
+ /* here we rely upon the last result of linepos */
+ sci_set_selection_mode(sci, 1);
+ sci_set_selection_start(sci, startpos + 1);
+ sci_set_selection_end(sci, linepos + endcol + 1);
+
+ /* end undo action */
+ sci_end_undo_action(sci);
+ }
+ }
+ }
+
+
+static void kb_shift_left(G_GNUC_UNUSED guint key_id){
+
+ /* sanity check */
+ if (document_get_current() == NULL){
+ return;
+ }
+
+ shift_left_cb(NULL, NULL);
+ }
+
+static void kb_shift_right(G_GNUC_UNUSED guint key_id){
+
+ /* sanity check */
+ if (document_get_current() == NULL){
+ return;
+ }
+
+ shift_right_cb(NULL, NULL);
+ }
+
+void plugin_init(G_GNUC_UNUSED GeanyData *data){
+
+ /* init gettext and friends */
+ main_locale_init(LOCALEDIR, GETTEXT_PACKAGE);
+
+ menu_item_shift_left = gtk_menu_item_new_with_mnemonic(_("Shift Left"));
+ gtk_widget_show(menu_item_shift_left);
+ gtk_container_add(GTK_CONTAINER(geany->main_widgets->tools_menu),
+ menu_item_shift_left);
+ g_signal_connect(menu_item_shift_left, "activate",
+ G_CALLBACK(shift_left_cb), NULL);
+
+ menu_item_shift_right = gtk_menu_item_new_with_mnemonic(_("Shift Right"));
+ gtk_widget_show(menu_item_shift_right);
+ gtk_container_add(GTK_CONTAINER(geany->main_widgets->tools_menu),
+ menu_item_shift_right);
+ g_signal_connect(menu_item_shift_right, "activate",
+ G_CALLBACK(shift_right_cb), NULL);
+
+ /* make sure our menu items aren't called when there is no doc open */
+ ui_add_document_sensitive(menu_item_shift_right);
+ ui_add_document_sensitive(menu_item_shift_left);
+
+ /* setup keybindings */
+ keybindings_set_item(plugin_key_group, KB_SHIFT_LEFT, kb_shift_left,
+ GDK_9, GDK_CONTROL_MASK, "shift_left", _("Shift Left"), menu_item_shift_left);
+ keybindings_set_item(plugin_key_group, KB_SHIFT_RIGHT, kb_shift_right,
+ GDK_0, GDK_CONTROL_MASK, "shift_right", _("Shift Right"), menu_item_shift_right);
+ }
+
+void plugin_cleanup(void){
+ gtk_widget_destroy(menu_item_shift_left);
+ gtk_widget_destroy(menu_item_shift_right);
+ }
Property changes on: trunk/geany-plugins/shiftcolumn/src/shiftcolumn.c
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Deleted: trunk/geany-plugins/spellcheck/Makefile.am
===================================================================
--- trunk/spellcheck/Makefile.am 2009-06-09 22:15:27 UTC (rev 696)
+++ trunk/geany-plugins/spellcheck/Makefile.am 2009-06-10 22:29:07 UTC (rev 697)
@@ -1,33 +0,0 @@
-
-SUBDIRS = src po
-
-DOCDIR = $(DESTDIR)$(docdir)
-
-EXTRA_DIST = \
- autogen.sh \
- makefile.win32 \
- po/LINGUAS
-
-dist-bzip2: distdir
- BZIP2=$(BZIP2_ENV) $(AMTAR) --bzip2 -chof $(distdir).tar.bz2 $(distdir)
- -rm -rf $(distdir)
-
-sign:
- if test -f $(PACKAGE)-$(VERSION).tar.gz; then \
- gpg --detach-sign --digest-algo SHA512 $(PACKAGE)-$(VERSION).tar.gz; fi
- if test -f $(PACKAGE)-$(VERSION).tar.bz2; then \
- gpg --detach-sign --digest-algo SHA512 $(PACKAGE)-$(VERSION).tar.bz2; fi
-
-html:
- rst2html README index.html
-
-install-data-local:
- $(mkinstalldirs) $(DOCDIR)
- $(INSTALL_DATA) $(top_srcdir)/README $(DOCDIR)
- $(INSTALL_DATA) $(top_srcdir)/ChangeLog $(DOCDIR)
- $(INSTALL_DATA) $(top_srcdir)/NEWS $(DOCDIR)
- $(INSTALL_DATA) $(top_srcdir)/COPYING $(DOCDIR)
- $(INSTALL_DATA) $(top_srcdir)/AUTHORS $(DOCDIR)
-
-uninstall-local:
- rm -rf $(DOCDIR)
Deleted: trunk/geany-plugins/spellcheck/autogen.sh
===================================================================
--- trunk/spellcheck/autogen.sh 2009-06-09 22:15:27 UTC (rev 696)
+++ trunk/geany-plugins/spellcheck/autogen.sh 2009-06-10 22:29:07 UTC (rev 697)
@@ -1,159 +0,0 @@
-#!/bin/sh
-# Run this to generate all the initial makefiles, etc.
-
-srcdir=`dirname $0`
-test -z "$srcdir" && srcdir=.
-
-DIE=0
-
-if [ -n "$GNOME2_DIR" ]; then
- ACLOCAL_FLAGS="-I $GNOME2_DIR/share/aclocal $ACLOCAL_FLAGS"
- LD_LIBRARY_PATH="$GNOME2_DIR/lib:$LD_LIBRARY_PATH"
- PATH="$GNOME2_DIR/bin:$PATH"
- export PATH
- export LD_LIBRARY_PATH
-fi
-
-(test -f $srcdir/configure.in) || {
- echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
- echo " top-level package directory"
- exit 1
-}
-
-(autoconf --version) < /dev/null > /dev/null 2>&1 || {
- echo
- echo "**Error**: You must have \`autoconf' installed."
- echo "Download the appropriate package for your distribution,"
- echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
- DIE=1
-}
-
-(grep "^AC_PROG_INTLTOOL" $srcdir/configure.in >/dev/null) && {
- (intltoolize --version) < /dev/null > /dev/null 2>&1 || {
- echo
- echo "**Error**: You must have \`intltool' installed."
- echo "You can get it from:"
- echo " ftp://ftp.gnome.org/pub/GNOME/"
- DIE=1
- }
-}
-
-(grep "^AM_PROG_XML_I18N_TOOLS" $srcdir/configure.in >/dev/null) && {
- (xml-i18n-toolize --version) < /dev/null > /dev/null 2>&1 || {
- echo
- echo "**Error**: You must have \`xml-i18n-toolize' installed."
- echo "You can get it from:"
- echo " ftp://ftp.gnome.org/pub/GNOME/"
- DIE=1
- }
-}
-
-(grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && {
- (libtool --version) < /dev/null > /dev/null 2>&1 || {
- echo
- echo "**Error**: You must have \`libtool' installed."
- echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/"
- DIE=1
- }
-}
-
-(grep "^AM_GLIB_GNU_GETTEXT" $srcdir/configure.in >/dev/null) && {
- (grep "sed.*POTFILES" $srcdir/configure.in) > /dev/null || \
- (glib-gettextize --version) < /dev/null > /dev/null 2>&1 || {
- echo
- echo "**Error**: You must have \`glib' installed."
- echo "You can get it from: ftp://ftp.gtk.org/pub/gtk"
- DIE=1
- }
-}
-
-(automake --version) < /dev/null > /dev/null 2>&1 || {
- echo
- echo "**Error**: You must have \`automake' installed."
- echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/"
- DIE=1
- NO_AUTOMAKE=yes
-}
-
-
-# if no automake, don't bother testing for aclocal
-test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
- echo
- echo "**Error**: Missing \`aclocal'. The version of \`automake'"
- echo "installed doesn't appear recent enough."
- echo "You can get automake from ftp://ftp.gnu.org/pub/gnu/"
- DIE=1
-}
-
-if test "$DIE" -eq 1; then
- exit 1
-fi
-
-if test -z "$*"; then
- echo "**Warning**: I am going to run \`configure' with no arguments."
- echo "If you wish to pass any to it, please specify them on the"
- echo \`$0\'" command line."
- echo
-fi
-
-case $CC in
-xlc )
- am_opt=--include-deps;;
-esac
-
-for coin in `find $srcdir -path $srcdir/CVS -prune -o -name configure.in -print`
-do
- dr=`dirname $coin`
- if test -f $dr/NO-AUTO-GEN; then
- echo skipping $dr -- flagged as no auto-gen
- else
- echo processing $dr
- ( cd $dr
-
- aclocalinclude="$ACLOCAL_FLAGS"
-
- if grep "^AM_GLIB_GNU_GETTEXT" configure.in >/dev/null; then
- echo "Creating $dr/aclocal.m4 ..."
- test -r $dr/aclocal.m4 || touch $dr/aclocal.m4
- echo "Running glib-gettextize... Ignore non-fatal messages."
- echo "no" | glib-gettextize --force --copy
- echo "Making $dr/aclocal.m4 writable ..."
- test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4
- fi
- if grep "^AC_PROG_INTLTOOL" configure.in >/dev/null; then
- echo "Running intltoolize..."
- intltoolize --copy --force --automake
- fi
- if grep "^AM_PROG_XML_I18N_TOOLS" configure.in >/dev/null; then
- echo "Running xml-i18n-toolize..."
- xml-i18n-toolize --copy --force --automake
- fi
- if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then
- if test -z "$NO_LIBTOOLIZE" ; then
- echo "Running libtoolize..."
- libtoolize --force --copy
- fi
- fi
- echo "Running aclocal $aclocalinclude ..."
- aclocal $aclocalinclude
- if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then
- echo "Running autoheader..."
- autoheader
- fi
- echo "Running automake --gnu $am_opt ..."
- automake --add-missing --gnu $am_opt
- echo "Running autoconf ..."
- autoconf
- )
- fi
-done
-
-conf_flags="--enable-maintainer-mode"
-
-if test x$NOCONFIGURE = x; then
- echo Running $srcdir/configure $conf_flags "$@" ...
- $srcdir/configure $conf_flags "$@" \
- && echo Now type \`make\' to compile. || exit 1
-else
- echo Skipping configure process.
-fi
Deleted: trunk/geany-plugins/spellcheck/configure.in
===================================================================
--- trunk/spellcheck/configure.in 2009-06-09 22:15:27 UTC (rev 696)
+++ trunk/geany-plugins/spellcheck/configure.in 2009-06-10 22:29:07 UTC (rev 697)
@@ -1,70 +0,0 @@
-# Process this file with autoconf to produce a configure script.
-# $Id$
-
-AC_INIT(configure.in)
-AM_INIT_AUTOMAKE(spellcheck, 0.5)
-
-AM_CONFIG_HEADER(config.h)
-
-AC_PROG_CC
-
-AC_DISABLE_STATIC
-AM_PROG_LIBTOOL
-LIBTOOL="$LIBTOOL --silent"
-
-AC_PROG_INSTALL
-
-# checking for Geany
-PKG_CHECK_MODULES(GEANY, [geany >= 0.16])
-AC_SUBST(GEANY_CFLAGS)
-AC_SUBST(GEANY_LIBS)
-
-# checking for libenchant
-PKG_CHECK_MODULES(ENCHANT, [enchant >= 1.3])
-AC_SUBST(ENCHANT_CFLAGS)
-AC_SUBST(ENCHANT_LIBS)
-
-GEANY_VERSION=`$PKG_CONFIG --modversion geany`
-GTK_VERSION=`$PKG_CONFIG --modversion gtk+-2.0`
-ENCHANT_VERSION=`$PKG_CONFIG --modversion enchant`
-
-# i18n
-GETTEXT_PACKAGE=geanyspellcheck
-AC_SUBST(GETTEXT_PACKAGE)
-AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])
-
-ALL_LINGUAS="`sed -e '/^#/d' $srcdir/po/LINGUAS`" # take all languages found in file po/LINGUAS
-
-AM_GLIB_GNU_GETTEXT
-# workaround for intltool bug (http://bugzilla.gnome.org/show_bug.cgi?id=490845)
-if test "x$MSGFMT" = "xno"; then
- AC_MSG_ERROR([msgfmt not found. Please install the gettext package.])
-fi
-
-# intltool hack to define install_sh on Debian/Ubuntu systems
-if test "x$install_sh" = "x"; then
- install_sh="`pwd`/install-sh"
- AC_SUBST(install_sh)
-fi
-
-# get the plugin installed at the correct location for Geany
-# TODO find a way to NOT override --libdir/--docdir command line option if given
-libdir="`$PKG_CONFIG --variable=libdir geany`/geany"
-docdir="${datarootdir}/doc/geany-plugins/${PACKAGE}"
-
-
-AC_OUTPUT([
-Makefile
-src/Makefile
-po/Makefile.in
-])
-
-echo "----------------------------------------"
-echo "Install Spell Check plugin binary in : ${libdir}"
-echo "Install Spell Check files in : ${prefix}"
-echo "Using Geany version : ${GEANY_VERSION}"
-echo "Using GTK version : ${GTK_VERSION}"
-echo "Using libenchant version : ${ENCHANT_VERSION}"
-echo ""
-echo "Configuration is done OK."
-echo ""
Deleted: trunk/geany-plugins/spellcheck/makefile.win32
===================================================================
--- trunk/spellcheck/makefile.win32 2009-06-09 22:15:27 UTC (rev 696)
+++ trunk/geany-plugins/spellcheck/makefile.win32 2009-06-10 22:29:07 UTC (rev 697)
@@ -1,62 +0,0 @@
-#
-# localwin32.mk is an optional file to override make variables.
-# Use localwin32.mk instead of editing variables as it is included in sub
-# makefiles.
-# localwin32.mk to set PREFIX instead of the default C:\libs
-# For MSYS use localwin32.mk to set CP and RM.
-# By default this will work in a Windows command prompt.
-
-CC = gcc
-CP = copy
-RM = del
-PREFIX = C:\libs
-# path to the Aspell source directory
-ASPELL_PREFIX = C:\libs\aspell
-ASPELL_LIB = C:\aspell\bin\aspell-15.dll
-GEANY_SRC = c:\geany_svn
-TARGET = spellcheck.dll
-.SUFFIXES: .c .o
--include localwin32.mk
-
-
-OBJS = spellcheck.o
-INCLUDEDIRS= -I. \
- -I$(GEANY_SRC) \
- -I$(GEANY_SRC)\src \
- -I$(GEANY_SRC)\plugins \
- -I$(GEANY_SRC)\tagmanager\include \
- -I$(GEANY_SRC)\scintilla\include \
- -I$(PREFIX)/include/gtk-2.0 \
- -I$(PREFIX)/lib/gtk-2.0/include \
- -I$(PREFIX)/include/atk-1.0 \
- -I$(PREFIX)/include/pango-1.0 \
- -I$(PREFIX)/include/cairo \
- -I$(PREFIX)/include/glib-2.0 \
- -I$(PREFIX)/lib/glib-2.0/include \
- -I$(PREFIX)/include/gettext \
- -I$(PREFIX)/include \
- -I$(ASPELL_PREFIX)/interfaces/cc
-
-ALL_GTK_LIBS= \
- -L"$(PREFIX)/lib" \
- -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 \
- -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl -liconv $(ASPELL_LIB)
-CCFLAGS=-Wall -O2 -mms-bitfields -DHAVE_CONFIG_H
-
-
-all: $(TARGET)
-
-deps.mak:
- $(CC) -MM $(CCFLAGS) $(INCLUDEDIRS) src/*.c >deps.mak
-
-spellcheck.o:
- $(CC) $(CCFLAGS) $(INCLUDEDIRS) -c $<
-
-$(TARGET): deps.mak $(OBJS)
- $(CC) -shared $(OBJS) $(ALL_GTK_LIBS) -o $(TARGET)
-
-clean:
- -$(RM) deps.mak *.o *.dll
-
-# Generate header dependencies with "make deps.mak"
-include deps.mak
Deleted: trunk/geany-plugins/spellcheck/src/Makefile.am
===================================================================
--- trunk/spellcheck/src/Makefile.am 2009-06-09 22:15:27 UTC (rev 696)
+++ trunk/geany-plugins/spellcheck/src/Makefile.am 2009-06-10 22:29:07 UTC (rev 697)
@@ -1,7 +0,0 @@
-
-lib_LTLIBRARIES = spellcheck.la
-spellcheck_la_SOURCES = speller.c speller.h scplugin.c scplugin.h gui.c gui.h
-spellcheck_la_LDFLAGS = -module -avoid-version
-spellcheck_la_LIBADD = @GEANY_LIBS@ $(INTLLIBS) @ENCHANT_LIBS@
-
-AM_CFLAGS = @GEANY_CFLAGS@ @ENCHANT_CFLAGS@ -DLOCALEDIR=\""$(localedir)"\" -DDOCDIR=\""$(docdir)"\"
Copied: trunk/geany-plugins/waf (from rev 696, trunk/waf)
===================================================================
--- trunk/geany-plugins/waf (rev 0)
+++ trunk/geany-plugins/waf 2009-06-10 22:29:07 UTC (rev 697)
@@ -0,0 +1,147 @@
+#!/usr/bin/env python
+# encoding: utf-8
+# Thomas Nagy, 2005-2009
+
+"""
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+3. The name of the author may not be used to endorse or promote products
+ derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
+IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
+"""
+
+import os, sys
+if sys.hexversion<0x203000f: raise ImportError("Waf requires Python >= 2.3")
+
+if 'PSYCOWAF' in os.environ:
+ try:import psyco;psyco.full()
+ except:pass
+
+VERSION="1.5.5"
+REVISION="b91f640ab0e4cd8b0bd40eb6200616f4"
+INSTALL=''
+C1='#,'
+C2='#$'
+cwd = os.getcwd()
+join = os.path.join
+
+WAF='waf'
+def b(x):
+ return x
+
+if sys.hexversion>0x300000f:
+ WAF='waf3'
+ def b(x):
+ return x.encode()
+
+def err(m):
+ print(('\033[91mError: %s\033[0m' % m))
+ sys.exit(1)
+
+def unpack_wafdir(dir):
+ f = open(sys.argv[0],'rb')
+ c = "corrupted waf (%d)"
+ while 1:
+ line = f.readline()
+ if not line: err("run waf-light from a folder containing wafadmin")
+ if line == b('#==>\n'):
+ txt = f.readline()
+ if not txt: err(c % 1)
+ if f.readline()!=b('#<==\n'): err(c % 2)
+ break
+ if not txt: err(c % 3)
+ txt = txt[1:-1].replace(b(C1), b('\n')).replace(b(C2), b('\r'))
+
+ import shutil, tarfile
+ try: shutil.rmtree(dir)
+ except OSError: pass
+ try: os.makedirs(join(dir, 'wafadmin', 'Tools'))
+ except OSError: err("Cannot unpack waf lib into %s\nMove waf into a writeable directory" % dir)
+
+ os.chdir(dir)
+ tmp = 't.tbz2'
+ t = open(tmp,'wb')
+ t.write(txt)
+ t.close()
+
+ t = tarfile.open(tmp)
+ for x in t: t.extract(x)
+ t.close()
+
+ os.chmod(join('wafadmin','Tools'), 493)
+
+ os.unlink(tmp)
+
+ if sys.hexversion>0x300000f:
+ sys.path = [join(dir, 'wafadmin')] + sys.path
+ import py3kfixes
+ py3kfixes.fixdir(dir)
+
+ os.chdir(cwd)
+
+def test(dir):
+ try: os.stat(join(dir, 'wafadmin')); return os.path.abspath(dir)
+ except OSError: pass
+
+def find_lib():
+ name = sys.argv[0]
+ base = os.path.dirname(os.path.abspath(name))
+
+ #devs use $WAFDIR
+ w=test(os.environ.get('WAFDIR', ''))
+ if w: return w
+
+ #waf-light
+ if name.endswith('waf-light'):
+ w = test(base)
+ if w: return w
+ err("waf-light requires wafadmin -> export WAFDIR=/folder")
+
+ dir = "/lib/%s-%s-%s/" % (WAF, VERSION, REVISION)
+ for i in [INSTALL,'/usr','/usr/local','/opt']:
+ w = test(i+dir)
+ if w: return w
+
+ #waf-local
+ s = '.%s-%s-%s'
+ if sys.platform == 'win32': s = s[1:]
+ dir = join(base, s % (WAF, VERSION, REVISION))
+ w = test(dir)
+ if w: return w
+
+ #unpack
+ unpack_wafdir(dir)
+ return dir
+
+wafdir = find_lib()
+w = join(wafdir, 'wafadmin')
+t = join(w, 'Tools')
+sys.path = [w, t] + sys.path
+
+import Scripting
+Scripting.prepare(t, cwd, VERSION, wafdir)
+sys.exit(0)
+
+#==>
@@ Diff output truncated at 100000 characters. @@
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Plugins-Commits
mailing list