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

Notice headlines always in English #334

Open
2wobot opened this issue Oct 13, 2019 · 5 comments
Open

Notice headlines always in English #334

2wobot opened this issue Oct 13, 2019 · 5 comments

Comments

@2wobot
Copy link

2wobot commented Oct 13, 2019

Hi,

Thank you very much for the theme!

I'm using the notice shortcodes and have notices that the headlines Note, Info, Tip and Warning are always in English, regardless of the language. You can see that in your own French guide.

Unfortunately, I haven't managed to manually fix this because I can't seem to find the strings. Preferrably, I'd enhance the translation file in the i18n folder, but even that I haven't managed yet. What do I need to do?

Thanks in advance!

@Anagastes
Copy link

Same issue here. Have you found a solution?

@2wobot
Copy link
Author

2wobot commented Mar 2, 2020

No, I'm afraid not, I moved to a whole different system for that project.

@Anagastes
Copy link

May I ask which one? I am still looking for good and fast systems for documentation or FAQ

@2wobot
Copy link
Author

2wobot commented Mar 2, 2020

I went for Typemill, maybe it'll match your use case too.

@Anagastes
Copy link

Anagastes commented Mar 11, 2020

For your info, with simple css you can change it. ;)

In my theme-mine.css:

/* multilingual notice */
div.notices.warning:lang(de) p:first-child:after {
    content: 'Warnung';
}
div.notices.note:lang(de) p:first-child:after {
    content: 'Notiz';
}
div.notices.info:lang(de) p:first-child:after {
    content: 'Information';
}
div.notices.tip:lang(de) p:first-child:after {
    content: 'Tipp';
}

Here was the solution.
#128

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants