I want to install the internationalization modual and the theme editor modual, but these "patches" are confusing me. Please help.

1. First the internationalization modual.
The install file says "2. Apply the patches to the Drupal core that are provided. Located in the 'patches' folder". There are prepatched files available, but not for drupal 4.6.5. So I do not have shell access to my hosting, so I think that I must download the file I want to patch, patch it, then upload the patched file and over write the original. Is this correct?

The name of the patch files are "i18n_includes.patch" and "i18n_taxonomy_module.patch". These are the patches, what are the files I should patch?

So I download the files I want to patch in to a folder with the .patch files and what command (linux command line) do I do?

2. Ok, now the theme editor modual.
The theme editor modual has no directions (install.txt file) and there is a "theme_editor_engine.engine" file and a "xtemplate.engine.patch" and I don't know what to do with them.

Please help. Thanks in advance

Comments

bdmp’s picture

I made a mistake when I said "what command (linux command line) do I do?". I know the command is "patch". What I meant to say was "what is the synatx of the patch command in this case?"

Zen’s picture

Read this for syntax help..

As for "what" to patch.. just do "cat mypatch.patch" and the file(s) that the patch is applicable for will usually be listed up top..

hth
-K

bdmp’s picture

That talks about diff a lot and gives 2 patch commands. I still don't understand.

You also said do cat mypatch.patch and the files that the patch is for will be listed up top. Should there be more than one file to patch? I thought one patch was for one file. I did the command and I still do not see what file I am supposed to patch.

US421’s picture

I have tried this without much success, I would like to know as well.

bonobo’s picture

First, copy the patch file (the file ending with the .patch extension) into the directory of the file(s) you want to patch.

If you know that only one file needs to be patched, use this syntax: patch filetobepatched < patchfile

If you know that more than one file needs to be patched, copy the patch file into the same directory as the files to be patched, and use this syntax: patch -p0 < patchfile

This handbook page gives instructions on how to patch in Windows using Cygwin. However, as Cygwin provides a Linux-like command line in Windows, you can use these instructions for an overview on patching in Linux as well.

I hope this helps.

Cheers,

Bill

-------
http://www.funnymonkey.com
Tools for Teachers

bdmp’s picture

I think you should edit the part of the had book about patches and add what you said. Since I posted this I have learned a lot about .patch files and how to patch a file. I could not figure out how to patch a directory though. Your explanation gives me the command to patch a directory, so I am very grateful. I just wanted to clarify one thing. That when you said "patch more than one file" by that you meant "patch a directory". Hopefully if others see this and are confused in the same way I was this will make more sense. So I would just change what you said to

"First, copy the patch file (the file ending with the .patch extension) into the directory of the file(s) you want to patch.

If you know that only one file needs to be patched, use this syntax: patch filetobepatched < patchfile

If you know that more than one file needs to be patched (i.e. patching a directory), copy the patch file into the same directory as the files to be patched, and use this syntax: patch -p0 < patchfile"

Thanks a lot Bill.