Posted By Ram on 3/11/2024 3:24 AM Thanks a lot for the detailed explanation. I tried the following 2 ways in Home-Standard ASCX skin file. Cleared the cache and nothing is showing up in the front-end. What am I missing? 1) <%= Localization.GetString("Welcome", "C:\Sites\SITENAME\Portals\_default\Skins\SITENAME\App_LocalResources\Home-Standard") %> 2) Also, the following 2 resx files (Home-Standard.ascx and Home-Standard.fr-FR.ascx) are placed under - C:\Sites\SITENAME\Portals\_default\Skins\SITENAME\App_LocalResources\ Welcome> -------------------------------------------------------------------------- Accueil>
Thanks a lot for the detailed explanation. I tried the following 2 ways in Home-Standard ASCX skin file. Cleared the cache and nothing is showing up in the front-end. What am I missing?
1) <%= Localization.GetString("Welcome", "C:\Sites\SITENAME\Portals\_default\Skins\SITENAME\App_LocalResources\Home-Standard") %> 2)
Also, the following 2 resx files (Home-Standard.ascx and Home-Standard.fr-FR.ascx) are placed under - C:\Sites\SITENAME\Portals\_default\Skins\SITENAME\App_LocalResources\
Welcome>
--------------------------------------------------------------------------
Accueil>
Hi, just a few notes/observations:
All that said, the suggestion provided earlier by Daniel Valadas would be even simpler. ;-)
Posted By David Poindexter on 3/11/2024 11:57 AM All that said, the suggestion provided earlier by Daniel Valadas would be even simpler. ;-)
I agree, and it would be far easier for anyone to maintain moving forward.
And to further further clarify it is a different resx file for my proposed solution and David's proposed solution, so make sure you don't confuse them. With David's solution it is for a very specific ascx control and you need .ascx.resx Using the skinObject the file does not have the .ascx part and only ends in .resx and needs to match the skin name exactly. But then it is available for the whole skin and is discovered by convention.
David, I tried exactly how you mentioned, but it is not showing up anything :(
Daniel, here is what I did, can you let me know if this is the right direction? How do I invoke/call the resource keys from the various ascx skin files used in the site?
Contents for the french resx file are as follows: (similar content for en-us resx file, except the localized value)
text/microsoft-resx 1.0.0.0 System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Accueil
Posted By Daniel Valadas on 3/12/2024 9:57 PM Your resx file names are wrong, you need to use your actual skin name and not the view or file name. You are in between one proposed solution and the other here. My proposal is only for the TEXT skinobject usage and for that one the file name is exactly the name of the skin (the folder name)
Agreed, TEXT is the way to go IMO. Here's a working example if you need one (27)
Please note that there are some pages about this containing information that's not completely corrrect. The "Text" attribute should be "ShowText"
The naming convention for th resx files is "myskin.ascx.nl-NL.resx" and not "myskin.nl-NL.ascx.resx"
HTH
Finally, I got the TEXT object to work with all of your help :). Thanks a lot Timo, Daniel, Michael, David and Will :)
How do I extend this to image/logos, hyperlinks (), tooltips?
Posted By Ram on 3/13/2024 12:45 PM Finally, I got the TEXT object to work with all of your help :). Thanks a lot Timo, Daniel, Michael, David and Will :) How do I extend this to image/logos, hyperlinks (), tooltips?
Great you got it to work...
Do you mean multi-lingual images/logos, hyperlinks and tooltips in the skin?
Happy DNNing! Michael
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.