Skip to content

Commit

Permalink
Fix PT-BR translation (#247)
Browse files Browse the repository at this point in the history
* Fix PT-BR translation

The column "por categoria" was being plot twice on dashboard because the "p" on 'category' key was in lowercase. Also fixes some typos on PT-BR translation.

* Added missing PT-BR translations

* Case formatting

* Case formatting

* Fix text

* Fix translation

* Fix translation

* Update inventory_pt_BR.php

* Update PT-BR translation

* Remove PT-BR .po/.mo files
  • Loading branch information
eduardomozart authored Sep 26, 2024
1 parent b8d7d89 commit 66c8318
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ dist/
vendor/
.gh_token
*.min.*

.DS_Store
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
![Dashboard](https://raw.githubusercontent.com/PluginsGLPI/mreporting/main/screenshots/dashboard.png)

* Download : https://github.com/PluginsGLPI/mreporting/releases
* Translations on Transifex service : https://explore.transifex.com/teclib/glpi-project-plugin-mreporting/
* WIKI (Develop new reports) : https://github.com/PluginsGLPI/mreporting/wiki

## Contributing
Expand Down
16 changes: 8 additions & 8 deletions locales/reports_locales/helpdesk_pt_BR.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,25 @@
global $LANG;

$LANG['plugin_mreporting']['Helpdesk']['title'] = "Helpdesk";
$LANG['plugin_mreporting']['Helpdesk']['reportHbarTicketNumberByEntity']['title'] = "Nº de chamados por Entidade";
$LANG['plugin_mreporting']['Helpdesk']['reportHbarTicketNumberByEntity']['title'] = "Nº de chamados por entidade";
$LANG['plugin_mreporting']['Helpdesk']['reportHbarTicketNumberByEntity']['desc'] = "Barras";
$LANG['plugin_mreporting']['Helpdesk']['reportHbarTicketNumberByEntity']['category'] = "Por Entidade";
$LANG['plugin_mreporting']['Helpdesk']['reportHbarTicketNumberByEntity']['category'] = "Por entidade";

$LANG['plugin_mreporting']['Helpdesk']['reportPieTicketNumberByEntity']['title'] = "Nº de chamados por Entidade";
$LANG['plugin_mreporting']['Helpdesk']['reportPieTicketNumberByEntity']['title'] = "Nº de chamados por entidade";
$LANG['plugin_mreporting']['Helpdesk']['reportPieTicketNumberByEntity']['desc'] = "Pizza";
$LANG['plugin_mreporting']['Helpdesk']['reportPieTicketNumberByEntity']['category'] = "Por Entidade";
$LANG['plugin_mreporting']['Helpdesk']['reportPieTicketNumberByEntity']['category'] = "Por entidade";

$LANG['plugin_mreporting']['Helpdesk']['reportHgbarTicketNumberByCatAndEntity']['title'] = "Nº de chamados por categoria e entidade";
$LANG['plugin_mreporting']['Helpdesk']['reportHgbarTicketNumberByCatAndEntity']['desc'] = "Barras agrupadas";
$LANG['plugin_mreporting']['Helpdesk']['reportHgbarTicketNumberByCatAndEntity']['category'] = "Por Entidade";
$LANG['plugin_mreporting']['Helpdesk']['reportHgbarTicketNumberByCatAndEntity']['category'] = "Por entidade";

$LANG['plugin_mreporting']['Helpdesk']['reportPieTopTenAuthor']['title'] = "Top 10 requerentes";
$LANG['plugin_mreporting']['Helpdesk']['reportPieTopTenAuthor']['desc'] = "Pizza";
$LANG['plugin_mreporting']['Helpdesk']['reportPieTopTenAuthor']['category'] = "Por requerente";

$LANG['plugin_mreporting']['Helpdesk']['reportHgbarOpenTicketNumberByCategoryAndByType']['title'] = "Nº de chamados abertos por categoria e tipo";
$LANG['plugin_mreporting']['Helpdesk']['reportHgbarOpenTicketNumberByCategoryAndByType']['desc'] = "Barras agrupadas";
$LANG['plugin_mreporting']['Helpdesk']['reportHgbarOpenTicketNumberByCategoryAndByType']['category'] = "por categoria";
$LANG['plugin_mreporting']['Helpdesk']['reportHgbarOpenTicketNumberByCategoryAndByType']['category'] = "Por categoria";

$LANG['plugin_mreporting']['Helpdesk']['reportHgbarCloseTicketNumberByCategoryAndByType']['title'] = "Nº de chamados fechados por categoria e tipo";
$LANG['plugin_mreporting']['Helpdesk']['reportHgbarCloseTicketNumberByCategoryAndByType']['desc'] = "Barras agrupadas";
Expand All @@ -71,7 +71,7 @@
$LANG['plugin_mreporting']['Helpdesk']['reportPieTicketOpenedbyStatus']['desc'] = "Pizza";
$LANG['plugin_mreporting']['Helpdesk']['reportPieTicketOpenedbyStatus']['category'] = "Por chamado";

$LANG['plugin_mreporting']['Helpdesk']['reportAreaNbTicket']['title'] = "Nº de evolução de chamados ao longo do período";
$LANG['plugin_mreporting']['Helpdesk']['reportAreaNbTicket']['title'] = "Nº de evolução dos chamados ao longo do período";
$LANG['plugin_mreporting']['Helpdesk']['reportAreaNbTicket']['desc'] = "Analítico";
$LANG['plugin_mreporting']['Helpdesk']['reportAreaNbTicket']['category'] = "Por chamado";

Expand All @@ -91,7 +91,7 @@
$LANG['plugin_mreporting']['Helpdesk']['reportVstackbarNbTicket']['desc'] = "Barras empilhadas";
$LANG['plugin_mreporting']['Helpdesk']['reportVstackbarNbTicket']['category'] = "Por chamado";

$LANG['plugin_mreporting']['Helpdesk']['reportSunburstTicketByCategories']['title'] = "Distribuição de chamados por categoria e sub-categorias";
$LANG['plugin_mreporting']['Helpdesk']['reportSunburstTicketByCategories']['title'] = "Distribuição de chamados por categoria e subcategorias";
$LANG['plugin_mreporting']['Helpdesk']['reportSunburstTicketByCategories']['desc'] = "Donut";
$LANG['plugin_mreporting']['Helpdesk']['reportSunburstTicketByCategories']['category'] = "Por categoria";

Expand Down
23 changes: 17 additions & 6 deletions locales/reports_locales/helpdeskplus_pt_BR.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,27 +34,34 @@

$LANG['plugin_mreporting']['Helpdeskplus']['reportGlineBacklogs']['title'] = 'Histórico';
$LANG['plugin_mreporting']['Helpdeskplus']['reportGlineBacklogs']['desc'] = '';
$LANG['plugin_mreporting']['Helpdeskplus']['reportGlineBacklogs']['category'] = 'Geral';

$LANG['plugin_mreporting']['Helpdeskplus']['reportVstackbarLifetime']['title'] = 'Chamados por período';
$LANG['plugin_mreporting']['Helpdeskplus']['reportVstackbarLifetime']['title'] = 'Chamados por Período';
$LANG['plugin_mreporting']['Helpdeskplus']['reportVstackbarLifetime']['desc'] = '';
$LANG['plugin_mreporting']['Helpdeskplus']['reportVstackbarLifetime']['category'] = 'Geral';

$LANG['plugin_mreporting']['Helpdeskplus']['reportVstackbarTicketsgroups']['title'] = 'Chamados por Grupo';
$LANG['plugin_mreporting']['Helpdeskplus']['reportVstackbarTicketsgroups']['desc'] = '';
$LANG['plugin_mreporting']['Helpdeskplus']['reportVstackbarTicketsgroups']['category'] = 'Geral';

$LANG['plugin_mreporting']['Helpdeskplus']['reportVstackbarTicketstech']['title'] = 'Chamados por Técnico';
$LANG['plugin_mreporting']['Helpdeskplus']['reportVstackbarTicketstech']['desc'] = '';
$LANG['plugin_mreporting']['Helpdeskplus']['reportVstackbarTicketstech']['category'] = 'Geral';

$LANG['plugin_mreporting']['Helpdeskplus']['reportVstackbarWorkflow']['title'] = 'Orientação dos arquivos';
$LANG['plugin_mreporting']['Helpdeskplus']['reportVstackbarWorkflow']['desc'] = 'Nº de chamados para cada grupo chegada com base em um grupo de partida.<br />
- Selecione um grupo requerente para exibir o Nº de chamados atribuídos aos grupos.<br />
- Selecione um grupo para exibir o número de chamados por grupos.<br />
<b>Você não pode selecionar ambos os critérios!</b>';
<b>Você não pode selecionar ambos os critérios!</b>';
$LANG['plugin_mreporting']['Helpdeskplus']['reportVstackbarWorkflow']['category'] = 'Geral';

$LANG['plugin_mreporting']['Helpdeskplus']['reportHbarTopcategory']['title'] = 'TOP categorias';
$LANG['plugin_mreporting']['Helpdeskplus']['reportHbarTopcategory']['title'] = 'Top Categorias';
$LANG['plugin_mreporting']['Helpdeskplus']['reportHbarTopcategory']['desc'] = '';
$LANG['plugin_mreporting']['Helpdeskplus']['reportHbarTopcategory']['category'] = 'Geral';

$LANG['plugin_mreporting']['Helpdeskplus']['reportHbarTopapplicant']['title'] = 'TOP Grupo requerente';
$LANG['plugin_mreporting']['Helpdeskplus']['reportHbarTopapplicant']['title'] = 'Top Grupos requerentes';
$LANG['plugin_mreporting']['Helpdeskplus']['reportHbarTopapplicant']['desc'] = '';
$LANG['plugin_mreporting']['Helpdeskplus']['reportHbarTopapplicant']['category'] = 'Geral';

$LANG['plugin_mreporting']['Helpdeskplus']['backlogs'] = 'Backlogs';
$LANG['plugin_mreporting']['Helpdeskplus']['opened'] = 'Aberto';
Expand All @@ -64,9 +71,13 @@
$LANG['plugin_mreporting']['Helpdeskplus']['reportVstackbarGroupChange']['title'] = "Nº de mudanças por grupo";
$LANG['plugin_mreporting']['Helpdeskplus']['reportVstackbarGroupChange']['desc'] = "";

$LANG['plugin_mreporting']['Helpdeskplus']['reportLineActiontimeVsSolvedelay']['title'] = 'Comparação dos tempos de ação de tarefas e de atrasos de resolução';
$LANG['plugin_mreporting']['Helpdeskplus']['reportLineActiontimeVsSolvedelay']['desc'] = '';
$LANG['plugin_mreporting']['Helpdeskplus']['reportLineActiontimeVsSolvedelay']['category'] = 'Geral';

$LANG['plugin_mreporting']['selector']["slas"] = "SLAs";

$LANG['plugin_mreporting']['selector']["categories"] = "Categories";
$LANG['plugin_mreporting']['selector']["categories"] = "Categorias";

$LANG['plugin_mreporting']['Helpdeskplus']['slaobserved'] = "SLA observada";
$LANG['plugin_mreporting']['Helpdeskplus']['slanotobserved'] = "SLA não observada";
Expand All @@ -82,7 +93,7 @@
$LANG['plugin_mreporting']['Helpdeskplus']['reportGlineNbTicketBySla']['desc'] = "";
$LANG['plugin_mreporting']['Helpdeskplus']['reportGlineNbTicketBySla']['category'] = "Por SLA";

$LANG['plugin_mreporting']['Helpdeskplus']['reportHgbarRespectedSlasByTopCategory']['title'] = "Chamados por SLA ordenados por categorias";
$LANG['plugin_mreporting']['Helpdeskplus']['reportHgbarRespectedSlasByTopCategory']['title'] = "Chamados por SLA classificados por categorias";
$LANG['plugin_mreporting']['Helpdeskplus']['reportHgbarRespectedSlasByTopCategory']['desc'] = "";
$LANG['plugin_mreporting']['Helpdeskplus']['reportHgbarRespectedSlasByTopCategory']['category'] = "Por SLA";

Expand Down
20 changes: 12 additions & 8 deletions locales/reports_locales/inventory_pt_BR.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@

$LANG['plugin_mreporting']['Inventory']['title'] = "Inventário";

$LANG['plugin_mreporting']['Inventory']['reportHbarComputersByOS']['title'] = "Computadores por Sistema Operacional";
$LANG['plugin_mreporting']['Inventory']['reportHbarComputersByOS']['title'] = "Computadores por sistema operacional";
$LANG['plugin_mreporting']['Inventory']['reportHbarComputersByOS']['desc'] = "Barras";
$LANG['plugin_mreporting']['Inventory']['reportHbarComputersByOS']['category'] = "Sistema Operacional";

$LANG['plugin_mreporting']['Inventory']['reportPieComputersByOS']['title'] = "Computadores por Sistema Operacional";
$LANG['plugin_mreporting']['Inventory']['reportPieComputersByOS']['title'] = "Computadores por sistema operacional";
$LANG['plugin_mreporting']['Inventory']['reportPieComputersByOS']['desc'] = "Pizza";
$LANG['plugin_mreporting']['Inventory']['reportPieComputersByOS']['category'] = "Sistema Operacional";

Expand Down Expand Up @@ -64,31 +64,31 @@
$LANG['plugin_mreporting']['Inventory']['reportPieComputersByType']['desc'] = "Pizza";
$LANG['plugin_mreporting']['Inventory']['reportPieComputersByType']['category'] = "Tipo";

$LANG['plugin_mreporting']['Inventory']['reportHbarWindows']['title'] = "Distribuições Windows";
$LANG['plugin_mreporting']['Inventory']['reportHbarWindows']['title'] = "Versões do Windows";
$LANG['plugin_mreporting']['Inventory']['reportHbarWindows']['desc'] = "Barras";
$LANG['plugin_mreporting']['Inventory']['reportHbarWindows']['category'] = "Sistema Operacional";

$LANG['plugin_mreporting']['Inventory']['reportHbarLinux']['title'] = "Distribuições Linux (detalhes)";
$LANG['plugin_mreporting']['Inventory']['reportHbarLinux']['desc'] = "Barras";
$LANG['plugin_mreporting']['Inventory']['reportHbarLinux']['category'] = "Sistema Operacional";

$LANG['plugin_mreporting']['Inventory']['reportHbarLinuxDistro']['title'] = "Distribuições Linux";
$LANG['plugin_mreporting']['Inventory']['reportHbarLinuxDistro']['title'] = "Distribuições Linux (geral)";
$LANG['plugin_mreporting']['Inventory']['reportHbarLinuxDistro']['desc'] = "Barras";
$LANG['plugin_mreporting']['Inventory']['reportHbarLinuxDistro']['category'] = "Sistema Operacional";

$LANG['plugin_mreporting']['Inventory']['reportHbarMac']['title'] = "Versões Mac OS X (detalhes)";
$LANG['plugin_mreporting']['Inventory']['reportHbarMac']['title'] = "Versões do macOS (detalhes)";
$LANG['plugin_mreporting']['Inventory']['reportHbarMac']['desc'] = "Barras";
$LANG['plugin_mreporting']['Inventory']['reportHbarMac']['category'] = "Sistema Operacional";

$LANG['plugin_mreporting']['Inventory']['reportHbarMacFamily']['title'] = "Versões MAC OS X (geral)";
$LANG['plugin_mreporting']['Inventory']['reportHbarMacFamily']['title'] = "Versões do macOS (geral)";
$LANG['plugin_mreporting']['Inventory']['reportHbarMacFamily']['desc'] = "Barras";
$LANG['plugin_mreporting']['Inventory']['reportHbarMacFamily']['category'] = "Sistema Operacional";

$LANG['plugin_mreporting']['Inventory']['reportHbarComputersByAge']['title'] = "Computador por período";
$LANG['plugin_mreporting']['Inventory']['reportHbarComputersByAge']['title'] = "Computadores por período";
$LANG['plugin_mreporting']['Inventory']['reportHbarComputersByAge']['desc'] = "Barras";
$LANG['plugin_mreporting']['Inventory']['reportHbarComputersByAge']['category'] = "Inventário";

$LANG['plugin_mreporting']['Inventory']['reportPieComputersByAge']['title'] = "Computador por período";
$LANG['plugin_mreporting']['Inventory']['reportPieComputersByAge']['title'] = "Computadores por período";
$LANG['plugin_mreporting']['Inventory']['reportPieComputersByAge']['desc'] = "Pizza";
$LANG['plugin_mreporting']['Inventory']['reportPieComputersByAge']['category'] = "Inventário";

Expand All @@ -103,3 +103,7 @@
$LANG['plugin_mreporting']['Inventory']['reportHbarMonitors']['title'] = "Computadores por resolução";
$LANG['plugin_mreporting']['Inventory']['reportHbarMonitors']['desc'] = "Barras";
$LANG['plugin_mreporting']['Inventory']['reportHbarMonitors']['category'] = "Inventário";

$LANG['plugin_mreporting']['Inventory']['reportHbarComputersByEntity']['title'] = "Computadores por entidade";
$LANG['plugin_mreporting']['Inventory']['reportHbarComputersByEntity']['desc'] = "Barras";
$LANG['plugin_mreporting']['Inventory']['reportHbarComputersByEntity']['category'] = "Entidade";
49 changes: 49 additions & 0 deletions locales/reports_locales/tag_pt_BR.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?php

/**
* -------------------------------------------------------------------------
* Mreporting plugin for GLPI
* -------------------------------------------------------------------------
*
* LICENSE
*
* This file is part of Mreporting.
*
* Mreporting is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* Mreporting is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Mreporting. If not, see <http://www.gnu.org/licenses/>.
* -------------------------------------------------------------------------
* @copyright Copyright (C) 2003-2023 by Mreporting plugin team.
* @license GPLv2 https://www.gnu.org/licenses/gpl-2.0.html
* @link https://github.com/pluginsGLPI/mreporting
* -------------------------------------------------------------------------
*/

global $LANG;

$LANG['plugin_mreporting']['Tag'] = [

'title' => "Plugin TAG",

'reportPieTag' => [
'title' => "Número de TAGs usadas",
'desc' => "Pizza",
'category' => "Para todos os objetos do GLPI",
],

'reportPieTagOnTicket' => [
'title' => "Número de TAGs usadas",
'desc' => "Pizza",
'category' => "Para chamados",
]

];

0 comments on commit 66c8318

Please sign in to comment.