Code Monkey home page Code Monkey logo

Comments (7)

schildbach avatar schildbach commented on May 27, 2024

@techguy613 You might want to have a look at this.

from dnssecjava.

ibauersachs avatar ibauersachs commented on May 27, 2024

Any suggestions on how you'd like to handle this instead?

from dnssecjava.

schildbach avatar schildbach commented on May 27, 2024

I think I would simply inline all the strings into the source code. If I understand it right, these are all exception messages which should not be translated anyway. So what's the resource bundle indirection good for?

Another idea would be a static setter that could be used by Android apps to set the resource bundle in your R class manually. Because Android actually can read resource bundles, it just doesn't support reading them from the classpath like you do.

from dnssecjava.

ibauersachs avatar ibauersachs commented on May 27, 2024

Hm, these were meant to be an explanation why a validation failed.

The setter is a good alternative, and as a fallback, returning the key (formatted like in the unit tests: key:param1:...:paramN)

from dnssecjava.

schildbach avatar schildbach commented on May 27, 2024

Ah, that fallback would be perfect. Even without the setter.

from dnssecjava.

techguy613 avatar techguy613 commented on May 27, 2024

Hey all, the setter sounds good to me. Should I take a crack at it or would you (@ibauersachs) like to make the change yourself?

from dnssecjava.

ibauersachs avatar ibauersachs commented on May 27, 2024

Some help would be very welcome :-)

from dnssecjava.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.