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:
Support response
Support checklist
msgid "Random"
msgstr "Zufall-Modus (Test)"
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.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....
- go to /app/languages
- create a dir with name: overrides
- create a file with name of your language: de.po
- Insert the passage to change
Code:msgid "Random" msgstr "Zufall-Modus (Test)"
- save it
#: 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"
Everything what you have show in that example is exact like in my override folder,but not work.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.
#: app/themes/Peafowl/views/index.php:23
msgid "Upload and share your images."
msgstr "Teste das nur mal hier"
#: 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."
#: 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"
<?php
$translation_table = [
];
?>
#: 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."
<?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.",
],
];
?>
<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>
Drag and drop anywhere you want and start uploading your images now. %s limit. Direct image links, BBCode and HTML thumbnails.
#: /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"
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.Tried it again with "en.po" in the folder overrides.
Bei
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.Code:#: app/themes/Peafowl/views/index.php:23 msgid "Upload and share your images." msgstr "Teste das nur mal hier"
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...
Dem stimme ich zu, es funktioniert nicht...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"
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 ....
View attachment 5344Code:#: 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."
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
Thus one should use the following within msgidHTML:<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>
Code:Drag and drop anywhere you want and start uploading your images now. %s limit. Direct image links, BBCode and HTML thumbnails.
This also works wonderfully for me as seen in the screenshot.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"
Yes,i can change here easilyThe 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
Thus one should use the following within msgidHTML:<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>
Code:Drag and drop anywhere you want and start uploading your images now. %s limit. Direct image links, BBCode and HTML thumbnails.
This also works wonderfully for me as seen in the screenshot.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"
/content/legacy/themes/Peafowl/views/index.php:32 but if i change here,then it will replace all languages in the script.
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 ! ?