Skip to content

Commit

Permalink
Update gettext example
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeSlave committed Jun 17, 2018
1 parent 4bd07e9 commit 6dc54fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/gettext.d
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ int main(string[] args)
return 1;
} else {
string msgid_plural = args[3];
int n = args[4].to!int;
writeln(moFile.ngettext(msgid, msgid_plural, n));
const int n = args[4].to!int;
writefln("%s %s", n, moFile.ngettext(msgid, msgid_plural, n));
}
} else {
writeln(moFile.gettext(msgid));
Expand Down

0 comments on commit 6dc54fd

Please sign in to comment.