From bf67b9ee5caee3224a44f3999a3f7f78fbce0a25 Mon Sep 17 00:00:00 2001 From: Robby- Date: Sun, 22 Sep 2013 23:27:14 +0200 Subject: 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. --- modules/commands/os_dns.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'modules/commands/os_dns.cpp') 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) { -- cgit