Recently Browsing 0 members
No registered users viewing this page.
Here's my Norwegian language pack for ProcessWire. I've been adding translations over some time, to suit my own projects users needs.
2019/06/19 (June 19, 2019)
Not yet complete. Translations that non-superusers will see is prioritized.
ProcessWire 3.0.133 dev
Number of files:
189 wire files and 95 site files – ranging from just started to completely translated. The site files includes translation some free and some pro modules, see the complete list in the README.md at GitHub.
Available at GitHub:
Can I convert uploaded images to PNG, GIF, BMP -> JPEG?
Is there any function in the API that I can change the file type?
Hello Gentlemen and Ladies.
I have not posted for a while but now i need your help figuring out some things.
The Documentation has come a long way and i love it.
Though on the page:
I am trying to figure out if when i want to add an image to an existing image field with multiple images alldready in it and using the method $page->images->add()
<?PHP /* get the images object array for the Page */ $myPageImg = $page->images; /* define the image to add */ $newImg = 'http://www.somesite.com/image.jpg'; /* Thanks Autofahrn, forgot about the output formating */ $page->of(false); /* create a new Pageimage object with the given URL and add to the Pageimages array */ $myPageImg->add($newImg); /* save the page */ $page->save(); ?> I am pretty sure i missed a few steps in the code above?
Is that string suppose to be an URL like "http://www.somesite.com/image.jpg" and the method will automaticly download the image and create an Pageimage Object and add it to Pageimages array or does it have to exist on the host first and i supply a file path to that image?
I guess im confused about that, hope you guys could clarify that for me.
And if it needs to be allready downloaded to my host before adding the image, what would be the best API methods for that task?
Just point me in the right direction and i will figure it out.
Sorry for the bad explaination but i could not figure out a better way of asking.
Thanks in advance.
Hopefully this is the right place, if not, please move it to the proper sub. I installed the multi language module on my development (sandbox) set up not too long ago to test out a few things. From the start, I ran into some issues with dependencies not being met/installed, so I thought that I would simply just uninstall what had been. Unfortunately, that took me down a road of using some code in my home template to remove the modules (cant find it at the moment). After some struggling, I finally got it uninstalled, but it left behind 3 fields,
language language_files language_files_site I thought that I could simply remove them from the languages template and then delete them, but I get the following error:
I was wondering, is there a way to remove these using the api? I couldn't add any new users to the setup until I made "language" not required, but I was hoping to just remove all of the fields.
"Deepl" is an unbelievably good (paid) text translation service, that mops the floor with Google Translate.
They have an API and it would be awesome, if there would be a module, that would integrate it for easy content translation.
It could be a right-click context menu on the language tab:
It should ask from which of available other language it shall take translate from.
What do you think?