[Version 14.x] > loading language(s) / default language / general understanding of languages ? #1713

Open
opened 2026-10-05 00:53:51 +02:00 by adam · 0 comments
Owner

Hello team,

using the latest release of Piwigo (14.0.0beta2) with php 8.2.x is generally working fine.
What I am having troubles, is HOW the loading of languages is working.

For example: installed Piwigo with German (de_DE / code = de) as default.
But I am in the need of presenting German AND Austrian language at the same time (in the frontend only).
So, I have created another language called de_AT in a new folder.

Is selectable and defineable as default - (see image below):
grafik

But, the problem is, that while de_DE IS deactivated (see image again), the strings from the new de_AT file are NOT loaded.
Example: in Germany it is Januar (January), but in Austria it is Jänner.
But Januar (from the de_DE file) is displayed always (see image below):
grafik

As written above, I need both languages in one installation.
Overwriting the original variable is therefore no option.
Also not an option to delete the de_DE language files.

Second: how (and when) are languages loaded (for the frontend)?
Third: what for is the file tools/language/translation_valided.inc.php ?
Can see there is a section de_DE - but what for are these values?

Forth: as I can see (example en_US), that there are only a few values defined.
I then assume, that the en_GB (or en_UK) is loaded per default, and the values of the en_US should overwrite then them.
Same should be available when using de_DE AND de_AT (because there are only a few minor differences between them ..).

Hope someone can answer my questions .. and maybe present a fix ..

Hello team, using the latest release of Piwigo (14.0.0beta2) with php 8.2.x is generally working fine. What I am having troubles, is HOW the loading of languages is working. For example: installed Piwigo with German (de_DE / code = de) as default. But I am in the need of presenting **German AND Austrian language at the same time** (in the frontend only). So, I have created another language called de_AT in a new folder. Is selectable and defineable as default - (see image below): ![grafik](https://github.com/Piwigo/Piwigo/assets/1905204/958f83e7-53dc-4568-a0f1-f29fa94320b0) But, the problem is, that while de_DE IS deactivated (see image again), the strings from the new de_AT file are NOT loaded. Example: in Germany it is Januar (January), but in Austria it is Jänner. But Januar (from the de_DE file) is displayed always (see image below): ![grafik](https://github.com/Piwigo/Piwigo/assets/1905204/7b716b20-c352-4e8e-925f-6c12908990f7) As written above, I need both languages in one installation. Overwriting the original variable is therefore no option. Also not an option to delete the de_DE language files. **Second**: how (and when) are languages loaded (for the frontend)? **Third**: what for is the file tools/language/translation_valided.inc.php ? Can see there is a section de_DE - but what for are these values? **Forth**: as I can see (example en_US), that there are only a few values defined. I then assume, that the en_GB (or en_UK) is loaded per default, and the values of the en_US should overwrite then them. Same should be available when using de_DE AND de_AT (because there are only a few minor differences between them ..). Hope someone can answer my questions .. and maybe present a fix .. <!-- github-sync-id:1858072385 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1713