From 786747aa051cf78d401848f2632ead4e3962e52d Mon Sep 17 00:00:00 2001 From: Mike Date: Mon, 1 Nov 2010 19:42:42 -0400 Subject: [PATCH] [#479 state:resolved] Updated DePoClean. --- .../lib/DePoCleanTheme/L10N.pm | 5 +++++ .../lib/DePoCleanTheme/L10N/en_us.pm | 9 +++++++++ addons/DePoClean.plugin/templates/about.mtml | 2 +- .../DePoClean.plugin/templates/archives.mtml | 18 +++++++++--------- addons/DePoClean.plugin/templates/authors.mtml | 4 ++-- .../DePoClean.plugin/templates/categories.mtml | 4 ++-- .../templates/comment_response.mtml | 6 +++--- addons/DePoClean.plugin/templates/contact.mtml | 2 +- .../templates/dynamic_error.mtml | 6 +++--- addons/DePoClean.plugin/templates/entry.mtml | 8 ++++---- .../templates/entry_details.mtml | 10 +++++----- .../templates/entry_listing.mtml | 6 +++--- addons/DePoClean.plugin/templates/flickr.mtml | 12 ++++++------ addons/DePoClean.plugin/templates/footer.mtml | 2 +- .../DePoClean.plugin/templates/main_index.mtml | 6 +++--- .../templates/recent_archives.mtml | 4 ++-- .../templates/search_results.mtml | 8 ++++---- 17 files changed, 63 insertions(+), 49 deletions(-) create mode 100644 addons/DePoClean.plugin/lib/DePoCleanTheme/L10N.pm create mode 100644 addons/DePoClean.plugin/lib/DePoCleanTheme/L10N/en_us.pm diff --git a/addons/DePoClean.plugin/lib/DePoCleanTheme/L10N.pm b/addons/DePoClean.plugin/lib/DePoCleanTheme/L10N.pm new file mode 100644 index 000000000..3e7ac3a81 --- /dev/null +++ b/addons/DePoClean.plugin/lib/DePoCleanTheme/L10N.pm @@ -0,0 +1,5 @@ +package DePoCleanTheme::L10N; +use strict; +use base 'MT::Plugin::L10N'; + +1; diff --git a/addons/DePoClean.plugin/lib/DePoCleanTheme/L10N/en_us.pm b/addons/DePoClean.plugin/lib/DePoCleanTheme/L10N/en_us.pm new file mode 100644 index 000000000..828e286da --- /dev/null +++ b/addons/DePoClean.plugin/lib/DePoCleanTheme/L10N/en_us.pm @@ -0,0 +1,9 @@ +package DePoCleanTheme::L10N::en_us; + +use strict; + +use base 'DePoCleanTheme::L10N'; +use vars qw( %Lexicon ); +%Lexicon = (); + +1; diff --git a/addons/DePoClean.plugin/templates/about.mtml b/addons/DePoClean.plugin/templates/about.mtml index 42b7e522e..90a50e70a 100644 --- a/addons/DePoClean.plugin/templates/about.mtml +++ b/addons/DePoClean.plugin/templates/about.mtml @@ -1,4 +1,4 @@
-

About

+

<__trans phrase="About">

<$mt:AboutYou$>

\ No newline at end of file diff --git a/addons/DePoClean.plugin/templates/archives.mtml b/addons/DePoClean.plugin/templates/archives.mtml index c71b53a0a..bfbfde8ca 100644 --- a/addons/DePoClean.plugin/templates/archives.mtml +++ b/addons/DePoClean.plugin/templates/archives.mtml @@ -1,8 +1,8 @@ - <$mt:BlogName escape="html"$> - Archived - <$mt:Include module="HTML Head"$> + <$mt:BlogName escape="html"$> - <__trans phrase="Archived"> + <$mt:Include module="<__trans phrase="HTML Head">"$> @@ -11,16 +11,16 @@
- <$mt:Include module="Header"$> + <$mt:Include module="<__trans phrase="Header">"$>
-

The Archives

+

<__trans phrase="The Archives">

-

By Month

+

<__trans phrase="By Month">

-

By Category

+

<__trans phrase="By Category">

diff --git a/addons/DePoClean.plugin/templates/authors.mtml b/addons/DePoClean.plugin/templates/authors.mtml index df1220e56..719fee5f7 100644 --- a/addons/DePoClean.plugin/templates/authors.mtml +++ b/addons/DePoClean.plugin/templates/authors.mtml @@ -1,9 +1,9 @@
-

Authors

+

<__trans phrase="Authors">

-

">View All Archives

+

"><__trans phrase="View All Archives">

diff --git a/addons/DePoClean.plugin/templates/categories.mtml b/addons/DePoClean.plugin/templates/categories.mtml index b3b4e6a06..3720acbe8 100644 --- a/addons/DePoClean.plugin/templates/categories.mtml +++ b/addons/DePoClean.plugin/templates/categories.mtml @@ -1,9 +1,9 @@
-

Categories

+

<__trans phrase="Categories">

-

">View All Archives

+

"><__trans phrase="View All Archives">

diff --git a/addons/DePoClean.plugin/templates/comment_response.mtml b/addons/DePoClean.plugin/templates/comment_response.mtml index c62c287e0..77829ec6b 100644 --- a/addons/DePoClean.plugin/templates/comment_response.mtml +++ b/addons/DePoClean.plugin/templates/comment_response.mtml @@ -17,11 +17,11 @@ <$mt:BlogName escape="html"$> – <$mt:BlogDescription escape="html"$> - <$mt:Include module="HTML Head"$> + <$mt:Include module="<__trans phrase="HTML Head">"$>
- <$mt:Include module="Header"$> + <$mt:Include module="<__trans phrase="Header">"$>
@@ -39,7 +39,7 @@

- <$mt:Include module="Footer"$> + <$mt:Include module="<__trans phrase="Footer">"$>
diff --git a/addons/DePoClean.plugin/templates/contact.mtml b/addons/DePoClean.plugin/templates/contact.mtml index f39f6085b..5a6d2acd2 100644 --- a/addons/DePoClean.plugin/templates/contact.mtml +++ b/addons/DePoClean.plugin/templates/contact.mtml @@ -1,4 +1,4 @@
-

Contact

+

<__trans phrase="Contact">

<$mt:ContactInformation$>

\ No newline at end of file diff --git a/addons/DePoClean.plugin/templates/dynamic_error.mtml b/addons/DePoClean.plugin/templates/dynamic_error.mtml index 38dba5d85..63c3b7d54 100644 --- a/addons/DePoClean.plugin/templates/dynamic_error.mtml +++ b/addons/DePoClean.plugin/templates/dynamic_error.mtml @@ -3,11 +3,11 @@ <$mt:BlogName escape="html"$> – <$mt:BlogDescription escape="html"$> - <$mt:Include module="HTML Head"$> + <$mt:Include module="<__trans phrase="HTML Head">"$>
- <$mt:Include module="Header"$> + <$mt:Include module="<__trans phrase="Header">"$>
@@ -25,7 +25,7 @@

- <$mt:Include module="Footer"$> + <$mt:Include module="<__trans phrase="Footer">"$>
diff --git a/addons/DePoClean.plugin/templates/entry.mtml b/addons/DePoClean.plugin/templates/entry.mtml index 758162b9a..9ddf7919f 100644 --- a/addons/DePoClean.plugin/templates/entry.mtml +++ b/addons/DePoClean.plugin/templates/entry.mtml @@ -2,7 +2,7 @@ <$mt:BlogName escape="html"$> – <$mt:EntryTitle escape="html"$> - <$mt:Include module="HTML Head"$> + <$mt:Include module="<__trans phrase="HTML Head">"$> @@ -24,7 +24,7 @@

<$mt:BlogName escape="html"$><$mt:BlogName escape="html"$> <$mt:BlogDescription escape="html"$>

- <$mt:WidgetSet name="Sidebar"$> + <$mt:WidgetSet name="<__trans phrase="Sidebar">"$>
<$mt:Date format="%Y%m%d" setvar="today"$> @@ -54,7 +54,7 @@ CommentForm;<$mt:EntryID$> - <$mt:Include module name="Comment Form" ttl="15552000" cache="1" cache_key="$cache_key"$> + <$mt:Include module name="<__trans phrase="Comment Form">" ttl="15552000" cache="1" cache_key="$cache_key"$>
@@ -92,7 +92,7 @@

- <$mt:Include module="Footer"$> + <$mt:Include module="<__trans phrase="Footer">"$>
diff --git a/addons/DePoClean.plugin/templates/entry_details.mtml b/addons/DePoClean.plugin/templates/entry_details.mtml index 241f72623..518a98236 100644 --- a/addons/DePoClean.plugin/templates/entry_details.mtml +++ b/addons/DePoClean.plugin/templates/entry_details.mtml @@ -1,15 +1,15 @@
-

."><$mt:EntryTitle escape="html"$> +

<$mt:EntryTitle escape="html"$>."><$mt:EntryTitle escape="html"$>

<$mt:EntryBody$>


diff --git a/addons/DePoClean.plugin/templates/entry_listing.mtml b/addons/DePoClean.plugin/templates/entry_listing.mtml index 70f1a0b6c..1ad8fcdc7 100644 --- a/addons/DePoClean.plugin/templates/entry_listing.mtml +++ b/addons/DePoClean.plugin/templates/entry_listing.mtml @@ -34,11 +34,11 @@ <$mt:BlogName escape="html"$> – <$mt:ArchiveTitle escape="html"$> - <$mt:Include module="HTML Head"$> + <$mt:Include module="<__trans phrase="HTML Head">"$>
- <$mt:Include module="Header"$> + <$mt:Include module="<__trans phrase="Header">"$>

Posts from <$mt:ArchiveTitle escape="html"$>

@@ -66,7 +66,7 @@

- <$mt:Include module="Footer"$> + <$mt:Include module="<__trans phrase="Footer">"$>
diff --git a/addons/DePoClean.plugin/templates/flickr.mtml b/addons/DePoClean.plugin/templates/flickr.mtml index 5bea7ef48..ecd59b2bc 100644 --- a/addons/DePoClean.plugin/templates/flickr.mtml +++ b/addons/DePoClean.plugin/templates/flickr.mtml @@ -7,7 +7,7 @@ var url = null; url = 'http://api.flickr.com/services/feeds/photos_public.gne?id=<$mt:FlickrUserID$>&tags=<$mt:FlickrTags$>&format=json&jsoncallback=?'; <$mt:var name="show_error" value="1"$> - <$mt:var name="error_msg" value="To show a Flickr user gallery, you must specify a Flickr user ID in Theme Options."$> + <$mt:var name="error_msg" value="<__trans phrase="To show a Flickr user gallery, you must specify a Flickr user ID in Theme Options.">"$> @@ -15,26 +15,26 @@ var url = null; url = 'http://api.flickr.com/services/feeds/photoset.gne?set=<$mt:FlickrPhotosetID$>&nsid=<$mt:FlickrUserID$>&format=json&jsoncallback=?'; <$mt:var name="show_error" value="1"$> - <$mt:var name="error_msg" value="To show a Flickr photoset gallery, you must specify a Flickr user ID in Theme Options."$> + <$mt:var name="error_msg" value="<__trans phrase="To show a Flickr photoset gallery, you must specify a Flickr user ID in Theme Options.">"$> <$mt:var name="show_error" value="1"$> - <$mt:var name="error_msg" value="To show a Flickr photoset gallery, you must specify a Flickr user ID in Theme Options."$> + <$mt:var name="error_msg" value="<__trans phrase="To show a Flickr photoset gallery, you must specify a Flickr user ID in Theme Options.">"$> url = 'http://api.flickr.com/services/feeds/groups_pool.gne?id=<$mt:FlickrGroupID$>&format=json&jsoncallback=?'; <$mt:var name="show_error" value="1"$> - <$mt:var name="error_msg" value="To show a Flickr group gallery, you must specify a Flickr group ID in Theme Options."$> + <$mt:var name="error_msg" value="<__trans phrase="To show a Flickr group gallery, you must specify a Flickr group ID in Theme Options.">"$> url = 'http://api.flickr.com/services/feeds/photos_faves.gne?id=<$mt:FlickrUserID$>&format=json&jsoncallback=?'; <$mt:var name="show_error" value="1"$> - <$mt:var name="error_msg" value="To show a Flickr favorites gallery, you must specify a Flickr user ID in Theme Options."$> + <$mt:var name="error_msg" value="<__trans phrase="To show a Flickr favorites gallery, you must specify a Flickr user ID in Theme Options.">"$> url = 'http://api.flickr.com/services/feeds/photos_public.gne?tags=&<$mt:FlickrTags$>format=json&jsoncallback=?'; @@ -48,7 +48,7 @@ var url = null;
- ">Flickr View All » + ">Flickr <__trans phrase="View All"> »