Skip to content

Commit c68da50

Browse files
authored
Merge pull request #192 from geotribu/translations/qchat
translations: add qchat translations
2 parents 9d91364 + 3ef383d commit c68da50

File tree

6 files changed

+378
-109
lines changed

6 files changed

+378
-109
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,3 +142,4 @@ qtribu/gui/*.db
142142
.idea
143143
qtribu/LICENSE
144144
plugins.xml
145+
qtribu/resources/**/*.db

qtribu/gui/dlg_settings.ui

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
<rect>
4343
<x>0</x>
4444
<y>0</y>
45-
<width>778</width>
46-
<height>565</height>
45+
<width>762</width>
46+
<height>569</height>
4747
</rect>
4848
</property>
4949
<layout class="QVBoxLayout" name="verticalLayout_3">
@@ -338,9 +338,15 @@
338338
<verstretch>0</verstretch>
339339
</sizepolicy>
340340
</property>
341+
<property name="inputMethodHints">
342+
<set>Qt::ImhUrlCharactersOnly</set>
343+
</property>
341344
<property name="editable">
342345
<bool>true</bool>
343346
</property>
347+
<property name="currentText">
348+
<string notr="true">https://gischat.geotribu.net</string>
349+
</property>
344350
<item>
345351
<property name="text">
346352
<string>https://gischat.geotribu.net</string>
@@ -437,62 +443,62 @@
437443
<widget class="QComboBox" name="cbb_ring_tone">
438444
<item>
439445
<property name="text">
440-
<string>beep_1</string>
446+
<string notr="true">beep_1</string>
441447
</property>
442448
</item>
443449
<item>
444450
<property name="text">
445-
<string>beep_2</string>
451+
<string notr="true">beep_2</string>
446452
</property>
447453
</item>
448454
<item>
449455
<property name="text">
450-
<string>beep_3</string>
456+
<string notr="true">beep_3</string>
451457
</property>
452458
</item>
453459
<item>
454460
<property name="text">
455-
<string>beep_4</string>
461+
<string notr="true">beep_4</string>
456462
</property>
457463
</item>
458464
<item>
459465
<property name="text">
460-
<string>beep_5</string>
466+
<string notr="true">beep_5</string>
461467
</property>
462468
</item>
463469
<item>
464470
<property name="text">
465-
<string>beep_6</string>
471+
<string notr="true">beep_6</string>
466472
</property>
467473
</item>
468474
<item>
469475
<property name="text">
470-
<string>beep_7</string>
476+
<string notr="true">beep_7</string>
471477
</property>
472478
</item>
473479
<item>
474480
<property name="text">
475-
<string>horn</string>
481+
<string notr="true">horn</string>
476482
</property>
477483
</item>
478484
<item>
479485
<property name="text">
480-
<string>cat</string>
486+
<string notr="true">cat</string>
481487
</property>
482488
</item>
483489
<item>
484490
<property name="text">
485-
<string>dog</string>
491+
<string notr="true">dog</string>
486492
</property>
487493
</item>
488494
<item>
489495
<property name="text">
490-
<string>chicken</string>
496+
<string notr="true">chicken</string>
491497
</property>
492498
</item>
493499
<item>
494500
<property name="text">
495-
<string>cow</string>
501+
<string notr="true">cow</string>
496502
</property>
497503
</item>
498504
</widget>

qtribu/gui/wdg_authoring.ui

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<rect>
77
<x>0</x>
88
<y>0</y>
9-
<width>406</width>
9+
<width>484</width>
1010
<height>344</height>
1111
</rect>
1212
</property>
@@ -247,97 +247,97 @@
247247
</property>
248248
<item>
249249
<property name="text">
250-
<string>mActionAddHtml.svg</string>
250+
<string notr="true">mActionAddHtml.svg</string>
251251
</property>
252252
</item>
253253
<item>
254254
<property name="text">
255-
<string>mActionArrowUp.svg</string>
255+
<string notr="true">mActionArrowUp.svg</string>
256256
</property>
257257
</item>
258258
<item>
259259
<property name="text">
260-
<string>mActionCalculateField.svg</string>
260+
<string notr="true">mActionCalculateField.svg</string>
261261
</property>
262262
</item>
263263
<item>
264264
<property name="text">
265-
<string>mActionMapTips.svg</string>
265+
<string notr="true">mActionMapTips.svg</string>
266266
</property>
267267
</item>
268268
<item>
269269
<property name="text">
270-
<string>mActionPropertiesWidget.svg</string>
270+
<string notr="true">mActionPropertiesWidget.svg</string>
271271
</property>
272272
</item>
273273
<item>
274274
<property name="text">
275-
<string>mIconCamera.svg</string>
275+
<string notr="true">mGeoPackage.svg</string>
276276
</property>
277277
</item>
278278
<item>
279279
<property name="text">
280-
<string>mIconCertificate.svg</string>
280+
<string notr="true">mIconCamera.svg</string>
281281
</property>
282282
</item>
283283
<item>
284284
<property name="text">
285-
<string>mIconFolder.svg</string>
285+
<string notr="true">mIconCertificate.svg</string>
286286
</property>
287287
</item>
288288
<item>
289289
<property name="text">
290-
<string>mIconGPU.svg</string>
290+
<string notr="true">mIconFolder.svg</string>
291291
</property>
292292
</item>
293293
<item>
294294
<property name="text">
295-
<string>mIconInfo.svg</string>
295+
<string notr="true">mIconGPU.svg</string>
296296
</property>
297297
</item>
298298
<item>
299299
<property name="text">
300-
<string>mIconNetworkLogger.svg</string>
300+
<string notr="true">mIconInfo.svg</string>
301301
</property>
302302
</item>
303303
<item>
304304
<property name="text">
305-
<string>mIconPostgis.svg</string>
305+
<string notr="true">mIconNetworkLogger.svg</string>
306306
</property>
307307
</item>
308308
<item>
309309
<property name="text">
310-
<string>mIconPyramid.svg</string>
310+
<string notr="true">mIconPostgis.svg</string>
311311
</property>
312312
</item>
313313
<item>
314314
<property name="text">
315-
<string>mIconPythonFile.svg</string>
315+
<string notr="true">mIconPyramid.svg</string>
316316
</property>
317317
</item>
318318
<item>
319319
<property name="text">
320-
<string>mIconRaster.svg</string>
320+
<string notr="true">mIconPythonFile.svg</string>
321321
</property>
322322
</item>
323323
<item>
324324
<property name="text">
325-
<string>mIconSpatialite.svg</string>
325+
<string notr="true">mIconRaster.svg</string>
326326
</property>
327327
</item>
328328
<item>
329329
<property name="text">
330-
<string>mIconXyz.svg</string>
330+
<string notr="true">mIconSpatialite.svg</string>
331331
</property>
332332
</item>
333333
<item>
334334
<property name="text">
335-
<string>mIconZip.svg</string>
335+
<string notr="true">mIconXyz.svg</string>
336336
</property>
337337
</item>
338338
<item>
339339
<property name="text">
340-
<string>mGeoPackage.svg</string>
340+
<string notr="true">mIconZip.svg</string>
341341
</property>
342342
</item>
343343
</widget>

qtribu/logic/news_feed/rss_reader.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,10 @@ def process(self) -> None:
7272
if not self.local_feed_filepath.exists():
7373
self.log(
7474
message=self.tr(
75-
f"The RSS feed is not available locally: {self.local_feed_filepath}. "
76-
"Features related to the RSS reader are disabled."
75+
"The RSS feed is not available locally: {}. "
76+
"Features related to the RSS reader are disabled.".format(
77+
self.local_feed_filepath
78+
)
7779
),
7880
log_level=Qgis.Critical,
7981
)

qtribu/resources/i18n/plugin_translation.pro

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
1-
FORMS = ../../gui/dlg_contents.ui \
1+
FORMS = ../../gui/dck_qchat.ui \
2+
../../gui/dlg_contents.ui \
23
../../gui/dlg_settings.ui \
34
../../gui/form_article.ui \
45
../../gui/form_rdp_news.ui \
56
../../gui/wdg_authoring.ui
67

78
SOURCES= ../../plugin_main.py \
8-
../../gui/commons.py \
9+
../../gui/gui_commons.py \
910
../../gui/dlg_contents.py \
1011
../../gui/dlg_settings.py \
1112
../../gui/form_article.py \
1213
../../gui/form_rdp_news.py \
1314
../../gui/wdg_authoring.py \
14-
../../logic/custom_datatypes.py \
15-
../../logic/json_feed.py \
16-
../../logic/rss_reader.py \
15+
../../logic/qchat_client.py \
1716
../../logic/splash_changer.py \
1817
../../logic/web_viewer.py \
18+
../../logic/news_feed/json_feed.py \
19+
../../logic/news_feed/rss_reader.py \
20+
../../toolbelt/application_folder.py \
1921
../../toolbelt/commons.py \
22+
../../toolbelt/file_stats.py \
2023
../../toolbelt/log_handler.py \
2124
../../toolbelt/network_manager.py \
2225
../../toolbelt/preferences.py

0 commit comments

Comments
 (0)