Displaying 20 results from an estimated 63 matches for "bindtextdomain".
2005 Mar 17
2
Using gettext to localize your rails app
...= dialect.nil? ? language : dialect
# should always produce language_DIALECT (en_EN, en_GB, de_DE, ...)
@locale = "#{language}_#{dialect.upcase}"
ENV[''LC_MESSAGES''] = ENV[''LANG''] = @locale
Locale.set(Locale::MESSAGES, @locale)
@gettext = bindtextdomain(''messages'', "#{RAILS_ROOT}/locale",
@locale, @charset)
# after this, i can call _(''Cancel'') in the controller and this will
# return => "Abbrechen" for de_DE (German)
end
I want to be able to use _() everywhere, so I have a
lib/...
2014 Sep 23
0
[PATCH 01/13] syntax-check: dirty hack to pass bindtextdomain check
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
---
p2v/gui.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/p2v/gui.c b/p2v/gui.c
index a50307d..2df5017 100644
--- a/p2v/gui.c
+++ b/p2v/gui.c
@@ -69,7 +69,7 @@ static GtkWidget *run_dlg,
*cancel_button;
/* The entry point from the main program.
- * Note that gtk_init etc have already been called in main().
+ * Note
2014 Sep 23
1
Re: [PATCH 01/13] syntax-check: dirty hack to pass bindtextdomain check
On Tuesday 23 September 2014 17:20:27 Hu Tao wrote:
> Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
> ---
> p2v/gui.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/p2v/gui.c b/p2v/gui.c
> index a50307d..2df5017 100644
> --- a/p2v/gui.c
> +++ b/p2v/gui.c
> @@ -69,7 +69,7 @@ static GtkWidget *run_dlg,
> *cancel_button;
>
>
2015 Mar 10
1
[PATCH] gui: fix a syntax-check issue of bindtextdomain
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
---
p2v/gui.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/p2v/gui.c b/p2v/gui.c
index 60f226e..f661f49 100644
--- a/p2v/gui.c
+++ b/p2v/gui.c
@@ -70,7 +70,7 @@ static GtkWidget *run_dlg,
*cancel_button, *reboot_button;
/* The entry point from the main
2023 Jul 18
1
change language at console
On Wed, 1 Apr 2015, Prof Brian Ripley wrote: > I would start by trying LANGUAGE=en , e.g. More specifically, you can use en_US or en_GB. Rich [...]
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
2006 Feb 27
4
Gettext and rails
...ss in my app, and it is not a ActiveRecord, just a
normal class. When require ''gettext'' and include it in the class, I can
use the _('''') methods fine. They get picked upp by rake updatepo. But
they dont get translated in my app. I then tried adding the line -
bindtextdomain("myapp") but I couldnt get it to work, it claimed there
was no such method. What am I doing wrong here?
Regards,
Albert
2013 Feb 04
2
gettext weirdness
...expression\""
[...]
#: src/main/errors.c:582
msgid "Error in "
msgstr "Erreur dans "
Start R in French and see if I can get something translated to French:
$ LANG=fr_FR.UTF8 R
> stop('This is an error')
Erreur : This is an error
> bindtextdomain("R") # does not seem necessary, but just to be safe...
[1] "/usr/share/R/share/locale"
> gettext("Error in ", domain="R")
[1] "Error in "
> "invalid option \"warning.expression\"" -> msg; gettext(msg, domain="R&...
2013 Feb 04
2
gettext weirdness
...expression\""
[...]
#: src/main/errors.c:582
msgid "Error in "
msgstr "Erreur dans "
Start R in French and see if I can get something translated to French:
$ LANG=fr_FR.UTF8 R
> stop('This is an error')
Erreur : This is an error
> bindtextdomain("R") # does not seem necessary, but just to be safe...
[1] "/usr/share/R/share/locale"
> gettext("Error in ", domain="R")
[1] "Error in "
> "invalid option \"warning.expression\"" -> msg; gettext(msg, domain="R&...
2009 Dec 29
1
error when open a2billing web page!
hi,
i have installed a2billing , when i open /admin web pages. errors as follow:
Fatal error: Call to undefined function bindtextdomain() in
/usr/local/src/a2billing/common/lib/languageSettings.php on line 130
do you know what's wrong?
--
Thanks,
Sucan
2011 Sep 07
1
[PATCH] hivexsh: Conditionally build for Mac OS X
...ts xml po
+
+if HAVE_HIVEXSH
+SUBDIRS += sh
+endif
if HAVE_OCAML
SUBDIRS += ocaml
diff --git a/configure.ac b/configure.ac
index d7520e7..ce9dd48 100644
--- a/configure.ac
+++ b/configure.ac
@@ -135,6 +135,7 @@ AC_CHECK_HEADERS([byteswap.h endian.h libintl.h])
dnl Functions.
AC_CHECK_FUNCS([bindtextdomain])
+AC_CHECK_FUNCS([open_memstream])
dnl Check for pod2man and pod2text.
AC_CHECK_PROG([POD2MAN],[pod2man],[pod2man],[no])
@@ -173,6 +174,9 @@ PKG_CHECK_MODULES([LIBXML2], [libxml-2.0])
AC_SUBST([LIBXML2_CFLAGS])
AC_SUBST([LIBXML2_LIBS])
+dnl hivexsh depends on open_memstream, which is absen...
2017 Jan 26
2
[PATCH v2 0/2] Fix srandom issues.
A better way to solve this I think.
Rich.
2006 May 09
5
How to use gettext in plugins?
...age from the plugin:
validates_length_of :login, :within => 3..40, :on => :create, :message
=> N_("%{fn} is too short (min is %d characters)")
It can not display the according language,where should i set it?
I have tried to add
require ''gettext/rails''
GetText.bindtextdomain("myd2d")
to init_engine.rb or somewhere else,it can not work still.
Thanks
Charlie
--
Posted via http://www.ruby-forum.com/.
2016 Jun 01
2
[PATCH v2] rescue: add --autosysroot option RHBZ#1183493
--autosysroot option uses suggestions to user on how to mount filesystems
and change root suggested by --suggest option in virt-rescue.
Commands are passed on kernel command line in format
guestfs_command=command;. Command ends with a semicolon and there can be
multiple commands specified. These are executed just before bash starts.
On successfull run user is presented directly with bash in
2011 Sep 06
2
[PATCH 0/3] hivex: Improve OS X support
.../BPT trap: 5
I have the vague idea of how to address the first two, but not the last.
I would appreciate any help on these. Gillen, you said earlier this
weekend you had taken a stab at compiling things in OS X. Did you have
to take these steps, too?
--Alex
Alex Nelson (3):
Mac OS X: Detect bindtextdomain
Mac OS X: setlocale function requires locale.h
Mac OS X: Run glibtoolize in absence of libtoolize
bootstrap | 2 +-
configure.ac | 3 +++
sh/hivexsh.c | 3 +++
xml/hivexml.c | 3 +++
4 files changed, 10 insertions(+), 1 deletions(-)
--
1.7.4.4
2014 Mar 20
5
[PATCH 1/3] builder/virt-index-validate: try to cleanup in any occasion
...e.c b/builder/index-validate.c
index 4b7fe93..fed0f81 100644
--- a/builder/index-validate.c
+++ b/builder/index-validate.c
@@ -62,6 +62,7 @@ main (int argc, char *argv[])
struct section *sections;
struct parse_context context;
FILE *in;
+ int ret;
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEBASEDIR);
@@ -109,19 +110,22 @@ main (int argc, char *argv[])
exit (EXIT_FAILURE);
}
- if (do_parse (&context, in) != 0) {
- fprintf (stderr, _("%s: '%s' could not be validated, see errors above\n"),
+ ret = do_parse (&context, in);
+
+ if (...
2013 Oct 16
1
[Hivex] [PATCH] lib: Promote byte_conversions.h #include to hivex-internal.h
...eswap.h are
found with `configure` in OS X 10.8.5 (XCode 5), but the headers are
both found in Fedora 19 and Ubuntu 13.04. This patch to configure.ac
further logs that only ntohl is available for byte swaps:
@@ -153,6 +153,8 @@ AC_REPLACE_FUNCS([mmap])
dnl Functions.
AC_CHECK_FUNCS([bindtextdomain])
+AC_CHECK_FUNCS([le32toh ntohl bswap_32 __bswap_32])
+
(As an aside, it's curious that a missing byteswap.h didn't cause
hivex-internal.h to fail to build.)
(As another aside, this is an interesting example of lazy symbol
binding failing with an inline function.)
The problem is...
2016 Jun 09
2
Re: [PATCH v2] rescue: add --autosysroot option RHBZ#1183493
...om libvirt guest\n"
> " --format[=raw|..] Force disk format for -a option\n"
> @@ -87,21 +92,30 @@ usage (int status)
> exit (status);
> }
>
> -int
> -main (int argc, char *argv[])
> -{
> - setlocale (LC_ALL, "");
> - bindtextdomain (PACKAGE, LOCALEBASEDIR);
> - textdomain (PACKAGE);
> -
> - parse_config ();
> +struct drv *drvs = NULL;
> +struct drv *drv;
> +char **cmds = NULL;
> +const char *format = NULL;
> +bool format_consumed = true;
> +int c;
> +int option_index;
> +int network = 0;
>...
2016 Jun 01
0
[PATCH v2] rescue: add --autosysroot option RHBZ#1183493
..." -d|--domain guest Add disks from libvirt guest\n"
" --format[=raw|..] Force disk format for -a option\n"
@@ -87,21 +92,30 @@ usage (int status)
exit (status);
}
-int
-main (int argc, char *argv[])
-{
- setlocale (LC_ALL, "");
- bindtextdomain (PACKAGE, LOCALEBASEDIR);
- textdomain (PACKAGE);
-
- parse_config ();
+struct drv *drvs = NULL;
+struct drv *drv;
+char **cmds = NULL;
+const char *format = NULL;
+bool format_consumed = true;
+int c;
+int option_index;
+int network = 0;
+char *append = NULL;
+int memsize = 0;
+int smp = 0;
+int...
2016 May 24
1
[PATCH] rescue: add --autosysroot option RHBZ#1183493
--autosysroot option uses suggestions to user on how to mount filesystems
and change root suggested by --suggest option in virt-rescue.
Commands are passed on kernel command line in format
guestfs_command=command;. Command ends with a semicolon and there can be
multiple commands specified. These are executed just before bash starts.
On successfull run user is presented directly with bash in
2018 Dec 02
0
[PATCH nbdkit 2/4] valgrind: Add --show-leak-kinds=all and comprehensive list of suppressions.
....
+ fun:_dl_allocate_tls
+}
+
+# Suppress leaks from dlopen. When running under valgrind we
+# deliberately don't run dlclose because otherwise valgrind cannot
+# print symbols. So it's expected that dlopen will leak.
+{
+ glibc_2
+ Memcheck:Leak
+ ...
+ obj:/usr/lib*/libdl-*
+}
+
+# bindtextdomain leaks.
+{
+ glibc_3
+ Memcheck:Leak
+ ...
+ fun:bindtextdomain
+}
+
+# Both gmtime_r and locatime_r leak some sort of timezone- related
+# struct inside glibc. These are used by the log filter and the
+# floppy plugin.
+{
+ glibc_4
+ Memcheck:Leak
+ fun:malloc
+ ...
+ fun:tzset_internal
+...