clean Myapp template data

This commit is contained in:
sailoog 2021-10-31 13:53:27 +01:00
parent 59c6359057
commit 69e74feef6
55 changed files with 200 additions and 1883 deletions

View File

@ -1,4 +1,4 @@
include LICENSE
include README.md
recursive-include openplotterMyapp/data *
recursive-include openplotterMyapp/locale *
recursive-include openplotterMaiana/data *
recursive-include openplotterMaiana/locale *

View File

@ -1,6 +1,6 @@
## openplotter-myapp
## openplotter-maiana
This is a template to help create apps for OpenPlotter.
OpenPlotter integration of the MAIANA open source AIS transponder'
### Installing
@ -8,20 +8,22 @@ Install [openplotter-settings](https://github.com/openplotter/openplotter-settin
#### For production
Download the latest [openplotter-myapp deb package](https://cloudsmith.io/~openplotter/repos/openplotter-external/packages/) and install it:
`sudo dpkg -i openplotter-myapp_x.x.x-xxx_all.deb`
Install MAIANA AIS transponder from openplotter-settings app.
#### For development
Install openplotter-maiana dependencies:
`sudo apt install `
Clone the repository:
`git clone https://github.com/openplotter/openplotter-myapp`
`git clone https://github.com/openplotter/openplotter-maiana`
Create the package:
Make your changes and create the package:
```
cd openplotter-myapp
cd openplotter-maiana
dpkg-buildpackage -b
```
@ -29,18 +31,14 @@ Install the package:
```
cd ..
sudo dpkg -i openplotter-myapp_x.x.x-xxx_all.deb
sudo dpkg -i openplotter-maiana_x.x.x-xxx_all.deb
```
Run post installation script:
`sudo myappPostInstall`
Run:
`openplotter-myapp`
`openplotter-maiana`
Make your changes and repeat packaging and installation steps to test. Pull request your changes to github and we will check and add them to the next version of the [Debian package](https://cloudsmith.io/~openplotter/repos/openplotter-external/packages/).
Make your changes and repeat package and installation to test. Pull request your changes to github and we will check and add them to the next version of the [Debian package](https://launchpad.net/~openplotter/+archive/ubuntu/openplotter).
### Documentation

29
debian/changelog vendored
View File

@ -1,31 +1,6 @@
openplotter-myapp (2.1.0-beta) buster; urgency=medium
openplotter-maiana (1.0.0-beta) buster; urgency=medium
* Add feature: show pending actions in openplotter-settings app
* Update translations
* First commit
-- Sailoog <info@sailoog.com> Sat, 08 Aug 2020 13:05:58 +0200
openplotter-myapp (2.0.4-beta) buster; urgency=medium
* Fix error
* Update translations
-- Sailoog <info@sailoog.com> Tue, 10 Mar 2020 20:16:53 +0100
openplotter-myapp (2.0.3-beta) buster; urgency=medium
* Fix error
-- Sailoog <info@sailoog.com> Thu, 05 Mar 2020 16:23:24 +0100
openplotter-myapp (2.0.2-beta) buster; urgency=medium
* Make external apps independent
-- Sailoog <info@sailoog.com> Thu, 05 Mar 2020 12:50:12 +0100
openplotter-myapp (2.0.1-beta) buster; urgency=medium
* Initial release
-- Sailoog <info@sailoog.com> Sun, 11 Aug 2019 19:20:18 +0200

10
debian/control vendored
View File

@ -1,15 +1,15 @@
Source: openplotter-myapp
Source: openplotter-maiana
Section: misc
Priority: optional
Maintainer: Sailoog <info@sailoog.com>
Build-Depends: debhelper (>=9),dh-python,python3-all,python3-setuptools
Standards-Version: 3.9.6
Homepage: https://github.com/openplotter/openplotter-myapp
Homepage: https://github.com/openplotter/openplotter-maiana
X-Python3-Version: >= 3.2
Package: openplotter-myapp
Package: openplotter-maiana
Architecture: all
Multi-Arch: foreign
Depends: ${misc:Depends}, ${python3:Depends}, openplotter-settings
Description: This is a template to help create apps for OpenPlotter
This is a template to help create apps for OpenPlotter
Description: OpenPlotter integration of the MAIANA open source AIS transponder
OpenPlotter integration of the MAIANA open source AIS transponder

8
debian/copyright vendored
View File

@ -1,9 +1,9 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: openplotter-myapp
Source: https://github.com/openplotter/openplotter-myapp
Upstream-Name: openplotter-maiana
Source: https://github.com/openplotter/openplotter-maiana
Files: *
Copyright: 2019 Sailoog <info@sailoog.com>
Copyright: 2021 Sailoog <info@sailoog.com>
License: GPL-2+
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -22,7 +22,7 @@ License: GPL-2+
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
Files: debian/*
Copyright: 2019 Sailoog <info@sailoog.com>
Copyright: 2021 Sailoog <info@sailoog.com>
License: GPL-2+
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

2
debian/rules vendored
View File

@ -3,7 +3,7 @@
# output every command that modifies files on the build system.
export DH_VERBOSE = 1
export PYBUILD_NAME=openplotter-myapp
export PYBUILD_NAME=openplotter-maiana
%:
dh $@ --with python3 --buildsystem=pybuild

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 845 B

After

Width:  |  Height:  |  Size: 845 B

View File

@ -1,7 +1,7 @@
[Desktop Entry]
Name=My App
Exec=openplotter-myapp
Icon=openplotter-myapp
Exec=openplotter-maiana
Icon=openplotter-maiana
StartupNotify=true
Terminal=false
Type=Application

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -0,0 +1,60 @@
msgid ""
msgstr ""
"Project-Id-Version: openplotter-maiana\n"
"POT-Creation-Date: 2021-10-31 13:51+0100\n"
"PO-Revision-Date: 2021-10-31 13:51+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: en\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 2.3\n"
"X-Poedit-Basepath: ../../..\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-SearchPath-0: .\n"
#: data/openplotter-maiana.desktop:3
msgid "My App"
msgstr ""
#: data/openplotter-maiana.desktop:5
msgid "openplotter-maiana"
msgstr ""
#: maianaPostInstall.py:32
msgid "Setting version..."
msgstr ""
#: maianaPostInstall.py:35 maianaPreUninstall.py:33
msgid "DONE"
msgstr ""
#: maianaPostInstall.py:36 maianaPreUninstall.py:34
msgid "FAILED: "
msgstr ""
#: maianaPreUninstall.py:30
msgid "Removing version..."
msgstr ""
#: openplotterMaiana.py:43
msgid "Help"
msgstr ""
#: openplotterMaiana.py:46
msgid "Settings"
msgstr ""
#: openplotterMaiana.py:73
msgid "Click on \"Help\" to learn how to get started"
msgstr ""
#: openplotterMaiana.py:110
msgid "This app does nothing."
msgstr ""
#: openplotterMaiana.py:111
msgid "This is a template to start writing your own OpenPlotter app."
msgstr ""

View File

@ -0,0 +1,39 @@
#!/usr/bin/env python3
# This file is part of Openplotter.
# Copyright (C) 2021 by Sailoog <https://github.com/openplotter/openplotter-maiana>
#
# Openplotter 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
# any later version.
# Openplotter 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 Openplotter. If not, see <http://www.gnu.org/licenses/>.
import os
from openplotterSettings import conf
from openplotterSettings import language
from .version import version
def main():
conf2 = conf.Conf()
currentdir = os.path.dirname(os.path.abspath(__file__))
currentLanguage = conf2.get('GENERAL', 'lang')
package = 'openplotter-maiana'
language.Language(currentdir, package, currentLanguage)
print(_('Setting version...'))
try:
conf2.set('APPS', 'maiana', version)
print(_('DONE'))
except Exception as e: print(_('FAILED: ')+str(e))
if __name__ == '__main__':
main()

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
# This file is part of Openplotter.
# Copyright (C) 2020 by Sailoog <https://github.com/openplotter/openplotter-myapp>
# Copyright (C) 2021 by Sailoog <https://github.com/openplotter/openplotter-maiana>
#
# Openplotter is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -23,28 +23,13 @@ def main():
conf2 = conf.Conf()
currentdir = os.path.dirname(os.path.abspath(__file__))
currentLanguage = conf2.get('GENERAL', 'lang')
package = 'openplotter-myapp' ### replace openplotter-myapp by the name of your package
package = 'openplotter-maiana'
language.Language(currentdir, package, currentLanguage)
print(_('Removing app from OpenPlotter...'))
try:
externalApps0 = eval(conf2.get('APPS', 'external_apps'))
externalApps1 = []
for i in externalApps0:
if i['package'] != package: externalApps1.append(i)
conf2.set('APPS', 'external_apps', str(externalApps1))
os.system('rm -f /etc/apt/sources.list.d/myapp.list') ### replace myapp.list by the name of your sources file (see myappPostInstall.py script).
os.system('apt update')
print(_('DONE'))
except Exception as e: print(_('FAILED: ')+str(e))
###
### Do here whatever you need to remove files and programs before app uninstallation. This file will be executed as sudo.
###
print(_('Removing version...'))
try:
conf2.set('APPS', 'myapp', '') ### replace myapp by the name of your app, use the same name in openplotterMyapp.py and myappPostInstall.py scripts.
conf2.set('APPS', 'maiana', '')
print(_('DONE'))
except Exception as e: print(_('FAILED: ')+str(e))

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
# This file is part of Openplotter.
# Copyright (C) 2020 by Sailoog <https://github.com/openplotter/openplotter-myapp>
# Copyright (C) 2021 by Sailoog <https://github.com/openplotter/openplotter-maiana>
#
# Openplotter is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -28,11 +28,11 @@ class MyFrame(wx.Frame):
self.platform = platform.Platform()
self.currentdir = os.path.dirname(os.path.abspath(__file__))
self.currentLanguage = self.conf.get('GENERAL', 'lang')
self.language = language.Language(self.currentdir,'openplotter-myapp',self.currentLanguage) ### replace openplotter-myapp by your package name
self.language = language.Language(self.currentdir,'openplotter-maiana',self.currentLanguage)
wx.Frame.__init__(self, None, title='My App '+version, size=(800,444))
self.SetFont(wx.Font(10, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL))
icon = wx.Icon(self.currentdir+"/data/openplotter-myapp.png", wx.BITMAP_TYPE_PNG)
icon = wx.Icon(self.currentdir+"/data/openplotter-maiana.png", wx.BITMAP_TYPE_PNG)
self.SetIcon(icon)
self.CreateStatusBar()
font_statusBar = self.GetStatusBar().GetFont()
@ -99,7 +99,7 @@ class MyFrame(wx.Frame):
### replace url by your manuals
def OnToolHelp(self, event):
url = "/usr/share/openplotter-doc/external/myapp_app.html"
url = "/usr/share/openplotter-doc/external/maiana_app.html"
webbrowser.open(url, new=2)
def OnToolSettings(self, event=0):
@ -132,8 +132,8 @@ class MyFrame(wx.Frame):
def main():
try:
platform2 = platform.Platform()
if not platform2.postInstall(version,'myapp'): ### replace myapp by the name of your app, use the same name in myappPostInstall and myappPreUninstall scripts.
subprocess.Popen(['openplotterPostInstall', platform2.admin+' myappPostInstall']) ### replace myappPostInstall by your post install entry point (see setup.py file).
if not platform2.postInstall(version,'maiana'):
subprocess.Popen(['openplotterPostInstall', platform2.admin+' maianaPostInstall'])
return
except: pass

View File

@ -0,0 +1,50 @@
#!/usr/bin/env python3
# This file is part of Openplotter.
# Copyright (C) 2021 by Sailoog <https://github.com/openplotter/openplotter-maiana>
#
# Openplotter 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
# any later version.
# Openplotter 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 Openplotter. If not, see <http://www.gnu.org/licenses/>.
import time, os, subprocess, sys
from openplotterSettings import language
class Start():
def __init__(self, conf, currentLanguage):
self.conf = conf
currentdir = os.path.dirname(os.path.abspath(__file__))
language.Language(currentdir,'openplotter-maiana',currentLanguage)
self.initialMessage = ''
def start(self):
green = ''
black = ''
red = ''
return {'green': green,'black': black,'red': red}
class Check():
def __init__(self, conf, currentLanguage):
self.conf = conf
currentdir = os.path.dirname(os.path.abspath(__file__))
language.Language(currentdir,'openplotter-maiana',currentLanguage)
self.initialMessage = ''
def check(self):
green = ''
black = ''
red = ''
return {'green': green,'black': black,'red': red}

View File

@ -0,0 +1,3 @@
version = '1.0.0'
codeName = 'Open Arms'
state = 'beta'

View File

@ -1,19 +0,0 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2
mQENBF5eoaMBCAClsL/6jvqhX5axD4o7BR9Gn4KCV+wr0A4pcfeChPmoFvHvGqAU
+qKKfU3/9KhTXESduykjOCzimEOMu1/080uOmKCyjsjlfe9U6X0bjEsTOc8xiSax
hF2LbHl/D7GuUtT0XBV1+eo68TVyelCpJJeh3RlESQ/IT8bAxg0DOjonTVFG7SD9
MkSr785SZpl5fRuJudcwxynylZV6ueMdpxVQdRegUOaei9Xqush7iOMxGHCGaZWf
IgXqCpfZ/7MsAOFo/OhWMeB4UHAsVRPBuoLOAG3HE9ZnBwW+JjVKbdjcyxcZMHFA
s65KnRDa1Jx4wZfzXcZDNKZZKVzR+0ZK6zajABEBAAG0TUNsb3Vkc21pdGggUGFj
a2FnZSAob3BlbnBsb3R0ZXIvb3BlbnBsb3R0ZXItZXh0ZXJuYWwpIDxzdXBwb3J0
QGNsb3Vkc21pdGguaW8+iQE3BBMBCAAhBQJeXqGjAhsvBQsJCAcDBRUKCQgLBRYC
AwEAAh4BAheAAAoJELARwIYBZJJSWM4IAI1G61+qwb9IqR+HBnZIfgtZmEMmekCl
o4p+tvnDH3E1SoJAJ/90GDVisAPGVRmjDj06h3fs8zFqH24fgPpjhwJ46KRh+QRm
ddJhRUqquY1pmA+hye7ISjWAVlMzYHWUs841ZGMH06AmNa2/f5EFpopPnQoy0oCs
Qp3+XUpTHbZVl6MwH++Mc1qgLLCwn5eWxGryEdttlHcrQOlszLUtAd6sFDrDD6y6
bhIl9NnGSkirFR7M7xGATQ8NhZuK5751DQz/ZZAw6G1Co+CrEb3BVq59H8WXgjXT
d3eyxKKugWqqJCTsA35qzLuJaDOjmPWUiOnYwsYIJXB+H9+GPUC2Z6A=
=n3Ar
-----END PGP PUBLIC KEY BLOCK-----

View File

@ -1 +0,0 @@
deb https://dl.cloudsmith.io/public/openplotter/openplotter-external/deb/debian buster main

View File

@ -1,107 +0,0 @@
msgid ""
msgstr ""
"Project-Id-Version: openplotter\n"
"POT-Creation-Date: 2020-03-10 20:05+0100\n"
"PO-Revision-Date: 2020-08-08 13:04+0200\n"
"Last-Translator: \n"
"Language-Team: Catalan\n"
"Language: ca\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.7.1\n"
"X-Poedit-Basepath: ../../..\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Crowdin-Project: openplotter\n"
"X-Crowdin-Project-ID: 289888\n"
"X-Crowdin-Language: ca\n"
"X-Crowdin-File: openplotter-myapp.po\n"
"X-Crowdin-File-ID: 26\n"
"X-Poedit-SearchPath-0: .\n"
#: myappPostInstall.py:48
msgid "Adding app to OpenPlotter..."
msgstr ""
#: myappPostInstall.py:58 myappPostInstall.py:71 myappPostInstall.py:81
#: myappPreUninstall.py:38 myappPreUninstall.py:48
msgid "DONE"
msgstr ""
#: myappPostInstall.py:59 myappPostInstall.py:72 myappPostInstall.py:82
#: myappPreUninstall.py:39 myappPreUninstall.py:49
msgid "FAILED: "
msgstr ""
#: myappPostInstall.py:61
msgid "Checking sources..."
msgstr ""
#: myappPostInstall.py:78
msgid "Setting version..."
msgstr ""
#: myappPreUninstall.py:29
msgid "Removing app from OpenPlotter..."
msgstr ""
#: myappPreUninstall.py:45
msgid "Removing version..."
msgstr ""
#: openplotterMyapp.py:43
msgid "Help"
msgstr ""
#: openplotterMyapp.py:46
msgid "Settings"
msgstr ""
#: openplotterMyapp.py:73
msgid "Click on \"Help\" to learn how to get started"
msgstr ""
#: openplotterMyapp.py:110
msgid "This app does nothing."
msgstr ""
#: openplotterMyapp.py:111
msgid "This is a template to start writing your own OpenPlotter app."
msgstr ""
#: startup.py:27
msgid "Opening \"My app\"..."
msgstr ""
#: startup.py:35
msgid "This message should be green"
msgstr ""
#: startup.py:36
msgid "This message should be black"
msgstr ""
#: startup.py:37
msgid "\"My app\" should open. Uninstall \"My app\" to remove this."
msgstr ""
#: startup.py:49
msgid "Checking \"My app\"..."
msgstr ""
#: startup.py:57
msgid "\"My app\" is installed"
msgstr ""
#: startup.py:59
msgid "\"My app\" is running"
msgstr ""
#: startup.py:60
msgid "\"My app\" is not running"
msgstr ""
#: startup.py:61
msgid "Warning example. Uninstall \"My app\" to remove this."
msgstr ""

View File

@ -1,107 +0,0 @@
msgid ""
msgstr ""
"Project-Id-Version: openplotter\n"
"POT-Creation-Date: 2020-03-10 20:05+0100\n"
"PO-Revision-Date: 2020-08-08 13:04+0200\n"
"Last-Translator: \n"
"Language-Team: Czech\n"
"Language: cs\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.7.1\n"
"X-Poedit-Basepath: ../../..\n"
"Plural-Forms: nplurals=4; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 3;\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Crowdin-Project: openplotter\n"
"X-Crowdin-Project-ID: 289888\n"
"X-Crowdin-Language: cs\n"
"X-Crowdin-File: openplotter-myapp.po\n"
"X-Crowdin-File-ID: 26\n"
"X-Poedit-SearchPath-0: .\n"
#: myappPostInstall.py:48
msgid "Adding app to OpenPlotter..."
msgstr "Přidávání aplikace do OpenPlotter..."
#: myappPostInstall.py:58 myappPostInstall.py:71 myappPostInstall.py:81
#: myappPreUninstall.py:38 myappPreUninstall.py:48
msgid "DONE"
msgstr "Hotovo"
#: myappPostInstall.py:59 myappPostInstall.py:72 myappPostInstall.py:82
#: myappPreUninstall.py:39 myappPreUninstall.py:49
msgid "FAILED: "
msgstr "Chyba: "
#: myappPostInstall.py:61
msgid "Checking sources..."
msgstr "Kontrola zdrojů..."
#: myappPostInstall.py:78
msgid "Setting version..."
msgstr "Nastavuji verzi..."
#: myappPreUninstall.py:29
msgid "Removing app from OpenPlotter..."
msgstr "Odstraňování aplikace z OpenPlotter..."
#: myappPreUninstall.py:45
msgid "Removing version..."
msgstr "Odstraňuji verzi..."
#: openplotterMyapp.py:43
msgid "Help"
msgstr "Nápověda"
#: openplotterMyapp.py:46
msgid "Settings"
msgstr "Nastavení"
#: openplotterMyapp.py:73
msgid "Click on \"Help\" to learn how to get started"
msgstr "Klikněte na \"Nápověda\" a zjistěte, jak začít"
#: openplotterMyapp.py:110
msgid "This app does nothing."
msgstr "Tato aplikace nic nedělá."
#: openplotterMyapp.py:111
msgid "This is a template to start writing your own OpenPlotter app."
msgstr "Toto je šablona pomocí, které můžete začít psát vlastní aplikaci openplotter."
#: startup.py:27
msgid "Opening \"My app\"..."
msgstr "Otevírání \"Moje aplikace\"..."
#: startup.py:35
msgid "This message should be green"
msgstr "Tato zpráva by měla být zelená"
#: startup.py:36
msgid "This message should be black"
msgstr "Tato zpráva by měla být černá"
#: startup.py:37
msgid "\"My app\" should open. Uninstall \"My app\" to remove this."
msgstr "\"Moje aplikace\" by se měla otevřít. Pro odstranění odinstalujte \"Moje aplikace\"."
#: startup.py:49
msgid "Checking \"My app\"..."
msgstr "Kontroluji \"Moje aplikace\"..."
#: startup.py:57
msgid "\"My app\" is installed"
msgstr "\"Moje aplikace\" je nainstalována"
#: startup.py:59
msgid "\"My app\" is running"
msgstr "\"Moje aplikace\" je spuštěna"
#: startup.py:60
msgid "\"My app\" is not running"
msgstr "\"Moje aplikace\" není spuštěna"
#: startup.py:61
msgid "Warning example. Uninstall \"My app\" to remove this."
msgstr "Příklad varování. Pro odstranění odinstalujte \"Moje aplikace\"."

View File

@ -1,107 +0,0 @@
msgid ""
msgstr ""
"Project-Id-Version: openplotter\n"
"POT-Creation-Date: 2020-03-10 20:05+0100\n"
"PO-Revision-Date: 2020-08-08 13:04+0200\n"
"Last-Translator: \n"
"Language-Team: Danish\n"
"Language: da\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.7.1\n"
"X-Poedit-Basepath: ../../..\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Crowdin-Project: openplotter\n"
"X-Crowdin-Project-ID: 289888\n"
"X-Crowdin-Language: da\n"
"X-Crowdin-File: openplotter-myapp.po\n"
"X-Crowdin-File-ID: 26\n"
"X-Poedit-SearchPath-0: .\n"
#: myappPostInstall.py:48
msgid "Adding app to OpenPlotter..."
msgstr "Tilføjer app til OpenPlotter..."
#: myappPostInstall.py:58 myappPostInstall.py:71 myappPostInstall.py:81
#: myappPreUninstall.py:38 myappPreUninstall.py:48
msgid "DONE"
msgstr "UDFØRT"
#: myappPostInstall.py:59 myappPostInstall.py:72 myappPostInstall.py:82
#: myappPreUninstall.py:39 myappPreUninstall.py:49
msgid "FAILED: "
msgstr "MISLYKKET: "
#: myappPostInstall.py:61
msgid "Checking sources..."
msgstr "Kontrollerer kilder..."
#: myappPostInstall.py:78
msgid "Setting version..."
msgstr "Indstiller version..."
#: myappPreUninstall.py:29
msgid "Removing app from OpenPlotter..."
msgstr "Fjerner app fra OpenPlotter..."
#: myappPreUninstall.py:45
msgid "Removing version..."
msgstr "Fjerner version..."
#: openplotterMyapp.py:43
msgid "Help"
msgstr "Hjælp"
#: openplotterMyapp.py:46
msgid "Settings"
msgstr "Indstillinger"
#: openplotterMyapp.py:73
msgid "Click on \"Help\" to learn how to get started"
msgstr "Klik på \"Hjælp\" for at lære, hvordan du kommer i gang"
#: openplotterMyapp.py:110
msgid "This app does nothing."
msgstr "Denne app gør intet."
#: openplotterMyapp.py:111
msgid "This is a template to start writing your own OpenPlotter app."
msgstr "Dette er en skabelon til at skrive din egen OpenPlotter-app."
#: startup.py:27
msgid "Opening \"My app\"..."
msgstr "Åbner \"My app\"..."
#: startup.py:35
msgid "This message should be green"
msgstr "Denne meddelelse bør være grøn"
#: startup.py:36
msgid "This message should be black"
msgstr "Denne meddelelse bør være sort"
#: startup.py:37
msgid "\"My app\" should open. Uninstall \"My app\" to remove this."
msgstr "\"My app\" burde åbne. Afinstaller \"My app\" for at fjerne dette."
#: startup.py:49
msgid "Checking \"My app\"..."
msgstr "Kontrollere \"My app\"..."
#: startup.py:57
msgid "\"My app\" is installed"
msgstr "\"My app\" er installeret"
#: startup.py:59
msgid "\"My app\" is running"
msgstr "\"My app\" kører"
#: startup.py:60
msgid "\"My app\" is not running"
msgstr "\"My app\" kører ikke"
#: startup.py:61
msgid "Warning example. Uninstall \"My app\" to remove this."
msgstr "Advarselseksempel. Afinstaller \"My app\" for at fjerne dette."

View File

@ -1,107 +0,0 @@
msgid ""
msgstr ""
"Project-Id-Version: openplotter\n"
"POT-Creation-Date: 2020-03-10 20:05+0100\n"
"PO-Revision-Date: 2020-08-08 13:04+0200\n"
"Last-Translator: \n"
"Language-Team: German\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.7.1\n"
"X-Poedit-Basepath: ../../..\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Crowdin-Project: openplotter\n"
"X-Crowdin-Project-ID: 289888\n"
"X-Crowdin-Language: de\n"
"X-Crowdin-File: openplotter-myapp.po\n"
"X-Crowdin-File-ID: 26\n"
"X-Poedit-SearchPath-0: .\n"
#: myappPostInstall.py:48
msgid "Adding app to OpenPlotter..."
msgstr "Füge App zu OpenPlotter..."
#: myappPostInstall.py:58 myappPostInstall.py:71 myappPostInstall.py:81
#: myappPreUninstall.py:38 myappPreUninstall.py:48
msgid "DONE"
msgstr "Fertig"
#: myappPostInstall.py:59 myappPostInstall.py:72 myappPostInstall.py:82
#: myappPreUninstall.py:39 myappPreUninstall.py:49
msgid "FAILED: "
msgstr "FEHLGESCHLAGEN: "
#: myappPostInstall.py:61
msgid "Checking sources..."
msgstr "Prüfe Quellen..."
#: myappPostInstall.py:78
msgid "Setting version..."
msgstr "Setze Version..."
#: myappPreUninstall.py:29
msgid "Removing app from OpenPlotter..."
msgstr "Entferne App von OpenPlotter..."
#: myappPreUninstall.py:45
msgid "Removing version..."
msgstr "Entferne Version..."
#: openplotterMyapp.py:43
msgid "Help"
msgstr "Hilfe"
#: openplotterMyapp.py:46
msgid "Settings"
msgstr "Einstellungen"
#: openplotterMyapp.py:73
msgid "Click on \"Help\" to learn how to get started"
msgstr "Klicken Sie auf \"Hilfe\", um zu erfahren, wie Sie loslegen können"
#: openplotterMyapp.py:110
msgid "This app does nothing."
msgstr "Diese App tut nichts."
#: openplotterMyapp.py:111
msgid "This is a template to start writing your own OpenPlotter app."
msgstr "Dies ist eine Vorlage, um Ihre eigene OpenPlotter-App zu schreiben."
#: startup.py:27
msgid "Opening \"My app\"..."
msgstr "Öffne \"Meine App\"..."
#: startup.py:35
msgid "This message should be green"
msgstr "Diese Nachricht sollte grün sein"
#: startup.py:36
msgid "This message should be black"
msgstr "Diese Nachricht sollte schwarz sein"
#: startup.py:37
msgid "\"My app\" should open. Uninstall \"My app\" to remove this."
msgstr "\"Meine App\" sollte geöffnet werden. Deinstallieren Sie \"Meine App\", um dies zu entfernen."
#: startup.py:49
msgid "Checking \"My app\"..."
msgstr "Überprüfe \"Meine App\"..."
#: startup.py:57
msgid "\"My app\" is installed"
msgstr "\"Meine App\" ist installiert"
#: startup.py:59
msgid "\"My app\" is running"
msgstr "\"Meine App\" wird ausgeführt"
#: startup.py:60
msgid "\"My app\" is not running"
msgstr "\"Meine App\" wird nicht ausgeführt"
#: startup.py:61
msgid "Warning example. Uninstall \"My app\" to remove this."
msgstr "Warnbeispiel. Deinstallieren Sie \"Meine App\", um dies zu entfernen."

View File

@ -1,105 +0,0 @@
msgid ""
msgstr ""
"Project-Id-Version: openplotter\n"
"POT-Creation-Date: 2020-03-10 20:05+0100\n"
"PO-Revision-Date: 2020-08-08 13:04+0200\n"
"Last-Translator: \n"
"Language-Team: Greek\n"
"Language: el\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.7.1\n"
"X-Poedit-Basepath: ../../..\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Crowdin-Project: openplotter\n"
"X-Crowdin-Language: el\n"
"X-Crowdin-File: openplotter-myapp.po\n"
"X-Poedit-SearchPath-0: .\n"
#: myappPostInstall.py:48
msgid "Adding app to OpenPlotter..."
msgstr ""
#: myappPostInstall.py:58 myappPostInstall.py:71 myappPostInstall.py:81
#: myappPreUninstall.py:38 myappPreUninstall.py:48
msgid "DONE"
msgstr ""
#: myappPostInstall.py:59 myappPostInstall.py:72 myappPostInstall.py:82
#: myappPreUninstall.py:39 myappPreUninstall.py:49
msgid "FAILED: "
msgstr ""
#: myappPostInstall.py:61
msgid "Checking sources..."
msgstr ""
#: myappPostInstall.py:78
msgid "Setting version..."
msgstr ""
#: myappPreUninstall.py:29
msgid "Removing app from OpenPlotter..."
msgstr ""
#: myappPreUninstall.py:45
msgid "Removing version..."
msgstr ""
#: openplotterMyapp.py:43
msgid "Help"
msgstr ""
#: openplotterMyapp.py:46
msgid "Settings"
msgstr ""
#: openplotterMyapp.py:73
msgid "Click on \"Help\" to learn how to get started"
msgstr ""
#: openplotterMyapp.py:110
msgid "This app does nothing."
msgstr ""
#: openplotterMyapp.py:111
msgid "This is a template to start writing your own OpenPlotter app."
msgstr ""
#: startup.py:27
msgid "Opening \"My app\"..."
msgstr ""
#: startup.py:35
msgid "This message should be green"
msgstr ""
#: startup.py:36
msgid "This message should be black"
msgstr ""
#: startup.py:37
msgid "\"My app\" should open. Uninstall \"My app\" to remove this."
msgstr ""
#: startup.py:49
msgid "Checking \"My app\"..."
msgstr ""
#: startup.py:57
msgid "\"My app\" is installed"
msgstr ""
#: startup.py:59
msgid "\"My app\" is running"
msgstr ""
#: startup.py:60
msgid "\"My app\" is not running"
msgstr ""
#: startup.py:61
msgid "Warning example. Uninstall \"My app\" to remove this."
msgstr ""

View File

@ -1,102 +0,0 @@
msgid ""
msgstr ""
"Project-Id-Version: openplotter-myapp\n"
"POT-Creation-Date: 2020-08-08 13:01+0200\n"
"PO-Revision-Date: 2020-08-08 13:03+0200\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: en\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.7.1\n"
"X-Poedit-Basepath: ../../..\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-SearchPath-0: .\n"
#: myappPostInstall.py:49
msgid "Adding app to OpenPlotter..."
msgstr ""
#: myappPostInstall.py:59 myappPostInstall.py:72 myappPostInstall.py:82
#: myappPreUninstall.py:38 myappPreUninstall.py:48
msgid "DONE"
msgstr ""
#: myappPostInstall.py:60 myappPostInstall.py:73 myappPostInstall.py:83
#: myappPreUninstall.py:39 myappPreUninstall.py:49
msgid "FAILED: "
msgstr ""
#: myappPostInstall.py:62
msgid "Checking sources..."
msgstr ""
#: myappPostInstall.py:79
msgid "Setting version..."
msgstr ""
#: myappPreUninstall.py:29
msgid "Removing app from OpenPlotter..."
msgstr ""
#: myappPreUninstall.py:45
msgid "Removing version..."
msgstr ""
#: openplotterMyapp.py:43
msgid "Help"
msgstr ""
#: openplotterMyapp.py:46
msgid "Settings"
msgstr ""
#: openplotterMyapp.py:73
msgid "Click on \"Help\" to learn how to get started"
msgstr ""
#: openplotterMyapp.py:110
msgid "This app does nothing."
msgstr ""
#: openplotterMyapp.py:111
msgid "This is a template to start writing your own OpenPlotter app."
msgstr ""
#: startup.py:27
msgid "Opening \"My app\"..."
msgstr ""
#: startup.py:35
msgid "This message should be green"
msgstr ""
#: startup.py:36
msgid "This message should be black"
msgstr ""
#: startup.py:37
msgid "\"My app\" should open. Uninstall \"My app\" to remove this."
msgstr ""
#: startup.py:49
msgid "Checking \"My app\"..."
msgstr ""
#: startup.py:57
msgid "\"My app\" is installed"
msgstr ""
#: startup.py:59
msgid "\"My app\" is running"
msgstr ""
#: startup.py:60
msgid "\"My app\" is not running"
msgstr ""
#: startup.py:61
msgid "Warning example. Uninstall \"My app\" to remove this."
msgstr ""

View File

@ -1,107 +0,0 @@
msgid ""
msgstr ""
"Project-Id-Version: openplotter\n"
"POT-Creation-Date: 2020-03-10 20:05+0100\n"
"PO-Revision-Date: 2020-08-08 13:04+0200\n"
"Last-Translator: \n"
"Language-Team: Spanish\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.7.1\n"
"X-Poedit-Basepath: ../../..\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Crowdin-Project: openplotter\n"
"X-Crowdin-Project-ID: 289888\n"
"X-Crowdin-Language: es-ES\n"
"X-Crowdin-File: openplotter-myapp.po\n"
"X-Crowdin-File-ID: 26\n"
"X-Poedit-SearchPath-0: .\n"
#: myappPostInstall.py:48
msgid "Adding app to OpenPlotter..."
msgstr "Añadiendo aplicación a OpenPlotter..."
#: myappPostInstall.py:58 myappPostInstall.py:71 myappPostInstall.py:81
#: myappPreUninstall.py:38 myappPreUninstall.py:48
msgid "DONE"
msgstr "HECHO"
#: myappPostInstall.py:59 myappPostInstall.py:72 myappPostInstall.py:82
#: myappPreUninstall.py:39 myappPreUninstall.py:49
msgid "FAILED: "
msgstr "ERROR: "
#: myappPostInstall.py:61
msgid "Checking sources..."
msgstr "Comprobando fuentes..."
#: myappPostInstall.py:78
msgid "Setting version..."
msgstr "Ajustando versión..."
#: myappPreUninstall.py:29
msgid "Removing app from OpenPlotter..."
msgstr "Eliminando aplicación de OpenPlotter..."
#: myappPreUninstall.py:45
msgid "Removing version..."
msgstr "Eliminando versión..."
#: openplotterMyapp.py:43
msgid "Help"
msgstr "Ayuda"
#: openplotterMyapp.py:46
msgid "Settings"
msgstr "Ajustes"
#: openplotterMyapp.py:73
msgid "Click on \"Help\" to learn how to get started"
msgstr "Haz clic en \"Ayuda\" para aprender cómo empezar"
#: openplotterMyapp.py:110
msgid "This app does nothing."
msgstr "Esta aplicación no hace nada."
#: openplotterMyapp.py:111
msgid "This is a template to start writing your own OpenPlotter app."
msgstr "Esta es una plantilla para comenzar a escribir su propia aplicación OpenPlotter."
#: startup.py:27
msgid "Opening \"My app\"..."
msgstr "Abriendo \"Mi aplicación\"..."
#: startup.py:35
msgid "This message should be green"
msgstr "Este mensaje debe ser verde"
#: startup.py:36
msgid "This message should be black"
msgstr "Este mensaje debe ser negro"
#: startup.py:37
msgid "\"My app\" should open. Uninstall \"My app\" to remove this."
msgstr "\"Mi aplicación\" debe abrirse. Desinstale \"Mi aplicación\" para eliminar esto."
#: startup.py:49
msgid "Checking \"My app\"..."
msgstr "Comprobando \"Mi aplicación\"..."
#: startup.py:57
msgid "\"My app\" is installed"
msgstr "\"Mi aplicación\" está instalado"
#: startup.py:59
msgid "\"My app\" is running"
msgstr "\"Mi aplicación\" está ejecutándose"
#: startup.py:60
msgid "\"My app\" is not running"
msgstr "\"Mi aplicación\" no se está ejecutando"
#: startup.py:61
msgid "Warning example. Uninstall \"My app\" to remove this."
msgstr "Ejemplo de advertencia. Desinstale \"Mi aplicación\" para eliminar esto."

View File

@ -1,105 +0,0 @@
msgid ""
msgstr ""
"Project-Id-Version: openplotter\n"
"POT-Creation-Date: 2020-03-10 20:05+0100\n"
"PO-Revision-Date: 2020-08-08 13:04+0200\n"
"Last-Translator: \n"
"Language-Team: Basque\n"
"Language: eu\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.7.1\n"
"X-Poedit-Basepath: ../../..\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Crowdin-Project: openplotter\n"
"X-Crowdin-Language: eu\n"
"X-Crowdin-File: openplotter-myapp.po\n"
"X-Poedit-SearchPath-0: .\n"
#: myappPostInstall.py:48
msgid "Adding app to OpenPlotter..."
msgstr ""
#: myappPostInstall.py:58 myappPostInstall.py:71 myappPostInstall.py:81
#: myappPreUninstall.py:38 myappPreUninstall.py:48
msgid "DONE"
msgstr ""
#: myappPostInstall.py:59 myappPostInstall.py:72 myappPostInstall.py:82
#: myappPreUninstall.py:39 myappPreUninstall.py:49
msgid "FAILED: "
msgstr ""
#: myappPostInstall.py:61
msgid "Checking sources..."
msgstr ""
#: myappPostInstall.py:78
msgid "Setting version..."
msgstr ""
#: myappPreUninstall.py:29
msgid "Removing app from OpenPlotter..."
msgstr ""
#: myappPreUninstall.py:45
msgid "Removing version..."
msgstr ""
#: openplotterMyapp.py:43
msgid "Help"
msgstr ""
#: openplotterMyapp.py:46
msgid "Settings"
msgstr ""
#: openplotterMyapp.py:73
msgid "Click on \"Help\" to learn how to get started"
msgstr ""
#: openplotterMyapp.py:110
msgid "This app does nothing."
msgstr ""
#: openplotterMyapp.py:111
msgid "This is a template to start writing your own OpenPlotter app."
msgstr ""
#: startup.py:27
msgid "Opening \"My app\"..."
msgstr ""
#: startup.py:35
msgid "This message should be green"
msgstr ""
#: startup.py:36
msgid "This message should be black"
msgstr ""
#: startup.py:37
msgid "\"My app\" should open. Uninstall \"My app\" to remove this."
msgstr ""
#: startup.py:49
msgid "Checking \"My app\"..."
msgstr ""
#: startup.py:57
msgid "\"My app\" is installed"
msgstr ""
#: startup.py:59
msgid "\"My app\" is running"
msgstr ""
#: startup.py:60
msgid "\"My app\" is not running"
msgstr ""
#: startup.py:61
msgid "Warning example. Uninstall \"My app\" to remove this."
msgstr ""

View File

@ -1,107 +0,0 @@
msgid ""
msgstr ""
"Project-Id-Version: openplotter\n"
"POT-Creation-Date: 2020-03-10 20:05+0100\n"
"PO-Revision-Date: 2020-08-08 13:04+0200\n"
"Last-Translator: \n"
"Language-Team: Finnish\n"
"Language: fi\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.7.1\n"
"X-Poedit-Basepath: ../../..\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Crowdin-Project: openplotter\n"
"X-Crowdin-Project-ID: 289888\n"
"X-Crowdin-Language: fi\n"
"X-Crowdin-File: openplotter-myapp.po\n"
"X-Crowdin-File-ID: 26\n"
"X-Poedit-SearchPath-0: .\n"
#: myappPostInstall.py:48
msgid "Adding app to OpenPlotter..."
msgstr "Apin lisäys OpenPlotteriin..."
#: myappPostInstall.py:58 myappPostInstall.py:71 myappPostInstall.py:81
#: myappPreUninstall.py:38 myappPreUninstall.py:48
msgid "DONE"
msgstr "VALMIS"
#: myappPostInstall.py:59 myappPostInstall.py:72 myappPostInstall.py:82
#: myappPreUninstall.py:39 myappPreUninstall.py:49
msgid "FAILED: "
msgstr "EPÄONNISTUI: "
#: myappPostInstall.py:61
msgid "Checking sources..."
msgstr "Tarkistetaan lähteitä..."
#: myappPostInstall.py:78
msgid "Setting version..."
msgstr "Asetetaan versio..."
#: myappPreUninstall.py:29
msgid "Removing app from OpenPlotter..."
msgstr "Apin poisto OpenPlotterista..."
#: myappPreUninstall.py:45
msgid "Removing version..."
msgstr "Poistetaan versio..."
#: openplotterMyapp.py:43
msgid "Help"
msgstr "Ohje"
#: openplotterMyapp.py:46
msgid "Settings"
msgstr "Asetukset"
#: openplotterMyapp.py:73
msgid "Click on \"Help\" to learn how to get started"
msgstr "Klikkaa \"Ohje\" ja opit alkuun pääsyn"
#: openplotterMyapp.py:110
msgid "This app does nothing."
msgstr "Tämä app ei tee mitään."
#: openplotterMyapp.py:111
msgid "This is a template to start writing your own OpenPlotter app."
msgstr "Tämä on pohja, jolla pääset alkuun oman OpenPlotter app kirjoittamisessa."
#: startup.py:27
msgid "Opening \"My app\"..."
msgstr "Avataan \"Minun app\"..."
#: startup.py:35
msgid "This message should be green"
msgstr "Tämän viestin tulisi olla vihreä"
#: startup.py:36
msgid "This message should be black"
msgstr "Tämän viestin tulisi olla musta"
#: startup.py:37
msgid "\"My app\" should open. Uninstall \"My app\" to remove this."
msgstr "\"Minun app\"pitää aueta. Poista \"Minun app\" asennus tämän poistamiseksi."
#: startup.py:49
msgid "Checking \"My app\"..."
msgstr "Tarkistetaan \"Minun app\"..."
#: startup.py:57
msgid "\"My app\" is installed"
msgstr "\"Minun app\" on asennettu"
#: startup.py:59
msgid "\"My app\" is running"
msgstr "\"Minun app\" on käynnissä"
#: startup.py:60
msgid "\"My app\" is not running"
msgstr "\"Minun app\" ei ole käynnissä"
#: startup.py:61
msgid "Warning example. Uninstall \"My app\" to remove this."
msgstr "Varoitus esimerkki. Poista \"Minun app\" asennus tämän poistamiseksi."

View File

@ -1,107 +0,0 @@
msgid ""
msgstr ""
"Project-Id-Version: openplotter\n"
"POT-Creation-Date: 2020-03-10 20:05+0100\n"
"PO-Revision-Date: 2020-08-08 13:04+0200\n"
"Last-Translator: \n"
"Language-Team: French\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.7.1\n"
"X-Poedit-Basepath: ../../..\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Crowdin-Project: openplotter\n"
"X-Crowdin-Project-ID: 289888\n"
"X-Crowdin-Language: fr\n"
"X-Crowdin-File: openplotter-myapp.po\n"
"X-Crowdin-File-ID: 26\n"
"X-Poedit-SearchPath-0: .\n"
#: myappPostInstall.py:48
msgid "Adding app to OpenPlotter..."
msgstr "Ajout de l'appli à OpenPlotter..."
#: myappPostInstall.py:58 myappPostInstall.py:71 myappPostInstall.py:81
#: myappPreUninstall.py:38 myappPreUninstall.py:48
msgid "DONE"
msgstr "TERMINÉ"
#: myappPostInstall.py:59 myappPostInstall.py:72 myappPostInstall.py:82
#: myappPreUninstall.py:39 myappPreUninstall.py:49
msgid "FAILED: "
msgstr "ÉCHEC: "
#: myappPostInstall.py:61
msgid "Checking sources..."
msgstr "Vérification des sources..."
#: myappPostInstall.py:78
msgid "Setting version..."
msgstr "Réglage de la version..."
#: myappPreUninstall.py:29
msgid "Removing app from OpenPlotter..."
msgstr "Suppression de cet appli d'OpenPlotter..."
#: myappPreUninstall.py:45
msgid "Removing version..."
msgstr "Suppression de la version..."
#: openplotterMyapp.py:43
msgid "Help"
msgstr "Aide"
#: openplotterMyapp.py:46
msgid "Settings"
msgstr "Paramètres"
#: openplotterMyapp.py:73
msgid "Click on \"Help\" to learn how to get started"
msgstr "Cliquez sur \"Aide\" pour savoir comment commencer"
#: openplotterMyapp.py:110
msgid "This app does nothing."
msgstr "Cette appli ne fait rien."
#: openplotterMyapp.py:111
msgid "This is a template to start writing your own OpenPlotter app."
msgstr "Ceci est un gabarit pour commencer la réalisation de votre propre appli OpenPlotter."
#: startup.py:27
msgid "Opening \"My app\"..."
msgstr "Ouverture de \"My App\"..."
#: startup.py:35
msgid "This message should be green"
msgstr "Ce message devrait être vert"
#: startup.py:36
msgid "This message should be black"
msgstr "Ce message devrait être noir"
#: startup.py:37
msgid "\"My app\" should open. Uninstall \"My app\" to remove this."
msgstr "\"My App\" devrait s'ouvrir. Désinstallez \"My App\" pour supprimer ceci."
#: startup.py:49
msgid "Checking \"My app\"..."
msgstr "Vérification de \"My App\"..."
#: startup.py:57
msgid "\"My app\" is installed"
msgstr "\"My App\" est installé"
#: startup.py:59
msgid "\"My app\" is running"
msgstr "\"My App\" est en cours d'exécution"
#: startup.py:60
msgid "\"My app\" is not running"
msgstr "\"My App\" n'est pas en cours d'exécution"
#: startup.py:61
msgid "Warning example. Uninstall \"My app\" to remove this."
msgstr "Exemple d'avertissement. Désinstallez \"My App\" pour supprimer ceci."

View File

@ -1,105 +0,0 @@
msgid ""
msgstr ""
"Project-Id-Version: openplotter\n"
"POT-Creation-Date: 2020-03-10 20:05+0100\n"
"PO-Revision-Date: 2020-08-08 13:04+0200\n"
"Last-Translator: \n"
"Language-Team: Galician\n"
"Language: gl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.7.1\n"
"X-Poedit-Basepath: ../../..\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Crowdin-Project: openplotter\n"
"X-Crowdin-Language: gl\n"
"X-Crowdin-File: openplotter-myapp.po\n"
"X-Poedit-SearchPath-0: .\n"
#: myappPostInstall.py:48
msgid "Adding app to OpenPlotter..."
msgstr ""
#: myappPostInstall.py:58 myappPostInstall.py:71 myappPostInstall.py:81
#: myappPreUninstall.py:38 myappPreUninstall.py:48
msgid "DONE"
msgstr ""
#: myappPostInstall.py:59 myappPostInstall.py:72 myappPostInstall.py:82
#: myappPreUninstall.py:39 myappPreUninstall.py:49
msgid "FAILED: "
msgstr ""
#: myappPostInstall.py:61
msgid "Checking sources..."
msgstr ""
#: myappPostInstall.py:78
msgid "Setting version..."
msgstr ""
#: myappPreUninstall.py:29
msgid "Removing app from OpenPlotter..."
msgstr ""
#: myappPreUninstall.py:45
msgid "Removing version..."
msgstr ""
#: openplotterMyapp.py:43
msgid "Help"
msgstr ""
#: openplotterMyapp.py:46
msgid "Settings"
msgstr ""
#: openplotterMyapp.py:73
msgid "Click on \"Help\" to learn how to get started"
msgstr ""
#: openplotterMyapp.py:110
msgid "This app does nothing."
msgstr ""
#: openplotterMyapp.py:111
msgid "This is a template to start writing your own OpenPlotter app."
msgstr ""
#: startup.py:27
msgid "Opening \"My app\"..."
msgstr ""
#: startup.py:35
msgid "This message should be green"
msgstr ""
#: startup.py:36
msgid "This message should be black"
msgstr ""
#: startup.py:37
msgid "\"My app\" should open. Uninstall \"My app\" to remove this."
msgstr ""
#: startup.py:49
msgid "Checking \"My app\"..."
msgstr ""
#: startup.py:57
msgid "\"My app\" is installed"
msgstr ""
#: startup.py:59
msgid "\"My app\" is running"
msgstr ""
#: startup.py:60
msgid "\"My app\" is not running"
msgstr ""
#: startup.py:61
msgid "Warning example. Uninstall \"My app\" to remove this."
msgstr ""

View File

@ -1,107 +0,0 @@
msgid ""
msgstr ""
"Project-Id-Version: openplotter\n"
"POT-Creation-Date: 2020-03-10 20:05+0100\n"
"PO-Revision-Date: 2020-08-08 13:04+0200\n"
"Last-Translator: \n"
"Language-Team: Italian\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.7.1\n"
"X-Poedit-Basepath: ../../..\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Crowdin-Project: openplotter\n"
"X-Crowdin-Project-ID: 289888\n"
"X-Crowdin-Language: it\n"
"X-Crowdin-File: openplotter-myapp.po\n"
"X-Crowdin-File-ID: 26\n"
"X-Poedit-SearchPath-0: .\n"
#: myappPostInstall.py:48
msgid "Adding app to OpenPlotter..."
msgstr "Aggiungendo le app a OpenPlotter..."
#: myappPostInstall.py:58 myappPostInstall.py:71 myappPostInstall.py:81
#: myappPreUninstall.py:38 myappPreUninstall.py:48
msgid "DONE"
msgstr "FATTO"
#: myappPostInstall.py:59 myappPostInstall.py:72 myappPostInstall.py:82
#: myappPreUninstall.py:39 myappPreUninstall.py:49
msgid "FAILED: "
msgstr "FALLITO: "
#: myappPostInstall.py:61
msgid "Checking sources..."
msgstr "Controllo codici sorgente..."
#: myappPostInstall.py:78
msgid "Setting version..."
msgstr "Impostazione versione..."
#: myappPreUninstall.py:29
msgid "Removing app from OpenPlotter..."
msgstr "Rimozione app da OpenPlotter..."
#: myappPreUninstall.py:45
msgid "Removing version..."
msgstr "Rimozione versione..."
#: openplotterMyapp.py:43
msgid "Help"
msgstr "Aiuto"
#: openplotterMyapp.py:46
msgid "Settings"
msgstr "Impostazioni"
#: openplotterMyapp.py:73
msgid "Click on \"Help\" to learn how to get started"
msgstr "Clicca su \"Aiuto\" per imparare come iniziare"
#: openplotterMyapp.py:110
msgid "This app does nothing."
msgstr "Questa app non fa niente."
#: openplotterMyapp.py:111
msgid "This is a template to start writing your own OpenPlotter app."
msgstr "Questo è un modello per iniziare a scrivere la tua app OpenPlotter."
#: startup.py:27
msgid "Opening \"My app\"..."
msgstr "Apertura \"La mia app\"..."
#: startup.py:35
msgid "This message should be green"
msgstr "Questo messaggio dovrebbe essere verde"
#: startup.py:36
msgid "This message should be black"
msgstr "Questo messaggio dovrebbe essere nero"
#: startup.py:37
msgid "\"My app\" should open. Uninstall \"My app\" to remove this."
msgstr "\"La mia app\" dovrebbe aprirsi. Disinstalla \"La mia app\" per rimuovere questo messaggio."
#: startup.py:49
msgid "Checking \"My app\"..."
msgstr "Controllo \"La mia app\"..."
#: startup.py:57
msgid "\"My app\" is installed"
msgstr "\"La mia app\" è installata"
#: startup.py:59
msgid "\"My app\" is running"
msgstr "\"La mia app\" è in esecuzione"
#: startup.py:60
msgid "\"My app\" is not running"
msgstr "\"La mia app\" non è in esecuzione"
#: startup.py:61
msgid "Warning example. Uninstall \"My app\" to remove this."
msgstr "Esempio di avviso. Disinstalla \"La mia app\" per rimuovere questo avviso."

View File

@ -1,107 +0,0 @@
msgid ""
msgstr ""
"Project-Id-Version: openplotter\n"
"POT-Creation-Date: 2020-03-10 20:05+0100\n"
"PO-Revision-Date: 2020-08-08 13:04+0200\n"
"Last-Translator: \n"
"Language-Team: Dutch\n"
"Language: nl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.7.1\n"
"X-Poedit-Basepath: ../../..\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Crowdin-Project: openplotter\n"
"X-Crowdin-Project-ID: 289888\n"
"X-Crowdin-Language: nl\n"
"X-Crowdin-File: openplotter-myapp.po\n"
"X-Crowdin-File-ID: 26\n"
"X-Poedit-SearchPath-0: .\n"
#: myappPostInstall.py:48
msgid "Adding app to OpenPlotter..."
msgstr ""
#: myappPostInstall.py:58 myappPostInstall.py:71 myappPostInstall.py:81
#: myappPreUninstall.py:38 myappPreUninstall.py:48
msgid "DONE"
msgstr ""
#: myappPostInstall.py:59 myappPostInstall.py:72 myappPostInstall.py:82
#: myappPreUninstall.py:39 myappPreUninstall.py:49
msgid "FAILED: "
msgstr ""
#: myappPostInstall.py:61
msgid "Checking sources..."
msgstr ""
#: myappPostInstall.py:78
msgid "Setting version..."
msgstr ""
#: myappPreUninstall.py:29
msgid "Removing app from OpenPlotter..."
msgstr ""
#: myappPreUninstall.py:45
msgid "Removing version..."
msgstr ""
#: openplotterMyapp.py:43
msgid "Help"
msgstr ""
#: openplotterMyapp.py:46
msgid "Settings"
msgstr ""
#: openplotterMyapp.py:73
msgid "Click on \"Help\" to learn how to get started"
msgstr ""
#: openplotterMyapp.py:110
msgid "This app does nothing."
msgstr ""
#: openplotterMyapp.py:111
msgid "This is a template to start writing your own OpenPlotter app."
msgstr ""
#: startup.py:27
msgid "Opening \"My app\"..."
msgstr ""
#: startup.py:35
msgid "This message should be green"
msgstr ""
#: startup.py:36
msgid "This message should be black"
msgstr ""
#: startup.py:37
msgid "\"My app\" should open. Uninstall \"My app\" to remove this."
msgstr ""
#: startup.py:49
msgid "Checking \"My app\"..."
msgstr ""
#: startup.py:57
msgid "\"My app\" is installed"
msgstr ""
#: startup.py:59
msgid "\"My app\" is running"
msgstr ""
#: startup.py:60
msgid "\"My app\" is not running"
msgstr ""
#: startup.py:61
msgid "Warning example. Uninstall \"My app\" to remove this."
msgstr ""

View File

@ -1,107 +0,0 @@
msgid ""
msgstr ""
"Project-Id-Version: openplotter\n"
"POT-Creation-Date: 2020-03-10 20:05+0100\n"
"PO-Revision-Date: 2020-08-08 13:04+0200\n"
"Last-Translator: \n"
"Language-Team: Polish\n"
"Language: pl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.7.1\n"
"X-Poedit-Basepath: ../../..\n"
"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Crowdin-Project: openplotter\n"
"X-Crowdin-Project-ID: 289888\n"
"X-Crowdin-Language: pl\n"
"X-Crowdin-File: openplotter-myapp.po\n"
"X-Crowdin-File-ID: 26\n"
"X-Poedit-SearchPath-0: .\n"
#: myappPostInstall.py:48
msgid "Adding app to OpenPlotter..."
msgstr "Dodawanie aplikacji do OpenPlotter..."
#: myappPostInstall.py:58 myappPostInstall.py:71 myappPostInstall.py:81
#: myappPreUninstall.py:38 myappPreUninstall.py:48
msgid "DONE"
msgstr "GOTOWE"
#: myappPostInstall.py:59 myappPostInstall.py:72 myappPostInstall.py:82
#: myappPreUninstall.py:39 myappPreUninstall.py:49
msgid "FAILED: "
msgstr "NIEPOWODZENIE: "
#: myappPostInstall.py:61
msgid "Checking sources..."
msgstr "Sprawdzanie repozytoriów źródłowych..."
#: myappPostInstall.py:78
msgid "Setting version..."
msgstr "Ustawianie wersji..."
#: myappPreUninstall.py:29
msgid "Removing app from OpenPlotter..."
msgstr "Usuwanie aplikacji z OpenPlotter..."
#: myappPreUninstall.py:45
msgid "Removing version..."
msgstr "Usuwanie wersji..."
#: openplotterMyapp.py:43
msgid "Help"
msgstr "Pomoc"
#: openplotterMyapp.py:46
msgid "Settings"
msgstr "Ustawienia"
#: openplotterMyapp.py:73
msgid "Click on \"Help\" to learn how to get started"
msgstr "Kliknij \"Pomoc\", aby dowiedzieć się, jak zacząć"
#: openplotterMyapp.py:110
msgid "This app does nothing."
msgstr "Ta aplikacja nic nie robi."
#: openplotterMyapp.py:111
msgid "This is a template to start writing your own OpenPlotter app."
msgstr "To jest szablon do tworzenia własnej aplikacji OpenPlotter."
#: startup.py:27
msgid "Opening \"My app\"..."
msgstr "Otwieranie \"My app\"..."
#: startup.py:35
msgid "This message should be green"
msgstr "Ta wiadomość powinna być zielona"
#: startup.py:36
msgid "This message should be black"
msgstr "Ta wiadomość powinna być czarna"
#: startup.py:37
msgid "\"My app\" should open. Uninstall \"My app\" to remove this."
msgstr "„My app” powinna się otworzyć. Odinstaluj „My App”, aby ją usunąć."
#: startup.py:49
msgid "Checking \"My app\"..."
msgstr "Sprawdzanie \"My app\"..."
#: startup.py:57
msgid "\"My app\" is installed"
msgstr "\"My app\" jest zainstalowana"
#: startup.py:59
msgid "\"My app\" is running"
msgstr "\"My app\" jest uruchomiona"
#: startup.py:60
msgid "\"My app\" is not running"
msgstr "\"My app\" nie jest uruchomiona"
#: startup.py:61
msgid "Warning example. Uninstall \"My app\" to remove this."
msgstr "Przykład ostrzeżenia. Odinstaluj „My app”, aby je usunąć."

View File

@ -1,105 +0,0 @@
msgid ""
msgstr ""
"Project-Id-Version: openplotter\n"
"POT-Creation-Date: 2020-03-10 20:05+0100\n"
"PO-Revision-Date: 2020-08-08 13:04+0200\n"
"Last-Translator: \n"
"Language-Team: Swedish\n"
"Language: sv\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.7.1\n"
"X-Poedit-Basepath: ../../..\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Crowdin-Project: openplotter\n"
"X-Crowdin-Language: sv-SE\n"
"X-Crowdin-File: openplotter-myapp.po\n"
"X-Poedit-SearchPath-0: .\n"
#: myappPostInstall.py:48
msgid "Adding app to OpenPlotter..."
msgstr ""
#: myappPostInstall.py:58 myappPostInstall.py:71 myappPostInstall.py:81
#: myappPreUninstall.py:38 myappPreUninstall.py:48
msgid "DONE"
msgstr ""
#: myappPostInstall.py:59 myappPostInstall.py:72 myappPostInstall.py:82
#: myappPreUninstall.py:39 myappPreUninstall.py:49
msgid "FAILED: "
msgstr ""
#: myappPostInstall.py:61
msgid "Checking sources..."
msgstr ""
#: myappPostInstall.py:78
msgid "Setting version..."
msgstr ""
#: myappPreUninstall.py:29
msgid "Removing app from OpenPlotter..."
msgstr ""
#: myappPreUninstall.py:45
msgid "Removing version..."
msgstr ""
#: openplotterMyapp.py:43
msgid "Help"
msgstr ""
#: openplotterMyapp.py:46
msgid "Settings"
msgstr ""
#: openplotterMyapp.py:73
msgid "Click on \"Help\" to learn how to get started"
msgstr ""
#: openplotterMyapp.py:110
msgid "This app does nothing."
msgstr ""
#: openplotterMyapp.py:111
msgid "This is a template to start writing your own OpenPlotter app."
msgstr ""
#: startup.py:27
msgid "Opening \"My app\"..."
msgstr ""
#: startup.py:35
msgid "This message should be green"
msgstr ""
#: startup.py:36
msgid "This message should be black"
msgstr ""
#: startup.py:37
msgid "\"My app\" should open. Uninstall \"My app\" to remove this."
msgstr ""
#: startup.py:49
msgid "Checking \"My app\"..."
msgstr ""
#: startup.py:57
msgid "\"My app\" is installed"
msgstr ""
#: startup.py:59
msgid "\"My app\" is running"
msgstr ""
#: startup.py:60
msgid "\"My app\" is not running"
msgstr ""
#: startup.py:61
msgid "Warning example. Uninstall \"My app\" to remove this."
msgstr ""

View File

@ -1,86 +0,0 @@
#!/usr/bin/env python3
# This file is part of Openplotter.
# Copyright (C) 2020 by Sailoog <https://github.com/openplotter/openplotter-myapp>
#
# Openplotter 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
# any later version.
# Openplotter 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 Openplotter. If not, see <http://www.gnu.org/licenses/>.
import os, sys, subprocess
from openplotterSettings import conf
from openplotterSettings import language
from openplotterSettings import platform
from .version import version
def main():
conf2 = conf.Conf()
currentdir = os.path.dirname(os.path.abspath(__file__))
currentLanguage = conf2.get('GENERAL', 'lang')
package = 'openplotter-myapp' ### replace by the name of your package
language.Language(currentdir, package, currentLanguage)
platform2 = platform.Platform()
app = {
'name': 'My app', ### replace My app by your app name
'platform': 'both', ### rpi, debian or both
'package': package,
'preUninstall': platform2.admin+' '+'myappPreUninstall', ### replace myappPreUninstall by your pre uninstall entry point (see setup.py file).
'uninstall': package,
'sources': ['https://dl.cloudsmith.io/public/openplotter/openplotter-external/deb/debian buster'], ### replace by your repositories URLs separated by commas.
'dev': 'no', ### set to "yes" if you do not want your app to be updated from repositories yet.
'entryPoint': 'openplotter-myapp', ### replace by your app GUI entry point (see setup.py file).
'postInstall': platform2.admin+' '+'myappPostInstall', ### replace myappPostInstall by your post install entry point (see setup.py file).
'reboot': 'no', ### set to "yes" if you want to shown a message "Reboot to apply changes" after updating from openplotter-settings.
'module': 'openplotterMyapp', ### replace by your python module name (see setup.py file).
'conf': 'myapp' ### replace myapp by the name of your app, use the same name in openplotterMyapp.py and myappPreUninstall.py scripts.
}
gpgKey = currentdir+'/data/myapp.gpg.key' ### replace by the path to your gpg key file. Replace contents of this file by your key.
sourceList = currentdir+'/data/myapp.list' ### replace by the path to your sources list file. Replace contents of this file by your packages sources.
print(_('Adding app to OpenPlotter...'))
try:
externalApps1 = []
try:
externalApps0 = eval(conf2.get('APPS', 'external_apps'))
except: externalApps0 = []
for i in externalApps0:
if i['package'] != package: externalApps1.append(i)
externalApps1.append(app)
conf2.set('APPS', 'external_apps', str(externalApps1))
print(_('DONE'))
except Exception as e: print(_('FAILED: ')+str(e))
print(_('Checking sources...'))
try:
sources = subprocess.check_output('apt-cache policy', shell=True).decode(sys.stdin.encoding)
exists = True
for i in app['sources']:
if not i in sources: exists = False
if not exists:
os.system('cp '+sourceList+' /etc/apt/sources.list.d')
os.system('apt-key add - < '+gpgKey)
os.system('apt update')
print(_('DONE'))
except Exception as e: print(_('FAILED: ')+str(e))
###
### Do here whatever you need after package installation. This file will be executed as sudo.
###
print(_('Setting version...'))
try:
conf2.set('APPS', 'myapp', version) ### replace myapp by the name of your app, use the same name in openplotterMyapp.py and myappPreUninstall.py scripts.
print(_('DONE'))
except Exception as e: print(_('FAILED: ')+str(e))
if __name__ == '__main__':
main()

View File

@ -1,64 +0,0 @@
#!/usr/bin/env python3
# This file is part of Openplotter.
# Copyright (C) 2020 by Sailoog <https://github.com/openplotter/openplotter-myapp>
#
# Openplotter 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
# any later version.
# Openplotter 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 Openplotter. If not, see <http://www.gnu.org/licenses/>.
import time, os, subprocess, sys
from openplotterSettings import language
class Start(): ### This class will be always called at startup. You should start here only GUI programs. Non GUI progrmas should be started as a services.
def __init__(self, conf, currentLanguage):
self.conf = conf
currentdir = os.path.dirname(os.path.abspath(__file__))
language.Language(currentdir,'openplotter-myapp',currentLanguage)
self.initialMessage = _('Opening "My app"...') ### "self.initialMessage" will be printed at startup if it has content. If not, the function "start" will not be called. Use trasnlatable text: _('Starting My App...')
def start(self): ### this funtion will be called only if "self.initialMessage" has content.
green = '' ### green messages will be printed in green after the "self.initialMessage"
black = '' ### black messages will be printed in black after the green message
red = '' ### red messages will be printed in red in a new line
### start here any GUI program that needs to be started at startup and set the messages.
green = _('This message should be green')
black = _('This message should be black')
red = _('"My app" should open. Uninstall "My app" to remove this.')
subprocess.Popen('openplotter-myapp')
time.sleep(1) ### "check" function is always called after "start" function, so if we start any program here we should wait some seconds before checking it.
return {'green': green,'black': black,'red': red}
class Check(): ### This class is always called after "start" function and when the user checks the system.
def __init__(self, conf, currentLanguage):
self.conf = conf
currentdir = os.path.dirname(os.path.abspath(__file__))
language.Language(currentdir,'openplotter-myapp',currentLanguage)
self.initialMessage = _('Checking "My app"...') ### "self.initialMessage" will be printed when checking the system. If it is empty the function check will not be called. Use trasnlatable text: _('Checking My App...')
def check(self): ### this funtion will be called only if "self.initialMessage" has content.
green = '' ### green messages will be printed in green after the "self.initialMessage"
black = '' ### black messages will be printed in black after the green message
red = '' ### red messages will be printed in red in a new line
### check here any feature and set the messages
green = _('"My app" is installed')
test = subprocess.check_output(['ps','aux']).decode(sys.stdin.encoding)
if 'openplotter-myapp' in test: black = _('"My app" is running')
else: black = _('"My app" is not running')
red = _('Warning example. Uninstall "My app" to remove this.')
return {'green': green,'black': black,'red': red}

View File

@ -1,10 +0,0 @@
version = '2.1.0'
codeName = 'Open Arms'
state = 'beta'
### version = First digit is the OpenPlotter version this app belongs, second one means major changes like new features, third one means minor changes like fixed errors or text and translations changes.
### IMPORTANT. Version must match the latest version in debian/changelog before publishing.
### codeName = you can use whatever you want.
### state = dev, beta or stable.

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
# This file is part of Openplotter.
# Copyright (C) 2020 by Sailoog <https://github.com/openplotter/openplotter-myapp>
# Copyright (C) 2021 by Sailoog <https://github.com/openplotter/openplotter-maiana>
#
# Openplotter is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -16,42 +16,21 @@
# along with Openplotter. If not, see <http://www.gnu.org/licenses/>.
from setuptools import setup
from openplotterMyapp import version
### replace openplotterMyapp by your python module name, See below.
from openplotterMaiana import version
setup (
name = 'openplotterMyapp', ### replace by the python module name of your app. This must be lowerCamelCase and must match the name of the folder openplotterMyapp.
name = 'openplotterMaiana',
version = version.version,
description = 'This is a template to help create apps for OpenPlotter', ### replace by your description.
description = 'OpenPlotter integration of the MAIANA open source AIS transponder',
license = 'GPLv3',
author="xxxx", ### replace by your name.
author_email='xxxx@xxxx.com', ### replace by your email.
url='https://github.com/openplotter/openplotter-myapp', ### replace by your project in github.
packages=['openplotterMyapp'], ### this must match the name of the folder openplotterMyapp.
author="Sailoog",
author_email='info@sailoog.com',
url='https://github.com/openplotter/openplotter-maiana',
packages=['openplotterMaiana'],
classifiers = ['Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3'],
include_package_data=True,
entry_points={'console_scripts': ['openplotter-myapp=openplotterMyapp.openplotterMyapp:main','myappPostInstall=openplotterMyapp.myappPostInstall:main','myappPreUninstall=openplotterMyapp.myappPreUninstall:main']},
### entry_points: creating entry points you will be able to run these python scripts from everywhere.
### openplotter-myapp = This is the GUI of your app
### myappPostInstall = This file must be executed after the package installation and it should contain any extra task like installing pip packages, creating services...
### myappPreUninstall = This file must be executed before the package uninstallation. Here you should revert all changes in myappPostInstall.
data_files=[('share/applications', ['openplotterMyapp/data/openplotter-myapp.desktop']),('share/pixmaps', ['openplotterMyapp/data/openplotter-myapp.png']),],
### data_files = Add files to the host system. This will work only when installed as debian package, not as python module.
entry_points={'console_scripts': ['openplotter-maiana=openplotterMaiana.openplotterMaiana:main','maianaPostInstall=openplotterMaiana.maianaPostInstall:main','maianaPreUninstall=openplotterMaiana.maianaPreUninstall:main']},
data_files=[('share/applications', ['openplotterMaiana/data/openplotter-maiana.desktop']),('share/pixmaps', ['openplotterMaiana/data/openplotter-maiana.png']),],
)
### MORE REQUIRED CHANGES
### replace openplotterMyapp in MANIFEST.in file by your python module name.
### replace the file name openplotterMyapp/locale/en/LC_MESSAGES/openplotter-myapp.po by your package name.
### use Poedit program to update the translations sources in openplotterMyapp/locale/en/LC_MESSAGES/openplotter-myapp.po
### replace openplotter-myapp by your package name in file openplotterMyapp/data/openplotter-myapp.desktop
### replace openplotter-myapp by your package name in debian/rules file content
### replace openplotter-myapp by your package name in debian/openplotter-myapp-docs.docs file name
### change Upstream-Name, Source and Copyright values in debian/copyright file content
### change Source, Maintainer, Homepage, Package and Description values in debian/control file content
### replace openplotter-myapp by your package name and Sailoog <info@sailoog.com> by your name and email in debian/changelog file content