jangeador,
Your welcome =)
As far as App_LocalResources are concerned, there are a few steps involved.
1) Copy a core .resx from their App_LocalResources or one from your .ascx.
2) Clean all the data out into a blank template for when you need this again. If using VS.Net you can open it and just delete the items from the grid. If you use notepad or something else, this will need done by hand. If doing by hand remove all the tags like below...
<data name="plSomeSetting.Text">
<value>Your Setting Name</value>
</data>
<data name="plSomeSetting.Help">
<value>A Description of your setting.</value>
</data>
3) Add the tags I have above so you can easily see what you need the next time you need to do this, and save it.
4) Add a App_LocalResources Folder to your project and a copy of the resx in there.
5) Rename the Resx to reflect the exact name of your ascx control. e.g. MyControl.ascx.Resx
To use this in a module you have a few choices...
1) in your ascx add a directive for
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
2) Add the label to the control...
<dnn:label ID="plSomeSetting" RUNAT="server" CONTROLNAME="txtSomeSetting" SUFFIX=":"></dnn:label>
The important thing to note here is the ID, and the ControlName. The ID is what ties this to your resx file, the controlname is for the control the label is for.
Second choice is as follows
1) if your using a label and want the text localized do as follows...
txtSomeLabel.Text = DotNetNuke.Services.Localization.Localization.GetString("Options", this.LocalResourceFile);
as this is C#, replace this. with Me. for VB.Net!
To include this in your PA Install....
1)Right Click the App_LocalResources as zip it, rename it Resources.zip, and add it to your zip for the PA.
2) make the top of your .DNN look like so. If your using the <businesscontrollerclass /> tag make sure it is before <resourcefile />.
<?xml version="1.0" encoding="utf-8" ?>
<dotnetnuke version="3.0" type="Module">
<folders>
<folder>
<name>SomePA</name>
<description></description>
<version>01.00.00</version>
<resourcefile>resources.zip</resourcefile>
<modules>
HTH's,
Dave