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 %}
|
||||
<span class="footer-separator">|</span>
|
||||
Switch to the
|
||||
<a href="javascript:void(0)" onclick="switchTheme('dark')">
|
||||
dark
|
||||
</a>|<a href="javascript:void(0)" onclick="switchTheme('light')">
|
||||
light
|
||||
</a>|<a href="javascript:void(0)" onclick="switchTheme('browser')">
|
||||
browser
|
||||
</a>
|
||||
theme
|
||||
{{
|
||||
_('Switch to the %(dark_url)s | %(light_url)s | %(browser_url)s theme',
|
||||
dark_url='<a href="javascript:void(0)" onclick="theme.switch(`dark`)">dark</a>',
|
||||
light_url='<a href="javascript:void(0)" onclick="theme.switch(`light`)">light</a>',
|
||||
browser_url='<a href="javascript:void(0)" onclick="theme.switch(`browser`)">browser</a>'|safe)
|
||||
}}
|
||||
{% endif %}
|
||||
</p>
|
||||
{% if THEME_COLOR_ENABLE_USER_OVERRIDE %}
|
||||
|
|
|
@ -87,11 +87,16 @@ msgstr ""
|
|||
msgid "Please enable JavaScript to view comments."
|
||||
msgstr ""
|
||||
|
||||
#: templates/partial/flex.html:1
|
||||
#: templates/partial/flex.html:3
|
||||
#, python-format
|
||||
msgid "Built with %(pelican_url)s using %(flex_url)s theme"
|
||||
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
|
||||
msgid "Previous Post"
|
||||
msgstr ""
|
||||
|
|
Loading…
Reference in a new issue