Browse Source

Merge pull request #7149 from misteregis/develop

Updated the pt-BR, pt-PT and es-ES languages (in order)
文翼 1 year ago
parent
commit
e282717b09

+ 47 - 5
src/locale/bootstrap-table-es-ES.js

@@ -1,6 +1,7 @@
 /**
  * Bootstrap Table Spanish Spain translation
  * Author: Marc Pina<iwalkalone69@gmail.com>
+ * Update: @misteregis <misteregis@gmail.com>
  */
 
 $.fn.bootstrapTable.locales['es-ES'] = $.fn.bootstrapTable.locales['es'] = {
@@ -17,11 +18,13 @@ $.fn.bootstrapTable.locales['es-ES'] = $.fn.bootstrapTable.locales['es'] = {
     return `${pageNumber} resultados por página`
   },
   formatShowingRows (pageFrom, pageTo, totalRows, totalNotFiltered) {
+    const plural = totalRows > 1 ? 's' : ''
+
     if (totalNotFiltered !== undefined && totalNotFiltered > 0 && totalNotFiltered > totalRows) {
-      return `Mostrando desde ${pageFrom} hasta ${pageTo} - En total ${totalRows} resultados (filtrado de ${totalNotFiltered} filas totales)`
+      return `Mostrando desde ${pageFrom} hasta ${pageTo} - En total ${totalRows} resultado${plural} (filtrado de un total de ${totalNotFiltered} fila${plural})`
     }
 
-    return `Mostrando desde ${pageFrom} hasta ${pageTo} - En total ${totalRows} resultados`
+    return `Mostrando desde ${pageFrom} hasta ${pageTo} - En total ${totalRows} resultado${plural}`
   },
   formatSRPaginationPreText () {
     return 'página anterior'
@@ -33,7 +36,7 @@ $.fn.bootstrapTable.locales['es-ES'] = $.fn.bootstrapTable.locales['es'] = {
     return 'siguiente página'
   },
   formatDetailPagination (totalRows) {
-    return `Mostrando ${totalRows} filas`
+    return `Mostrando ${totalRows} fila${totalRows > 1 ? 's' : ''}`
   },
   formatClearSearch () {
     return 'Limpiar búsqueda'
@@ -42,7 +45,7 @@ $.fn.bootstrapTable.locales['es-ES'] = $.fn.bootstrapTable.locales['es'] = {
     return 'Buscar'
   },
   formatNoMatches () {
-    return 'No se encontraron resultados'
+    return 'No se encontraron resultados coincidentes'
   },
   formatPaginationSwitch () {
     return 'Ocultar/Mostrar paginación'
@@ -90,13 +93,52 @@ $.fn.bootstrapTable.locales['es-ES'] = $.fn.bootstrapTable.locales['es'] = {
     return 'Cerrar'
   },
   formatFilterControlSwitch () {
-    return 'Ocultar/Mostrar controles'
+    return 'Ocultar/Exibir controles'
   },
   formatFilterControlSwitchHide () {
     return 'Ocultar controles'
   },
   formatFilterControlSwitchShow () {
     return 'Mostrar controles'
+  },
+  formatAddLevel () {
+    return 'Agregar nivel'
+  },
+  formatCancel () {
+    return 'Cancelar'
+  },
+  formatColumn () {
+    return 'Columna'
+  },
+  formatDeleteLevel () {
+    return 'Eliminar nivel'
+  },
+  formatDuplicateAlertTitle () {
+    return '¡Se encontraron entradas duplicadas!'
+  },
+  formatDuplicateAlertDescription () {
+    return 'Por favor, elimine o modifique las columnas duplicadas'
+  },
+  formatMultipleSort () {
+    return 'Ordenación múltiple'
+  },
+  formatOrder () {
+    return 'Orden'
+  },
+  formatSort () {
+    return 'Ordenar'
+  },
+  formatSortBy () {
+    return 'Ordenar por'
+  },
+  formatThenBy () {
+    return 'a continuación'
+  },
+  formatSortOrders () {
+    return {
+      asc: 'Ascendente',
+      desc: 'Descendente'
+    }
   }
 }
 

+ 51 - 9
src/locale/bootstrap-table-pt-BR.js

@@ -4,14 +4,15 @@
  * Update: João Mello<jmello@hotmail.com.br>
  * Update: Leandro Felizari<lfelizari@gmail.com>
  * Update: Fernando Marcos Souza Silva<fernandomarcosss@gmail.com>
+ * Update: @misteregis <misteregis@gmail.com>
  */
 
-$.fn.bootstrapTable.locales['pt-BR'] = {
+$.fn.bootstrapTable.locales['pt-BR'] = $.fn.bootstrapTable.locales['br'] = {
   formatCopyRows () {
-    return 'Copy Rows'
+    return 'Copiar linhas'
   },
   formatPrint () {
-    return 'Print'
+    return 'Imprimir'
   },
   formatLoadingMessage () {
     return 'Carregando, aguarde'
@@ -20,23 +21,25 @@ $.fn.bootstrapTable.locales['pt-BR'] = {
     return `${pageNumber} registros por página`
   },
   formatShowingRows (pageFrom, pageTo, totalRows, totalNotFiltered) {
+    const plural = totalRows > 1 ? 's' : ''
+
     if (totalNotFiltered !== undefined && totalNotFiltered > 0 && totalNotFiltered > totalRows) {
-      return `Exibindo ${pageFrom} até ${pageTo} de ${totalRows} linhas (filtradas de um total de ${totalNotFiltered} linhas)`
+      return `Exibindo ${pageFrom} até ${pageTo} de ${totalRows} linha${plural} (filtrado de um total de ${totalNotFiltered} linha${plural})`
     }
 
-    return `Exibindo ${pageFrom} até ${pageTo} de ${totalRows} linhas`
+    return `Exibindo ${pageFrom} até ${pageTo} de ${totalRows} linha${plural}`
   },
   formatSRPaginationPreText () {
     return 'página anterior'
   },
   formatSRPaginationPageText (page) {
-    return `Para a página ${page}`
+    return `ir para a página ${page}`
   },
   formatSRPaginationNextText () {
     return 'próxima página'
   },
   formatDetailPagination (totalRows) {
-    return `Mostrando ${totalRows} linhas`
+    return `Mostrando ${totalRows} linha${totalRows > 1 ? 's' : ''}`
   },
   formatClearSearch () {
     return 'Limpar Pesquisa'
@@ -60,7 +63,7 @@ $.fn.bootstrapTable.locales['pt-BR'] = {
     return 'Recarregar'
   },
   formatToggleOn () {
-    return 'Show card view'
+    return 'Mostrar visualização de cartão'
   },
   formatToggleOff () {
     return 'Hide card view'
@@ -84,7 +87,7 @@ $.fn.bootstrapTable.locales['pt-BR'] = {
     return 'Exportar dados'
   },
   formatJumpTo () {
-    return 'IR'
+    return 'Ir'
   },
   formatAdvancedSearch () {
     return 'Pesquisa Avançada'
@@ -100,6 +103,45 @@ $.fn.bootstrapTable.locales['pt-BR'] = {
   },
   formatFilterControlSwitchShow () {
     return 'Exibir controles'
+  },
+  formatAddLevel () {
+    return 'Adicionar nível'
+  },
+  formatCancel () {
+    return 'Cancelar'
+  },
+  formatColumn () {
+    return 'Coluna'
+  },
+  formatDeleteLevel () {
+    return 'Remover nível'
+  },
+  formatDuplicateAlertTitle () {
+    return 'Encontradas entradas duplicadas!'
+  },
+  formatDuplicateAlertDescription () {
+    return 'Por favor, remova ou altere as colunas duplicadas'
+  },
+  formatMultipleSort () {
+    return 'Ordenação múltipla'
+  },
+  formatOrder () {
+    return 'Ordem'
+  },
+  formatSort () {
+    return 'Ordenar'
+  },
+  formatSortBy () {
+    return 'Ordenar por'
+  },
+  formatThenBy () {
+    return 'em seguida'
+  },
+  formatSortOrders () {
+    return {
+      asc: 'Crescente',
+      desc: 'Decrescente'
+    }
   }
 }
 

+ 48 - 6
src/locale/bootstrap-table-pt-PT.js

@@ -1,6 +1,7 @@
 /**
  * Bootstrap Table Portuguese Portugal Translation
  * Author: Burnspirit<burnspirit@gmail.com>
+ * Update: @misteregis <misteregis@gmail.com>
  */
 
 $.fn.bootstrapTable.locales['pt-PT'] = $.fn.bootstrapTable.locales['pt'] = {
@@ -17,11 +18,13 @@ $.fn.bootstrapTable.locales['pt-PT'] = $.fn.bootstrapTable.locales['pt'] = {
     return `${pageNumber} registos por página`
   },
   formatShowingRows (pageFrom, pageTo, totalRows, totalNotFiltered) {
+    const plural = totalRows > 1 ? 's' : ''
+
     if (totalNotFiltered !== undefined && totalNotFiltered > 0 && totalNotFiltered > totalRows) {
-      return `A mostrar ${pageFrom} at&eacute; ${pageTo} de ${totalRows} linhas (filtered from ${totalNotFiltered} total rows)`
+      return `A mostrar ${pageFrom} at&eacute; ${pageTo} de ${totalRows} linha${plural} (filtrado de um total de ${totalNotFiltered} linha${plural})`
     }
 
-    return `A mostrar ${pageFrom} até ${pageTo} de ${totalRows} linhas`
+    return `A mostrar ${pageFrom} até ${pageTo} de ${totalRows} linha${plural}`
   },
   formatSRPaginationPreText () {
     return 'página anterior'
@@ -33,7 +36,7 @@ $.fn.bootstrapTable.locales['pt-PT'] = $.fn.bootstrapTable.locales['pt'] = {
     return 'próxima página'
   },
   formatDetailPagination (totalRows) {
-    return `Mostrando ${totalRows} linhas`
+    return `Mostrando ${totalRows} linha${totalRows > 1 ? 's' : ''}`
   },
   formatClearSearch () {
     return 'Limpar Pesquisa'
@@ -57,10 +60,10 @@ $.fn.bootstrapTable.locales['pt-PT'] = $.fn.bootstrapTable.locales['pt'] = {
     return 'Actualizar'
   },
   formatToggleOn () {
-    return 'Show card view'
+    return 'Mostrar vista em forma de cartão'
   },
   formatToggleOff () {
-    return 'Hide card view'
+    return 'Esconder vista em forma de cartão'
   },
   formatColumns () {
     return 'Colunas'
@@ -90,13 +93,52 @@ $.fn.bootstrapTable.locales['pt-PT'] = $.fn.bootstrapTable.locales['pt'] = {
     return 'Fechar'
   },
   formatFilterControlSwitch () {
-    return 'Esconder/Exibir controlos'
+    return 'Ocultar/Exibir controles'
   },
   formatFilterControlSwitchHide () {
     return 'Esconder controlos'
   },
   formatFilterControlSwitchShow () {
     return 'Exibir controlos'
+  },
+  formatAddLevel () {
+    return 'Adicionar nível'
+  },
+  formatCancel () {
+    return 'Cancelar'
+  },
+  formatColumn () {
+    return 'Coluna'
+  },
+  formatDeleteLevel () {
+    return 'Remover nível'
+  },
+  formatDuplicateAlertTitle () {
+    return 'Foram encontradas entradas duplicadas!'
+  },
+  formatDuplicateAlertDescription () {
+    return 'Por favor, remova ou altere as colunas duplicadas'
+  },
+  formatMultipleSort () {
+    return 'Ordenação múltipla'
+  },
+  formatOrder () {
+    return 'Ordem'
+  },
+  formatSort () {
+    return 'Ordenar'
+  },
+  formatSortBy () {
+    return 'Ordenar por'
+  },
+  formatThenBy () {
+    return 'em seguida'
+  },
+  formatSortOrders () {
+    return {
+      asc: 'Ascendente',
+      desc: 'Descendente'
+    }
   }
 }