i18n: Converte strings do módulo para en com tradução pt-br

- Altera langcode de pt-br para en em todos os field.field YAMLs
- Traduz labels e descriptions dos campos para inglês
- Converte strings de info.yml, permissions.yml, links.menu.yml e
  routing.yml para inglês
- Converte todas as strings t() e @Translation em PHP para inglês
- Adiciona traduções de config em config/translations/pt-br/ para os
  7 campos de usuário
- Adiciona arquivo translations/site_users.pt-br.po com todas as
  strings de interface traduzidas para pt-br

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-23 13:40:39 -03:00
parent d284712b72
commit cae30b472a
23 changed files with 170 additions and 52 deletions

View File

@@ -33,14 +33,14 @@ class SiteUsersSettingsForm extends ConfigFormBase {
// Fieldset para configurações de fotos.
$form['photos'] = [
'#type' => 'fieldset',
'#title' => $this->t('Configurações de Fotos'),
'#title' => $this->t('Photo settings'),
'#collapsible' => FALSE,
];
$form['photos']['photos_max_count'] = [
'#type' => 'number',
'#title' => $this->t('Quantidade de fotos permitidas'),
'#description' => $this->t('Número máximo de fotos que um usuário pode adicionar ao perfil.'),
'#title' => $this->t('Number of photos allowed'),
'#description' => $this->t('Maximum number of photos a user can add to the profile.'),
'#default_value' => $config->get('photos.max_count') ?? 5,
'#min' => 1,
'#max' => 100,
@@ -49,8 +49,8 @@ class SiteUsersSettingsForm extends ConfigFormBase {
$form['photos']['photos_ldap_attribute'] = [
'#type' => 'textfield',
'#title' => $this->t('Atributo LDAP da foto'),
'#description' => $this->t('Se LDAP estiver habilitado, informe o nome do atributo que contém a foto do usuário (ex: thumbnailPhoto, jpegPhoto).'),
'#title' => $this->t('LDAP photo attribute'),
'#description' => $this->t('If LDAP is enabled, enter the name of the attribute that contains the user photo (e.g., thumbnailPhoto, jpegPhoto).'),
'#default_value' => $config->get('photos.ldap_attribute') ?? 'jpegPhoto',
'#maxlength' => 255,
];

View File

@@ -17,7 +17,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
*
* @Block(
* id = "site_users_info_block",
* admin_label = @Translation("Informações do Usuário"),
* admin_label = @Translation("User Information"),
* category = @Translation("Site Users")
* )
*/