• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.
  • Chevereto Support CLST

    Support response

    Support checklist

Overrides and default language files not work in V4

friv

Chevereto Member
So i am trying to change some words in overrides folder,and has no effect.
I am trying to change in default .po language file too, and has not effect.
 
I can't quite understand that.
I have just tested it myself and it works....
Screenshot 2023-01-10 082133.png

What it doesn't say is " (Test)".

An explanation of the procedure can be found here....

  1. go to /app/languages
  2. create a dir with name: overrides
  3. create a file with name of your language: de.po
  4. Insert the passage to change
    Code:
    msgid "Random"
    msgstr "Zufall-Modus (Test)"
  5. save it
 
I can't quite understand that.
I have just tested it myself and it works....
View attachment 5343

What it doesn't say is " (Test)".

An explanation of the procedure can be found here....

  1. go to /app/languages
  2. create a dir with name: overrides
  3. create a file with name of your language: de.po
  4. Insert the passage to change
    Code:
    msgid "Random"
    msgstr "Zufall-Modus (Test)"
  5. save it
Thanks DeCyos but i have that already from V3 version override folder. And is not work even i change it for all languages.There is no changes for example at front page of website.

So, override folder which languages i want chose to translate are already there from previous V3 version.
 
Last edited:
Please describe your approach so that the person who can help can exclude any errors on your part.

Bzw. Describe also what exactly you wanted to have changed.

For the start page text the following section would be necessary....
Code:
#: app/themes/Peafowl/views/index.php:24
#, php-format
msgid ""
"Drag and drop anywhere you want and start uploading your images now. %s "
"limit. Direct image links, BBCode and HTML thumbnails."
msgstr ""
"First Row of your new text"
"Second row ob your new text"

maybe one or the other variable has changed from v3 to v4 and therefore it doesn't work like that anymore.
 
Please describe your approach so that the person who can help can exclude any errors on your part.

Bzw. Describe also what exactly you wanted to have changed.

For the start page text the following section would be necessary....
Code:
#: app/themes/Peafowl/views/index.php:24
#, php-format
msgid ""
"Drag and drop anywhere you want and start uploading your images now. %s "
"limit. Direct image links, BBCode and HTML thumbnails."
msgstr ""
"First Row of your new text"
"Second row ob your new text"

maybe one or the other variable has changed from v3 to v4 and therefore it doesn't work like that anymore.
Everything what you have show in that example is exact like in my override folder,but not work.

#: app/themes/Peafowl/views/index.php:23
msgid "Upload and share your images."
msgstr "Upload your favorite images"

#: app/themes/Peafowl/views/index.php:24
#, php-format
msgid "Drag and drop anywhere you want and start uploading your images now. %s limit. Direct image links, BBCode and HTML thumbnails."
msgstr "Share with your friends."
 
Last edited:
Tried it again with "en.po" in the folder overrides.

Bei
Code:
#: app/themes/Peafowl/views/index.php:23
msgid "Upload and share your images."
msgstr "Teste das nur mal hier"
no text is displayed at all on the web page, I don't know exactly when it will be displayed, but it has something to do with a javascript.

in the original en.po it says the following for me....
Code:
#: app/themes/Peafowl/views/index.php:24
#, php-format
msgid ""
"Drag and drop anywhere you want and start uploading your images now. %s "
"limit. Direct image links, BBCode and HTML thumbnails."
msgstr ""
"Drag and drop anywhere you want and start uploading your images now. %s "
"limit. Direct image links, BBCode and HTML thumbnails."

Everything that comes after msgid should never be changed... only in the area msgstr something may be changed...
Also here I have tested the following...
Code:
#: app/themes/Peafowl/views/index.php:24
#, php-format
msgid ""
"Drag and drop anywhere you want and start uploading your images now. %s "
"limit. Direct image links, BBCode and HTML thumbnails."
msgstr ""
"Drag and drop anywhere you want and start uploading your images now. %s "
"limit. Bla"
Dem stimme ich zu, es funktioniert nicht...
Ausgabe in der Cachedatei... /app/.cache/languages/overrides/en.po.cache.php
PHP:
<?php
$translation_table = [
];
?>

But if I take your example text, it works ....
Code:
#: app/themes/Peafowl/views/index.php:24
#, php-format
msgid "Drag and drop anywhere you want and start uploading your images now. %s limit. Direct image links, BBCode and HTML thumbnails."
msgstr "Share with your friends."
Screenshot 2023-01-11 001218.png
Output to the cache file... /app/.cache/languages/overrides/en.po.cache.php
PHP:
<?php
$translation_table = [
    "Drag and drop anywhere you want and start uploading your images now. %s limit. Direct image links, BBCode and HTML thumbnails." => [
        0 => "Share with your friends.",
    ],
];
?>

Perhaps this is to be checked again more exactly what stands with you in the cache file in it...
If everything does not help, a new thread (bugtracking) must be opened which refers to this one


The reference in the language file is already incorrect...
It is not: app/themes/Peafowl/views/index.php:24
but: /content/legacy/themes/Peafowl/views/index.php:32
with the following content at line 32
HTML:
        <p class="c20 center-box text-align-center"><?php echo getSetting('homepage_paragraph_html') ?? _s('Drag and drop anywhere you want and start uploading your images now. %s limit. Direct image links, BBCode and HTML thumbnails.', getSetting('upload_max_filesize_mb') . ' MB'); ?></p>
Thus one should use the following within msgid
Code:
Drag and drop anywhere you want and start uploading your images now. %s limit. Direct image links, BBCode and HTML thumbnails.
Code:
#: /content/legacy/themes/Peafowl/views/index.php:32
#, php-format
msgid "Drag and drop anywhere you want and start uploading your images now. %s limit. Direct image links, BBCode and HTML thumbnails."
msgstr "Teste das mal hier"
This also works wonderfully for me as seen in the screenshot.
 
Tried it again with "en.po" in the folder overrides.

Bei
Code:
#: app/themes/Peafowl/views/index.php:23
msgid "Upload and share your images."
msgstr "Teste das nur mal hier"
no text is displayed at all on the web page, I don't know exactly when it will be displayed, but it has something to do with a javascript.

in the original en.po it says the following for me....
Code:
#: app/themes/Peafowl/views/index.php:24
#, php-format
msgid ""
"Drag and drop anywhere you want and start uploading your images now. %s "
"limit. Direct image links, BBCode and HTML thumbnails."
msgstr ""
"Drag and drop anywhere you want and start uploading your images now. %s "
"limit. Direct image links, BBCode and HTML thumbnails."

Everything that comes after msgid should never be changed... only in the area msgstr something may be changed...
Also here I have tested the following...
Code:
#: app/themes/Peafowl/views/index.php:24
#, php-format
msgid ""
"Drag and drop anywhere you want and start uploading your images now. %s "
"limit. Direct image links, BBCode and HTML thumbnails."
msgstr ""
"Drag and drop anywhere you want and start uploading your images now. %s "
"limit. Bla"
Dem stimme ich zu, es funktioniert nicht...
Ausgabe in der Cachedatei... /app/.cache/languages/overrides/en.po.cache.php
PHP:
<?php
$translation_table = [
];
?>

But if I take your example text, it works ....
Code:
#: app/themes/Peafowl/views/index.php:24
#, php-format
msgid "Drag and drop anywhere you want and start uploading your images now. %s limit. Direct image links, BBCode and HTML thumbnails."
msgstr "Share with your friends."
View attachment 5344
Output to the cache file... /app/.cache/languages/overrides/en.po.cache.php
PHP:
<?php
$translation_table = [
    "Drag and drop anywhere you want and start uploading your images now. %s limit. Direct image links, BBCode and HTML thumbnails." => [
        0 => "Share with your friends.",
    ],
];
?>

Perhaps this is to be checked again more exactly what stands with you in the cache file in it...
If everything does not help, a new thread (bugtracking) must be opened which refers to this one


The reference in the language file is already incorrect...
It is not: app/themes/Peafowl/views/index.php:24
but: /content/legacy/themes/Peafowl/views/index.php:32
with the following content at line 32
HTML:
        <p class="c20 center-box text-align-center"><?php echo getSetting('homepage_paragraph_html') ?? _s('Drag and drop anywhere you want and start uploading your images now. %s limit. Direct image links, BBCode and HTML thumbnails.', getSetting('upload_max_filesize_mb') . ' MB'); ?></p>
Thus one should use the following within msgid
Code:
Drag and drop anywhere you want and start uploading your images now. %s limit. Direct image links, BBCode and HTML thumbnails.
Code:
#: /content/legacy/themes/Peafowl/views/index.php:32
#, php-format
msgid "Drag and drop anywhere you want and start uploading your images now. %s limit. Direct image links, BBCode and HTML thumbnails."
msgstr "Teste das mal hier"
This also works wonderfully for me as seen in the screenshot.
So there is lot of explanations in this post but sorry i did not found exactly what to do. I really appreciate this but as you see from my previous posts i have put some ordinary lines from V3 to V4 and there is no changes.


So,according to your opinion there must be some issue that with this ordinary code can't work normal in V4? Please can you elaborate more in that direction?

Because,how is possible that this code works at your server and not on my!?

#: app/themes/Peafowl/views/index.php:23
msgid "Upload and share your images."
msgstr "Teste das nur mal hier"

It's same code.

And why to open bug tracking if the same code is in the game?
 
Last edited:
Is there anyone else here who can help me with this problem? Now I'm losing visitors to the site, because I can't fix this to work in the V4 version.
 
The reference in the language file is already incorrect...
It is not: app/themes/Peafowl/views/index.php:24
but: /content/legacy/themes/Peafowl/views/index.php:32
with the following content at line 32
HTML:
        <p class="c20 center-box text-align-center"><?php echo getSetting('homepage_paragraph_html') ?? _s('Drag and drop anywhere you want and start uploading your images now. %s limit. Direct image links, BBCode and HTML thumbnails.', getSetting('upload_max_filesize_mb') . ' MB'); ?></p>
Thus one should use the following within msgid
Code:
Drag and drop anywhere you want and start uploading your images now. %s limit. Direct image links, BBCode and HTML thumbnails.
Code:
#: /content/legacy/themes/Peafowl/views/index.php:32
#, php-format
msgid "Drag and drop anywhere you want and start uploading your images now. %s limit. Direct image links, BBCode and HTML thumbnails."
msgstr "Teste das mal hier"
This also works wonderfully for me as seen in the screenshot.
Yes,i can change here easily
/content/legacy/themes/Peafowl/views/index.php:32 but if i change here,then it will replace all languages in the script.

The main problem is when i want to change here
app/themes/Peafowl/views/index.php:24 there is no changes at all. It look like is not connected, i mean if i change some words operation can't be done to that line. I am so confused how is this possible ! ?
 
Please upload the language file which you have changed here (as zip or txt).
Please also the file "/content/legacy/themes/Peafowl/views/index.php" or the overrides file if available.


I can offer you to test it with me and correct it if necessary.

Alternatively you can enter a text in the settings "domain.tdl/dashboard/settings/homepage" under paragraph which will be the same for all languages.

Screenshot 2023-01-13 010304.png
 
Last edited:
Back
Top