-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
base: master
Are you sure you want to change the base?
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 |
reverse the order of button inputs (sumbit/OK first) in DOM, and thus submit is the default on enter to keep the order reversed when viewed (first cancel, then OK), reverse the display with CSS fixes moinwiki#1559
…be used to create an anchor link
…path is beginning with a '/+'
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:
|
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