| View previous topic :: View next topic |
| Author |
Message |
rr
Joined: 02 Feb 2006 Posts: 7 Location: Mexico
|
Posted: Mon Feb 13, 2006 6:34 am Post subject: How install gettext on gnope |
|
|
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
|
Posted: Mon Feb 13, 2006 8:28 am Post subject: Re: How install gettext on gnope |
|
|
| 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
|
Posted: Tue Feb 14, 2006 6:34 pm Post subject: how install gettext extention on gnope for windows. |
|
|
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
|
Posted: Tue Feb 14, 2006 6:36 pm Post subject: Re: how install gettext extention on gnope for windows. |
|
|
| 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
|
Posted: Mon Feb 20, 2006 6:51 pm Post subject: Re: how install gettext extention on gnope for windows. |
|
|
| 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
|
Posted: Mon Feb 20, 2006 7:03 pm Post subject: Re: how install gettext extention on gnope for windows. |
|
|
| 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
 |
|
| Back to top |
|
 |
cweiske
Joined: 08 Dec 2005 Posts: 454 Location: Leipzig/Germany
|
Posted: Mon Feb 20, 2006 7:54 pm Post subject: |
|
|
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
|
Posted: Tue Feb 28, 2006 8:51 pm Post subject: Intalling Ascii_Art_Generator |
|
|
| 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
|
Posted: Tue Feb 28, 2006 8:57 pm Post subject: |
|
|
| 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
|
Posted: Wed Mar 01, 2006 5:31 am Post subject: |
|
|
| 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
|
Posted: Wed Mar 01, 2006 8:19 am Post subject: |
|
|
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
|
Posted: Wed Mar 01, 2006 10:56 am Post subject: |
|
|
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
|
Posted: Wed Mar 01, 2006 11:01 am Post subject: |
|
|
| 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
|
Posted: Wed Mar 01, 2006 3:47 pm Post subject: |
|
|
| 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
|
Posted: Wed Mar 01, 2006 6:59 pm Post subject: |
|
|
| 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.  |
|
| Back to top |
|
 |
|