[Cartoweb-users] Translation process.

Oliver Christen oliver.christen at camptocamp.com
Mon Sep 29 02:45:39 EDT 2008


Hi

well, it seems we havent tested the server2pot script on windows since we 
switched from WAMP to MS4W for the windows package.
so the code should be modified a bit.

around line 66 in server2pot.php, replace

if (!extension_loaded('mapscript')) {
    $prefix = (PHP_SHLIB_SUFFIX == 'dll') ? '' : 'php_';
    if (!dl($prefix . 'mapscript.' . PHP_SHLIB_SUFFIX)) {
        print 'Error: Cannot load Mapscript library.';
        return false;
    }
}

by

if (!extension_loaded('mapscript') &&
    !dl('php_mapscript.' . PHP_SHLIB_SUFFIX)) {
    print 'Error: Cannot load Mapscript library.';
    return false;
}

also, if you see this error:
"Warning: Error while loading mapfile ... "
be sure you have specified the path to the proj library in the mapfile:
CONFIG "PROJ_LIB" "C:/ms4w/proj/nad"

regards
Oliver


> Good afternoon to everyone.
>
> I am dealing with translation from english to greek at the moment.
> To understand how can i make this i try to install frenc in demoCW3 
> project..
> So i execute >php server2po.php demoCW3
>
> But i get some error messages:
>
> C:\ms4w\apps\cartoweb3\scripts>php server2pot.php demoCW3
> Creating new template server.po for project demoCW3 .. done.
> Adding strings from PHP code for project demoCW3 .. done.
> Merging new template into server.en.po Merging new template into 
> server.fr.po Cr
> eating new template server.demoCW3.po for project demoCW3
> Warning: dl(): Unable to load dynamic library 
> 'C:/ms4w/Apache/php/ext/mapscript.
> dll' - ─ίΊ ▐ΪάΊ ϊΫΊάΪⁿ Ίά ίΊΪΎΏώ≤Ϊί▀ ύ ΆάϋΎ±ώ≤Ή▌Ίύ ΉΎΊ▄ϊά.
> in C:\ms4w\apps\cartoweb3\scripts\server2pot.php on line 66
> Error: Cannot load Mapscript library.Creating new template server.po for 
> project
> .. done.
> Adding strings from PHP code for project .. done.
> Merging new template into server.de.po Merging new template into 
> server.en.po Me
> rging new template into server.fr.po
>
>
> I haven't changed anything in gettext system.
> But i verified from phpinfo that it is enabled.
> Could this error come from the fact that i don't use english version of 
> windows Xp but the greek one?
>
>
> Anyway,i would appreciate if someone could tell me the basics on how to 
> implement translation to greek
>
>
> Thank you very much!!!
> Nikos Papadakis.
>
> _______________________________________________
> Cartoweb-users mailing list
> Cartoweb-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/cartoweb-users
> 



More information about the Cartoweb-users mailing list