Giter VIP home page Giter VIP logo

microsoft / resource-static-analysis Goto Github PK

View Code? Open in Web Editor NEW
19.0 35.0 14.0 1.9 MB

The Resource Static Analysis enables companies and localization suppliers to quickly add scalable validation checks to help ensure quality doesn't suffer as software and content is localized and data is exchanged between internal workflows and even between companies. The analysis engine is already in use by multiple teams at Microsoft, including Windows (WDG), Office (ASG), and Azure+SQL+VS (C&E).

License: MIT License

C# 100.00%

resource-static-analysis's Introduction

#Resource Static Analysis The Resource Static Analysis enables companies and localization suppliers to quickly add scalable validation checks to help ensure quality doesn't suffer as software and content is localized and data is exchanged between internal workflows and even between companies. The analysis engine is already in use by multiple teams at Microsoft, including Windows (WDG), Office (ASG), and Azure+SQL+VS (C&E).

This project also includes a complete sample that the Microsoft Office team is using to validate that sufficient resource context has been added by the developers in Word, Excel, OneNote, etc.. Validating the context ensures that those resources can be efficiently localized appropriately.

We are eager to engage and learn from this experience and may even end up Open Sourcing other parts of our localization related components and tooling, so your participation and feedback is very much appreciated and will directly impact this an other projects.

##Goals for this project Further enhance our common Resource Static Analysis toolbox, including supporting additional formats (such as XLIFF) and various validation rules. See also the Roadmap.

##How to contribute Please see our [Contribution Guidelines] (CONTRIBUTING.md) for details, and do join the conversation on #Slack #Slack icon

##Licensing The Resource Static Analysis project is licensed under the MIT License.

##What to know more? Check out our Wiki.

resource-static-analysis's People

Contributors

microsoft-github-policy-service[bot] avatar richiewhite avatar samcr avatar up2pixy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

resource-static-analysis's Issues

Could we change assembly.Location to new Uri(assembly.CodeBase).LocalPath?

In ResourceStaticAnalysisConfigMacroHandler, the LoadConfigMacros() method looks up "ResourceStaticAnalysisConfigMacros.xml" from the directory of its assembly.Location. This is ok when the handled is invoked from local. But when the macro handler is used in web environment, the CodeBase of the assembly and the physical location of the app instance on IIS is different...

E,g.
The Location is
C:\Users\mchen\AppData\Local\Temp\Temporary ASP.NET Files\root\cdecd0db\71a84541\assembly\dl3\389eb5b0\00c17472_911ad201\Microsoft.ResourceStaticAnalysis.Configuration.dll

The CodeBase is
File://D:/Git/QS_IRIS/Iris/src/Iris.Web/bin/Microsoft.ResourceStaticAnalysis.Configuration.dll

As a workaround, in order to make the macro handler find the xml correctly, I need to copy the macro xml file from bin folder to the physical folder where the assembly is loaded from.

If we can change the line 247 in file ResourceStaticAnalysisConfigMacroHandler.cs
from

String pathToFile = Path.Combine(Path.GetDirectoryName(assembly.Location), macroDefinitionFile);

to

String pathToFile = Path.Combine(Path.GetDirectoryName(new Uri(assembly.CodeBase).LocalPath), macroDefinitionFile);

It will resolve the issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.