diff options
author | Robby- <robby@chat.be> | 2013-09-22 23:27:14 +0200 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-09-27 19:11:02 -0400 |
commit | bf67b9ee5caee3224a44f3999a3f7f78fbce0a25 (patch) | |
tree | a8860f1eff4a110b6837a6068b0d684cec09ff53 /modules/commands/os_dns.cpp | |
parent | 829c169063577eefb50f2b6961f91f8bf29ae29d (diff) |
Make column titles in listings translatable.
Make some more strings translatable, and remove some that don't need translation at all.
Make expirytimes and units translatable.
Make predefined messages in listings also translatable.
Make the remaining command descriptions translatable.
Make some ns/cs info strings equal to dedupe in translation file. Add missing no-autoop setting to cs info output. Make some strings translatable.
Diffstat (limited to 'modules/commands/os_dns.cpp')
-rw-r--r-- | modules/commands/os_dns.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/commands/os_dns.cpp b/modules/commands/os_dns.cpp index 4d31aeb5a..7c13a1dbb 100644 --- a/modules/commands/os_dns.cpp +++ b/modules/commands/os_dns.cpp @@ -214,7 +214,7 @@ class CommandOSDNS : public Command } ListFormatter lf(source.GetAccount()); - lf.AddColumn("Server").AddColumn("IP").AddColumn("Limit").AddColumn("State"); + lf.AddColumn(_("Server")).AddColumn(_("IP")).AddColumn(_("Limit")).AddColumn(_("State")); for (unsigned i = 0; i < dns_servers->size(); ++i) { DNSServer *s = dns_servers->at(i); @@ -222,7 +222,7 @@ class CommandOSDNS : public Command ListFormatter::ListEntry entry; entry["Server"] = s->GetName(); - entry["Limit"] = s->GetLimit() ? stringify(s->GetLimit()) : "None"; + entry["Limit"] = s->GetLimit() ? stringify(s->GetLimit()) : Language::Translate(source.GetAccount(), _("None")); Anope::string ip_str; for (unsigned j = 0; j < s->GetIPs().size(); ++j) @@ -233,13 +233,13 @@ class CommandOSDNS : public Command entry["IP"] = ip_str; if (!srv) - entry["State"] = "Split"; + entry["State"] = Language::Translate(source.GetAccount(), _("Split")); else if (s->Active()) - entry["State"] = "Pooled/Active"; + entry["State"] = Language::Translate(source.GetAccount(), _("Pooled/Active")); else if (s->Pooled()) - entry["State"] = "Pooled/Not Active"; + entry["State"] = Language::Translate(source.GetAccount(), _("Pooled/Not Active")); else - entry["State"] = "Unpooled"; + entry["State"] = Language::Translate(source.GetAccount(), _("Unpooled")); lf.AddEntry(entry); } @@ -250,7 +250,7 @@ class CommandOSDNS : public Command if (!zones->empty()) { ListFormatter lf2(source.GetAccount()); - lf2.AddColumn("Zone").AddColumn("Servers"); + lf2.AddColumn(_("Zone")).AddColumn(_("Servers")); for (unsigned i = 0; i < zones->size(); ++i) { |