Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Language issue with site title and description #3934

Closed
Portugao opened this issue Nov 2, 2018 · 4 comments

Comments

@Portugao
Copy link

@Portugao Portugao commented Nov 2, 2018

Q A
Zikula Version 2.0.11
PHP Version 7.1

Expected behavior

title and description in german with german language

Actual behavior

title and description in english with german language, all fields in settings filled correctly

Steps to reproduce

Maybe see https://ziku.la/de/

@Guite Guite added this to the 3.0.0 milestone Nov 2, 2018
@Portugao

This comment has been minimized.

Copy link
Author

@Portugao Portugao commented Nov 2, 2018

Is there a quick fix?

@Guite

This comment has been minimized.

Copy link
Member

@Guite Guite commented Nov 2, 2018

In your theme you could do:

{% set sitename = getModVar('ZConfig', 'sitename_' ~ app.request.locale) %}
<title>{{ pagevars.title }}{% if sitename not in pagevars.title %} - {{ sitename }}{% endif %}</title>
@Portugao

This comment has been minimized.

Copy link
Author

@Portugao Portugao commented Nov 2, 2018

Ok, That's better, though not perfect. Thx.

@Guite

This comment has been minimized.

Copy link
Member

@Guite Guite commented Nov 5, 2018

Already fixed in 110e954

@Guite Guite closed this Nov 5, 2018
Guite added a commit that referenced this issue Nov 5, 2018
@Guite Guite modified the milestones: 3.0.0, 2.0.15 Nov 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.