Comments (10)
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.
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.
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.
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.
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.
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.
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.
Hi @eikek , no problem.
I'm just starting to translate, you've done a very good work with your documentation :)
from sharry.
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.
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)
- Allow to change schema when using postgresql
- s3 auth does not seem to support node / service account roles - access key and secret required HOT 3
- Problems with using Keycloak as OAuth provider HOT 6
- Azure AD Authentication doesn't work with java.net.ConnectException: Connection timed out HOT 6
- CORS blocked when uploading a file using Caddy reverse proxy. HOT 5
- nix: build sharry from source
- Error message : 106% percent over 100 HOT 6
- mp4 files are not playing in browser HOT 10
- Add ability to create admin accounts with all auth modules HOT 2
- Broken Nix installation guide HOT 1
- Sign-in with oauth (via Google) creates accounts even if signup is set to "invite" or "closed" HOT 4
- Site breaks in Chrome/Edge when `require-trusted-types-for` is enabled in CSP header HOT 3
- Shares disappearing after reboot HOT 2
- mp4 files are not playing in browser - maybe related to #1328 HOT 1
- Disable new user signup HOT 2
- Unraid support HOT 1
- Possible to set longer expirations HOT 1
- Nginx HOT 1
- Run Sharry as a service HOT 3
- [Feature request] Publish container to Github container registry HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sharry.