-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for --sourceaddr bad behaviour #110
Fix for --sourceaddr bad behaviour #110
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In sv.po add:
msgid "Address '"
msgstr "IP-adress '"
msgid "' cannot be used as source address for DNS queries."
msgstr "' kan inte användas som källadress för DNS-frågor."
In da.po just copy the English version as placeholder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks nice, but it would be great if you could take another look at dependencies, translatable strings and indentation. I've provided comments.
@@ -21,6 +21,7 @@ build_requires( 'Test::More' => 0, ); | |||
requires( | |||
'JSON::XS' => 0, | |||
'Locale::TextDomain' => 1.23, | |||
'Net::Interface' => 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't find a binary package for this on CentOS. Have you checked for alternatives?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mattias-p I only found Net::Interface that can handle with IPv4 and IPv6. IO::Interface for example does not work with IPv6. Any advices for an alternate library ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At least for CentOS 7 I find a package: https://centos.pkgs.org/7/openfusion-x86_64/perl-Net-Interface-1.012-2.of.el7.x86_64.rpm.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to https://rt.cpan.org/Public/Bug/Display.html?id=124582, me should add this somewhere in travis.yml
mkdir /usr/include/sys/; ln -s /usr/include/bits/socket.h /usr/include/sys/socket.h
to prevent the fail on Travis.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vlevigneron Thanks for the clarification regarding the choice of library. And no, I don't have any alternatives up my sleeve.
@vlevigneron, what is the milestone of this PR? v2019.2 or v2019.3? |
… share/fr.po share/sv.po ( share/en.po removed ). Merge remote-tracking branch 'upstream/develop' into fix-issue-zonemaster-cli-38
Should the installation instruction be updated with the new dependency in this PR as well, or do we do that as part of installation testing? |
@mattias-p Good point. I guess that it is usually done during packaging process, can anyone confirm ? If this is not the case, it can be modified in this PR. |
If possible it should be done now. For FreeBSD it is p5-Net-Interface to be installed. CentOS has already CPAN dependencies so I guess it is OK to add it there. Fore Debian/Ubuntu we should have binary package.
Wrong "(a)Matts". I will review again. |
You are not the first, and most certainly will not be the last that accidentally mentions me :P My own fault for having a common name lmao. Besides, it is interesting to have a look at what other people are up to |
@Matts, you were early to get a short user name. :-) You are welcome to Zonemaster! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good to me, except two problems I should have spotted earlier. Sorry about that.
share/da.po
Outdated
#, perl-brace-format | ||
msgid "Address {address} cannot be used as source address for DNS queries.\n" | ||
msgstr "Address {address} cannot be used as source address for DNS queries.\n" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sorry I didn't spot this earlier, but I don't think this should be included. It only makes it difficult for the Danish translators to notice that there is something new for them to translate.
share/nb.po
Outdated
#, perl-brace-format | ||
msgid "Address {address} cannot be used as source address for DNS queries.\n" | ||
msgstr "Address {address} cannot be used as source address for DNS queries.\n" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should also be excluded for the same reason.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@matsduf As you asked for something different (but it was a long time ago), do you think that @mattias-p proposal is reasonable ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is fine. I am not sure if it should be empty or non-existent, but at least the latter will mean that msgid will shown, and then when you translate you will be prompted.
fixes #38
danish and swedish translation missing