Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
gettext
- Page 1
getText(), Help!
Programming
Software Development
13 Years Ago
by TheHelp
…m learning java and I have a problem. The
getText
() doesn't seem to work. What I am trying…command line. I get the error cannot resolve symbol Symbol:
getText
() Class : java.awt.Button [CODE] import java.io.*;…500,500); f.setVisible(true); String x = b1.
getText
(); System.out.println(x); } } [/CODE] Thanks,
Re: getText(), Help!
Programming
Software Development
13 Years Ago
by TheHelp
Thanks guys, the
getText
() method worked with the JButton. Thanks..
Gettext
Programming
Software Development
16 Years Ago
by kcomeby
… problem, i guess i should get text from editcontrol with
gettext
api, but i have to pass hwnd for that. actually…
Re: gettext C++ via python
Programming
Software Development
16 Years Ago
by Trmsk
…python # import stanard python
gettext
import
gettext
# extern C
gettext
functions cdef extern from &…DOMAIN, LOCALEDIR) #C function call return
gettext
.bindtextdomain(DOMAIN, LOCALEDIR) #Python function call… return (
gettext
.
gettext
(msg)).encode("utf-8") else: return (
gettext
.
gettext
(unicode(msg,&…
getText problem
Programming
Software Development
14 Years Ago
by MWE_QUE
… displayMessage(String action, ContainerEvent e) { display.setText(((JButton) e.getChild()).
getText
() + " was" + action + e.getContainer().getClass().getName() +… { display.append("Enter a question"); tempQuestion = display.
getText
(); display.append(newline); System.out.println("Enter the answer…
Re: gettext C++ via python
Programming
Software Development
16 Years Ago
by Trmsk
… # import stanard python
gettext
from
gettext
import bindtextdomain as Python_bindtextdomain from
gettext
import textdomain as Python_textdomain from
gettext
import
gettext
# extern C
gettext
functions cdef extern…
gettext C++ via python
Programming
Software Development
16 Years Ago
by Trmsk
Hi, everyone. I'm trying to use
gettext
in complicate application. It consists of C++ code wrapped in … like is shown below. python main: [CODE=python]import
gettext
gettext
.bindtextdomain(DOMAIN, LOCALEDIR)
gettext
.textdomain(DOMAIN)[/CODE] and wrapped C++ code: [CODE…
Re: gettext C++ via python
Programming
Software Development
16 Years Ago
by Trmsk
I found answer without assistance. It's not possible now, because of python module
gettext
using it's own
gettext
tools. But in the past python
gettext
was based on C-
gettext
library.
Re: getText problem
Programming
Software Development
14 Years Ago
by MWE_QUE
…'t realize it would take the menu already printed into
getText
instead of my user input. How do I wait for…
gettext not working under local xampp
Programming
Web Development
15 Years Ago
by thosecars82
… what string I set the variable $language with that
gettext
will always look for a translation in the folder locale…(es_ES) or not. For example, in the above code,
gettext
will not look for the French translation as it should…, that is to say, locale\es_ES\LC_MESSAGES. Moreover, if
gettext
does not find the folder locale\es_ES\LC_MESSAGES then it…
Re: gettext not working under local xampp
Programming
Web Development
15 Years Ago
by diafol
…? [QUOTE]Eventually I discovered the problem had to do with
gettext
being used under windows, it seems it is a bug… of
gettext
under windows which has not been solved yet. [/QUOTE]
Gettext
seems to work for me…
Re: gettext not working under local xampp
Programming
Web Development
15 Years Ago
by thosecars82
Eventually I discovered the problem had to do with
gettext
being used under windows, it seems it is a bug of
gettext
under windows which has not been solved yet.
Gettext trouble
Hardware and Software
Linux and Unix
15 Years Ago
by hhh123
Hi, I want to install
gettext
on my fedora core 10.
Gettext
package installed successfully but in /usr/share/locale/ there is no .mo and .po files in its language directory. Plz tell me how to install that locales plz reply me on <SNIP> Sorry 4 my band english Thnx
Re: Gettext trouble
Hardware and Software
Linux and Unix
15 Years Ago
by Point Red
I don't think you'll have ".po" file if you just installed the
gettext
. And, if you need ".mo" file, you need to compile ".po" file by msgfmt. So.... you need to find/install ".po" (in your case, you need "messages.po" right?) and it may has some of program/source.
Re: getText(), Help!
Programming
Software Development
13 Years Ago
by hfx642
Line #3 should be import java.awt.event.*; You don't neet line #4. Missing semicolon on line #5. You also require import javax.swing.*; Change your Button to JButton.
Re: getText(), Help!
Programming
Software Development
13 Years Ago
by sirlink99
There is no get text method for a JButton. assign the text as a variable, and then just use that to print out, and set the text on the JButton
Re: Gettext
Programming
Software Development
16 Years Ago
by tux4life
Take a look at [URL="http://winprog.org/tutorial/"]this[/URL] tutorial ...
Re: Gettext
Programming
Software Development
16 Years Ago
by kcomeby
actually i looked that tutorials for 2 hours. i think my answer is not there or i cant find it. maybe i should explain my question (because of my english) i dont want just get text, i will maybe change button text, or scrollbars position in message switch block. so i need hwnd all these cases, should i store hwnd for every control? hope i dont need…
Re: Gettext
Programming
Software Development
16 Years Ago
by kcomeby
:'(
Re: Gettext
Programming
Software Development
16 Years Ago
by stephen.id
[CODE=cplusplus]#include <windows.h> HWND EditControl = NULL; HWND ButtonShowText = NULL; enum { ID_EDITCONTROL, ID_SHOWTEXT, }; void GetEditControlText(HWND); LRESULT CALLBACK WindowProcedure(HWND, UINT, WPARAM, LPARAM); int WINAPI WinMain(HINSTANCE hThisInstance, HINSTANCE …
Re: Gettext
Programming
Software Development
16 Years Ago
by kcomeby
Thank you but i have 2 questions 1- why we are creating controls in "WM_CREATE" block? 2- if i have 1000 controls in window, will i define 1000 public variable? Thank you again
Re: Gettext
Programming
Software Development
16 Years Ago
by stephen.id
WM_CREATE block is basically what its called, its usaully for creating buttons, edit controls, child windows, etc...if i had 1000 public variables then you would have to right a routine that read all of them, some kind of loop, i might post an example
Re: Gettext
Programming
Software Development
16 Years Ago
by stephen.id
Mark this tread as solved :P
Re: Gettext
Programming
Software Development
16 Years Ago
by tux4life
[QUOTE=stumpy798;844146]Mark this tread as solved :P[/QUOTE] Actually the OP has to decide whether his problem is solved or not, you don't have to do this for him ...
Re: Gettext
Programming
Software Development
16 Years Ago
by stephen.id
[QUOTE=kcomeby;843572]Thank you but i have 2 questions 1- why we are creating controls in "WM_CREATE" block? 2- if i have 1000 controls in window, will i define 1000 public variable? Thank you again[/QUOTE] ummm lol i thought that meant it was solved, maybe not, lol, i made a program that did exaclty what he wanted :P
Re: Gettext gives me blank page after .mo update
Programming
Web Development
15 Years Ago
by sourcebits
Yes similar experience, but not with mo files. If you go for another alternative than
gettext
method, work will be less. If you have already gone for
gettext
, Please seek help of hosting provider, to avoid this.
Re: Gettext gives me blank page after .mo update
Programming
Web Development
15 Years Ago
by picador
Thanks for your reply... I found solution in changing domain name for
gettext
. After newly created .mo file is uploaded (with another name than old one), I've changed domain name and problem gone... It must be some cache issue...
what does gettext() method returns if no text is given?
Programming
Software Development
13 Years Ago
by trivax
… + "','"+ txtPatAddress.
getText
() + "','"+ txtPhone.
getText
() +"','"+ txtMob.
getText
() +"','"+ txtRelname.
getText
() +"','"+ txtRelation.
getText
() +"','"+ txtAdmissiondate…
Re: what does gettext() method returns if no text is given?
Programming
Software Development
13 Years Ago
by NormR1
What class is the
getText
() a method in? What does the API doc say?
Re: what does gettext() method returns if no text is given?
Programming
Software Development
13 Years Ago
by pbl
JTextField.
getText
() will always return a String. I might have a length() of 0 but will never be null
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC