Merge pull request #77 from pi-hole/fix/settings-strings

WEB-CR-6 Fix missing translation string errors in settings
This commit is contained in:
Mark Drobnak
2018-08-18 15:21:12 -04:00
committed by GitHub
5 changed files with 21 additions and 16 deletions
+1 -1
View File
@@ -11,7 +11,7 @@
"Add": "Add",
"Time": "Time",
"Type": "Type",
"Network": "Network\n",
"Network": "Network",
"Action": "Action",
"Enabled": "Enabled",
"Disabled": "Disabled",
+4 -1
View File
@@ -7,5 +7,8 @@
"Wildcard": "Wildcard",
"Login": "Login",
"Logout": "Logout",
"Regex": "Regex"
"Regex": "Regex",
"Settings": "Settings",
"Networking": "Networking",
"Versions": "Versions"
}
+1 -1
View File
@@ -88,7 +88,7 @@ class DNSInfo extends Component {
<div className="col-lg-4 col-sm-4 col-xs-4">
<pre>
<br/>
{t("Interface listening behaviour")}: {this.state.options.listening_type}<br/>
{t("Interface listening behavior")}: {this.state.options.listening_type}<br/>
{t("Forward FQDNs only")}: {this.state.options.fqdn_required.toString()}<br/>
{t("Only forward public reverse lookups")}:{this.state.options.bogus_priv.toString()}<br/>
{t("Use DNSSEC")}: {this.state.options.dnssec.toString()}
+14 -12
View File
@@ -41,18 +41,20 @@ class VersionCard extends Component {
<Collapse isOpen={!this.state.collapsed}>
<table className="table table-borderless table-sm table-condensed"
style={{ marginTop: "1rem", marginBottom: "0" }}>
<tr>
<td>{t("Branch")}</td>
<td>{this.props.branch}</td>
</tr>
<tr>
<td>{t("Tag")}</td>
<td>{this.props.tag}</td>
</tr>
<tr>
<td>{t("Hash")}</td>
<td>{this.props.hash}</td>
</tr>
<tbody>
<tr>
<td>{t("Branch")}</td>
<td>{this.props.branch}</td>
</tr>
<tr>
<td>{t("Tag")}</td>
<td>{this.props.tag}</td>
</tr>
<tr>
<td>{t("Hash")}</td>
<td>{this.props.hash}</td>
</tr>
</tbody>
</table>
</Collapse>
</div>
+1 -1
View File
@@ -13,7 +13,7 @@ export function setupI18n() {
fallbackLng: "en",
ns: ['common'],
defaultNS: "common",
fallbackNS: ['dashboard', 'footer', 'lists', 'location', 'login', 'query-log'],
fallbackNS: ["dashboard", "footer", "lists", "location", "login", "query-log", "settings"],
nsSeparator: false,
keySeparator: false,
debug: config.developmentMode,