mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +00:00
Fixes for translators edition/plugin
* Added support for translating the core readme * Fixed problem with `Misc.multids` rendering shadow tiddlers * Fixed problem with single tiddler files rendering shadow tiddlers
This commit is contained in:
parent
4bce8ca8ff
commit
7fe8c4c4a1
@ -36,6 +36,7 @@
|
||||
"--rendertiddler","$:/plugins/tiddlywiki/translators/templates/TiddlerInfo.multids","language/TiddlerInfo.multids","text/plain",
|
||||
"--rendertiddler","$:/plugins/tiddlywiki/translators/templates/NewJournal.multids","language/NewJournal.multids","text/plain",
|
||||
"--rendertiddler","$:/plugins/tiddlywiki/translators/templates/Notifications.multids","language/Notifications.multids","text/plain",
|
||||
"--rendertiddler","$:/plugins/tiddlywiki/translators/templates/CoreReadMe.tid","language/CoreReadMe.tid","text/plain",
|
||||
"--rendertiddler","$:/plugins/tiddlywiki/translators/templates/GettingStarted.tid","language/GettingStarted.tid","text/plain",
|
||||
"--rendertiddler","$:/plugins/tiddlywiki/translators/templates/SiteTitle.tid","language/SiteTitle.tid","text/plain",
|
||||
"--rendertiddler","$:/plugins/tiddlywiki/translators/templates/SiteSubtitle.tid","language/SiteSubtitle.tid","text/plain",
|
||||
|
@ -1,13 +1,16 @@
|
||||
title: $:/Translators
|
||||
|
||||
\define allTheTranslatableTiddlerTitles()
|
||||
[all[tiddlers+shadows]prefix[$:/language/]] [all[tiddlers+shadows]prefix[$:/config/NewJournal/]] [[GettingStarted]] [[$:/SiteTitle]] [[$:/SiteSubtitle]] +[sort[title]]
|
||||
[all[tiddlers+shadows]prefix[$:/language/]] [all[tiddlers+shadows]prefix[$:/config/NewJournal/]] [[GettingStarted]] [[$:/SiteTitle]] [[$:/SiteSubtitle]]
|
||||
[[$:/core/readme]] +[sort[title]]
|
||||
\end
|
||||
\define allTheTranslatedTiddlerTitles()
|
||||
[all[tiddlers]prefix[$:/language/]] [all[tiddlers]prefix[$:/config/NewJournal/]] [[GettingStarted]is[tiddler]] [[$:/SiteTitle]is[tiddler]] [[$:/SiteSubtitle]is[tiddler]] +[sort[title]]
|
||||
[all[tiddlers]prefix[$:/language/]] [all[tiddlers]prefix[$:/config/NewJournal/]] [[GettingStarted]is[tiddler]] [[$:/SiteTitle]is[tiddler]] [[$:/SiteSubtitle]is[tiddler]]
|
||||
[[$:/core/readme]is[tiddler]] +[sort[title]]
|
||||
\end
|
||||
\define allTheNotTranslatedTiddlerTitles()
|
||||
[all[tiddlers+shadows]!is[tiddler]prefix[$:/language/]] [all[tiddlers+shadows]!is[tiddler]prefix[$:/config/NewJournal/]] [[GettingStarted]!is[tiddler]] [[$:/SiteTitle]!is[tiddler]] [[$:/SiteSubtitle]!is[tiddler]] +[sort[title]]
|
||||
[all[tiddlers+shadows]!is[tiddler]prefix[$:/language/]] [all[tiddlers+shadows]!is[tiddler]prefix[$:/config/NewJournal/]] [[GettingStarted]!is[tiddler]] [[$:/SiteTitle]!is[tiddler]] [[$:/SiteSubtitle]!is[tiddler]]
|
||||
[[$:/core/readme]!is[tiddler]] +[sort[title]]
|
||||
\end
|
||||
|
||||
Number of translated tiddlers: <$count filter=<<allTheTranslatedTiddlerTitles>>/> of <$count filter=<<allTheTranslatableTiddlerTitles>>/>
|
||||
|
@ -0,0 +1,3 @@
|
||||
title: $:/plugins/tiddlywiki/translators/templates/CoreReadMe.tid
|
||||
|
||||
{{$:/core/readme||$:/plugins/tiddlywiki/translators/templates/tid}}
|
@ -1,18 +1,18 @@
|
||||
title: $:/plugins/tiddlywiki/translators/templates/Misc.multids
|
||||
|
||||
{{[all[tiddlers+shadows]prefix[$:/language/]]
|
||||
-[all[tiddlers+shadows]prefix[$:/language/Buttons/]]
|
||||
-[all[tiddlers+shadows]prefix[$:/language/ControlPanel/]]
|
||||
-[all[tiddlers+shadows]prefix[$:/language/Date/]]
|
||||
-[all[tiddlers+shadows]prefix[$:/language/Docs/]]
|
||||
-[all[tiddlers+shadows]prefix[$:/language/EditTemplate/]]
|
||||
-[all[tiddlers+shadows]prefix[$:/language/Filters/]]
|
||||
-[all[tiddlers+shadows]prefix[$:/language/Help/]]
|
||||
-[all[tiddlers+shadows]prefix[$:/language/Import/]]
|
||||
-[all[tiddlers+shadows]prefix[$:/language/Modals/]]
|
||||
-[all[tiddlers+shadows]prefix[$:/language/Notifications/]]
|
||||
-[all[tiddlers+shadows]prefix[$:/language/RelativeDate/]]
|
||||
-[all[tiddlers+shadows]prefix[$:/language/Search/]]
|
||||
-[all[tiddlers+shadows]prefix[$:/language/SideBar/]]
|
||||
-[all[tiddlers+shadows]prefix[$:/language/TiddlerInfo/]]
|
||||
{{[all[tiddlers]prefix[$:/language/]]
|
||||
-[all[tiddlers]prefix[$:/language/Buttons/]]
|
||||
-[all[tiddlers]prefix[$:/language/ControlPanel/]]
|
||||
-[all[tiddlers]prefix[$:/language/Date/]]
|
||||
-[all[tiddlers]prefix[$:/language/Docs/]]
|
||||
-[all[tiddlers]prefix[$:/language/EditTemplate/]]
|
||||
-[all[tiddlers]prefix[$:/language/Filters/]]
|
||||
-[all[tiddlers]prefix[$:/language/Help/]]
|
||||
-[all[tiddlers]prefix[$:/language/Import/]]
|
||||
-[all[tiddlers]prefix[$:/language/Modals/]]
|
||||
-[all[tiddlers]prefix[$:/language/Notifications/]]
|
||||
-[all[tiddlers]prefix[$:/language/RelativeDate/]]
|
||||
-[all[tiddlers]prefix[$:/language/Search/]]
|
||||
-[all[tiddlers]prefix[$:/language/SideBar/]]
|
||||
-[all[tiddlers]prefix[$:/language/TiddlerInfo/]]
|
||||
+[sort[title]]||$:/plugins/tiddlywiki/translators/templates/filtered-multids}}
|
@ -3,6 +3,6 @@ title: $:/plugins/tiddlywiki/translators/templates/tid
|
||||
\define generateTid(title)
|
||||
title: $title$
|
||||
|
||||
<$transclude tiddler="""$title$"""/>
|
||||
<$list filter="""[[$title$]is[tiddler]]"""><$transclude tiddler="""$title$"""/></$list>
|
||||
\end
|
||||
<$macrocall $name="generateTid" title=<<currentTiddler>>/>
|
@ -19,6 +19,7 @@ tags: $:/tags/TranslationGroup
|
||||
[all[tiddlers+shadows]prefix[$:/config/NewJournal/]]
|
||||
[[$:/SiteTitle]]
|
||||
[[$:/SiteSubtitle]]
|
||||
[[$:/core/readme]]
|
||||
+[sort[title]]
|
||||
\end
|
||||
\define shortenTitle()
|
||||
|
Loading…
Reference in New Issue
Block a user