You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "lulrich (via GitHub)" <gi...@apache.org> on 2024/11/05 18:56:50 UTC
Re: [I] [SQL Lab] Cannot perform any query when change language [superset]
lulrich commented on issue #27367:
URL: https://github.com/apache/superset/issues/27367#issuecomment-2457935960
I don't know if they've already solved this problem or not, but I fixed it by changing these translations here
```diff
#: superset/sql_lab.py:480
#, python-format
msgid "Running statement %(statement_num)s out of %(statement_count)s"
msgstr "Executando instrução %(statement_num)s de % (statement_count)s"
#: superset/sql_lab.py:503
#, python-format
msgid "Statement %(statement_num)s out of %(statement_count)s"
msgstr "Instrução %(statement_ num)s de % (statement_count)s"
```
deleting the space between % and (
```diff
#: superset/sql_lab.py:480
#, python-format
msgid "Running statement %(statement_num)s out of %(statement_count)s"
msgstr "Executando instrução %(statement_num)s de %(statement_count)s"
#: superset/sql_lab.py:503
#, python-format
msgid "Statement %(statement_num)s out of %(statement_count)s"
msgstr "Instrução %(statement_num)s de %(statement_count)s"
```
and I've also changed these here
```diff
#: superset/sql_lab.py:503
#, python-format
msgid "Statement %(statement_num)s out of %(statement_count)s"
msgstr "Instrução %(statement_ num)s de %(statement_count)s"
#: superset/jinja_context.py:353
#, python-format
msgid "Unsafe return type for function %(func)s: %(value_type)s"
msgstr "Tipo de retorno inseguro para a função %(func)s: %(value_ type)s"
#: superset/jinja_context.py:380
#, python-format
msgid "Unsafe template value for key %(key)s: %(value_type)s"
msgstr "Valor de modelo não seguro para a chave %(key)s: %(value_ type)s"
#: superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx:198
msgid "page_size.entries"
msgstr "page_ size.entries"
#: superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx:178
msgid "page_size.show"
msgstr "page_ size.show"
```
removing the space after _
```diff
#: superset/sql_lab.py:503
#, python-format
msgid "Statement %(statement_num)s out of %(statement_count)s"
msgstr "Instrução %(statement_ num)s de %(statement_count)s"
#: superset/jinja_context.py:353
#, python-format
msgid "Unsafe return type for function %(func)s: %(value_type)s"
msgstr "Tipo de retorno inseguro para a função %(func)s: %(value_ type)s"
#: superset/jinja_context.py:380
#, python-format
msgid "Unsafe template value for key %(key)s: %(value_type)s"
msgstr "Valor de modelo não seguro para a chave %(key)s: %(value_type)s"
#: superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx:198
msgid "page_size.entries"
msgstr "page_size.entries"
#: superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx:178
msgid "page_size.show"
msgstr "page_size.show"
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org