Add some notes for the translators about source translations
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
parent
51f3883061
commit
8a86ffc993
@ -920,7 +920,7 @@ class Export
|
||||
}
|
||||
|
||||
/**
|
||||
* Export raw query
|
||||
* Export a raw query
|
||||
*
|
||||
* @param string $whatStrucOrData whether to export structure for each table or raw
|
||||
* @param ExportPlugin $export_plugin the selected export plugin
|
||||
@ -947,6 +947,7 @@ class Export
|
||||
$crlf
|
||||
)) {
|
||||
$GLOBALS['message'] = Message::error(
|
||||
/* l10n: A query written by the user is a "raw query" that could be using no tables or databases in particular */
|
||||
__('Exporting a raw query is not supported for this export method.')
|
||||
);
|
||||
return;
|
||||
|
||||
@ -2014,7 +2014,7 @@ class ExportSql extends ExportPlugin
|
||||
} // end of the '_getTableComments()' function
|
||||
|
||||
/**
|
||||
* Outputs raw query
|
||||
* Outputs a raw query
|
||||
*
|
||||
* @param string $err_url the url to go back in case of error
|
||||
* @param string $sql_query the rawquery to output
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
{% elseif export_type == 'database' %}
|
||||
{{ 'Exporting tables from "%s" database'|trans|format(db) }}
|
||||
{% elseif export_type == 'raw' %}
|
||||
{% trans 'Exporting raw query' %}
|
||||
{% trans %}Exporting a raw query{% notes %}A query that the user has written freely{% endtrans %}
|
||||
{% else %}
|
||||
{{ 'Exporting rows from "%s" table'|trans|format(table) }}
|
||||
{% endif %}
|
||||
|
||||
@ -52,7 +52,7 @@
|
||||
|
||||
{% if data.parse.errors|length > 0 %}
|
||||
<div class="alert alert-danger mt-2 mb-2" role="alert">
|
||||
<h4 class="alert-heading">{% trans 'Rules file not well formed, following errors were found:' %}</h4>
|
||||
<h4 class="alert-heading">{% trans %}Rules file is not well formed, the following errors were found:{% notes %}Advisor rules file{% endtrans %}</h4>
|
||||
<ul>
|
||||
{% for error in data.parse.errors %}
|
||||
<li>{{ error }}</li>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<div id="topmenucontainer" class="menucontainer">
|
||||
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-label="
|
||||
{%- trans 'Toggle navigation' %}" aria-controls="navbarNav" aria-expanded="false">
|
||||
{%- trans %}Toggle navigation{% notes %}Show or hide the menu using the hamburger style button{% endtrans %}" aria-controls="navbarNav" aria-expanded="false">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarNav">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user