Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions src/Language/pt-BR/ShieldOAuthLang.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php

declare(strict_types=1);

/**
* This file is part of Shield OAuth.
*
* (c) Datamweb <[email protected]>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/

// ShieldOAuthLang language file
return [
// Errors List
'unknown' => 'Erro desconhecido!',
'Callback' => [
'oauth_class_not_set' => 'Ocorreu um erro, parece que a classe OAuth não está configurada.',
'anti_forgery' => 'Sua solicitação foi detectada como falsa. Pedimos desculpas!',
'account_not_found' => 'Não há nenhuma conta registrada com o e-mail "{0}".',
'access_denied' => 'Autenticação cancelada! Você recusou as permissões de {0}.',
],
Comment on lines +16 to +23
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codebase verification

Missing error messages in pt-BR translation file

The comparison reveals that the pt-BR translation file is missing three error messages that are present in other language files:

  • Github
  • github
  • not_allow
🔗 Analysis chain

Verify completeness of error messages against other language files.

The error messages are well-translated and maintain a professional tone. Let's verify that all error messages from other language files are covered.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Compare error messages with other language files
# Expected: All language files should have the same set of error keys

# Find all language files
echo "Comparing error message keys across language files:"
for lang_file in $(fd ShieldOAuthLang.php src/Language); do
  echo "\nKeys in $lang_file:"
  # Extract keys from the Errors List and Callback sections
  awk '/Errors List/,/\],/' "$lang_file" | grep "=>" | cut -d"'" -f2
done

Length of output: 1970


// ShieldOAuthButton in views
'other' => 'Outro',
'login_by' => 'Entrar com: ',
'register_by' => 'Registrar com: ',

// Errors List For all OAuth
'Github' => [
'github' => 'GitHub',
'not_allow' => 'Agora você não pode entrar ou se registrar com o GitHub!',
],
'Google' => [
'google' => 'Google',
'not_allow' => 'Agora você não pode entrar ou se registrar com o Google!',
],
// 'Yahoo' => [
// 'yahoo' => 'Yahoo',
// 'not_allow' => 'Agora você não pode entrar ou se registrar com o Yahoo!',

// ],
];
Loading