Skip to content

Language #406

Closed Answered by johanneswilm
WilcoSchoolderman asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @WilcoSchoolderman ,
it works differently here. You can just specify different strings and in that way control the text that is seen. In some languages you may want to use the formal or the informal language (du/Sie in German). So there are many different ways that localization can be done for a website, so this is the way that gives the widest-most way of configuring it. In Fidus Writer we use it in a localized environment and specify the strings like this:

https://github.com/fiduswriter/fiduswriter/blob/6c287755bfd4d8681d4abbac3c2aa04f46372085/fiduswriter/bibliography/static/js/modules/bibliography/overview/index.js#L88-L91

new DataTable(tableEl, {
    labels: {
       noRows: gettext(

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by johanneswilm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants