[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: XML and internationalization question
From: Michael Koch <m_koch () bigfoot ! de>
Date: 2000-03-30 12:05:38
[Download RAW message or body]
Am Thu, 30 Mar 2000 schrieb Stephan Kulow:
> 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
kwrite Makefile.am says:
messages: rc.cpp
$(XGETTEXT) -ki18nop *.cpp -o $(podir)/kwrite.pot
but if I do "make messages" it says
make: *** No rule to make target `rc.cpp', needed by `messages'. Stop.
What's the rule to create it ?
Ciao,
Michael
--
koch@kde.org, m_koch@bigfoot.de
http://heaven.riednet.wh.tu-darmstadt.de/~mkoch
To me vi is Zen. To use vi is to practice zen. Every command is
a koan. Profound to the user, unintelligible to the uninitiated.
You discover truth everytime you use it.
-- reddy@lion.austin.ibm.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic