[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: XML and internationalization question
From: Stephan Kulow <coolo () kde ! org>
Date: 2000-03-30 10:43:03
[Download RAW message or body]
Emily Ezust wrote:
>
> Let's say I want to create a KStdAction but I want to change the visible
> text. In my rc file I would have this:
> <ActionProperties>
> <Action name="file_new" text="New Penguin"/>
> </ActionProperties>
>
> But how will that get internationalized? I can't do this (I tried it
> just
> for giggles):
> text="i18n(\"New Penguin\")"
>
It works in adding a rc.cpp behind the messages: target and include
rc.cpp
into your list of to extracted sources.
Look at kwrite for an example how to do it.
And if you're brave enough, look at admin/Makefile.common's
package-messages
target for details how it's done.
It's as simple as
(cd $$subdir ;\
if test -n "`grep 'messages: rc.cpp'`"; then \
$(EXTRACTRC) *.rc > rc.cpp ;\
fi ;\
$(MAKE) -f Makefile.am XGETTEXT="$(XGETTEXT) -C -ki18n
-kI18N_NOOP -ktranslate -kaliasLocale -x $(includedir)/kde.pot" messages
> $$tmpname 2>&1 ) || cat $$tmpname; \
test -f $$subdir/rc.cpp && rm -f $$subdir/rc.cpp
Greetings, Stephan
--
It said Windows 95 or better, so in theory Linux should run it
GeorgeH on /.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic