Translation of Error Messages?

0 views
Skip to first unread message

Mae

unread,
Dec 21, 2009, 10:16:56 AM12/21/09
to TiddlyWiki
Cause I don't like denglish (http://en.wikipedia.org/wiki/Denglisch),
my german allready bad enaugh, and I can't english. So I have to make
my own translation, with Manpages in my own german dialect.

Now I got the Problem with the error messages, like this:"sync
operation unsupported: ..."

Got anyone a helping Idea how I can translate this in the right
modular way, without touch the wikikernel?
And I like to make a tiddler to the error-messages.
Thanx
and sorry for my bad english
Mäx (aka Mae)

Mark S.

unread,
Dec 21, 2009, 3:00:26 PM12/21/09
to TiddlyWiki
This is not an official answer, but it might get you by until someone
provides one.

If you look at the source code, and search for "Translateable strings"
there is a whole section with code that looks like:

merge(config.messages.messageClose,{
text: "close",
tooltip: "close this message area"});

You could take this code, and paste it into your own tiddler, and tag
it as "systemConfig". Then change the english strings to Deutsch
strings. When you save and reload your TW, the new strings should be
in place. Note that the TW is obviously going to be larger, because
you're coding the same information twice.

Also, there are still strings that are not translateable (probably
because it would break the rest of the code).

It seemed to work in my tests. Try it yourself on a backup copy.

HTH
Mark

Mike

unread,
Dec 21, 2009, 3:01:41 PM12/21/09
to TiddlyWiki
For storing TW messages in a tiddler you could use:
http://www.tiddlytools.com/#MessageLogPlugin

Mike

Mae

unread,
Dec 21, 2009, 10:35:19 PM12/21/09
to TiddlyWiki
I've allready use the Tiddler given from this site:
http://dev.tiddlywiki.org/wiki/Translations and download
http://svn.tiddlywiki.org/Trunk/association/locales/core/en/locale.en.js
and rewrite all strings I've found. But the Error-Messages from the
Import-Function need Strings that not defined in this Tiddler for
translation.

Why should I Log the Messages. I've to overwrite the Import-Function
or overwrite the Message bevor it comes out - right?
But my know how abaout Java-Skript is to bad to now how to overwrite a
Function or the Message bevor it prints on screen.
It may be able to overwrite the Function in the code but by the next
Kernel-Update it will be english again, so this can't be the solution
to overwrite the kernel for my translation.

Maybe that realy the MessageLogPlugin can help if I can hijack and
transform the message - but I don't understund how to do.
By the way, this Plugin says it was for core or kernal 2.4 - and I use
allready 2.5.3.
Was this Plugin really still usefull for the new Version of the Wiki-
Core?
The Import-Function ist not very old - or not?

Mark S.

unread,
Dec 22, 2009, 1:01:01 AM12/22/09
to TiddlyWiki

On Dec 21, 7:35 pm, Mae <Ma...@gmx.de> wrote:
> I've allready use the Tiddler given from this site:http://dev.tiddlywiki.org/wiki/Translationsand downloadhttp://svn.tiddlywiki.org/Trunk/association/locales/core/en/locale.en.js

> It may be able to overwrite the Function in the code but by the next
> Kernel-Update it will be english again, so this can't be the solution
> to overwrite the kernel for my translation.

If you copy the function definition in its own tiddler, change the
strings, and tag it as "systemConfig", as I described above, then the
tiddler will not change when you do the Kernel-Update, and your
changes will stick. By comparing the old and new functions, you should
be able to tell if you need to re-translate the function. As long as
that part of the code has not changed, you should be OK.

FND

unread,
Dec 22, 2009, 4:09:51 AM12/22/09
to tiddl...@googlegroups.com
> Got anyone a helping Idea how I can translate this in the right
> modular way, without touch the wikikernel?

Please see here:
http://trac.tiddlywiki.org/wiki/Translations

HTH.


-- F.

Reply all
Reply to author
Forward
0 new messages