Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trad(qchat): add QChat fr translations #222

Merged
merged 4 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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