Closed thefoxcc closed 12 months ago
Hi, As you can see from the readme you just need to edit APP_LOCALE in your .env file to change the language. Open the .env file and type "ru" near "APP_LOCALE="
After that you have to run "php artisan config:cache" (you must run this everytime you edit your .env file else new settings could not be loaded immediately)
Il mar 28 nov 2023, 18:21 thefoxcc @.***> ha scritto:
How do I implement my localization? ru.json { "All Comics": "Все комиксы", "Recommended": "Рекомендуемые", "Last Releases": "Последние релизы", "Socials": "Соц.сети", "Last chapter": "Последняя глава", "Alternative titles": "Альтернативные названия", "Author": "Автор", "Artist": "Художник", "Genres": "Жанры", "Adult": "Для взрослых", "Stats": "Статистика", "Status": "Статус", "Description": "Описание", "Chapters": "Главы", "Title": "Название", "Volumes downloads": "Загрузка томов", "Dark": "Тьма", "Admin panel": "Панель администратора", "Edit profile": "Редактировать профиль", "Loading": "Загрузка", "Search comic": "Поиск манг", "Filter": "Фильтр" }
ru.js
`const lang_messages = { "All Comics": "Все комиксы", "Recommended": "Рекомендуемые", "Last Releases": "Последние релизы", "Socials": "Соц.сети", "Last chapter": "Последняя глава", "Alternative titles": "Альтернативные названия", "Author": "Автор", "Artist": "Художник", "Genres": "Жанры", "Format": "Формат", "Adult": "Для взрослых", "Stats": "Статистика", "Status": "Статус", "Description": "Описание", "Chapters": "Главы", "Title": "Название", "Volume downloads": "Загрузки томов", "Filename": "Имя файла", "Dark": "Темный", "Filter chapters": "Фильтр глав",
" second ago": " секунду назад", " seconds ago": " секунд назад", " minute ago": " минуту назад", " minutes ago": " минут назад", " hour ago": " час назад", " hours ago": " часов назад", " day ago": " день назад", " days ago": " дней назад", " month ago": " месяц назад", " months ago": " месяцев назад", " year ago": " год назад", " years ago": " лет назад",
"Chapter licensed": "Глава лицензирована", "This chapter is licensed and you can't read it.": "Эта глава лицензирована, и вы не можете её прочитать.",
"Current rating": "Текущий рейтинг", "Hide header": "Скрыть заголовок", "Fit display to": "Подстроить отображение под", "Both": "Оба", "Width": "Ширина", "Height": "Высота", "Full": "Полный", "Page rendering": "Отображение страницы", "Double": "Двойное", "Single": "Одиночное", "Long Strip": "Длинная полоса", "Direction": "Направление", "Left to right": "Слева направо", "Right to left": "Справа налево", "Page": "Страница",
};`
— Reply to this email directly, view it on GitHub https://github.com/FedericoHeichou/PizzaReader/issues/56, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIJFUFKGYY7YP7ALCLB6FV3YGYMQDAVCNFSM6AAAAAA76DSRH6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGAYTIOJTGI2TAMI . You are receiving this because you are subscribed to this thread.Message ID: @.***>
error chapter
error chapter
Try to rename the file in something like 001.jpg to check if everything works. Personally I never tried to use cyrillic characters in file names
strangely enough from 2 mb above does not seem to download, although the process at 100 goes but an error ((
how can I change this particular text? to have a manga instead of a comic
strangely enough from 2 mb above does not seem to download, although the process at 100 goes but an error ((
Oh ok, I think it is a server misconfiguration.
Seems you configured max upload size and max post size in your php.ini (the default value is pretty small, still should be enough to upload pictures) at 2MB.
Try to add in the end of your /etc/php/php.ini something like that
upload_max_filesize = 500M
post_max_size = 500M
Then restart your apache
systemctl restart apache2
Or your fpm if you are using that
systemctl restart php-fpm
another moment pdf downloads empty but zip works.
how can I change this particular text? to have a manga instead of a comic
You should use a custom localization like you did in the first post (with ru.json and ru.js). If you want to keep english create en.json and en.js, should still work
another moment pdf downloads empty but zip works.
Pdf doesn't work if your local installation of imagemagick has PDF disabled.
Remove this line
<policy domain="coder" rights="none" pattern="PDF" />
From /etc/ImageMagick-6/policy.xml
strangely enough from 2 mb above does not seem to download, although the process at 100 goes but an error ((
Oh ok, I think it is a server misconfiguration. Seems you configured max upload size and max post size in your php.ini (the default value is pretty small, still should be enough to upload pictures) at 2MB.
Try to add in the end of your /etc/php/php.ini something like that
upload_max_filesize = 500M post_max_size = 500M
Then restart your apache
systemctl restart apache2
Or your fpm if you are using that
systemctl restart php-fpm
cd /etc/php/8.2/apache2/php.ini )) thanks
Hint how to localize the /admin part too? [is it possible to manually replace words from /pizzareader/resources/views (is there another way?).]
how can I put my display setting and hide from the panel
Hint how to localize the /admin part too? [is it possible to manually replace words from /pizzareader/resources/views (is there another way?).]
Sadly I didn't add that feature yet.
You have to manually edit them in /pizzareader/resources/views
but if I update the code there (it won't happen often but still it could) can be hard update your code because of merge conflicts.
Tip: if you are searching for certain word you can use the command grep
to find in which file it is.
For example:
cd /var/www/pizzareader
grep -r 'Do you want to delete this chapter and its relative pages' --exclude-dir=vendor
how can I put my display setting and hide from the panel
If you mean that Reader HTML
you must edit your .env
file setting EDIT_CUSTOM_HTML=true
.
Remember to run as always php artisan config:cache
.
Now you can edit all the HTML fields in the settings page.
Remember to set back EDIT_CUSTOM_HTML=false
(and run php artisan config:cache
), I don't suggest keep it enabled because if someone steals a admin account could inject custom javascript code and could be dangerous.
Btw it is strange you have those values, the default value should be empty
how can I put my display setting and hide from the panel
If you mean that
Reader HTML
you must edit your.env
file settingEDIT_CUSTOM_HTML=true
. Remember to run as alwaysphp artisan config:cache
. Now you can edit all the HTML fields in the settings page. Remember to set backEDIT_CUSTOM_HTML=false
(and runphp artisan config:cache
), I don't suggest keep it enabled because if someone steals a admin account could inject custom javascript code and could be dangerous.Btw it is strange you have those values, the default value should be empty
No, I mean the slider settings buttons.
Hint how to localize the /admin part too? [is it possible to manually replace words from /pizzareader/resources/views (is there another way?).]
Sadly I didn't add that feature yet. You have to manually edit them in
/pizzareader/resources/views
but if I update the code there (it won't happen often but still it could) can be hard update your code because of merge conflicts.Tip: if you are searching for certain word you can use the command
grep
to find in which file it is. For example:cd /var/www/pizzareader grep -r 'Do you want to delete this chapter and its relative pages' --exclude-dir=vendor
Can't you create a base like .env?
How do I implement my localization? https://github.com/thefoxcc/teammanga/blob/master/lang/ru.json https://github.com/thefoxcc/teammanga/blob/master/resources/js/lang/ru.js