> When it comes to extending TW via plugins or macros... you will loose
> all language customizations, ShadowStyleSheetDefaults or variable
> configuration in general that you've made in the plugin tiddler when
> you try to update from a non localized version.
This is what I am trying to avoid ...
> Another way to work around this is to put all language customizations
> into a dedicated tiddler (tagged systemConfig) maybe called zzLANGXYZ
> and use the javascript merge function to merge localised strings into
> config objects as used by the plugin. Obviously this will only work if
> the plugin is well designed in that it is using such configuration
> objects and quite probably the string.format([]) function rather than
> simple message strings hardcoded into the source.
Yes, this would be the preferred way but depends of course on the
implementation. I guess this is how translation of the core are
done ... this is an example of the german translation:
merge(config.tasks,{
save: {text: "speichern", tooltip: "Änderungen in dieses TiddlyWiki
speichern", action: saveChanges},
sync: {text: "synchronisieren", tooltip: "Änderungen mit anderen
TiddlyWiki-Dateien und Servern synchronisieren", content: '<<sync>>'},
importTask: {text: "importieren", tooltip: "Tiddler und Plugins aus
anderen TiddlyWiki-Dateien und Servern importieren", content:
'<<importTiddlers>>'},
tweak: {text: "optimieren", tooltip: "Erscheinungsbild und Reaktion
des TiddlyWiki optimieren", content: '<<options>>'},
upgrade: {text: "upgraden", tooltip: "Upgraden des Kerncodes von
TiddlyWiki", content: '<<upgrade>>'},
plugins: {text: "Plugins", tooltip: "Installierte Plugins verwalten",
content: '<<plugins>>'}
});
This is some code of ReminderMacros:
config.macros.reminders["todayString"] = "Today";
config.macros.reminders["tomorrowString"] = "Tomorrow";
config.macros.reminders["ndaysString"] = "DIFF days";
config.macros.reminders["emtpyShowRemindersString"] = "There are no
upcoming events";
Is this translatable as you suggested?
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywiki?hl=en.