Hi Alex, *,
On Thu, Jan 5, 2012 at 10:04 AM, Alexander Werner
<alex@documentfoundation.org> wrote:
Am 05.01.2012 um 03:45 schrieb Christian Lohmaier:
[many translations not visible]
I updated Askbot yesterday from upstream, maybe thats the reason?
Probably, didn't check askbot regularily in the last days..
We don't need for jinja supporting it - we can use copy'n'paste
instead and inline the macros to the pages itself. While from a
technical point this is not so nice and less flexible, it has the
benefit of not needing to browse 20 files when you want to fix a error
on the page.
Flexibility could be restored by moving each macro to its own file and including the file where
the macro was called before.
Have done it more or less this way - With the rot13ified translation
(I had to turn German into the rot13 version, since russian uses
different plural forms) the site now should be ready regarding the
caching issue.
I'm sure that I did not catch all places on the page, so feel free to
check and report any strings that are either plain English when using
German as preferred Browser language, or strings that are
rot13-English even when using English as preferred language.
Has the benefit of being flexible and nice, and possibly higher chance of getting merged into
upstream.
Please have a glance over the changes.
Also please help me out with what is apparently a scoping problem I
don't understand. This works
default/templates/question/question_card.html:
{% set max_comments = settings.MAX_COMMENTS_TO_SHOW %}{% include
"question/inc_comments.html" %}
however using
{% set max_comments = settings.MAX_COMMENTS_TO_SHOW %}
within the question/inc_comments.html complains with:
UnboundLocalError local variable 'l_max_comments' referenced before
assignment in inc_comments.html @ line 20 - which then is
{% set comments = post.get_comments(visitor = user)[:max_comments] %}
i.e. I set it, but apparently it alters the scope, and the variable on
line20 is a different variable with by miracle also gets a different
name? Don't see my mistake here. (When I don't set max_comments, I
get complaint that it is not defined)
ciao
Christian
--
Unsubscribe instructions: E-mail to website+help@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/website/
All messages sent to this list will be publicly archived and cannot be deleted
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.