Skip to content

Commit

Permalink
Merge pull request #19 from yaal-coop/issue-18-confname
Browse files Browse the repository at this point in the history
BBB %%CONFNAME%% variable substitution
  • Loading branch information
nschont authored Aug 16, 2023
2 parents fcb38d4 + 7485133 commit a667e05
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion web/flaskr/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ class MeetingForm(FlaskForm):
"Ce texte apparait comme message de bienvenue sur le tchat public"
),
default=lazy_gettext(
"Bienvenue dans %(this_meeting)s <u><strong> %%CONFNAME%% </strong></u>.",
"Bienvenue dans %(this_meeting)s %(meeting_name)s.",
this_meeting=current_app.config["WORDING_THIS_MEETING"],
meeting_name="<u><strong> %%CONFNAME%% </strong></u>",
),
render_kw={"rows": 3},
validators=[
Expand Down
4 changes: 2 additions & 2 deletions web/translations/en/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ msgstr "This text is displayed as a welcome message on the public chat"

#: web/flaskr/forms.py:75
#, python-format
msgid "Bienvenue dans %(this_meeting)s <u><strong> %%CONFNAME%% </strong></u>."
msgstr "Welcome in this meeting <u><strong> %%CONFNAME%% </strong></u>."
msgid "Bienvenue dans %(this_meeting)s %(meeting_name)s."
msgstr "Welcome in this meeting %(meeting_name)s."

#: web/flaskr/forms.py:81
msgid "Le texte est trop long"
Expand Down
2 changes: 1 addition & 1 deletion web/translations/fr/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ msgstr ""

#: web/flaskr/forms.py:75
#, python-format
msgid "Bienvenue dans %(this_meeting)s <u><strong> %%CONFNAME%% </strong></u>."
msgid "Bienvenue dans %(this_meeting)s %(meeting_name)s."
msgstr ""

#: web/flaskr/forms.py:81
Expand Down
2 changes: 1 addition & 1 deletion web/translations/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ msgstr ""

#: web/flaskr/forms.py:75
#, python-format
msgid "Bienvenue dans %(this_meeting)s <u><strong> %%CONFNAME%% </strong></u>."
msgid "Bienvenue dans %(this_meeting)s %(meeting_name)s."
msgstr ""

#: web/flaskr/forms.py:81
Expand Down
2 changes: 1 addition & 1 deletion web/translations/uk/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ msgstr ""

#: web/flaskr/forms.py:75
#, python-format
msgid "Bienvenue dans %(this_meeting)s <u><strong> %%CONFNAME%% </strong></u>."
msgid "Bienvenue dans %(this_meeting)s %(meeting_name)s."
msgstr ""

#: web/flaskr/forms.py:81
Expand Down

0 comments on commit a667e05

Please sign in to comment.