-
-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1509 from UlrichB22/flask-babel-3
Upgrade Flask-Babel to 3.x
- Loading branch information
Showing
4 changed files
with
16 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#!/usr/bin/env python | ||
# Copyright: 2001 by Juergen Hermann <[email protected]> | ||
# Copyright: 2001-2018 MoinMoin:ThomasWaldmann | ||
# Copyright: 2023 MoinMoin project | ||
# License: GNU GPL v2 (or any later version), see LICENSE.txt for details. | ||
|
||
import os | ||
|
@@ -72,17 +73,17 @@ | |
], | ||
install_requires=[ | ||
'Babel>=2.10.0', # internationalization support | ||
'blinker>=1.1', # event signalling (e.g. for change notification trigger) | ||
'blinker>=1.5', # event signalling (e.g. for change notification trigger) | ||
'docutils>=0.18.1', # reST markup processing | ||
'Markdown>=3.4.1', # Markdown markup processing | ||
'Flask<2.3.0', # micro framework | ||
'Flask-Babel<3.0.0', # i18n support | ||
'Flask-Babel>=3.0.0', # i18n support | ||
'Flask-Caching>=1.2.0', # caching support | ||
'Flask-Theme>=0.3.5', # theme support | ||
'Flask-Theme>=0.3.6', # theme support | ||
'emeraldtree>=0.10.0', # xml processing | ||
'feedgen==0.9.*', # Atom feed | ||
'flatland>=0.8', # form handling | ||
'Jinja2<3.1.0', # template engine | ||
'Jinja2>=3.1.0', # template engine | ||
'markupsafe<=2.2.0', # safe html and xml | ||
'pygments>=1.4', # src code / text file highlighting | ||
'Werkzeug<2.4.0', # wsgi toolkit | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
# Copyright: 2010 MoinMoin:DiogenesAugusto | ||
# Copyright: 2001 Richard Jones <[email protected]> | ||
# Copyright: 2001 Juergen Hermann <[email protected]> | ||
# Copyright: 2023 MoinMoin project | ||
# License: GNU GPL v2 (or any later version), see LICENSE.txt for details. | ||
|
||
""" | ||
|
@@ -2296,7 +2297,7 @@ class UserSettingsPersonalForm(Form): | |
# _timezones_keys = sorted(Locale('en').time_zones.keys()) | ||
_timezones_keys = [str(tz) for tz in pytz.common_timezones] | ||
timezone = Select.using(label=L_('Timezone')).out_of((e, e) for e in _timezones_keys) | ||
_supported_locales = [Locale('en')] + app.babel_instance.list_translations() | ||
_supported_locales = [Locale('en')] + app.extensions['babel'].instance.list_translations() | ||
locale = Select.using(label=L_('Locale')).out_of( | ||
((str(locale), locale.display_name) for locale in _supported_locales), sort_by=1) | ||
submit_label = L_('Save') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters