Skip to content

Commit d0adb21

Browse files
committed
add GUI
1 parent 788b7c9 commit d0adb21

File tree

24 files changed

+1836
-8
lines changed

24 files changed

+1836
-8
lines changed

MANIFEST.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
include LICENSE
2+
include README.md
3+
recursive-include openplotterSettings/data *
4+
recursive-include openplotterSettings/locale *

openplotterSettings/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ def __init__(self):
3434
self.conf_file = self.conf_folder+'/openplotter.conf'
3535
if not os.path.exists(self.conf_file):
3636
print('openplotter.conf not found, creating', self.conf_file)
37-
fo = open(self.conf_file, "wb")
38-
fo.write( '[GENERAL]\nlang = en\nversion = '+version.version+'\nstate = '+version.state+'\n')
37+
fo = open(self.conf_file, "w")
38+
fo.write( '[GENERAL]\nlang = en\nversion = '+version+'\ncodeName = '+codeName+'\nstate = '+state+'\n')
3939
fo.close()
4040
self.read()
4141

openplotterSettings/data/24x24.png

845 Bytes
Loading

openplotterSettings/data/48x48.png

1.89 KB
Loading

openplotterSettings/data/debian.png

657 Bytes
Loading

openplotterSettings/data/help.png

841 Bytes
Loading

openplotterSettings/data/rpi.png

1.15 KB
Loading

openplotterSettings/language.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@
1616
# along with Openplotter. If not, see <http://www.gnu.org/licenses/>.
1717

1818
import gettext
19+
import os
1920

2021
class Language:
2122
def __init__(self, module, language):
2223
self.available = [['Català','ca'],['Deutsch','de'],['ελληνικά','el'],['English','en'],['Español','es'],['Euskara','eu'],['Suomi','fi'],['Français','fr'],['Galego','gl'],['Italiano','it'],['Dutch','nl']]
23-
locale_folder ='locale'
24+
currentdir = os.path.dirname(__file__)
25+
locale_folder =currentdir+'/locale'
2426
gettext.install(module, locale_folder, False)
2527
try: presLan = gettext.translation(module, locale_folder, languages=[language])
2628
except: presLan = gettext.translation(module, locale_folder, languages=['en'])
Binary file not shown.
Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
msgid ""
2+
msgstr ""
3+
"Project-Id-Version: openplotter-sdr-ais\n"
4+
"POT-Creation-Date: 2019-07-26 18:43+0200\n"
5+
"PO-Revision-Date: 2019-07-27 17:37+0200\n"
6+
"Last-Translator: \n"
7+
"Language-Team: \n"
8+
"Language: ca\n"
9+
"MIME-Version: 1.0\n"
10+
"Content-Type: text/plain; charset=UTF-8\n"
11+
"Content-Transfer-Encoding: 8bit\n"
12+
"X-Generator: Poedit 1.8.7.1\n"
13+
"X-Poedit-Basepath: ../../..\n"
14+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
15+
"X-Poedit-SearchPath-0: .\n"
16+
17+
#: SDR_AIS_fine_cal.py:38
18+
msgid "Fine calibration"
19+
msgstr "Calibratge fi"
20+
21+
#: SDR_AIS_fine_cal.py:45
22+
msgid "Error"
23+
msgstr ""
24+
25+
#: SDR_AIS_fine_cal.py:51
26+
msgid "Initial PPM: "
27+
msgstr "PPM inicial"
28+
29+
#: SDR_AIS_fine_cal.py:55
30+
msgid "Close"
31+
msgstr ""
32+
33+
#: SDR_AIS_fine_cal.py:58
34+
msgid "Start"
35+
msgstr ""
36+
37+
#: SDR_AIS_fine_cal.py:62
38+
msgid ""
39+
"Press Start and wait for the system to calculate the PPM value.\n"
40+
"Round the resulting PPM to the nearest integer and copy it into \"PPM\" "
41+
"field.\n"
42+
"Estimated time: 1 min."
43+
msgstr ""
44+
45+
#: SDR_AIS_fine_cal.py:63
46+
msgid "channel: "
47+
msgstr ""
48+
49+
#: SDR_AIS_fine_cal.py:65
50+
msgid ""
51+
"Press Start and wait for the system to check the band.\n"
52+
"Write down the strongest channel (power).\n"
53+
"If you do not find any channel try another band.\n"
54+
"Estimated time: 5 min."
55+
msgstr ""
56+
57+
#: SDR_AIS_fine_cal.py:66
58+
msgid "band: "
59+
msgstr ""
60+
61+
#: SDR_AIS_fine_cal.py:73
62+
msgid "Working..."
63+
msgstr ""
64+
65+
#: SDR_AIS_fine_cal.py:77 SDR_AIS_fine_cal.py:80
66+
msgid "Error: "
67+
msgstr ""
68+
69+
#: SDR_AIS_fine_cal.py:82
70+
msgid "Finished"
71+
msgstr ""
72+
73+
#: openplotter-sdr-ais.py:32
74+
msgid "SDR receiver"
75+
msgstr "Receptor SDR"
76+
77+
#: openplotter-sdr-ais.py:40
78+
msgid " Calibration "
79+
msgstr ""
80+
81+
#: openplotter-sdr-ais.py:42
82+
msgid "Initial PPM"
83+
msgstr ""
84+
85+
#: openplotter-sdr-ais.py:45
86+
msgid "Band"
87+
msgstr ""
88+
89+
#: openplotter-sdr-ais.py:48
90+
msgid "Get channel"
91+
msgstr ""
92+
93+
#: openplotter-sdr-ais.py:50
94+
msgid "Channel"
95+
msgstr ""
96+
97+
#: openplotter-sdr-ais.py:52
98+
msgid "Get PPM"
99+
msgstr ""
100+
101+
#: openplotter-sdr-ais.py:55
102+
msgid "PPM"
103+
msgstr ""
104+
105+
#: openplotter-sdr-ais.py:58
106+
msgid "Save PPM"
107+
msgstr ""
108+
109+
#: openplotter-sdr-ais.py:63
110+
msgid "Enable"
111+
msgstr ""
112+
113+
#: openplotter-sdr-ais.py:66
114+
msgid "Check AIS frequency"
115+
msgstr ""
116+
117+
#: openplotter-sdr-ais.py:69
118+
msgid " Radio "
119+
msgstr ""
120+
121+
#: openplotter-sdr-ais.py:70
122+
msgid "Load defaults"
123+
msgstr ""
124+
125+
#: openplotter-sdr-ais.py:73
126+
msgid "Channel 16"
127+
msgstr ""
128+
129+
#: openplotter-sdr-ais.py:76
130+
msgid "Channel 9"
131+
msgstr ""
132+
133+
#: openplotter-sdr-ais.py:80
134+
msgid "Frequency"
135+
msgstr ""
136+
137+
#: openplotter-sdr-ais.py:188 openplotter-sdr-ais.py:279
138+
msgid "Failed. Wrong PPM"
139+
msgstr ""
140+
141+
#: openplotter-sdr-ais.py:193
142+
msgid "SDR-AIS reception enabled"
143+
msgstr ""
144+
145+
#: openplotter-sdr-ais.py:197
146+
msgid "SDR-AIS reception disabled"
147+
msgstr ""
148+
149+
#: openplotter-sdr-ais.py:203
150+
msgid ""
151+
"Wait for \"cumulative PPM\" value to stabilize and copy it into \"PPM\" field"
152+
msgstr ""
153+
154+
#: openplotter-sdr-ais.py:212
155+
msgid "Select the GSM band used in your country to get the strongest channel"
156+
msgstr ""
157+
158+
#: openplotter-sdr-ais.py:220
159+
msgid "Failed. Wrong channel"
160+
msgstr ""
161+
162+
#: openplotter-sdr-ais.py:225
163+
msgid "Use the strongest channel to calculate the final PPM"
164+
msgstr ""
165+
166+
#: openplotter-sdr-ais.py:291
167+
msgid "Saved PPM"
168+
msgstr ""

0 commit comments

Comments
 (0)