Made the switch text translateable
This commit is contained in:
parent
e854dcf9bb
commit
a18c421354
2 changed files with 12 additions and 10 deletions
|
@ -6,15 +6,12 @@
|
||||||
}}
|
}}
|
||||||
{% if THEME_COLOR_ENABLE_USER_OVERRIDE %}
|
{% if THEME_COLOR_ENABLE_USER_OVERRIDE %}
|
||||||
<span class="footer-separator">|</span>
|
<span class="footer-separator">|</span>
|
||||||
Switch to the
|
{{
|
||||||
<a href="javascript:void(0)" onclick="switchTheme('dark')">
|
_('Switch to the %(dark_url)s | %(light_url)s | %(browser_url)s theme',
|
||||||
dark
|
dark_url='<a href="javascript:void(0)" onclick="theme.switch(`dark`)">dark</a>',
|
||||||
</a>|<a href="javascript:void(0)" onclick="switchTheme('light')">
|
light_url='<a href="javascript:void(0)" onclick="theme.switch(`light`)">light</a>',
|
||||||
light
|
browser_url='<a href="javascript:void(0)" onclick="theme.switch(`browser`)">browser</a>'|safe)
|
||||||
</a>|<a href="javascript:void(0)" onclick="switchTheme('browser')">
|
}}
|
||||||
browser
|
|
||||||
</a>
|
|
||||||
theme
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
{% if THEME_COLOR_ENABLE_USER_OVERRIDE %}
|
{% if THEME_COLOR_ENABLE_USER_OVERRIDE %}
|
||||||
|
|
|
@ -87,11 +87,16 @@ msgstr ""
|
||||||
msgid "Please enable JavaScript to view comments."
|
msgid "Please enable JavaScript to view comments."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: templates/partial/flex.html:1
|
#: templates/partial/flex.html:3
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Built with %(pelican_url)s using %(flex_url)s theme"
|
msgid "Built with %(pelican_url)s using %(flex_url)s theme"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: templates/partial/flex.html:10
|
||||||
|
#, python-format
|
||||||
|
msgid "Switch to the %(dark_url)s | %(light_url)s | %(browser_url)s theme"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: templates/partial/neighbors.html:5
|
#: templates/partial/neighbors.html:5
|
||||||
msgid "Previous Post"
|
msgid "Previous Post"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
Loading…
Reference in a new issue