GithubHelp home page GithubHelp logo

Comments (10)

Klap-in avatar Klap-in commented on August 30, 2024

See the pull request, that will fix your issues for monobook.

from dokuwiki-template-monobook.

melodie11 avatar melodie11 commented on August 30, 2024

Thank you Klap-in, I'll be looking forward for the update.

Regards,
Mélodie

from dokuwiki-template-monobook.

melodie11 avatar melodie11 commented on August 30, 2024

Hi,

I have found where the raw files for boxes.php and main.php are in your github (I am not yet too much used to find my way there) and this morning I wanted to give it a try so I renamed main.php which is under lib/tpl/monobook, to "main.php-BACK" and same for boxes.php under monobook/conf and uploaded your modifications, and ticked the dropdown menu option in the translations plugin admin section.

  1. It works! No need to use ~~TRANS~~ in the sidebar to get the dropdown menu to appear

  2. The drop down is placed below the toolbox in the sidebar, is it possible to get it to be at the top of the sidebar where everyone can find it at once?

  3. There is a side effect: once the files installed the navigation menu I configured as well as the top "substitutive mark" disappear. Should I have to redo it when it will be updated? Or is there a better way to do this?

Here are 3 screenshots to show you:
Actual Dokuwiki (with drop down enabled):
http://meets.free.fr/images/dokuwiki/actual-wiki-linuxvillage.jpg

Dokuwiki with your modifications on:
Switched to English: http://meets.free.fr/images/dokuwiki/language-switcher-en.png
Switched to French: http://meets.free.fr/images/dokuwiki/language-switcher-fr.png

So you can see where the dropdown is placed and the substitutive mark at the top of the sidebar doesn't show anymore. The one on top of the page doesn't show either (I wanted to make the pic not too large).

Regards,
Mélodie

from dokuwiki-template-monobook.

melodie11 avatar melodie11 commented on August 30, 2024

PS: with the actual Monobook unchanged, I added the navigation menu from id=wiki:navigation to id=wiki:fr:navigation and to id=wiki:en:navigation and now there is a dropdown at the bottom right side of each page created, when dropdown is configured, but on the left side the drop down menu still would not work. I'll retry your modified files with the 2 new pages created and see what happens.

from dokuwiki-template-monobook.

Klap-in avatar Klap-in commented on August 30, 2024
  • in the monobook config settings you can enable navigation translations. That will show at for example French pages, a French sidebar content when id=wiki:navigation_fr exists.

You can modify the boxes in the sidebar in the file, after renaming it:
https://github.com/arsava/dokuwiki-template-monobook/blob/master/user/boxes.php.dist to user/boxes.php

You can remove an entry from the $_monobook_boxes (e.g with unset) and add that entry at the start of that array for example.

from dokuwiki-template-monobook.

melodie11 avatar melodie11 commented on August 30, 2024

Hello Klap-in,

There are 25 entries for $_monobook_boxes in boxes.php, how can I use your information exactly? (See here: http://meets.free.fr/images/boxes.php_monobook_boxes.png )

from dokuwiki-template-monobook.

Klap-in avatar Klap-in commented on August 30, 2024

You need to save the p-lang entry and unset it, and re-add it at the begin of the matrix e.g. using http://www.php.net/manual/en/function.array-unshift.php

from dokuwiki-template-monobook.

melodie11 avatar melodie11 commented on August 30, 2024

Klap-in, thank you. I don't get how to put it into practice but I'll ask a French buddy who knows php to help me with this. What about your pull request, how will I see if there is an official update for Monobook next? And if your changes aren't adopted soon can I safely use them (especially considering next future updates)?

from dokuwiki-template-monobook.

melodie11 avatar melodie11 commented on August 30, 2024

Hi Klap-in,

When using your modified files, I am still hitting a bug.

when I am at the start page in French:
http://wiki.linuxvillage.org/doku.php?id=fr:start

I see "[ Remplir cette marque substitutive svp (:wiki:site_notice_fr) ]" at the top, but when I click on it to edit then reach here: http://wiki.linuxvillage.org/doku.php?id=wiki:site_notice_fr I get this at the top "LinuxVillage community documentation" which I thought I had configured with the english selected page : and at same time, the selector switches back to "en" on that page, which is not good.

I wonder if I am not going to simply install a second wiki to have it in two languages? o_o
(I start feeling discouraged).

from dokuwiki-template-monobook.

Klap-in avatar Klap-in commented on August 30, 2024

The page wiki:site_notice_fr is in the namespace wiki: (because monobook collects in the wiki: namespace this kind of special pages). Because it is not in the french namespace fr: the wiki don't know that is should show the French site notice.
(I think the assumption of the author of the monobook template is that wiki: don't need translation, and when you still need translation (for example for wiki:syntax) that you will create it as fr:wiki:syntax vs en:wiki:syntax.)

from dokuwiki-template-monobook.

Related Issues (16)

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.