Description
When editing a page in text mode the editor quickhelp is written verbatim under the editor field (at least for wiki markup in html output mode. This bug may be related to the FeatureRequests/AllowCustomMarkupHints implementation feature in version 1.5.
Steps to reproduce
Just hit Edit (text) on this page and scroll down to the bottom of the editor field. As of 20060611 this bug exists in the http://moinmoin.wikiwikiweb.de/ MoinMoin instance as well.
Example
Details
This Wiki.
The information below applies to our local server running MoinMoin on which I discovered the bug.
MoinMoin Version |
1.5.3 |
OS and Version |
Debian Sarge ADM64 w 2.6.8 kernel |
Python Version |
2.3.5 (#2, Sep 9 2005, 21:37:55) [GCC 3.3.5 (Debian 1:3.3.5-13)] |
Server Setup |
Apache with CGI |
Workaround
If you used a modified cfg.editor_quickhelp text, you need this patch:
diff -r 44f3d0bea061 MoinMoin/i18n/__init__.py --- a/MoinMoin/i18n/__init__.py Thu Jun 15 23:38:07 2006 +0200 +++ b/MoinMoin/i18n/__init__.py Sat Jun 17 17:41:00 2006 +0200 @@ -275,10 +275,19 @@ def getText(str, request, lang, formatte if dicts.has_dict(dictpagename): userdict = dicts.dict(dictpagename) trans = userdict[str] + else: + raise KeyError + else: + raise KeyError except KeyError: # do not simply return trans with str, but recursively call - # to get english translation, maybe formatted + # to get english translation, maybe formatted. + # if we don't find an english "translation", we just format it + # on the fly (this is needed for cfg.editor_quickhelp). if lang != 'en': trans = getText(str, request, 'en', formatted) + elif formatted: + trans = formatMarkup(request, str) + return trans
Discussion
Which language are you using/have you set in your browser?
hu, en, de are the languages set in this order (nor in our local wiki browser-language-prefs ignorance is configured)
hu translation is rather outdated and therefore incomplete. You can help on MoinI18n/hu. Just search for empty msgstr and fuzzy translations and fix them. I did a quick fix for the quickhelp that also needs translation.
Most of the sys msgs' translation is ready, revisioned and tested to compile (and work) in MoinMoin i18n build time. -- 2006-06-15, JozsefMarton
I had the same problem with 1.5.4 (which already included the patch). For some reason, MoinMoin/i18n/init.py had problems replacing the markup while building data/cache/i18n/*. Die Quick Help appeared language-translated, but no markup-translated and with an additional "*" (marker for format problem in MoinMoin/i18n/init.py:162). I don´t know how this came. Removing data/cache/i18n/* fixed the problem (after 2 hours of debugging). -- TobiasPolzin 2006-08-02 18:04:53
I have the same problem in Release 1.5.8, with languages en and nl. No other languages tested. So this bug is still not fixed. -- 82.93.232.101 2007-05-24 12:51:43
This bug in 1.7.1
Unfortunately we have the same problem with a site running moin 1.7.1. The German translation is OK, while the Japanese one still shows the Verbatim macros uninterpreted. I have checked the corresponding .po files but I couldn't figure out where the problem is rooted. -- -- JózsefJároli 2008-10-15 13:37:19
I fixed the japanese i18n for 1.8. I just removed the <<Verbatim( and )>> from the quickhelp section about headlines. -- ThomasWaldmann 2008-10-29 02:48:22
Plan
- Priority:
- Assigned to:
- Status: fixed for hu, en, nl - translators please check your language for fuzzy strings,
- committed patch to moin-1.5/1.6 branch