FET Forum

FET Development => Suggestions => Topic started by: math_user on May 16, 2016, 06:35:17 PM

Title: customizable names (teachers, subjects, ...)
Post by: math_user on May 16, 2016, 06:35:17 PM
It would be great if "teachers", "subjects", ... would be customizable (settings). For universities "lecturers" and so on.

Thanks a lot for this great software!
Title: Re: customizable names (teachers, subjects, ...)
Post by: Liviu Lalescu on May 16, 2016, 06:54:13 PM
Thank you for the appreciation!

Unfortunately, it is maybe too late to change now, since there are a lot of places in which the terms appear.

But there might be possible a trick: create a translation file (*.ts), and translate each term which you want to change, then add this as a new FET language, or use it instead of an already existing language. All untranslated strings will remain in the original English. I assume you are interested mainly into the output of the timetables HTML on disk, so you might want to translate only the TimetableExport fields which contain "Teacher" and so on. Or, you could, maybe by some more work, put all the strings in English as duplicate in the translation file and find+replace "Teacher" by "Lecturer" in the translation file's translated field.

I could help you with this, or to derive a custom version with the strings changed in the places which you indicate.

Meanwhile, I'll add your proposal into the TODO list (I think there are some equivalent suggestions, but I am not sure).
Title: Re: customizable names (teachers, subjects, ...)
Post by: math_user on May 16, 2016, 07:16:49 PM
Thanks a lot for your immediate reply, Liviu!

Yes, HTML-output and probably statistics (less important) would be enough.
German would be great for me:
Teachers - Dozierende
Subjects - Module
Teachers Free Periods - Freistunden Dozierende
Students - Lerngruppen

Thanks again!
Title: Re: customizable names (teachers, subjects, ...)
Post by: Liviu Lalescu on May 16, 2016, 07:49:49 PM
I tried on the attached.

You can ask me or modify yourself some more using Qt Linguist. After you modify with Qt Linguist you need to release the .ts file as a new .qm file.

Overwrite the attached over the official FET files. The .ts is the source and the .qm is the executable.
Title: Re: customizable names (teachers, subjects, ...)
Post by: Volker Dirr on May 17, 2016, 10:53:38 AM
Eine automatische Übersetzung dürfte recht holprig werden.

Sowohl bei der Übersetzung aus dem Englischen als auch aus dem Deutschen.
Beispiel aus dem Englischen:
Students Set ist Einzahl, daher nur "Lerngruppe". (Obwohl Students Mehrzahl ist und "Lerngruppen" sind.)
Beispiel aus dem Deutschen:
"Lehrer" kann sowohl Einzahl als auch Mehrzahl sein. Das wird im ganzen Satz klar. Je nach Satz muss es "Dozierende" oder "Dozent" sein.

Diese "Einzahl-Mehrzahl"-Probleme scheinen auf dem ersten Blick unbedeutend, aber bei FET gibt es immer zwei verschiedene Einschränkungen; entweder für einen oder für alle Lehrer. Der Unterschied ist daher sehr wichtig und ich befürchte, dass sie bei so einer automatischen Übersetzung den Zusammenhang z.T. falsch verstehen werden bzw. Fehler/Problemlösungen an falschen Stellen suchen werden.

Da ein Dozent ein lehrender an einer Hochschule ist, ist der Begriff Lehrer ja nicht ganz falsch. Ich würde es an ihrer Stelle entweder bei Lehrer lassen, oder Sie sollten alle Übersetzungen selbst prüfen, damit Sie nicht Probleme aufgrund einer "falschen" Übersetzung erhalten.
Title: Re: customizable names (teachers, subjects, ...)
Post by: math_user on May 18, 2016, 12:38:25 PM
Great, Liviu!

Thanks a lot for your extra work!