From 3307604130e6b23d59652d9c06007cb74b6fff8a Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sun, 16 Feb 2014 19:58:53 +0000 Subject: [PATCH] Make type information translateable --- core/docs/types/application_json.tid | 3 --- core/docs/types/image_gif.tid | 3 --- core/docs/types/image_png.tid | 3 --- core/language/en-GB/Types/application_json.tid | 3 +++ .../en-GB/Types}/application_x_tiddler_dictionary.tid | 2 +- core/language/en-GB/Types/image_gif.tid | 3 +++ core/{docs/types => language/en-GB/Types}/image_jpeg.tid | 2 +- core/language/en-GB/Types/image_png.tid | 3 +++ core/{docs/types => language/en-GB/Types}/image_svg_xml.tid | 2 +- core/{docs/types => language/en-GB/Types}/image_x-icon.tid | 2 +- core/{docs/types => language/en-GB/Types}/text_css.tid | 2 +- core/{docs/types => language/en-GB/Types}/text_plain.tid | 2 +- .../types => language/en-GB/Types}/text_vnd.tiddlywiki.tid | 2 +- .../{docs/types => language/en-GB/Types}/text_x-tiddlywiki.tid | 2 +- core/ui/EditTemplate/type.tid | 2 +- plugins/tiddlywiki/markdown/docs_type_markdown.tid | 2 +- 16 files changed, 19 insertions(+), 19 deletions(-) delete mode 100644 core/docs/types/application_json.tid delete mode 100644 core/docs/types/image_gif.tid delete mode 100644 core/docs/types/image_png.tid create mode 100644 core/language/en-GB/Types/application_json.tid rename core/{docs/types => language/en-GB/Types}/application_x_tiddler_dictionary.tid (51%) create mode 100644 core/language/en-GB/Types/image_gif.tid rename core/{docs/types => language/en-GB/Types}/image_jpeg.tid (50%) create mode 100644 core/language/en-GB/Types/image_png.tid rename core/{docs/types => language/en-GB/Types}/image_svg_xml.tid (60%) rename core/{docs/types => language/en-GB/Types}/image_x-icon.tid (55%) rename core/{docs/types => language/en-GB/Types}/text_css.tid (54%) rename core/{docs/types => language/en-GB/Types}/text_plain.tid (50%) rename core/{docs/types => language/en-GB/Types}/text_vnd.tiddlywiki.tid (57%) rename core/{docs/types => language/en-GB/Types}/text_x-tiddlywiki.tid (57%) diff --git a/core/docs/types/application_json.tid b/core/docs/types/application_json.tid deleted file mode 100644 index 692634cb6..000000000 --- a/core/docs/types/application_json.tid +++ /dev/null @@ -1,3 +0,0 @@ -title: $:/docs/types/application/json -description: JSON data -name: application/json diff --git a/core/docs/types/image_gif.tid b/core/docs/types/image_gif.tid deleted file mode 100644 index 95a1eb9d8..000000000 --- a/core/docs/types/image_gif.tid +++ /dev/null @@ -1,3 +0,0 @@ -title: $:/docs/types/image/gif -description: GIF image -name: image/gif diff --git a/core/docs/types/image_png.tid b/core/docs/types/image_png.tid deleted file mode 100644 index 6428464ad..000000000 --- a/core/docs/types/image_png.tid +++ /dev/null @@ -1,3 +0,0 @@ -title: $:/docs/types/image/png -description: PNG image -name: image/png diff --git a/core/language/en-GB/Types/application_json.tid b/core/language/en-GB/Types/application_json.tid new file mode 100644 index 000000000..8cf1c8be1 --- /dev/null +++ b/core/language/en-GB/Types/application_json.tid @@ -0,0 +1,3 @@ +title: $:/language/Docs/Types/application/json +description: JSON data +name: application/json diff --git a/core/docs/types/application_x_tiddler_dictionary.tid b/core/language/en-GB/Types/application_x_tiddler_dictionary.tid similarity index 51% rename from core/docs/types/application_x_tiddler_dictionary.tid rename to core/language/en-GB/Types/application_x_tiddler_dictionary.tid index ca34238c9..3789fcd4f 100644 --- a/core/docs/types/application_x_tiddler_dictionary.tid +++ b/core/language/en-GB/Types/application_x_tiddler_dictionary.tid @@ -1,3 +1,3 @@ -title: $:/docs/types/application/x-tiddler-dictionary +title: $:/language/Docs/Types/application/x-tiddler-dictionary description: Data dictionary name: application/x-tiddler-dictionary diff --git a/core/language/en-GB/Types/image_gif.tid b/core/language/en-GB/Types/image_gif.tid new file mode 100644 index 000000000..3ed84467f --- /dev/null +++ b/core/language/en-GB/Types/image_gif.tid @@ -0,0 +1,3 @@ +title: $:/language/Docs/Types/image/gif +description: GIF image +name: image/gif diff --git a/core/docs/types/image_jpeg.tid b/core/language/en-GB/Types/image_jpeg.tid similarity index 50% rename from core/docs/types/image_jpeg.tid rename to core/language/en-GB/Types/image_jpeg.tid index 473c95603..5d7d8db70 100644 --- a/core/docs/types/image_jpeg.tid +++ b/core/language/en-GB/Types/image_jpeg.tid @@ -1,3 +1,3 @@ -title: $:/docs/types/image/jpeg +title: $:/language/Docs/Types/image/jpeg description: JPEG image name: image/jpeg diff --git a/core/language/en-GB/Types/image_png.tid b/core/language/en-GB/Types/image_png.tid new file mode 100644 index 000000000..47867d4d5 --- /dev/null +++ b/core/language/en-GB/Types/image_png.tid @@ -0,0 +1,3 @@ +title: $:/language/Docs/Types/image/png +description: PNG image +name: image/png diff --git a/core/docs/types/image_svg_xml.tid b/core/language/en-GB/Types/image_svg_xml.tid similarity index 60% rename from core/docs/types/image_svg_xml.tid rename to core/language/en-GB/Types/image_svg_xml.tid index d2239f2f8..8e06b230f 100644 --- a/core/docs/types/image_svg_xml.tid +++ b/core/language/en-GB/Types/image_svg_xml.tid @@ -1,3 +1,3 @@ -title: $:/docs/types/image/svg+xml +title: $:/language/Docs/Types/image/svg+xml description: Structured Vector Graphics image name: image/svg+xml diff --git a/core/docs/types/image_x-icon.tid b/core/language/en-GB/Types/image_x-icon.tid similarity index 55% rename from core/docs/types/image_x-icon.tid rename to core/language/en-GB/Types/image_x-icon.tid index 8d873655f..3ad50c454 100644 --- a/core/docs/types/image_x-icon.tid +++ b/core/language/en-GB/Types/image_x-icon.tid @@ -1,3 +1,3 @@ -title: $:/docs/types/image/x-icon +title: $:/language/Docs/Types/image/x-icon description: ICO format icon file name: image/x-icon diff --git a/core/docs/types/text_css.tid b/core/language/en-GB/Types/text_css.tid similarity index 54% rename from core/docs/types/text_css.tid rename to core/language/en-GB/Types/text_css.tid index 2237a3663..095775ad5 100644 --- a/core/docs/types/text_css.tid +++ b/core/language/en-GB/Types/text_css.tid @@ -1,3 +1,3 @@ -title: $:/docs/types/text/css +title: $:/language/Docs/Types/text/css description: Static stylesheet name: text/css diff --git a/core/docs/types/text_plain.tid b/core/language/en-GB/Types/text_plain.tid similarity index 50% rename from core/docs/types/text_plain.tid rename to core/language/en-GB/Types/text_plain.tid index 4ae18de52..251ce9ce7 100644 --- a/core/docs/types/text_plain.tid +++ b/core/language/en-GB/Types/text_plain.tid @@ -1,3 +1,3 @@ -title: $:/docs/types/text/plain +title: $:/language/Docs/Types/text/plain description: Plain text name: text/plain diff --git a/core/docs/types/text_vnd.tiddlywiki.tid b/core/language/en-GB/Types/text_vnd.tiddlywiki.tid similarity index 57% rename from core/docs/types/text_vnd.tiddlywiki.tid rename to core/language/en-GB/Types/text_vnd.tiddlywiki.tid index d2c3dbb42..682841f32 100644 --- a/core/docs/types/text_vnd.tiddlywiki.tid +++ b/core/language/en-GB/Types/text_vnd.tiddlywiki.tid @@ -1,3 +1,3 @@ -title: $:/docs/types/text/vnd.tiddlywiki +title: $:/language/Docs/Types/text/vnd.tiddlywiki description: TiddlyWiki version 5 wikitext name: text/vnd.tiddlywiki diff --git a/core/docs/types/text_x-tiddlywiki.tid b/core/language/en-GB/Types/text_x-tiddlywiki.tid similarity index 57% rename from core/docs/types/text_x-tiddlywiki.tid rename to core/language/en-GB/Types/text_x-tiddlywiki.tid index 1f86021a2..f5969148e 100644 --- a/core/docs/types/text_x-tiddlywiki.tid +++ b/core/language/en-GB/Types/text_x-tiddlywiki.tid @@ -1,3 +1,3 @@ -title: $:/docs/types/text/x-tiddlywiki +title: $:/language/Docs/Types/text/x-tiddlywiki description: TiddlyWiki Classic wikitext name: text/x-tiddlywiki diff --git a/core/ui/EditTemplate/type.tid b/core/ui/EditTemplate/type.tid index 1ac059597..697116469 100644 --- a/core/ui/EditTemplate/type.tid +++ b/core/ui/EditTemplate/type.tid @@ -8,7 +8,7 @@ tags: $:/tags/EditTemplate <$reveal state=<> type="nomatch" text="" default="">
<$linkcatcher to="!!type"> -<$list filter="[is[shadow]prefix[$:/docs/types/]] [!is[shadow]prefix[$:/docs/types/]] +[sort[description]]"><$link to={{!!name}}><$view field="description"/> (<$view field="name"/>) +<$list filter="[is[shadow]prefix[$:/language/Docs/Types/]] [!is[shadow]prefix[$:/language/Docs/Types/]] +[sort[description]]"><$link to={{!!name}}><$view field="description"/> (<$view field="name"/>)
diff --git a/plugins/tiddlywiki/markdown/docs_type_markdown.tid b/plugins/tiddlywiki/markdown/docs_type_markdown.tid index f622de660..0c383e05b 100644 --- a/plugins/tiddlywiki/markdown/docs_type_markdown.tid +++ b/plugins/tiddlywiki/markdown/docs_type_markdown.tid @@ -1,3 +1,3 @@ -title: $:/docs/types/text/x-markdown +title: $:/language/Docs/Types/text/x-markdown description: Markdown name: text/x-markdown