Improved translations of AI related stuff in settings

This commit is contained in:
Jan Böhmer 2026-05-02 23:49:07 +02:00
parent 889aa08b4e
commit e437bb0b7b
2 changed files with 26 additions and 0 deletions

View file

@ -31,6 +31,7 @@ use Jbtronics\SettingsBundle\Settings\Settings;
use Jbtronics\SettingsBundle\Settings\SettingsParameter;
use Jbtronics\SettingsBundle\Settings\SettingsTrait;
use Symfony\Component\Form\Extension\Core\Type\UrlType;
use Symfony\Component\Translation\StaticMessage;
use Symfony\Component\Translation\TranslatableMessage as TM;
#[Settings(name: 'ai_lmstudio', label: new TM("settings.ai.lmstudio"))]
@ -41,6 +42,7 @@ class LMStudioSettings implements AIPlatformSettingsInterface
#[SettingsParameter(label: new TM("settings.ai.lmstudio.hosturl"),
formType: UrlType::class,
formOptions: ["attr" => ["placeholder" => new StaticMessage("http://localhost:1234")]],
envVar: "AI_LMSTUDIO_HOSTURL", envVarMode: EnvVarMode::OVERWRITE)]
public ?string $hostURL = null;

View file

@ -13187,5 +13187,29 @@ Buerklin-API Authentication server:
<target>Do not delegate to specialized info providers</target>
</segment>
</unit>
<unit id="pruvlK8" name="settings.ips.ai_extractor">
<segment>
<source>settings.ips.ai_extractor</source>
<target>AI Web Extractor</target>
</segment>
</unit>
<unit id="wILs7pS" name="settings.ips.ai_extractor.description">
<segment>
<source>settings.ips.ai_extractor.description</source>
<target>This info provider uses an large language model (LLM) to extract detailed part information from arbitary shop URLs.</target>
</segment>
</unit>
<unit id="1ShZ.1i" name="settings.ai.openrouter.help">
<segment>
<source>settings.ai.openrouter.help</source>
<target>Access to many AI models via openrouter.ai</target>
</segment>
</unit>
<unit id="kRcgIf0" name="settings.ai.lmstudio.hosturl">
<segment>
<source>settings.ai.lmstudio.hosturl</source>
<target>Host URL</target>
</segment>
</unit>
</file>
</xliff>