mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-09 15:34:15 +02:00
[ui][settings] supported types working
This commit is contained in:
@@ -894,14 +894,15 @@ class WebApplicationManager(SoftwareManager):
|
||||
def get_settings(self) -> ViewComponent:
|
||||
config = read_config()
|
||||
|
||||
input_electron = TextInputComponent(label="Custom Electron version",
|
||||
input_electron = TextInputComponent(label=self.i18n['web.settings.electron.version.label'],
|
||||
value=config['environment']['electron']['version'],
|
||||
tooltip="Electron version to render the applications",
|
||||
tooltip=self.i18n['web.settings.electron.version.tooltip'],
|
||||
placeholder='{}: 7.1.0'.format(self.i18n['example.short']),
|
||||
id_='electron_version')
|
||||
|
||||
native_opts = [
|
||||
InputOption(label="Environment", value=False, tooltip="If a nativefier version from the isolated environment should be used to install the applications"),
|
||||
InputOption(label="System", value=True, tooltip="If a nativefier installed on your system should be used to install the applications")
|
||||
InputOption(label=self.i18n['web.settings.nativefier.env'].capitalize(), value=False, tooltip=self.i18n['web.settings.nativefier.env.tooltip'].format(app=self.context.app_name)),
|
||||
InputOption(label=self.i18n['web.settings.nativefier.system'].capitalize(), value=True, tooltip=self.i18n['web.settings.nativefier.system.tooltip'])
|
||||
]
|
||||
|
||||
select_nativefier = SingleSelectComponent(label="Nativefier",
|
||||
@@ -910,7 +911,7 @@ class WebApplicationManager(SoftwareManager):
|
||||
type_=SelectViewType.COMBO,
|
||||
id_='nativefier')
|
||||
|
||||
form_env = FormComponent(label="Environment", components=[input_electron, select_nativefier])
|
||||
form_env = FormComponent(label=self.i18n['web.settings.nativefier.env'].capitalize(), components=[input_electron, select_nativefier])
|
||||
|
||||
return PanelComponent([form_env])
|
||||
|
||||
|
||||
@@ -58,4 +58,10 @@ web.info.06_desktop_entry=shortcut
|
||||
web.info.07_exec_file=executable
|
||||
web.info.08_icon_path=icon
|
||||
web.info.09_size=size
|
||||
web.info.10_config_dir=configuration dir
|
||||
web.info.10_config_dir=configuration dir
|
||||
web.settings.electron.version.label=Electron version
|
||||
web.settings.electron.version.tooltip=An alternative Electron version to render the new installed apps
|
||||
web.settings.nativefier.env=environment
|
||||
web.settings.nativefier.system=system
|
||||
web.settings.nativefier.env.tooltip=The Nativefier version installed on the isolated {app} environment will be used to install applications
|
||||
web.settings.nativefier.system.tooltip=The Nativefier version installed on your system will be used to install applications
|
||||
@@ -58,4 +58,10 @@ web.info.06_desktop_entry=atajo
|
||||
web.info.07_exec_file=ejecutable
|
||||
web.info.08_icon_path=icono
|
||||
web.info.09_size=tamaño
|
||||
web.info.10_config_dir=directorio de configuración
|
||||
web.info.10_config_dir=directorio de configuración
|
||||
web.settings.electron.version.label=Versión del Electron
|
||||
web.settings.electron.version.tooltip=Una versión alternativa del Electron para renderizar las nuevas aplicaciones instaladas
|
||||
web.settings.nativefier.env=ambiente
|
||||
web.settings.nativefier.system=sistema
|
||||
web.settings.nativefier.env.tooltip=Se utilizará la versión de Nativefier instalada en el ambiente aislado de {app} para instalar aplicaciones
|
||||
web.settings.nativefier.system.tooltip=Se utilizará la versión de Nativefier instalada en su sistema para instalar aplicaciones
|
||||
@@ -58,4 +58,10 @@ web.info.06_desktop_entry=atalho
|
||||
web.info.07_exec_file=executável
|
||||
web.info.08_icon_path=ícone
|
||||
web.info.09_size=tamanho
|
||||
web.info.10_config_dir=diretório de configuração
|
||||
web.info.10_config_dir=diretório de configuração
|
||||
web.settings.electron.version.label=Versão do Electron
|
||||
web.settings.electron.version.tooltip=Uma versão alternativa do Electron para renderizar os novos aplicativos instalados
|
||||
web.settings.nativefier.env=ambiente
|
||||
web.settings.nativefier.system=sistema
|
||||
web.settings.nativefier.env.tooltip=A versão do Nativefier instalada no ambiente isolado do {app} será utilizada para instalar aplicativos
|
||||
web.settings.nativefier.system.tooltip=A versão do Nativefier instalada no seu sistema será utilizada para instalar aplicativos
|
||||
Reference in New Issue
Block a user