Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel
--
Carles Pina i Estany
http://pinux.info
___
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel
,
On Dec/19/2010, Aron Xu wrote:
Hello,
I recently read there are ~270 new strings appear in grub's template,
so will there be a new template for translators? or it is too early
because the strings is still unstable?
--
Regards,
Aron Xu
--
Carles Pina i Estany
http://pinux.info
the required changes.
Probably more news soon.
--
Carles Pina i Estany
http://pinux.info
___
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel
Hi,
On Jul/28/2010, Vladimir '??-coder/phcoder' Serbinenko wrote:
On 07/24/2010 12:59 AM, Carles Pina i Estany wrote:
Hello,
Some time ago we talked about importing argp (to make it easier to add
gettext support for the --help strings):
http://lists.gnu.org/archive/html/grub-devel
(or modify the sed to put single-quotes at the start and end, if
that works out neater).
I've gone ahead and committed a patch based on this to trunk, and I'll
backport it to Ubuntu Lucid shortly as well. Testing welcome!
thanks Colin, I'll do some tests as well.
--
Carles Pina i Estany
Hello,
On Mar/28/2010, Vladimir '??-coder/phcoder' Serbinenko wrote:
Carles Pina i Estany wrote:
b) Makes the alignment more difficult
Why not just do like
-h, --help%s\n
-V, --version %s\n
-v, --verbose %s\n, _(display this message
Hi,
On Mar/27/2010, Jordi Mallach wrote:
On Sat, Mar 27, 2010 at 12:54:16AM +, Carles Pina i Estany wrote:
According to gettext manual usage messages must be internationalised on
per-option basis to allow reuse of e.g. --help desciption and to avoid
the whole big message
Hello,
On Mar/26/2010, Vladimir '??-coder/phcoder' Serbinenko wrote:
Carles Pina i Estany wrote:
Hello,
Last January I asked for ok to commit this to trunk:
http://lists.gnu.org/archive/html/grub-devel/2010-01/msg00373.html
I've redone the patch (some offsets, Changelog, I removed
Hi,
On Mar/27/2010, Carles Pina i Estany wrote:
According to gettext manual usage messages must be internationalised on
per-option basis to allow reuse of e.g. --help desciption and to avoid
the whole big message to be marked as fuzzy if only one option changes.
I'm surprised
Pina i Estany
http://pinux.info
___
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel
Hello,
On Mar/19/2010, Colin Watson wrote:
On Fri, Mar 19, 2010 at 08:35:23PM +, Carles Pina i Estany wrote:
On Mar/19/2010, Colin Watson wrote:
# Copy gettext files
mkdir -p ${grubdir}/locale/
-for file in ${grubdir}/locale/*.mo ${pkglibdir}/locale/*.mo; do
-if test -f
the changes when we will agree.
Cheers,
--
Carles Pina i Estany
http://pinux.info
=== added file 'ChangeLog.keyboard_layouts'
--- ChangeLog.keyboard_layouts 1970-01-01 00:00:00 +
+++ ChangeLog.keyboard_layouts 2010-02-13 23:49:34 +
@@ -0,0 +1,31 @@
+2010-01-18 Carles Pina i Estany car
patch.
Do I commit?
I cannot remember if with this patch was absolutely everything
gettextizzed in utils, I'll review when it's done. I have the feeling
that I left something that may require some discussion.
Thanks,
--
Carles Pina i Estany
http://pinux.info
=== modified file 'ChangeLog
,
--
Carles Pina i Estany
http://pinux.info
___
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel
.
--
Carles Pina i Estany
http://pinux.info
___
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel
Hi,
On Feb/23/2010, edgar.sol...@web.de wrote:
He never stated why he wanted it exactly. Maybe he just want's not to
confuse an everyday user.
or just for fun :-)
--
Carles Pina i Estany
http://pinux.info
___
Grub-devel mailing list
,
--
Carles Pina i Estany
http://pinux.info
=== modified file 'ChangeLog'
--- ChangeLog 2010-02-13 15:48:22 +
+++ ChangeLog 2010-02-14 00:02:48 +
@@ -1,3 +1,8 @@
+2010-02-13 Carles Pina i Estany car...@pina.cat
+
+ * gettext/gettext.c (grub_gettext_translate): Avoids possible
+ overflow
.
Cheers,
--
Carles Pina i Estany
http://pinux.info
___
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel
Hi,
On Feb/01/2010, Chris Jones wrote:
On Mon, Feb 01, 2010 at 04:32:14PM EST, Carles Pina i Estany wrote:
Hi,
Aron Xu sent me some screenshots of Grub booting time in Chinese:
http://carles.lastdot.org/Screenshot-QEMU.png
http://carles.lastdot.org/Screenshot-QEMU-1.png
http
distribution do you use?
Have you used qemu for something else? (that you would have some special
qemu configuration).
The iso file should be generated in your grub directory, not under img/
Cheers,
--
Carles Pina i Estany
http://pinux.info
, but of course, but it was with
another Ubuntu or Debian.
Thanks!
--
Carles Pina i Estany
http://pinux.info
___
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel
usual for me :-)
(Yes, I know that Russian is there too)
As Aron said: the font size is not constant, so we should fix it in some
point.
Cheers,
--
Carles Pina i Estany
http://pinux.info
___
Grub-devel mailing list
Grub-devel@gnu.org
http
Hello,
I've modified a bit the patch keyboard_layout.patch.
Should apply to last trunk, plus it's called at_keyboard_layout. And the
exported variable is in at_keyboard and not in kernel.
Comments?
Thanks,
--
Carles Pina i Estany
http://pinux.info
=== added file
to grub.
I understand and agree.
--
Carles Pina i Estany
http://pinux.info
___
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel
Hi,
On Jan/26/2010, Vladimir '??-coder/phcoder' Serbinenko wrote:
Evgeny Kolesnikov wrote:
On Mon, 2010-01-25 at 23:07 +, Carles Pina i Estany wrote:
Find attached a way to macrofy the constants from font files between
util and grub kernel.
Comments, name changes, etc
to leave it out.
It gettexts mainly everything but not grub_util_error / grub_util_info
calls, waiting how we handle it (to be discussed later in another
thread).
Any feedback?
Thanks,
--
Carles Pina i Estany
http://pinux.info
___
Grub
On Jan/27/2010, Carles Pina i Estany wrote:
Hi,
Here is the first patch to gettextizze strings in util/* (well, before
some things has been done).
Now with the patch attached.
--
Carles Pina i Estany
http://pinux.info
=== modified file 'ChangeLog'
--- ChangeLog 2010-01-26 21:23
Hi,
On Jan/24/2010, Robert Millan wrote:
On Wed, Jan 20, 2010 at 11:37:38PM +, Carles Pina i Estany wrote:
a) if someone has a better idea to avoid this mistake again than paying
attention I can implement.
b) Robert: I reverse it, fine?
I just removed capitalization of error
Hello,
Find attached a way to macrofy the constants from font files between
util and grub kernel.
Comments, name changes, etc. are welcomed.
--
Carles Pina i Estany
http://pinux.info
=== modified file 'ChangeLog'
--- ChangeLog 2010-01-25 17:04:22 +
+++ ChangeLog 2010-01-25 23:03
and unpatching today.
Just asking/commenting to know.
--
Carles Pina i Estany
http://pinux.info
___
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel
,
--
Carles Pina i Estany
http://pinux.info
___
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel
Hi,
On Jan/20/2010, Robert Millan wrote:
On Mon, Jan 18, 2010 at 07:25:37PM +, Carles Pina i Estany wrote:
Also keyboard_layouts is pretty small. Perhaps we can just make
*_keyboard depend on it and put US keyboard into it as default and shave
some complexity this way
How
directory.
Can you think of a way to restoring keyboard map to English?
unloading the module restores the original keyboard (so, English one). I save
the original one when the module is loaded.
Thanks for the other comments,
--
Carles Pina i Estany
http://pinux.info
Hi,
On Jan/18/2010, Vladimir '??-coder/phcoder' Serbinenko wrote:
Carles Pina i Estany wrote:
Actually if prefix (that it's a variable) is / then args[0] acts as a
filename. Would be like ///test/filename and it's a valid directory.
Perhaps we should remove prefix variables
will fix after finishing other
things.
Cheers,
--
Carles Pina i Estany
http://pinux.info
___
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel
Hi,
On Jan/18/2010, Colin Watson wrote:
On Mon, Jan 18, 2010 at 07:25:37PM +, Carles Pina i Estany wrote:
a) very short term: what about to register a command to something
(like 1234, numbers doesn't usually change between keyboard, right?
The standard counterexample is French
Hi,
On Jan/18/2010, Carles Pina i Estany wrote:
I've done a first version of keyboard_layout. Find a patch attached, or
Thanks to the comments from different people in the thread, I send a new
version.
It does, on from my head:
a) Constants used in util/ and Grub are in a common header file
of some variables/functions but I cannot
think about it today :-)
Cheers,
--
Carles Pina i Estany
http://pinux.info
=== modified file 'conf/common.rmk'
--- conf/common.rmk 2010-01-14 14:04:44 +
+++ conf/common.rmk 2010-01-17 14:35:00 +
@@ -88,6 +88,10 @@ endif
bin_UTILITIES += grub
time) and tomorrow I'll be on the IRC, so feel free
to comment here (better for archiving) or there (better for questions
and answers).
Thanks,
--
Carles Pina i Estany
http://pinux.info
=== modified file 'conf/common.rmk'
--- conf/common.rmk 2010-01-14 14:04:44 +
+++ conf/common.rmk
Hi,
On Jan/12/2010, Colin Watson wrote:
On Tue, Jan 12, 2010 at 09:47:43PM +, Carles Pina i Estany wrote:
Plan:
* Approach 2
Small program (I guess that you prefer C, Python would be nice too) that
when Grub is installed would process the /usr/share/X11/xkb/symbols
files
.
(any problem to use the gcc macros to know the filename/line number? I
remember something and I cannot find it now)
Any other ideas?
The goals are two, and a bit contradictory at first glance:
a) Have less strings
b) Have more precise error messages
--
Carles Pina i Estany
http
Hi,
On Jan/01/2010, Isaac Dupree wrote:
Carles Pina i Estany wrote:
+grub_putchar (' ');
+grub_printf_ (N_(- Label \%s\), label);
...
Avoiding to have trailing spaces helps the translators (they will do
less mistakes).
In this case it is a space
and makes more accurate.
--
Carles Pina i Estany
http://pinux.info
=== modified file 'ChangeLog'
--- ChangeLog 2010-01-02 15:19:57 +
+++ ChangeLog 2010-01-02 23:08:06 +
@@ -1,3 +1,7 @@
+2010-01-03 Carles Pina i Estany car...@pina.cat
+
+ * normal/menu_text.c (print_message): Change
Hi,
On Jan/01/2010, Robert Millan wrote:
On Mon, Dec 28, 2009 at 02:17:37AM +0100, Carles Pina i Estany wrote:
=== modified file 'normal/misc.c'
--- normal/misc.c 2009-12-20 23:32:15 +
+++ normal/misc.c 2009-12-28 01:15:34 +
@@ -68,7 +68,10 @@ grub_normal_print_device_info
tested it adding some long summary in some commands and works fine
(apparently at least).
Thank you,
--
Carles Pina i Estany
http://pinux.info
=== modified file 'ChangeLog'
--- ChangeLog 2010-01-01 12:33:45 +
+++ ChangeLog 2010-01-01 17:08:20 +
@@ -1,3 +1,14 @@
+2010-01-01 Carles
Hi,
On Jan/01/2010, Carles Pina i Estany wrote:
Find attached a new version, measuring the width of the strings. I have
After some comments from Vladimir on IRC, committed.
--
Carles Pina i Estany
http://pinux.info
___
Grub-devel mailing
Hi,
Find an attached patch to macrofy pos 8 and pos 0xff in multiter.
In my opinion should be macrofied, it's more clear.
--
Carles Pina i Estany
http://pinux.info
=== modified file 'include/grub/term.h'
--- include/grub/term.h 2009-12-25 02:37:20 +
+++ include/grub/term.h 2009
Hi,
On Dec/28/2009, Carles Pina i Estany wrote:
Attached a patch that macrofies some values. I don't see any reason that
was not macrofied.
I forgot to mention: multiterm branch improved it in a different way.
--
Carles Pina i Estany
http://pinux.info
Hi,
On Dec/28/2009, Carles Pina i Estany wrote:
This patch should fix a small problem that Vladimir spotted and
Committed.
--
Carles Pina i Estany
http://pinux.info
___
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org
Hi,
On Dec/27/2009, Carles Pina i Estany wrote:
Until now the options for the commands has been splitted (using a \n) by
the developer.
if you want to test the patch, check the output of:
insmod acpi
help acpi
before and after the patch.
Before (at least with the standard terminal text
Hi,
Following a suggestion of Vladimir, now it uses GRUB_TERMINAL_WIDTH if
it's not compiling in util way.
--
Carles Pina i Estany
http://pinux.info
=== modified file 'ChangeLog'
--- ChangeLog 2009-12-26 23:43:21 +
+++ ChangeLog 2009-12-27 17:06:29 +
@@ -1,5 +1,10 @@
2009-12
Hi,
On Dec/27/2009, Carles Pina i Estany wrote:
I'll fix soon (tonight / tomorrow).
a patch idea is attached.
Before all summaries was:
COMMAND_NAME COMMAND_SUMMARY
r1992 removed COMMAND_NAME from the COMMAND_SUMMARY (smaller, not
redundant, etc.). But help without arguments was showing
Hi,
Attached a patch that macrofies some values. I don't see any reason that
was not macrofied.
--
Carles Pina i Estany
http://pinux.info
=== modified file 'ChangeLog'
--- ChangeLog 2009-12-27 21:32:52 +
+++ ChangeLog 2009-12-28 00:10:40 +
@@ -1,3 +1,9 @@
+2009-12-28 Carles
Hi,
This patch should fix a small problem that Vladimir spotted and
commented on IRC, plus adds a quotes on the label (looks nicer) and
clearer in my opinion.
Cheers,
--
Carles Pina i Estany
http://pinux.info
=== modified file 'ChangeLog'
--- ChangeLog 2009-12-27 21:32:52 +
Hello,
Find an attached patch.
Linux should be always capitalized.
All Linux loaders should have the same message: consistency, better LZMA
and less work for translators.
If you prefer another string tell me and I'll change.
--
Carles Pina i Estany
http://pinux.info
=== modified
Hi,
Find an attached patch that fix the compilation of video/readers/* when
DEBUG is enabled.
If ok I would commit.
Thanks,
--
Carles Pina i Estany
http://pinux.info
=== modified file 'ChangeLog'
--- ChangeLog 2009-12-26 10:01:33 +
+++ ChangeLog 2009-12-26 10:42:57 +
@@ -1,5
Correct Subject: is with debug (not with test)
--
Carles Pina i Estany
http://pinux.info
___
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel
Hi,
On Dec/26/2009, Carles Pina i Estany wrote:
Find an attached patch that fix the compilation of video/readers/* when
DEBUG is enabled.
validated in IRC, pushing now
--
Carles Pina i Estany
http://pinux.info
___
Grub-devel mailing
Hi,
On Dec/26/2009, Robert Millan wrote:
On Sat, Dec 26, 2009 at 11:20:27AM +0100, Carles Pina i Estany wrote:
cmd_linux = grub_register_command (linux, grub_cmd_linux,
-0, Load linux.);
+0, Load a Linux kernel
Hi,
On Dec/26/2009, Robert Millan wrote:
On Sat, Dec 26, 2009 at 01:35:53AM +0100, Carles Pina i Estany wrote:
Hi,
Commit 1949 introduced a bug using TAB due a miss-understanding that I
had with the code.
Oh, good to know. I was wondering why TAB expansion did these weird
tests has been fine.
I think that after comitting it I will be able to gettext all options
strings.
Thanks,
--
Carles Pina i Estany
http://pinux.info
=== modified file 'ChangeLog'
--- ChangeLog 2009-12-26 23:43:21 +
+++ ChangeLog 2009-12-27 00:08:20 +
@@ -1,5 +1,10 @@
2009-12-27
patch to gettextizze the help of all commands.
I would commit it in this way when someone reviews it. It's quite
straightforward.
Thanks,
--
Carles Pina i Estany
http://pinux.info
=== modified file 'ChangeLog'
--- ChangeLog 2009-12-25 00:04:51 +
+++ ChangeLog 2009-12-25 11:41:28 +
Hi,
On Dec/25/2009, Carles Pina i Estany wrote:
Find attached a patch that gettextizze the output of:
The patch that I wanted to send is the attached one.
It's the same one but without normal/menu_text.c changed as is not
needed (will maybe be in the future).
--
Carles Pina i Estany
description is already cut at half of terminal width.
You have to first translate and then cut the message and not the other
way round
See attached one.
--
Carles Pina i Estany
http://pinux.info
=== modified file 'ChangeLog'
--- ChangeLog 2009-12-25 00:04:51 +
+++ ChangeLog 2009-12
grub_print_message_indented, dependencies
will affect mainly fstest (it use lib/arg.c). Or have a dummy
grub_print_message_indented for fstest.
--
Carles Pina i Estany
http://pinux.info
___
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman
,
--
Carles Pina i Estany
http://pinux.info
=== modified file 'commands/help.c'
--- commands/help.c 2009-06-10 21:04:23 +
+++ commands/help.c 2009-12-25 12:36:54 +
@@ -21,6 +21,7 @@
#include grub/misc.h
#include grub/term.h
#include grub/extcmd.h
+#include grub/i18n.h
static grub_err_t
Hi,
On Dec/24/2009, Robert Millan wrote:
On Sun, Dec 13, 2009 at 01:31:55AM +, Carles Pina i Estany wrote:
If ok I would commit.
Was this checked in? ISTR having OKed it on IRC, but I don't see it
in ChangeLog.
it's already applied but not in the way that I was suggesting
Hi,
On Dec/22/2009, Vladimir '??-coder/phcoder' Serbinenko wrote:
Jordi Mallach wrote:
On Mon, Dec 21, 2009 at 10:19:16PM +, Carles Pina i Estany wrote:
b) At beginning I thought that we would not gettext error messages, but
I see that lot of these messages appears to the end
it.
--
Carles Pina i Estany
http://pinux.info
___
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel
do a patch, but I prefer to agree
before
b) At beginning I thought that we would not gettext error messages, but
I see that lot of these messages appears to the end user. Do we gettext
using N_( ) and then where it's printed I use _( ) ? I would say
yes.
Thanks,
--
Carles Pina i Estany
Hi,
Same patch moving STANDARD_MARGIN to an include file and using it in
normal/main.c.
--
Carles Pina i Estany
http://pinux.info
=== modified file 'ChangeLog'
--- ChangeLog 2009-12-19 23:00:30 +
+++ ChangeLog 2009-12-20 12:10:46 +
@@ -1,3 +1,33 @@
+2009-12-20 Carles Pina i
Hi,
On Dec/20/2009, Carles Pina i Estany wrote:
Can someone take a look in the patch again?
Done in IRC.
Thanks,
--
Carles Pina i Estany
http://pinux.info
___
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman
Hi,
On Dec/19/2009, Carles Pina i Estany wrote:
On Dec/19/2009, Carles Pina i Estany wrote:
Something to improve before committing?
when this will be reviewed and committed I will adapt (some things has
changed) the last part of normal/* files . I sent a week ago aprox. but
needs some
Hi,
On Dec/19/2009, Carles Pina i Estany wrote:
Hi,
On Dec/19/2009, Carles Pina i Estany wrote:
Something to improve before committing?
New patch with a missing grub_free.
reviewed in IRC and committed.
--
Carles Pina i Estany
http://pinux.info
Hi,
On Dec/07/2009, Carles Pina i Estany wrote:
IME, if it's not difficult to get rid of it, it better to do it for
safety, because it's a common translator mistake.
I will remove the spaces. Only in one place is not straight but it's
not difficult.
Done in the attached patch.
Can
...)
Thanks,
--
Carles Pina i Estany
http://pinux.info
___
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel
Hi,
I've gettextitzzed the version string.
Something to improve before committing?
It's all right?
Thanks,
--
Carles Pina i Estany
http://pinux.info
=== modified file 'ChangeLog'
--- ChangeLog 2009-12-19 00:05:41 +
+++ ChangeLog 2009-12-19 01:27:34 +
@@ -1,5 +1,18 @@
2009-12
Hi,
On Dec/19/2009, Carles Pina i Estany wrote:
Something to improve before committing?
New patch with a missing grub_free.
--
Carles Pina i Estany
http://pinux.info
=== modified file 'ChangeLog'
--- ChangeLog 2009-12-19 00:05:41 +
+++ ChangeLog 2009-12-19 01:27:34 +
@@ -1,5
Hi,
On Dec/16/2009, BVK Chaitanya wrote:
On Tue, Dec 15, 2009 at 5:18 AM, Carles Pina i Estany car...@pina.cat wrote:
Writing a unittest for gettext it's very easy: it just needs a couple of
.mo and a script executing gettext string and checking that the result
is string translated
needs a couple of
.mo and a script executing gettext string and checking that the result
is string translated. Will get more interesting when ngettext will
come too :-)
So, BVK, once you have the infrastructure if you ping me gettext could
be your guinea pig.
Cheers,
--
Carles Pina i Estany
Hi,
On Dec/12/2009, Carles Pina i Estany wrote:
We should fix it. We have three options (maintaining the current
behaviour for the user):
a) simple_patch (just swapping that two lines)
After talking with Robert last night and for the time being I've
committed the simple one (r1933
commit.
--
Carles Pina i Estany
http://pinux.info
=== modified file 'ChangeLog'
--- ChangeLog 2009-12-12 00:43:32 +
+++ ChangeLog 2009-12-13 00:44:09 +
@@ -1,3 +1,10 @@
+2009-12-13 Carles Pina i Estany car...@pina.cat
+
+ * normal/menu_text.c (utf8_to_ucs4): New definition
for the discussion of it:
http://lists.gnu.org/archive/html/grub-devel/2009-09/msg00242.html
I like the idea, and I think that as Colin pointed it out it can be
useful.
I haven't watched to any of the implementations.
--
Carles Pina i Estany
http://pinux.info
Hi,
print_timeout is not working fine when the translated string contains
multi-byte characters, because it's locating where to write the seconds
when second_stage == 1 (so the seconds when second_stage == 1 are
miss-placed).
Tomorrow evening or Sunday I will fix it.
--
Carles Pina i Estany
Hi,
On Dec/04/2009, Carles Pina i Estany wrote:
Hi,
On Dec/04/2009, Robert Millan wrote:
On Sun, Nov 29, 2009 at 06:39:36PM +, Carles Pina i Estany wrote:
(first one has a bug but very easy to fix, even thought I would maybe
refactor this code to implement in other way
can commit soon more things.
Thanks,
--
Carles Pina i Estany
http://pinux.info
___
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel
happy with grub_put_ function name?
Colin: could you apply this patch or similar?
I don't want to push more gettext strings before setting up the basic
infrastructure to avoid working twice.
Thanks,
--
Carles Pina i Estany
http://pinux.info
=== modified file 'include/grub/misc.h
Hi,
As Vladimir spotted:
On Dec/09/2009, Carles Pina i Estany wrote:
This...:
+#define grub_put_(str) grub_printf(%s, (str))
should be:
#define grub_put_(str) grub_printf(N_ (%s), (str))
If you Colin commit it don't propagate my mistake.
--
Carles Pina i Estany
Hi,
On Dec/10/2009, Carles Pina i Estany wrote:
As Richard commented (thanks):
#define grub_put_(str) grub_printf(N_ (%s), (str))
#define grub_put_(str) grub_printf(%s, N (str))
I should not be sending patches when too tired / without properly
testing with the .po
Hi,
On Dec/07/2009, Carles Pina i Estany wrote:
And then implement grub_printf_:
-
int
grub_printf_ (const char *fmt, ...)
{
va_list ap;
int ret;
va_start (ap, fmt);
ret = grub_vprintf (_(fmt), ap);
actually I would better call grub_printf here instead
really like that this fix the \n discussion that we had :-)
I like the idea and I understand that it's easy to make mistakes
translating strings. Actually I'm surprised that msgfmt is not giving
any warning if the
--
Carles Pina i Estany
http://pinux.info
idea because in the
other idea gettext has to be called in grub_printf level and not inside,
as far as I can think now :-)
--
Carles Pina i Estany
http://pinux.info
=== modified file 'ChangeLog'
--- ChangeLog 2009-12-07 16:46:24 +
+++ ChangeLog 2009-12-07 21:08:05 +
@@ -1,3 +1,17
Hi,
On Dec/07/2009, Jordi Mallach wrote:
On Sun, Dec 06, 2009 at 12:28:11AM +, Carles Pina i Estany wrote:
Is it fine to have a translatable string ended with a space? I think
that it's fine (same case than \n, even thought in this case msgfmt is
not warning).
[...]
IME, if it's
Hi,
On Dec/07/2009, Colin Watson wrote:
On Mon, Dec 07, 2009 at 08:14:08PM +, Carles Pina i Estany wrote:
a) It's a bit of false security because it's not fixing the case of file
normal/menu_text.c, line 191 (search the string Use the %C and %C keys
to) or menu_text.c line 374
a problem to
implement): use --flag=_:1:pass-c-format . So all strings will be
c-format and msgfmt will check the number of parameters (even if the
string doesn't have %C, will be c-format and msgfmt should complain if
msgstr has a new %C)
--
Carles Pina i Estany
http://pinux.info
Hi,
On Dec/07/2009, Carles Pina i Estany wrote:
So I would apply your patch, after understanding that it's only for
one more thing Colin. What do you think to not apply your patch and
apply the attached patch?
It force that the argument 1 of _ and N_ is a c-format (in this way
appears
Hi,
On Dec/08/2009, Colin Watson wrote:
On Mon, Dec 07, 2009 at 10:46:30PM +, Carles Pina i Estany wrote:
Your patch conflicts with my one (Subject: gettext: grub_printf_ and N_)
but it's not a big problem. If you commit before I would adapt
my one, else I would adapt your one
Model/Firmware/Serial (leave like it's now)
Or do the dynamic coding that maybe it's not needed...
Thoughts?
--
Carles Pina i Estany
http://pinux.info
___
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel
to work on it (and
finish everything of course).
--
Carles Pina i Estany
http://pinux.info
2009-12-XX Carles Pina i Estany car...@pina.cat
* commands/blocklist.c: Gettextizze.
* commands/boot.c: Likewise.
* commands/cat.c: Likewise.
* commands/cmp.c
Hi,
On Dec/06/2009, Carles Pina i Estany wrote:
- grub_printf (The files are identical.\n);
+ grub_printf (_(The files are identical.\n));
Vladimir suggested in IRC that instead of using:
grub_printf (grub_gettext (str)) // This is with _() expanded
I could use:
grub_printf_ (str
1 - 100 of 217 matches
Mail list logo