Skip to content
Browse files

update to MVC readme.

  • Loading branch information...
1 parent 69050ed commit 80d458bac94c8b552029bf8332231ceef14eba6a @DavidChristiansen DavidChristiansen committed Mar 12, 2012
View
5 build.proj
@@ -17,7 +17,8 @@
<Output ItemName='ProjectRootPath' TaskParameter='Include' />
</CreateItem>
<Message Text="Parsing Language.resx" Importance="High" />
- <Exec Command="build\PsuedoizerConsole.exe &quot;%(ProjectRootPath.FullPath)\src\Sample.CSharp.MVC4.Razor\Resources\Language.resx&quot; &quot;%(ProjectRootPath.FullPath)\src\Sample.CSharp.MVC4.Razor\Resources\Language.pl.resx&quot;" />
+ <Exec Command="build\PsuedoizerConsole.exe &quot;%(ProjectRootPath.FullPath)\src\Code52.i18n.MVC3.Example\NuSpec\Content\Resources\Language.resx&quot; &quot;%(ProjectRootPath.FullPath)\src\Code52.i18n.MVC3.Example\NuSpec\Content\Resources\Language.pl.resx&quot;" />
+ <Exec Command="build\PsuedoizerConsole.exe &quot;%(ProjectRootPath.FullPath)\src\Code52.i18n.MVC4.Example\NuSpec\Content\Resources\Language.resx&quot; &quot;%(ProjectRootPath.FullPath)\src\Code52.i18n.MVC4.Example\NuSpec\Content\Resources\Language.pl.resx&quot;" />
</Target>
<Target Name="Compile">
@@ -27,7 +28,7 @@
<Target Name="CompileSample">
<Message Text=" ===========Compiling code===========" Importance="High" />
- <MSBuild Projects="./src/Code52.i18n.Sample.sln" Properties="Configuration=$(Configuration)" />
+ <MSBuild Projects="./src/Code52.i18n.sln" Properties="Configuration=$(Configuration)" />
<CallTarget Targets="BuildTestResourceFile" Condition="'$(Configuration)'=='Debug'" />
</Target>
View
23 src/Code52.i18n.MVC/NuSpec/Content/App_Readme/Code52.i18n.MVC.readme.txt
@@ -2,15 +2,26 @@
--Getting Started--
-We don't want to overwrite your default layout - in fact, it requires us to jump through some hoops and we're afraid we might annoy you.
+1. Refer to our example Layout
-If you could kindly change your Views/_Layout.cshtml file to look like this:
+ We don't want to overwrite your default layout - in fact, it requires us to jump through some hoops and we're afraid we might annoy you.
+ If you could kindly change your Views/_Layout.cshtml file to look like this:
-@{
- Layout = "~/Views/Shared/_Layout.Code52.cshtml";
-}
+ @{
+ Layout = "~/Views/Shared/_Layout.Code52.cshtml";
+ }
+
+ that'd be awesome.
+
+2. Create your Language resource file
+
+ Add a new item > Resources File. (If resources file isn't visable try changing the selection on the left hand side to the root (such as Visual C#)
+ I usually create a resource file specifically for language resources
+
+ Ensure the strings is the current section selection.
+
+ If your resource file is in a seperate project you may wish to change the access modifier to public so you can access it from other projects.
-that'd be awesome.
--Customizing--
View
4 src/Code52.i18n.MVC3.Example/Code52.i18n.MVC3.Example.csproj
@@ -42,9 +42,6 @@
<ItemGroup>
<EmbeddedResource Include="NuSpec\Content\Resources\Books.pl.resx" />
<EmbeddedResource Include="NuSpec\Content\Resources\Books.resx" />
- <EmbeddedResource Include="NuSpec\Content\Resources\Language.en-US.resx" />
- <EmbeddedResource Include="NuSpec\Content\Resources\Language.fr.resx" />
- <EmbeddedResource Include="NuSpec\Content\Resources\Language.resx" />
</ItemGroup>
<ItemGroup>
<None Include="NuSpec\Code52.i18n.MVC3.Example.Razor.nuspec" />
@@ -57,7 +54,6 @@
<None Include="NuSpec\Content\Models\Accounts\RegisterModel.cs.pp" />
<None Include="NuSpec\Content\Models\Book.cs.pp" />
<None Include="NuSpec\Content\Resources\Books.Designer.cs.pp" />
- <None Include="NuSpec\Content\Resources\Language.Designer.cs.pp" />
<None Include="NuSpec\Content\Views\Account\ChangePassword.cshtml.pp" />
<None Include="NuSpec\Content\Views\Account\ChangePasswordSuccess.cshtml" />
<None Include="NuSpec\Content\Views\Account\Login.cshtml.pp" />
View
6 src/Code52.i18n.MVC4.Example/Code52.i18n.MVC4.Example.csproj
@@ -69,14 +69,8 @@
<None Include="NuSpec\tools\install.ps1" />
</ItemGroup>
<ItemGroup>
- <None Include="NuSpec\Content\Resources\Language.Designer.cs.pp" />
- </ItemGroup>
- <ItemGroup>
<EmbeddedResource Include="NuSpec\Content\Resources\Books.pl.resx" />
<EmbeddedResource Include="NuSpec\Content\Resources\Books.resx" />
- <EmbeddedResource Include="NuSpec\Content\Resources\Language.en-US.resx" />
- <EmbeddedResource Include="NuSpec\Content\Resources\Language.fr.resx" />
- <EmbeddedResource Include="NuSpec\Content\Resources\Language.resx" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)\.nuget\nuget.targets" />

0 comments on commit 80d458b

Please sign in to comment.
Something went wrong with that request. Please try again.