Labels: Automatically translate label names #403

Open
opened 2026-02-19 23:08:17 -05:00 by deekerman · 10 comments
Owner

Originally created by @MarJun1988 on GitHub (Sep 1, 2020).

The categories of the pictures are currently displayed in English even if the language is set to German.
I would be happy to help.

Originally created by @MarJun1988 on GitHub (Sep 1, 2020). The categories of the pictures are currently displayed in English even if the language is set to German. I would be happy to help.
Author
Owner

@lastzero commented on GitHub (Sep 1, 2020):

We're not sure about the best way to do it. If we translate it in the database, it causes issues when you change the language or when there are multiple users who prefer different languages. When we translate it in the UI, then also labels the user intentionally entered in English might be translated to other languages. Also image titles would still be in English.

@lastzero commented on GitHub (Sep 1, 2020): We're not sure about the best way to do it. If we translate it in the database, it causes issues when you change the language or when there are multiple users who prefer different languages. When we translate it in the UI, then also labels the user intentionally entered in English might be translated to other languages. Also image titles would still be in English.
Author
Owner

@lastzero commented on GitHub (Sep 1, 2020):

Note that some labels come from location data, so you'd also need to translate all OpenStreetMap categories.

@lastzero commented on GitHub (Sep 1, 2020): Note that some labels come from location data, so you'd also need to translate all OpenStreetMap categories.
Author
Owner

@oktayacikalin commented on GitHub (Jun 6, 2022):

Note that some labels come from location data, so you'd also need to translate all OpenStreetMap categories.

Doesn't OSM also offer translated data?

@oktayacikalin commented on GitHub (Jun 6, 2022): > Note that some labels come from location data, so you'd also need to translate all OpenStreetMap categories. Doesn't OSM also offer translated data?
Author
Owner

@oktayacikalin commented on GitHub (Jun 6, 2022):

We're not sure about the best way to do it. If we translate it in the database, it causes issues when you change the language or when there are multiple users who prefer different languages. When we translate it in the UI, then also labels the user intentionally entered in English might be translated to other languages. Also image titles would still be in English.

I've renamed my categories to German. Then I started a full reindex, and it seems that my translated categories are also used in the auto generated titles and keyword fields. This looks promising. Of course, changing the language again would require me to execute a full reindex again.

It looks like it might work if you first try to guess the categories, get the translated labels and then use them everywhere in the meta data.

@oktayacikalin commented on GitHub (Jun 6, 2022): > We're not sure about the best way to do it. If we translate it in the database, it causes issues when you change the language or when there are multiple users who prefer different languages. When we translate it in the UI, then also labels the user intentionally entered in English might be translated to other languages. Also image titles would still be in English. I've renamed my categories to German. Then I started a full reindex, and it seems that my translated categories are also used in the auto generated titles and keyword fields. This looks promising. Of course, changing the language again would require me to execute a full reindex again. It looks like it might work if you first try to guess the categories, get the translated labels and then use them everywhere in the meta data.
Author
Owner

@oktayacikalin commented on GitHub (Jun 6, 2022):

Adding more translations should trigger a partial reindex of the untranslated categories.
Is it possible to mark category labels as "user modified"?

@oktayacikalin commented on GitHub (Jun 6, 2022): Adding more translations should trigger a partial reindex of the untranslated categories. Is it possible to mark category labels as "user modified"?
Author
Owner

@juanpeich commented on GitHub (Apr 6, 2023):

Was it finally changed to translate the labels?

I have the web interface in Spanish, but the labels are in English. If possible, what is the file that I should modify from English to Spanish so that the labels are in Spanish?

Thanks beforehand for your attention


Finalmente se logró poder traducir las etiquetas?

Yo tengo la interface web en español, pero las etiquetas están en inglés.

Si es posible, cual es el archivo que debería modificar de inglés a español para que las etiquetas estén en español?

Gracias de antemano por su atención

@juanpeich commented on GitHub (Apr 6, 2023): Was it finally changed to translate the labels? I have the web interface in Spanish, but the labels are in English. If possible, what is the file that I should modify from English to Spanish so that the labels are in Spanish? Thanks beforehand for your attention ----- Finalmente se logró poder traducir las etiquetas? Yo tengo la interface web en español, pero las etiquetas están en inglés. Si es posible, cual es el archivo que debería modificar de inglés a español para que las etiquetas estén en español? Gracias de antemano por su atención
Author
Owner

@noliveleger commented on GitHub (Jan 25, 2024):

@oktayacikalin

I've renamed my categories to German. Then I started a full reindex, and it seems that my translated categories are also used in the auto generated titles and keyword fields. This looks promising. Of course, changing the language again would require me to execute a full reindex again.

When you restarted the full reindex with your translated categories, did you lose faces or they stayed in place?

@noliveleger commented on GitHub (Jan 25, 2024): @oktayacikalin > I've renamed my categories to German. Then I started a full reindex, and it seems that my translated categories are also used in the auto generated titles and keyword fields. This looks promising. Of course, changing the language again would require me to execute a full reindex again. When you restarted the full reindex with your translated categories, did you lose faces or they stayed in place?
Author
Owner

@lastzero commented on GitHub (Jan 25, 2024):

Note that auto generated titles are updated in the background, just not instantly but over time. So a full rescan is not strictly required.

@lastzero commented on GitHub (Jan 25, 2024): Note that auto generated titles are updated in the background, just not instantly but over time. So a full rescan is not strictly required.
Author
Owner

@oktayacikalin commented on GitHub (Jan 25, 2024):

@noliveleger

When you restarted the full reindex with your translated categories, did you lose faces or they stayed in place?

I'm sorry, but I cannot remember what happened to them.

@oktayacikalin commented on GitHub (Jan 25, 2024): @noliveleger > When you restarted the full reindex with your translated categories, did you lose faces or they stayed in place? I'm sorry, but I cannot remember what happened to them.
Author
Owner

@graciousgrey commented on GitHub (Jan 26, 2024):

@noliveleger Indexing does not remove tagged faces or created albums etc

@graciousgrey commented on GitHub (Jan 26, 2024): @noliveleger [Indexing](https://docs.photoprism.app/user-guide/library/originals/) does not remove tagged faces or created albums etc
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/photoprism#403
No description provided.