Skip to content
Snippets Groups Projects
  • Jan Mach's avatar
    097d3a7b
    Implemented the pybabel translation commands as built-in Flask CLI commands. · 097d3a7b
    Jan Mach authored
    Pybabel translations are now implemented as built-in Flask CLI commands and accessible from 'hawat-cli intl' utility. This approach enables users to easily customize translations for their custom Mentat system installations, or adding new languages. The drawback of this approach is, that the commands are executed within the Flask`s application context, so the application must be properly installed on target system for everything to work properly. I have kept original translation commands in the makefile for future reference.
    
    (Redmine issue: #4789,#4216)
    097d3a7b
    History
    Implemented the pybabel translation commands as built-in Flask CLI commands.
    Jan Mach authored
    Pybabel translations are now implemented as built-in Flask CLI commands and accessible from 'hawat-cli intl' utility. This approach enables users to easily customize translations for their custom Mentat system installations, or adding new languages. The drawback of this approach is, that the commands are executed within the Flask`s application context, so the application must be properly installed on target system for everything to work properly. I have kept original translation commands in the makefile for future reference.
    
    (Redmine issue: #4789,#4216)