Skip to content

Commit

Permalink
Restructure generated templates to use resources directory instead of…
Browse files Browse the repository at this point in the history
… english.lproj for items that don't need to be localized.
  • Loading branch information
Charles Jolley committed Sep 18, 2009
1 parent a8ecca0 commit 673f803
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 35 deletions.
2 changes: 1 addition & 1 deletion gen/app/templates/apps/@target_name@/main.js
Expand Up @@ -23,7 +23,7 @@
// This will make your app come alive!

// TODO: Set the content property on your primary controller
// ex: <%= class_name %>.contactsController.set('content',<%= class_name %>.contacts);
// ex: <%= namespace %>.contactsController.set('content',<%= namespace %>.contacts);

} ;

Expand Down
Expand Up @@ -4,6 +4,6 @@
# caching and startup very fast, so your users will often only see this
# content for a brief moment on their first app load, if at all.
%>
<p class="loading">Loading<p>
<p class="loading">Loading...<p>

<%% end %>
Expand Up @@ -16,7 +16,8 @@
labelView: SC.LabelView.design({
layout: { centerX: 0, centerY: 0, width: 200, height: 18 },
textAlign: SC.ALIGN_CENTER,
tagName: "h1", value: "Welcome to SproutCore!"
tagName: "h1",
value: "Welcome to SproutCore!"
})
})

Expand Down
Expand Up @@ -2,14 +2,13 @@
// Project: <%= namespace %> Strings
// Copyright: ©<%= Time.now.year %> My Company, Inc.
// ==========================================================================
/*globals <%= namespace %> */

// Place strings you want to localize here. In your app, use the key and
// localize it using "key string".loc(). HINT: For your key names, use the
// english string with an underscore in front. This way you can still see
// how your UI will look and you'll notice right away when something needs a
// localized string added to this file!
//
SC.stringsFor('English', {
SC.stringsFor('en', {
// "_String Key": "Localized String"
}) ;
15 changes: 0 additions & 15 deletions gen/page/templates/pages/@target_name@/english.lproj/strings.js

This file was deleted.

15 changes: 0 additions & 15 deletions gen/theme/templates/themes/@target_name@/english.lproj/strings.js

This file was deleted.

@@ -0,0 +1,11 @@
/* ==========================================================================
* Project: <%= namespace %> Theme Styles
* Copyright: ©<%= Time.now.year %> My Company, Inc.
* ==========================================================================
*/

/*
Place any styles you want to define in this file. You can also break your
styles into multiple files. Just add them to your resources or .lrpoj
directories to be included in the build.
*/

0 comments on commit 673f803

Please sign in to comment.