2022 Dec 15, 03:28 PM
The UI is basically hand coded.
SIP is built on web.py, a Python framework for web sites:
https://webpy.org/
The web pages are in the templates folder. Web.py has a tempating engine called Templator which allows including Python code in the page definitions so that data from the core program can be dynamically included in the pages.
https://webpy.org/docs/0.3/tutorial#templating
When a page is requested by the browser the templating engine processes the included Python code and renders the page.
The language strings are in a compressed format in a file named sip_messages.mo for each language under the i18n folder. In the page templates the strings that need to be translated are enclosed in a _() function call. For example" _('Manual Mode'). When a language is selected from the options page the strings get replaced from the corresponding sip_messages.mo file. This is handled in i18n.py using the gettext module.
https://docs.python.org/3/library/gettext.html
SIP is built on web.py, a Python framework for web sites:
https://webpy.org/
The web pages are in the templates folder. Web.py has a tempating engine called Templator which allows including Python code in the page definitions so that data from the core program can be dynamically included in the pages.
https://webpy.org/docs/0.3/tutorial#templating
When a page is requested by the browser the templating engine processes the included Python code and renders the page.
The language strings are in a compressed format in a file named sip_messages.mo for each language under the i18n folder. In the page templates the strings that need to be translated are enclosed in a _() function call. For example" _('Manual Mode'). When a language is selected from the options page the strings get replaced from the corresponding sip_messages.mo file. This is handled in i18n.py using the gettext module.
https://docs.python.org/3/library/gettext.html
<p><br></p>