Skip to content

Commit

Permalink
Merge pull request #222 from geotribu/translations/qchat
Browse files Browse the repository at this point in the history
trad(qchat): add QChat fr translations
  • Loading branch information
gounux authored Nov 19, 2024
2 parents ce60d33 + a974510 commit 87ede82
Show file tree
Hide file tree
Showing 3 changed files with 345 additions and 51 deletions.
8 changes: 4 additions & 4 deletions qtribu/gui/dck_qchat.py
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ def on_send_button_clicked(self) -> None:
if len(nickname) < QCHAT_NICKNAME_MINLENGTH:
self.log(
message=self.tr(
"Nickname too short : must be at least 3 characters. Please open settings and set it"
"Nickname too short: must be at least 3 characters. Please open settings and set it"
),
log_level=Qgis.Warning,
push=self.settings.notify_push_info,
Expand Down Expand Up @@ -894,7 +894,7 @@ def check_cheatcode(self, text: str) -> bool:
if text == CHEATCODE_QGIS_PRO_LICENSE:
self.log(
message=self.tr("Your QGIS Pro license is about to expire"),
application=self.tr("QGIS Pro"),
application="QGIS Pro",
log_level=Qgis.Warning,
push=self.settings.notify_push_info,
duration=self.settings.notify_push_duration,
Expand All @@ -912,7 +912,7 @@ def check_cheatcode(self, text: str) -> bool:

def on_renew_clicked(self) -> None:
msg_box = QMessageBox()
msg_box.setWindowTitle(self.tr("QGIS"))
msg_box.setWindowTitle("QGIS")
msg_box.setIcon(QMessageBox.Information)
msg_box.setText(
self.tr(
Expand Down Expand Up @@ -946,7 +946,7 @@ def on_send_layer_to_qchat(self) -> None:
message=self.tr(
"Not connected to QChat. Please connect to a room first"
),
application=self.tr("QChat"),
application="QChat",
log_level=Qgis.Critical,
push=self.settings.notify_push_info,
duration=self.settings.notify_push_duration,
Expand Down
9 changes: 7 additions & 2 deletions qtribu/resources/i18n/plugin_translation.pro
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,22 @@ FORMS = ../../gui/dck_qchat.ui \
../../gui/wdg_authoring.ui

SOURCES= ../../plugin_main.py \
../../gui/gui_commons.py \
../../gui/dck_qchat.py \
../../gui/dlg_contents.py \
../../gui/dlg_settings.py \
../../gui/form_article.py \
../../gui/form_rdp_news.py \
../../gui/gui_commons.py \
../../gui/qchat_tree_widget_items.py \
../../gui/wdg_authoring.py \
../../logic/qchat_client.py \
../../logic/qchat_api_client.py \
../../logic/qchat_messages.py \
../../logic/qchat_websocket.py \
../../logic/splash_changer.py \
../../logic/web_viewer.py \
../../logic/news_feed/json_feed.py \
../../logic/news_feed/rss_reader.py \
../../tasks/dizzy.py \
../../toolbelt/application_folder.py \
../../toolbelt/commons.py \
../../toolbelt/file_stats.py \
Expand Down
Loading

0 comments on commit 87ede82

Please sign in to comment.