Disable language in a given section

Hi.
My question is this. Would it be possible in OJS? Disable in a complete section a type of translation?

Ie when entering a particular section, you can only choose for a language.

Example. My website has the Spanish and English languages. Would be the case where a section only Spanish language and English will shew, could not score.

I am looking forward to your response.

Hi @gardbeat, I’m sorry but I am not sure what your question is. Would you like to have some texts that are not changed when you change the language, or would you like to display some sections only to display in a certain language? If you could make it more clear what you are asking, that would be great and we can help you better.

Hi. I want simply that certain sections can be read only in one language. Since simply we do not have the translation of that section .

I hope I have clarified .

Hi @gardbeat, I am not aware of such a function. It is possible to hide sections completely from the table of contents. But as far as I know, a section is always displayed if it contains articles and if it is not hidden.

There might be a way to achieve what you want by changing some code - however this could be a problem when you later update your install. I’m at-mentioning @asmecher here, who could tell you more about how complicated a solution might be.

Thank you very much , I hope to attend @asmecher qiue me . Very friendly @ojsbsb

Hi @gardbeat,

@ojsbsb is correct, you’d need to modify the system in order to accomplish that. You could probably get away with only modifying templates/issue/issue.tpl (e.g. to go through all articles in the section for the issue and check whether any are available for the user’s current language).

Regards,
Alec Smecher
Public Knowledge Project Team

Hello @asmecher . I could indicate in more detail how to do it ? A manual , video and / or someone who can help me. Since according to me indicáis it is quite complex. Thank you.

Hi @gardbeat,

You’ll need someone who is familiar with PHP/Smarty programming. I can provide some guidance if you get stuck somewhere specific, but I can’t walk you through the coding, unfortunately.

Regards,
Alec Smecher
Public Knowledge Project Team

Hello @asmecher . I would like you to give me that advice and manuals indicas me to do it. I am looking forward to your response.

Hi @gardbeat,

The Smarty documentation is available here, and the template that iterates through sections and presents articles can be seen here (ojs-dev-2_4 branch).

Regards,
Alec Smecher
Public Knowledge Project Team

I do not understand , what is smarty ? You can clearing that @asmecher .

And what you accompanying me as a code at github , exactly what part is what I need?

Thank you!

Hi @gardbeat,

OJS is free/open source software, which means you’re free to modify it within the terms of the license – but we can’t guide you through these modifications ourselves. We’re a small team and that kind of support would consume all of our time. It’s also important to understand how to maintain modifications. If you’re interested in learning Smarty there are lots of good resources online but I’m afraid it’s beyond the scope of this forum.

Regards,
Alec Smecher
Public Knowledge Project Team