First time here? Check out the FAQ!

Revision history  [back]

Some strings don't appear in rosetta

The jinja2_makemessages command isn't picking up some strings -- they don't even appear in the .po file.

For example "Sort by »" on the main /questions/ page is picked up correctly, but all the "by activity", "by date" texts next to it are not.

I looked in the source at skins/default/templates/main_page/tab_bar.html:

    {{macros.reversible_sort_button(
            button_sort_criterium = 'activity',
            label = gettext('by activity'),
            asc_tooltip = gettext('click to see the least recently updated questions'),
            desc_tooltip = gettext('click to see the most recently updated questions'),
            current_sort_method = sort
        )
    }}

Why is the gettext directive ignored? And how to fix this?