forked from friendica/friendica-addons
Only pass string literals to l10n. Only string literals passed directly get picked up by the translation service.
This commit is contained in:
parent
58ec90b915
commit
3deb261c5e
|
@ -194,9 +194,9 @@ function saml_input($key, $label, $description) {
|
||||||
return [
|
return [
|
||||||
'$' . $key => [
|
'$' . $key => [
|
||||||
$key,
|
$key,
|
||||||
DI::l10n()->t($label),
|
$label,
|
||||||
DI::config()->get('saml', $key),
|
DI::config()->get('saml', $key),
|
||||||
DI::l10n()->t($description),
|
$description,
|
||||||
true, // all the fields are required
|
true, // all the fields are required
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
@ -206,48 +206,48 @@ function saml_addon_admin (&$a, &$o) {
|
||||||
$form =
|
$form =
|
||||||
saml_input(
|
saml_input(
|
||||||
'settings_statement',
|
'settings_statement',
|
||||||
'Settings statement',
|
DI::l10n()->t('Settings statement'),
|
||||||
'A statement on the settings page explaining where the user should go to change their e-mail and password. BBCode allowed.'
|
DI::l10n()->t('A statement on the settings page explaining where the user should go to change their e-mail and password. BBCode allowed.')
|
||||||
) +
|
) +
|
||||||
saml_input(
|
saml_input(
|
||||||
'idp_id',
|
'idp_id',
|
||||||
'IdP ID',
|
DI::l10n()->t('IdP ID'),
|
||||||
'Identity provider (IdP) entity URI (e.g., https://example.com/auth/realms/user).'
|
DI::l10n()->t('Identity provider (IdP) entity URI (e.g., https://example.com/auth/realms/user).')
|
||||||
) +
|
) +
|
||||||
saml_input(
|
saml_input(
|
||||||
'client_id',
|
'client_id',
|
||||||
'Client ID',
|
DI::l10n()->t('Client ID'),
|
||||||
'Identifier assigned to client by the identity provider (IdP).'
|
DI::l10n()->t('Identifier assigned to client by the identity provider (IdP).')
|
||||||
) +
|
) +
|
||||||
saml_input(
|
saml_input(
|
||||||
'sso_url',
|
'sso_url',
|
||||||
'IdP SSO URL',
|
DI::l10n()->t('IdP SSO URL'),
|
||||||
'The URL for your identity provider\'s SSO endpoint.'
|
DI::l10n()->t('The URL for your identity provider\'s SSO endpoint.')
|
||||||
) +
|
) +
|
||||||
saml_input(
|
saml_input(
|
||||||
'slo_request_url',
|
'slo_request_url',
|
||||||
'IdP SLO request URL',
|
DI::l10n()->t('IdP SLO request URL'),
|
||||||
'The URL for your identity provider\'s SLO request endpoint.'
|
DI::l10n()->t('The URL for your identity provider\'s SLO request endpoint.')
|
||||||
) +
|
) +
|
||||||
saml_input(
|
saml_input(
|
||||||
'slo_response_url',
|
'slo_response_url',
|
||||||
'IdP SLO response URL',
|
DI::l10n()->t('IdP SLO response URL'),
|
||||||
'The URL for your identity provider\'s SLO response endpoint.'
|
DI::l10n()->t('The URL for your identity provider\'s SLO response endpoint.')
|
||||||
) +
|
) +
|
||||||
saml_input(
|
saml_input(
|
||||||
'sp_key',
|
'sp_key',
|
||||||
'SP private key',
|
DI::l10n()->t('SP private key'),
|
||||||
'The private key the addon should use to authenticate.'
|
DI::l10n()->t('The private key the addon should use to authenticate.')
|
||||||
) +
|
) +
|
||||||
saml_input(
|
saml_input(
|
||||||
'sp_cert',
|
'sp_cert',
|
||||||
'SP certificate',
|
DI::l10n()->t('SP certificate'),
|
||||||
'The certficate for the addon\'s private key.'
|
DI::l10n()->t('The certficate for the addon\'s private key.')
|
||||||
) +
|
) +
|
||||||
saml_input(
|
saml_input(
|
||||||
'idp_cert',
|
'idp_cert',
|
||||||
'IdP certificate',
|
DI::l10n()->t('IdP certificate'),
|
||||||
'The x509 certficate for your identity provider.'
|
DI::l10n()->t('The x509 certficate for your identity provider.')
|
||||||
) +
|
) +
|
||||||
[
|
[
|
||||||
'$submit' => DI::l10n()->t('Save Settings'),
|
'$submit' => DI::l10n()->t('Save Settings'),
|
||||||
|
|
Loading…
Reference in a new issue