Renaming the tagged/tagging labels

86 views
Skip to first unread message

Michael F

unread,
Jan 24, 2008, 7:24:55 AM1/24/08
to TiddlyWiki
Hopefully this is a simple question but I can't for the life of me
work out where in the stylesheets I can do this: I'd like to rename
the labels for the tag and tagging boxes (the labels that say "tags:"
"no tags:" and "tagging:"). Can anyone point me to where I need to go
to change these?

Thanks,
Michael.

FND

unread,
Jan 24, 2008, 7:32:22 AM1/24/08
to Tiddl...@googlegroups.com
> I'd like to rename the labels for the tag and tagging boxes (the
> labels that say "tags:" "no tags:" and "tagging:")

This isn't something in the StyleSheet - instead, you'll have to create
a new tiddler, tag it with "systemConfig", and add something like the
following:
---------------
config.macros.tagging.label = "tagging: ";
config.macros.tagging.labelNotTag = "not tagging";
config.views.wikified.tag.labelNoTags = "no tags";
config.views.wikified.tag.labelTags: "tags: ";
---------------
(using the default strings here)

More information can be found in the translation instructions:
http://trac.tiddlywiki.org/wiki/Translations

HTH.


-- F.

FND

unread,
Jan 24, 2008, 7:38:20 AM1/24/08
to Tiddl...@googlegroups.com
Errata:

> config.views.wikified.tag.labelTags: "tags: ";

This should read
config.views.wikified.tag.labelTags = "tags: ";


-- F.

ocalTW

unread,
Jan 24, 2008, 7:57:36 AM1/24/08
to TiddlyWiki
Hello

You can modify the TiddlyWiki master document, but your changes will
not be kept whenever you'll get a new TW release (see cleaner way
below)
In the code, there is a line which starts with "//-- Translateable
strings" (slash slash dash dash space Translateable strings).
Below that, you'll find most strings if you want to change and/or
translate in a foreign language.
The specific answer to your questions is looking below in the code
* for "no tags:", look for "merge(config.views.wikified.tag,{"
Then you'll find 7 fields such as "labelNoTags:", "labelTags:",
"openTag:", "tooltip:" ... You can modify there
* for "tagging", look for "merge(config.macros.tagging,{"
Then you'll find the 3 following fields "label:", "labelNotTag:" and
"tooltip:". You can modify there

The cleaner way is to add a new tiddler that MUST be tagged with
"systemConfig"
There, you copy the lines mentioned above and to merge the "merge"
field with the field on each line.
* e.g. for "merge(config.views.wikified.tag,{" and "labelNoTags:",
this gives you "config.views.wikified.tag.labelNoTags"
Then you replace the semicolon ":" with an equal sign "=", and replace
the final text by yours
* e.g. config.views.wikified.tag.labelNoTags = "absolutely nothing";

Reload to have your systemConfig tiddler taken into account.

HTH

Michael F

unread,
Jan 28, 2008, 8:42:21 AM1/28/08
to TiddlyWiki
Thanks both of you for the extremely swift answer (and apologies for
my own tardiness in responding). This was exactly what I was looking
for!
Reply all
Reply to author
Forward
0 new messages