Editing of admin.lang.php with LocalFilesEditor does not work #428

Open
opened 2026-10-04 23:58:00 +02:00 by adam · 1 comment
Owner

I'm interested to change the contents of the file admin.lang.php to change each notification email sent by Piwigo (version: 2.8.0).

Here I see:

$lang['Hello,'] = 'Hallo,';
$lang['See you soon.'] = 'Bis bald.';
$lang['Discover album:'] = 'Entdecken Sie das Album:'; 

I will change the German statement to:

$lang['Hello,'] = 'Hallo!';
$lang['See you soon,'] = 'Grüße John';
$lang['Discover album:'] = 'Entdecke das Album:';

I think it would be good to make the changes in the Plugin "LocalFilesEditor"
"local/language/de_DE.lang.php" like this:

<?php

$lang['Hello,'] = 'Hallo!';
$lang['See you soon,'] = 'Grüße John';
$lang['Discover album:'] = 'Entdecke das Album:';

?>

But it does not work.

Ok, I can directly modify the original source code (this works), but it is better to use the LocalFilesEditor.

Any ideas?

I use:

Piwigo version: 2.8.0
PHP version: 7.0.4
MySQL version: 5.1.73

I'm interested to change the contents of the file admin.lang.php to change each notification email sent by Piwigo (version: 2.8.0). Here I see: ``` $lang['Hello,'] = 'Hallo,'; $lang['See you soon.'] = 'Bis bald.'; $lang['Discover album:'] = 'Entdecken Sie das Album:'; ``` I will change the German statement to: ``` $lang['Hello,'] = 'Hallo!'; $lang['See you soon,'] = 'Grüße John'; $lang['Discover album:'] = 'Entdecke das Album:'; ``` I think it would be good to make the changes in the Plugin "LocalFilesEditor" "local/language/de_DE.lang.php" like this: ``` <?php $lang['Hello,'] = 'Hallo!'; $lang['See you soon,'] = 'Grüße John'; $lang['Discover album:'] = 'Entdecke das Album:'; ?> ``` But it does not work. Ok, I can directly modify the original source code (this works), but it is better to use the LocalFilesEditor. Any ideas? I use: Piwigo version: 2.8.0 PHP version: 7.0.4 MySQL version: 5.1.73 <!-- github-sync-id:143906821 -->
Author
Owner

I found it! I had the wrong punctuations

That's right:

$lang['Hello,'] = 'Hallo!';
$lang['See you soon.'] = 'Grüße John';
$lang['Discover album:'] = 'Schau mal in das neue Foto-Album:';
I found it! I had the wrong punctuations That's right: ``` $lang['Hello,'] = 'Hallo!'; $lang['See you soon.'] = 'Grüße John'; $lang['Discover album:'] = 'Schau mal in das neue Foto-Album:'; ``` <!-- github-comment-id:223748845 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#428