protected override string GetScriptDirectory(IPageContext pageContext, string resourceName, bool isBootScriptsDirectory)
        {
            string localizedCultureName = this.GetLocalizedCultureName(resourceName);

            return(pageContext.FormatURIForCDN(ResourcePathBuilderUtilities.GetLocalizedScriptResourcesRelativeFolderPath(base.ResourcesRelativeFolderPath, localizedCultureName), isBootScriptsDirectory));
        }
        private bool ResourceExists(string resourceName, string languageName)
        {
            string path = Path.Combine(FolderConfiguration.Instance.RootPath, ResourcePathBuilderUtilities.GetLocalizedScriptResourcesRelativeFolderPath(base.ResourcesRelativeFolderPath, languageName), resourceName);

            return(File.Exists(path));
        }
コード例 #3
0
 public static string GetLocalizedScriptResourcesRelativeFolderPath(string resourcesRelativeFolderPath, string cultureName)
 {
     return(ResourcePathBuilderUtilities.GetLocalizedScriptResourcesRelativeFolderPath(resourcesRelativeFolderPath) + "/" + cultureName);
 }