-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[sonyprojector] Allow translation of exception messages that can be d… #11392
Conversation
@lolodomo It might make sense to add a solution for translatable exceptions in OHC. wdyt? |
dd9d28d
to
90312b9
Compare
90312b9
to
1f6c84e
Compare
1f6c84e
to
04d948c
Compare
@cweitkamp : look at my class |
1d33508
to
677b87e
Compare
@cweitkamp : any feedback ? |
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 looked into I18nException
class and its usage. T.b.h I do not understand why we should go for the exception message to be the key of the translatable object. Why don't you use the know @text/exception.whatever
pattern?
...ng.sonyprojector/src/main/java/org/openhab/binding/sonyprojector/internal/I18nException.java
Outdated
Show resolved
Hide resolved
...ng.sonyprojector/src/main/java/org/openhab/binding/sonyprojector/internal/I18nException.java
Outdated
Show resolved
Hide resolved
...ng.sonyprojector/src/main/java/org/openhab/binding/sonyprojector/internal/I18nException.java
Outdated
Show resolved
Hide resolved
I think I will consider a different approach. |
c4c8d20
to
7b7ae33
Compare
7b7ae33
to
fc0068c
Compare
@cweitkamp : new version available that considers your previous comments. Edit: maybe you have a better name for the method |
New improvement in preparation... |
fc0068c
to
4903c74
Compare
@cweitkamp : ok, this time, I think it is good ;) |
4903c74
to
1fd3784
Compare
@kaikreuzer @wborn : the exit code 137 is back... |
Yeah, because I allowed 2 executors on agent2 as a try to speed it up. It's already changed back to 1... |
@lolodomo Build now succeeded, but waiting for @cweitkamp's feedback now. |
...ng.sonyprojector/src/main/java/org/openhab/binding/sonyprojector/internal/I18nException.java
Outdated
Show resolved
Hide resolved
@cweitkamp : if the current proposal is ok for you, I am going to put this class |
@cweitkamp : for your information, I created openhab/openhab-core#2549 |
…isplayed in MainUI Signed-off-by: Laurent Garnier <lg.hc@free.fr>
0cac2a8
to
5d57908
Compare
Awaiting openhab/openhab-core#2549 |
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.
Thanks for the PR. 👍
Can you address these issues?
...es/org.openhab.binding.sonyprojector/src/main/resources/OH-INF/i18n/sonyprojector.properties
Outdated
Show resolved
Hide resolved
...org.openhab.binding.sonyprojector/src/main/resources/OH-INF/i18n/sonyprojector_fr.properties
Outdated
Show resolved
Hide resolved
.../binding/sonyprojector/internal/communication/serial/SonyProjectorSerialOverIpConnector.java
Outdated
Show resolved
Hide resolved
...rg/openhab/binding/sonyprojector/internal/communication/sdcp/SonyProjectorSdcpConnector.java
Outdated
Show resolved
Hide resolved
...in/java/org/openhab/binding/sonyprojector/internal/communication/SonyProjectorConnector.java
Outdated
Show resolved
Hide resolved
...in/java/org/openhab/binding/sonyprojector/internal/communication/SonyProjectorConnector.java
Outdated
Show resolved
Hide resolved
...in/java/org/openhab/binding/sonyprojector/internal/communication/SonyProjectorConnector.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
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.
Thanks!
openhab#11392) * [sonyprojector] Allow translation of exception messages that can be displayed in MainUI Signed-off-by: Laurent Garnier <lg.hc@free.fr> Signed-off-by: Nick Waterton <n.waterton@outlook.com>
openhab#11392) * [sonyprojector] Allow translation of exception messages that can be displayed in MainUI Signed-off-by: Laurent Garnier <lg.hc@free.fr> Signed-off-by: Michael Schmidt <mi.schmidt.83@gmail.com>
openhab#11392) * [sonyprojector] Allow translation of exception messages that can be displayed in MainUI Signed-off-by: Laurent Garnier <lg.hc@free.fr>
openhab#11392) * [sonyprojector] Allow translation of exception messages that can be displayed in MainUI Signed-off-by: Laurent Garnier <lg.hc@free.fr>
openhab#11392) * [sonyprojector] Allow translation of exception messages that can be displayed in MainUI Signed-off-by: Laurent Garnier <lg.hc@free.fr>
…isplayed by MainUI
Signed-off-by: Laurent Garnier lg.hc@free.fr