Skip to content

Commit

Permalink
Merge pull request #192 from geotribu/translations/qchat
Browse files Browse the repository at this point in the history
translations: add qchat translations
  • Loading branch information
gounux authored Sep 6, 2024
2 parents 9d91364 + 3ef383d commit c68da50
Show file tree
Hide file tree
Showing 6 changed files with 378 additions and 109 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,4 @@ qtribu/gui/*.db
.idea
qtribu/LICENSE
plugins.xml
qtribu/resources/**/*.db
34 changes: 20 additions & 14 deletions qtribu/gui/dlg_settings.ui
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>778</width>
<height>565</height>
<width>762</width>
<height>569</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
Expand Down Expand Up @@ -338,9 +338,15 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="inputMethodHints">
<set>Qt::ImhUrlCharactersOnly</set>
</property>
<property name="editable">
<bool>true</bool>
</property>
<property name="currentText">
<string notr="true">https://gischat.geotribu.net</string>
</property>
<item>
<property name="text">
<string>https://gischat.geotribu.net</string>
Expand Down Expand Up @@ -437,62 +443,62 @@
<widget class="QComboBox" name="cbb_ring_tone">
<item>
<property name="text">
<string>beep_1</string>
<string notr="true">beep_1</string>
</property>
</item>
<item>
<property name="text">
<string>beep_2</string>
<string notr="true">beep_2</string>
</property>
</item>
<item>
<property name="text">
<string>beep_3</string>
<string notr="true">beep_3</string>
</property>
</item>
<item>
<property name="text">
<string>beep_4</string>
<string notr="true">beep_4</string>
</property>
</item>
<item>
<property name="text">
<string>beep_5</string>
<string notr="true">beep_5</string>
</property>
</item>
<item>
<property name="text">
<string>beep_6</string>
<string notr="true">beep_6</string>
</property>
</item>
<item>
<property name="text">
<string>beep_7</string>
<string notr="true">beep_7</string>
</property>
</item>
<item>
<property name="text">
<string>horn</string>
<string notr="true">horn</string>
</property>
</item>
<item>
<property name="text">
<string>cat</string>
<string notr="true">cat</string>
</property>
</item>
<item>
<property name="text">
<string>dog</string>
<string notr="true">dog</string>
</property>
</item>
<item>
<property name="text">
<string>chicken</string>
<string notr="true">chicken</string>
</property>
</item>
<item>
<property name="text">
<string>cow</string>
<string notr="true">cow</string>
</property>
</item>
</widget>
Expand Down
40 changes: 20 additions & 20 deletions qtribu/gui/wdg_authoring.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>406</width>
<width>484</width>
<height>344</height>
</rect>
</property>
Expand Down Expand Up @@ -247,97 +247,97 @@
</property>
<item>
<property name="text">
<string>mActionAddHtml.svg</string>
<string notr="true">mActionAddHtml.svg</string>
</property>
</item>
<item>
<property name="text">
<string>mActionArrowUp.svg</string>
<string notr="true">mActionArrowUp.svg</string>
</property>
</item>
<item>
<property name="text">
<string>mActionCalculateField.svg</string>
<string notr="true">mActionCalculateField.svg</string>
</property>
</item>
<item>
<property name="text">
<string>mActionMapTips.svg</string>
<string notr="true">mActionMapTips.svg</string>
</property>
</item>
<item>
<property name="text">
<string>mActionPropertiesWidget.svg</string>
<string notr="true">mActionPropertiesWidget.svg</string>
</property>
</item>
<item>
<property name="text">
<string>mIconCamera.svg</string>
<string notr="true">mGeoPackage.svg</string>
</property>
</item>
<item>
<property name="text">
<string>mIconCertificate.svg</string>
<string notr="true">mIconCamera.svg</string>
</property>
</item>
<item>
<property name="text">
<string>mIconFolder.svg</string>
<string notr="true">mIconCertificate.svg</string>
</property>
</item>
<item>
<property name="text">
<string>mIconGPU.svg</string>
<string notr="true">mIconFolder.svg</string>
</property>
</item>
<item>
<property name="text">
<string>mIconInfo.svg</string>
<string notr="true">mIconGPU.svg</string>
</property>
</item>
<item>
<property name="text">
<string>mIconNetworkLogger.svg</string>
<string notr="true">mIconInfo.svg</string>
</property>
</item>
<item>
<property name="text">
<string>mIconPostgis.svg</string>
<string notr="true">mIconNetworkLogger.svg</string>
</property>
</item>
<item>
<property name="text">
<string>mIconPyramid.svg</string>
<string notr="true">mIconPostgis.svg</string>
</property>
</item>
<item>
<property name="text">
<string>mIconPythonFile.svg</string>
<string notr="true">mIconPyramid.svg</string>
</property>
</item>
<item>
<property name="text">
<string>mIconRaster.svg</string>
<string notr="true">mIconPythonFile.svg</string>
</property>
</item>
<item>
<property name="text">
<string>mIconSpatialite.svg</string>
<string notr="true">mIconRaster.svg</string>
</property>
</item>
<item>
<property name="text">
<string>mIconXyz.svg</string>
<string notr="true">mIconSpatialite.svg</string>
</property>
</item>
<item>
<property name="text">
<string>mIconZip.svg</string>
<string notr="true">mIconXyz.svg</string>
</property>
</item>
<item>
<property name="text">
<string>mGeoPackage.svg</string>
<string notr="true">mIconZip.svg</string>
</property>
</item>
</widget>
Expand Down
6 changes: 4 additions & 2 deletions qtribu/logic/news_feed/rss_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,10 @@ def process(self) -> None:
if not self.local_feed_filepath.exists():
self.log(
message=self.tr(
f"The RSS feed is not available locally: {self.local_feed_filepath}. "
"Features related to the RSS reader are disabled."
"The RSS feed is not available locally: {}. "
"Features related to the RSS reader are disabled.".format(
self.local_feed_filepath
)
),
log_level=Qgis.Critical,
)
Expand Down
13 changes: 8 additions & 5 deletions qtribu/resources/i18n/plugin_translation.pro
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
FORMS = ../../gui/dlg_contents.ui \
FORMS = ../../gui/dck_qchat.ui \
../../gui/dlg_contents.ui \
../../gui/dlg_settings.ui \
../../gui/form_article.ui \
../../gui/form_rdp_news.ui \
../../gui/wdg_authoring.ui

SOURCES= ../../plugin_main.py \
../../gui/commons.py \
../../gui/gui_commons.py \
../../gui/dlg_contents.py \
../../gui/dlg_settings.py \
../../gui/form_article.py \
../../gui/form_rdp_news.py \
../../gui/wdg_authoring.py \
../../logic/custom_datatypes.py \
../../logic/json_feed.py \
../../logic/rss_reader.py \
../../logic/qchat_client.py \
../../logic/splash_changer.py \
../../logic/web_viewer.py \
../../logic/news_feed/json_feed.py \
../../logic/news_feed/rss_reader.py \
../../toolbelt/application_folder.py \
../../toolbelt/commons.py \
../../toolbelt/file_stats.py \
../../toolbelt/log_handler.py \
../../toolbelt/network_manager.py \
../../toolbelt/preferences.py
Expand Down
Loading

0 comments on commit c68da50

Please sign in to comment.