Code Monkey home page Code Monkey logo

Comments (10)

eikek avatar eikek commented on May 20, 2024 1

Hello,

thank you for your interest and making me aware of this documentation bug.

You need to install Elm, too. I'm sorry, I missed this in the docs! You can check via elm --help if it is installed. This program is executed from within sbt. And yes, this is a good way to start translating. If you like to contribute your work via a pull request, I'd suggest to git clone the repository instead of downloading the source zip. But it works very well using the zip file otherwise.

Once make succeeds, you can type reStart in the sbt shell which will start the server. Then you can go to http://localhost:9090 and see the app. After this type ~ compile in the sbt shell. If you cange a source file now, they get recompiled automatically. You already found the correct files to look at. The view related code is in files Page/*/View.elm and in Comp/*.elm files in their view function. Once you finished, you can run make-zip or make-deb to create a final package that can be installed.

Translation would be awesome! Unfortunately, the webapp is not really prepared – it contains all strings hardcoded :(. If you are interested in contributing your work and make integrating it easier, maybe you can add the translation to some extra file? I can guide you if you want.

from sharry.

eikek avatar eikek commented on May 20, 2024 1

Hi, that is great, thank you for your willingness to try it. I can prepare something and try to guide you. I think there will be some need to modify source code, but it should be very simple. But don't worry, if you find it too cumbersome or tedious or whatever, simply stop or ask or both :-). Of course, freetime is very precious, there is no time constraint whatsoever of course. I'll also need some time to prepare something. I'll get back to you.

from sharry.

Pafzedog avatar Pafzedog commented on May 20, 2024 1

Hi @eikek .
I'm over with translation :)
Result is very great !
just one more thing :

  • How can I disable Elm debugger during make process ?

I found this line in file build.sbt :

val elmSettings = Seq(
  elmCompileMode := ElmCompileMode.Debug,

Should I replace ElmCompileMode.Debug with ElmCompileMode.Production ?

and should I have to redo full "make" or just "make-deb" ?

from sharry.

eikek avatar eikek commented on May 20, 2024 1

Hi @Pafzedog ,
that's great to hear! Unfortunately, I'm not done with preparing things. I hoped I could externalize all the strings so you would have an easier time translating :) I started something at the feature/translation branch, but it's going to take a few more days I guess. But that's no problem, I can later move your strings into these files.

Regarding elm debug settings: That is the right place to change the default value. But: if you run make then it will use production setting instead of debug. When running ~ compile it will use the default, which is debug. So usually it's enough to just run make at the end (or make-zip etc) to have a final package, where production settings are applied. You can also just change the current value at the sbt shell with set webapp/elmCompileMode := ElmCompileMode.Production – and then compile will also use this value.

from sharry.

eikek avatar eikek commented on May 20, 2024 1

Hi @Pafzedog ,
thanks for your dedication and the kind words :). I'm writing here, once I think I'm done with some guidance.

Sure, I'm open for feature requests. You can create issues for them or just write me a mail (the address can be found when running git log).

Have a great time with your kids!

from sharry.

eikek avatar eikek commented on May 20, 2024 1

Hi @Pafzedog ,

hope you are having a good time! I created a wiki page with some guidance on translation. It looks a bit large, I hope not too scary :-) https://github.com/eikek/sharry/wiki/Translation

from sharry.

eikek avatar eikek commented on May 20, 2024 1

Hi @Pafzedog , hope you don't mind if I close this issue. The initial topic was the documentation problem and then I hijacked it for translation stuff :-) If you feel like it, just open another issue regarding translation (or anything else you have in mind), I'm glad to assist. Thank you!

from sharry.

Pafzedog avatar Pafzedog commented on May 20, 2024 1

Hi @eikek , no problem.
I'm just starting to translate, you've done a very good work with your documentation :)

from sharry.

Pafzedog avatar Pafzedog commented on May 20, 2024

Hello,

Thanks for the quick and detailled reply :)
With "Elm" installed, I was able to test the translated UI on localhost, I missed some elements but I think you pointed me to their path above.
I would be glad to contibute to your work but I'm not develloper and have no idea how to separate tranlation files of the core code so if you can guide me and give me some advices, I'll tell you if this is in my scopes (and obviously if I have enough free time)

from sharry.

Pafzedog avatar Pafzedog commented on May 20, 2024

hi @eikek ,
no problem, no hurry with this.
I wanted to make a try and voilà ...
When you think I can start (with your explanations/advices), I will be happy to fill or create translation files with my strings.
for the record, I think I won't be free of time during two next weeks because I'm in hollydays with my childs.
Regarding the compilation, you're right, I didn't know the default debug option of ~ compile and I launched directly the make-deb at the end.
Would you be open I suggest some light features I think it's missing ?
Thanks again for this really awesome app :)

from sharry.

Related Issues (20)

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.