~cypheon/elfelli

050b6716f94a8f1ef3a8eb40cc53aac2a11012ff — Johann Rudloff 17 years ago 40ba4ab
It's now possible to change the charge of a body using the scroll wheel; updated German translation.
5 files changed, 88 insertions(+), 44 deletions(-)

M i18n.py
M po/de.po
M po/elfelli.pot
M src/SimulationCanvas.cpp
M src/SimulationCanvas.h
M i18n.py => i18n.py +0 -1
@@ 33,7 33,6 @@ if __name__ == '__main__':
    if (len(sys.argv) >= 2) and (sys.argv[1] == 'update'):
        update_pot()
        update_po_files(locales)
        compile_po_files(locales)

    elif (len(sys.argv) >= 3) and (sys.argv[1] == 'init'):
        update_pot()

M po/de.po => po/de.po +38 -22
@@ 8,7 8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: elfelli 01\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2006-12-01 19:04+0100\n"
"POT-Creation-Date: 2007-02-04 16:04+0100\n"
"PO-Revision-Date: 2006-11-07 20:30+0100\n"
"Last-Translator: Johann Rudloff <cypheon@gmx.net>\n"
"Language-Team: German <translation-team-de@lists.sourceforge.net>\n"


@@ 17,11 17,11 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: src/Application.cpp:94
msgid "Export PNG"
msgstr "PNG exportieren"
#: src/Application.cpp:163 src/Application.cpp:368
msgid "Elfelli XML (*.elfelli)"
msgstr "Elfelli-XML (*.elfelli)"

#: src/Application.cpp:153
#: src/Application.cpp:239
msgid ""
"This program is free software; you can redistribute it and/or modify\n"
"it under the terms of the GNU General Public License as published by\n"


@@ 33,7 33,7 @@ msgstr ""
"öffentlicht, weitergeben und/oder modifizieren; entweder gemäß Version 2\n"
"der Lizenz, oder (nach Ihrem Ermessen) gemäß jeder späteren Version.\n"

#: src/Application.cpp:158
#: src/Application.cpp:244
msgid ""
"This program is distributed in the hope that it will be useful,\n"
"but WITHOUT ANY WARRANTY; without even the implied warranty of\n"


@@ 45,7 45,7 @@ msgstr ""
"die implizite Garantie der MARKTREIFE oder der VERWENDBARKEIT FÜR EINEN\n"
"BESTIMMTEN ZWECK. Details finden Sie in der GNU General Public License.\n"

#: src/Application.cpp:163
#: src/Application.cpp:249
msgid ""
"You should have received a copy of the GNU General Public License\n"
"along with this program; if not, write to the Free Software\n"


@@ 57,38 57,54 @@ msgstr ""
"Free Software Foundation, Inc.\n"
"51 Franklin Street, Fifth Floor, Boston, MA 02110, USA.\n"

#: src/Application.cpp:197
msgid "_Scene"
msgstr "_Szene"

#: src/Application.cpp:201
#: src/Application.cpp:285
msgid "Export _PNG"
msgstr "_PNG exportieren"

#: src/Application.cpp:202
#: src/Application.cpp:291
msgid "Export S_VG"
msgstr "S_VG exportieren"

#: src/Application.cpp:205
msgid "E_dit"
msgstr "_Bearbeiten"

#: src/Application.cpp:207
#: src/Application.cpp:298
msgid "Negative body"
msgstr "Negativer Körper"

#: src/Application.cpp:208
#: src/Application.cpp:305
msgid "Positive body"
msgstr "Positiver Körper"

#: src/Application.cpp:209
#: src/Application.cpp:312
msgid "Negative plate"
msgstr "Negative Platte"

#: src/Application.cpp:210
#: src/Application.cpp:319
msgid "Positive plate"
msgstr "Positive Platte"

#: src/Application.cpp:212
#: src/Application.cpp:333
msgid "_Scene"
msgstr "_Szene"

#: src/Application.cpp:341
msgid "E_dit"
msgstr "_Bearbeiten"

#: src/Application.cpp:348
msgid "_Help"
msgstr "_Hilfe"

#: src/Application.cpp:365
msgid "Export PNG"
msgstr "PNG exportieren"

#: src/Application.cpp:371
msgid "All files"
msgstr "Alle Dateien"

#: src/Application.cpp:374
msgid "Save scene"
msgstr "Szene speichern"

#: src/Application.cpp:382
msgid "Open scene"
msgstr "Szene öffnen"

M po/elfelli.pot => po/elfelli.pot +37 -21
@@ 8,7 8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2006-12-10 11:08+0100\n"
"POT-Creation-Date: 2007-02-04 16:06+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"


@@ 16,11 16,11 @@ msgstr ""
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"

#: src/Application.cpp:94
msgid "Export PNG"
#: src/Application.cpp:163 src/Application.cpp:368
msgid "Elfelli XML (*.elfelli)"
msgstr ""

#: src/Application.cpp:153
#: src/Application.cpp:239
msgid ""
"This program is free software; you can redistribute it and/or modify\n"
"it under the terms of the GNU General Public License as published by\n"


@@ 28,7 28,7 @@ msgid ""
"at your option) any later version.\n"
msgstr ""

#: src/Application.cpp:158
#: src/Application.cpp:244
msgid ""
"This program is distributed in the hope that it will be useful,\n"
"but WITHOUT ANY WARRANTY; without even the implied warranty of\n"


@@ 36,7 36,7 @@ msgid ""
"GNU General Public License for more details.\n"
msgstr ""

#: src/Application.cpp:163
#: src/Application.cpp:249
msgid ""
"You should have received a copy of the GNU General Public License\n"
"along with this program; if not, write to the Free Software\n"


@@ 44,38 44,54 @@ msgid ""
"USA\n"
msgstr ""

#: src/Application.cpp:197
msgid "_Scene"
msgstr ""

#: src/Application.cpp:201
#: src/Application.cpp:285
msgid "Export _PNG"
msgstr ""

#: src/Application.cpp:202
#: src/Application.cpp:291
msgid "Export S_VG"
msgstr ""

#: src/Application.cpp:205
msgid "E_dit"
msgstr ""

#: src/Application.cpp:207
#: src/Application.cpp:298
msgid "Negative body"
msgstr ""

#: src/Application.cpp:208
#: src/Application.cpp:305
msgid "Positive body"
msgstr ""

#: src/Application.cpp:209
#: src/Application.cpp:312
msgid "Negative plate"
msgstr ""

#: src/Application.cpp:210
#: src/Application.cpp:319
msgid "Positive plate"
msgstr ""

#: src/Application.cpp:212
#: src/Application.cpp:333
msgid "_Scene"
msgstr ""

#: src/Application.cpp:341
msgid "E_dit"
msgstr ""

#: src/Application.cpp:348
msgid "_Help"
msgstr ""

#: src/Application.cpp:365
msgid "Export PNG"
msgstr ""

#: src/Application.cpp:371
msgid "All files"
msgstr ""

#: src/Application.cpp:374
msgid "Save scene"
msgstr ""

#: src/Application.cpp:382
msgid "Open scene"
msgstr ""

M src/SimulationCanvas.cpp => src/SimulationCanvas.cpp +12 -0
@@ 675,6 675,18 @@ bool SimulationCanvas::on_button_release_event(GdkEventButton *event)
  }
}

bool SimulationCanvas::on_scroll_event(GdkEventScroll *event)
{
  if(event->direction == GDK_SCROLL_UP)
  {
    increase_selected_charge();
  }
  else if(event->direction == GDK_SCROLL_DOWN)
  {
    decrease_selected_charge();
  }
}

bool SimulationCanvas::on_key_press_event(GdkEventKey *event)
{
  if(event->keyval == GDK_Delete)

M src/SimulationCanvas.h => src/SimulationCanvas.h +1 -0
@@ 104,6 104,7 @@ protected:
  virtual bool on_motion_notify_event(GdkEventMotion *event);
  virtual bool on_button_press_event(GdkEventButton *event);
  virtual bool on_button_release_event(GdkEventButton *event);
  virtual bool on_scroll_event(GdkEventScroll *event);

  virtual bool on_key_press_event(GdkEventKey *event);
};