Can anybody tell me where I can find documentation about the GNUmakefile needed to compile my .po into .mo file? And how to excute the make instruction on a windows platform?
I have found a windows version of make at Steve’s website. Unfortunately the link to documentation provide in the thread How do i use the po/localization-makefile? is not active an more.
Within my /po/ directory I have a file named: GNUmakefile with to following contents:
SHELL=cmd.exe
GALLERYDIR=C:/Mysite.nl/gallery2
TOOLDIR=$(GALLERYDIR)/lib/tools
include $(TOOLDIR)/po/GNUmakefile.inc
When I try to run as C:\www.Mysite.nl\gallery2\themes\carbon\po>make install PO=nl
I get these errors:
'dirname' is not recognized as an internal or external command,
operable program or batch file.
'php' is not recognized as an internal or external command,
operable program or batch file.
'#' is not recognized as an internal or external command,
operable program or batch file.
'#' is not recognized as an internal or external command,
operable program or batch file.
'mv' is not recognized as an internal or external command,
operable program or batch file.
'xgettext' is not recognized as an internal or external command,
operable program or batch file.
'--msgid-bugs-address' is not recognized as an internal or external command,
operable program or batch file.
'sed' is not recognized as an internal or external command,
operable program or batch file.
'cat' is not recognized as an internal or external command,
operable program or batch file.
'rm' is not recognized as an internal or external command,
operable program or batch file.
Can't find string terminator "'" anywhere before EOF at -e line 1.
Can't find string terminator "'" anywhere before EOF at -e line 1.
Can't find string terminator "'" anywhere before EOF at -e line 1.
'#' is not recognized as an internal or external command,
operable program or batch file.
-s was unexpected at this time.
make: [nl.po] Error 255 (ignored)
'rm' is not recognized as an internal or external command,
operable program or batch file.
"" was unexpected at this time.
make: *** [install] Error 255
Posts: 358
What version of Gallery are you running (i.e. minimal, typical, or developer). I think you need to have the developer version to get all the make tools
Posts: 30
I’m not sure about my installation, I assume I’ve used typical.
I think I’ve used “gallery-2.2.3-typical.zip”.
I there a way to upgrade to a developer version?
Or can I add the tools I need for compiling .mo files?
Gallery version = 2.2.3 core 1.2.0.5
PHP version = 5.2.4 apache2handler
Webserver = Apache/2.2.5 (Win32) PHP/5.2.4
Database = mysqli 5.0.45-community-nt, lock.system=database
Toolkits = Exif, ImageMagick
Acceleration = full/604800, full/604800
Operating system = Windows NT COMPAQ 5.0 build 2195
Default theme = carbon
gettext = enabled
Locale = en_US
Browser = Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30)
Posts: 358
You should be able to just copy the lib/tools directory and contents from the development version to your installation. I've never tried that so I can't be a 100% sure. I've haven't done a in depth comparison to so we what the differences are, but I think it will work
Good Luck
Posts: 30
I've downloaded "gallery-2.2.4-developer.zip" and copied all the file form the lib/tools directory to my installation. Unfortunately I received the same errors once i tried "make install PO.nl".
I don’t think your idea to copy the lib/tools files was wrong. After doing so I noticed an active plug-in “Debugging and Developer Tools – version 1.0.5”. Do you have experience in making .mo files on a Windows (2003) platform? I’m affright my platform is not setup right for completing this compilation task…
Posts: 358
ahh Windows... that makes it slightly more challenging. I've never build the mo files, but have built other parts of Gallery2 using make. I tried setting up make to run from the Windows command line and and had zero success. What I've done is downloaded and installed cygwin (http://www.cygwin.com/) and that's where I run the makes from. I've really had no problem with it and the installer for cygwin is pretty good.
Posts: 180
I used poEdit to edit the .Po's. Everytime you save the file a .MO is saved too. I have had no problems with using that mo-file for Gallery.
Posts: 30
Thanks Slayergirl, poEdit works fine.