gnope php gtk gui gnope.org  

How install gettext on gnope
Goto page 1, 2  Next
 
Post new topic   Reply to topic    gnope.org Forum Index -> Installation problems
View previous topic :: View next topic  
Author Message
rr



Joined: 02 Feb 2006
Posts: 7
Location: Mexico

PostPosted: Mon Feb 13, 2006 6:34 am    Post subject: How install gettext on gnope Reply with quote

Hello friends,

Some one can tellme how install gettext extention on gnope for windows.
and if some one have a simple example how use gladeXML on gnope.

Thanks a lot!
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Mon Feb 13, 2006 8:28 am    Post subject: Re: How install gettext on gnope Reply with quote

rr wrote:
how install gettext extention on gnope for windows.

The PHP version installed with gnope is 5.1.1. So you need to get the windows php package with all extensions from the php.net website, and extract the gettext dll from the zip file into the ext/ dir of your installation. Afterwards, you have to enable it in the php.ini.

GladeXML:
You need to create an interface with the glade 2 gui builder first, and load that file then into your php script. The Ascii art generator (in the gnope channel) makes use of Glade, so you could have a look on it.
Back to top
rr



Joined: 02 Feb 2006
Posts: 7
Location: Mexico

PostPosted: Tue Feb 14, 2006 6:34 pm    Post subject: how install gettext extention on gnope for windows. Reply with quote

Thanks cweiske,

I try copy dll into ext and modify php.ini to enable php_getttext.dll
but give an error.

PHP Startup: Unable to load dynamic library './ext/php_gettext.dll' - The specified procedure could not be found.

About glade i try this:
<?
// test_gladexml.php
$glade = &new GladeXML("./test.glade");
$window1 = $glade->get_widget("window1");
$window1->show_all();
?>

test.glade file <- created with Glade 2.12.1 on windows 2000
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">

<glade-interface>

<widget class="GtkWindow" id="window1">
<property name="visible">True</property>
<property name="title" translatable="yes">window1</property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_NONE</property>
<property name="modal">False</property>
<property name="resizable">True</property>
<property name="destroy_with_parent">False</property>
<property name="decorated">True</property>
<property name="skip_taskbar_hint">False</property>
<property name="skip_pager_hint">False</property>
<property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
<property name="focus_on_map">True</property>
<property name="urgency_hint">False</property>

<child>
<placeholder/>
</child>
</widget>

</glade-interface>

But aplication open window and close inmediatly.
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Tue Feb 14, 2006 6:36 pm    Post subject: Re: how install gettext extention on gnope for windows. Reply with quote

rr wrote:
PHP Startup: Unable to load dynamic library './ext/php_gettext.dll' - The specified procedure could not be found.

You are sure that you got the right version of the dll? The one for php5.1.1?
Back to top
rr



Joined: 02 Feb 2006
Posts: 7
Location: Mexico

PostPosted: Mon Feb 20, 2006 6:51 pm    Post subject: Re: how install gettext extention on gnope for windows. Reply with quote

cweiske wrote:
rr wrote:
PHP Startup: Unable to load dynamic library './ext/php_gettext.dll' - The specified procedure could not be found.

You are sure that you got the right version of the dll? The one for php5.1.1?


Hi cweiske: Im sure to get specific dll for gettext, i found that depens of php_iconv.dll but it still dont working.
I thake this dlls from Xampp distribution but when i review php.ini form Xampp i found that php_gettext.dll is comented.
Back to top
rr



Joined: 02 Feb 2006
Posts: 7
Location: Mexico

PostPosted: Mon Feb 20, 2006 7:03 pm    Post subject: Re: how install gettext extention on gnope for windows. Reply with quote

rr wrote:
Thanks cweiske,

About glade i try this:
<?
// test_gladexml.php
$glade = &new GladeXML("./test.glade");
$window1 = $glade->get_widget("window1");
$window1->show_all();
?>

test.glade file <- created with Glade 2.12.1 on windows 2000
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">

<glade-interface>

<widget class="GtkWindow" id="window1">
<property name="visible">True</property>
<property name="title" translatable="yes">window1</property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_NONE</property>
<property name="modal">False</property>
<property name="resizable">True</property>
<property name="destroy_with_parent">False</property>
<property name="decorated">True</property>
<property name="skip_taskbar_hint">False</property>
<property name="skip_pager_hint">False</property>
<property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
<property name="focus_on_map">True</property>
<property name="urgency_hint">False</property>

<child>
<placeholder/>
</child>
</widget>

</glade-interface>

But aplication open window and close inmediatly.


cweiske wrote:
rr wrote:
how install gettext extention on gnope for windows.


GladeXML:
You need to create an interface with the glade 2 gui builder first, and load that file then into your php script. The Ascii art generator (in the gnope channel) makes use of Glade, so you could have a look on it.


About Ascii art generator
I unload but i dont have specific unpacker for it.

A problem with my code
<property name="urgency_hint">False</property>
Its unsoported.

but my application needs a last line

$glade = &new GladeXML("./prueba.glade");
$window1 = $glade->get_widget("window1");
$window1->show_all();
Gtk::main();

Now it works fine.

Thanks!!
RR
Smile
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Mon Feb 20, 2006 7:54 pm    Post subject: Reply with quote

You can install the ascii art generator via PEAR:
- Either you open a console and type "pear install <filenname.tgz>" (after downloading it)
- Or you start the PEAR Frontend shipped with gnope and install it with that. No need to download anything, it does that automatically.

And PLEASE don't use "&" when creating new objects!
Back to top
rr



Joined: 02 Feb 2006
Posts: 7
Location: Mexico

PostPosted: Tue Feb 28, 2006 8:51 pm    Post subject: Intalling Ascii_Art_Generator Reply with quote

cweiske wrote:
You can install the ascii art generator via PEAR:
- Either you open a console and type "pear install <filenname.tgz>" (after downloading it)
- Or you start the PEAR Frontend shipped with gnope and install it with that. No need to download anything, it does that automatically.

And PLEASE don't use "&" when creating new objects!


Hello again,

On install Ascii_Art_Generator gives me this error

Installing gnope.org/Ascii_Art_Generator
gnope/Ascii_Art_Generator requires PHP extension "gd"
!!!Install Errors!!!
No valid packages found

How can i install gd extention I dont found in pear and pecl.
thank you!
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Tue Feb 28, 2006 8:57 pm    Post subject: Reply with quote

GD is an extension delivered with php. You get it the same way as you get gettext; from the php zip distribution in the ext/ folder
Back to top
inspight



Joined: 08 Feb 2006
Posts: 4

PostPosted: Wed Mar 01, 2006 5:31 am    Post subject: Reply with quote

If you have any other problems with the ascii art generator I have set up a support forum at my website http://alternateego.com/
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Wed Mar 01, 2006 8:19 am    Post subject: Reply with quote

While there wasn't a single PHP-Gtk1 forum, we will have thousands of PHP-Gtk2 ones.
Beautiful new world :-/
Back to top
Osiris



Joined: 17 Dec 2005
Posts: 65

PostPosted: Wed Mar 01, 2006 10:56 am    Post subject: Reply with quote

Sorry,

but there was a php-gtk1-forum, but it was badly maintained and meanwhile offline.

But the posting frequency shows, that we are only at the beginning ....
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Wed Mar 01, 2006 11:01 am    Post subject: Reply with quote

Osiris wrote:
But the posting frequency shows, that we are only at the beginning ....

I think that it would be nice to have one big forum with all questions/answers instead of having hundreds of little ones that nobody can read because they are too much.
Back to top
scott



Joined: 16 Feb 2006
Posts: 35

PostPosted: Wed Mar 01, 2006 3:47 pm    Post subject: Reply with quote

cweiske wrote:
I think that it would be nice to have one big forum with all questions/answers instead of having hundreds of little ones that nobody can read because they are too much.


I am pretty sure you know who to talk to in order to get an "official" forum put up on gtk.php.net. That is unless of course you mean for this to be the "one big forum".
Back to top
beidlerj



Joined: 10 Feb 2006
Posts: 55
Location: Oregon, USA

PostPosted: Wed Mar 01, 2006 6:59 pm    Post subject: Reply with quote

scott wrote:
cweiske wrote:
I think that it would be nice to have one big forum with all questions/answers instead of having hundreds of little ones that nobody can read because they are too much.


I am pretty sure you know who to talk to in order to get an "official" forum put up on gtk.php.net. That is unless of course you mean for this to be the "one big forum".


I'd be fine with this being the official forum. I think GNOPE is outstanding. It makes it incredibly easy to set up a working PHP-Gtk2 environment, and the forums are easy to use and actually have people (namely, Christian) who are knowledgeable, willing to help, and respond quickly. Very Happy
Back to top
Display posts from previous:   
Post new topic   Reply to topic    gnope.org Forum Index -> Installation problems All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Templates enhanced by DigiWiki. Hosting by Tradebit.