-
-
Notifications
You must be signed in to change notification settings - Fork 96
New theme 'focus' #1528
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
New theme 'focus' #1528
Conversation
I have a question: How can I create a util.html that uses the util.html from |
cintek, please make your moin repo public. It is easier to clone your repo and test all your changes than it is to review and download each diff separately. |
The repo is at https://github.com/cintek/moin/tree/new-theme |
I marked this PR as ready for preview since now the most important work is done and it would be great to read what you think about this theme. Does is fulfill your expectations for a theme? |
Thanks for providing the new theme.
|
Please add your theme to: http://moinmo.in/ThemeMarket Also check the moin2 docs to verify there is a pointer to the above theme market, and the moin2 docs have working instructions for installing a contributed theme. |
Do you mean by that that the theme mustn't be part of the moin repository, but in a separate repository? |
Yes, for now. We should concentrate on fixing/improving existing code
rather than adding to the code base.
Moin1.x has many contributed themes, moin 2.x should support contributed
themes as well.
…On Sun, Dec 17, 2023 at 2:12 PM Sebastian Wagner ***@***.***> wrote:
Please add your theme to: http://moinmo.in/ThemeMarket
Do you mean by that that the theme mustn't be part of the moin repository,
but in a separate repository?
—
Reply to this email directly, view it on GitHub
<#1528 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGODHSK3CNFJWV4ZJUX6G3YJ5N45AVCNFSM6AAAAAA5H5Y2ZGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJZGI4DKOBWGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Thank you for the answer. Can themes add new translations? |
Not sure how a theme can add a "new translation". A theme's UI should use
_('xxx') to display words and phrases, so if a new language is added all
themes should support the new language without any code changes.
…On Mon, Dec 18, 2023 at 7:47 AM Sebastian Wagner ***@***.***> wrote:
Thank you for the answer.
Can themes add new translations?
—
Reply to this email directly, view it on GitHub
<#1528 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGODHUWEKP6DYYRWTA7YTDYKBJRHAVCNFSM6AAAAAA5H5Y2ZGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRQGY4TINJWG4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
@cintek |
It should be a rare case that additional translations are required for a new theme. Maybe we can add a dummy function somewhere and include the string 'More'. For javascript there is a similar workaround with I agree that a triangle without a label is not user-friendly. |
I finally understand issue. Focus theme invents a new word or phrase that needs translation, but contributed themes may not be present when Maybe add a dummy procedure to end of
|
We have at least four options (I add one):
I tend towards option 3 although it would be better if developers could just add a JSON file or something similar for translations. |
A fifth option is to just use _("More") in the theme code and ignore that a tiny part of the theme is English only for now. If the theme is added to the main repo at some future date, the problem is self-correcting. I do not understand the Javascript solution - how would that work? |
Here is an example of how it could work. This way you would just need to add the attribute |
Two remarks:
|
@RogerHaase So, when you've released a stable moin2 would it be an option for you to integrate the new theme into the repo? Like @bernhardreiter wrote the most important point is that we want to improve the usability and that's what we did with this theme. It would be great if other users could benefit from it. If it is okay for you to integrate the theme is there anything we should keep in mind? We've tested it already with some people and of course you will also test it. Some git conflicts have to be resolved. But is there anything besides these aspects to think? |
To add: The feedback we've got is that our theme worked much better. Note that a theme is also code to me, as it is part of the overall experience. To give an example: A great engine without human interface would be useless. I'd say that the theme is even more important than some backend features. |
Please add your theme to: https://moinmo.in/ThemeMarket. |
We can of course do that, but does that mean you will not accept a change of the standard theme to something more usable? |
Long ago it was decided to work on fixing existing themes rather than create a quadrillion new themes with short lived support by the original authors. But somehow we ended up working on this new theme and now we have a pretty nice theme and the question is what to do with it. My answer is to make it a contributed theme. And maybe reevaluate in the future after fixing the existing themes to be less "lacking". Maybe some other developer has a better idea? |
I think we should add this theme and include it in the delivery. |
That is a concern I can fully understand. And it would make complete sense if there were one or several good default themes. Our question is: How do we get one good default theme? Because no existing one worked for us - so far. That was our motivation to develop the new theme. If there is a different way to a good default theme, that would be fine. But if this is the best theme there is it can be a great improvement to Moin2's user experience. It is true, we cannot promise that we will maintain the theme. We do have one small wiki installation in production where we use it and will use it for at least 2 years - so we will not drop it right now. Putting in more maintenance will depend on if we decide to move more old or new wikis to Moin2. This decision is still open, for us the current lack of speed (apparently as result of some design decisions like becoming a desktop wiki - which we do not need at all) is one blocker, so we will look at other wiki solutions as well. (This is just the current situation, feedback or questions should not be answered in this issue but somewhere else.) |
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 your updates. For me, it is ready to be merged.
As mentioned on the mailing list I would like to contribute a new theme to Moin2.
This commit shows the changes to layout.html.
Screenshot 1: Sidebar and top bar
Screenshot 2: Footer