[Gtk-sharp-list] Translations of a project, GetText and the application prefix
Philip Van Hoof
spamfrommailing@freax.org
14 May 2003 14:39:11 +0200
Hi there,
Is gettext already implemented in Mono? I would like to use gtk-sharp
for a application that uses po-files for it's translation
for example:
using GetText;
string abc = new string(_("abc"));
or
string abc = new string(GetText._("abc"));
I also don't know how I can get the prefix that was used during
compilation. Maybe by generating a .cs-file ?
[src/Include.cs.in]
public static class MyProject {
...
public static string prefix = "@PREFIX@";
...
}
[configure.in]
AC_OUTPUT([
...
src/Include.cs
...
])
Or is there a better way ?
--
Philip Van Hoof a.k.a. freax
me at freax dot org
http://www.freax.be -- http://www.freax.eu.org -- http://www.freax.org