Giter Site home page Giter Site logo

resxresourcemanager's Introduction

.NET Foundation

ResX Resource Manager

Build Status Sponsor

The most popular tool to manage localization of all kind of applications with resx-based resources; one of the highest rated extensions on the Visual Studio Marketplace.


This is a community driven Open Source project. As such it needs your support to keep it alive and evolving. The best way to contribute is to help fixing bugs, or adding new features. However, if you cannot help with coding, consider to donate a small amount to ensure ResX Resource Manager will continue to be a great project that can help you in your daily work.


This tool provides central access to all ResX-based string resources in your solution. You can quickly navigate through all resource files and view the content in a well-arranged data grid. All available languages are displayed side by side in columns, to make it easy to find untranslated strings or clean up orphaned entries. All strings can be quickly edited in place, untranslated entries will be created on the fly while typing.

Suitable for any .Net application; WPF is supported out of the box, just use the x:Static markup extension to access the ResX - resources.

Web applications using Typescript (e.g. Angular) are also supported, see L10N-Web-Demo

Xamarin apps can be supported using e.g. XamarinLocalizationSync

Code of Conduct

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information see the .NET Foundation Code of Conduct.

.NET Foundation

This project is supported by the .NET Foundation.

Documentation

Can be found in the Documentation folder.

Installation

ResXResourceManager is available as VS2017-2022 extension and as a standalone executable to support VS2015 and older or users without Visual Studio at all. A scripting module is available as well, so you can easily automate resource tasks, e.g. export untranslated string during build.

All versions can be downloaded from the releases page.

The Visual Studio Extension is also available at the Visual Studio Marketplace, or by searching for RESX in the Visual Studio extension manager. The latest build of the Visual Studio Extension is available at the Open VsixGallery

The standalone version can be installed as click-once application here.

Visual Studio Extension:

Visual Studio Extension MoveToResource

Standalone Application:

Standalone Application

Support this Project:

Donate

Powered by

ReSharper

Contributors

This project exists thanks to all the people who contribute.

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

resxresourcemanager's People

Contributors

632575987 avatar alangraham avatar amse2000 avatar andyesys avatar bartekmotyl avatar bdovaz avatar coliff avatar dhritzkiv avatar djmrek avatar dominickm324 avatar etherfield avatar gchapeaux avatar geertvanhorrik avatar jakubholovsky avatar jeroenoortwijn avatar joakimriedel avatar justinswork avatar kaihuadou avatar luoyunchong avatar mikefh avatar mkaring avatar monkeywithacupcake avatar paumayr avatar peymanr34 avatar philip-ky avatar philippdolder avatar solomon-okolie avatar tom-englert avatar yinyue200 avatar zergmk2 avatar

Stargazers

 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  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  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

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  avatar  avatar  avatar  avatar

resxresourcemanager's Issues

ListViewItem.Text

Is it possible to add ListViewItem.Text to the translatable resources? I know it's saved as a binary blob, but it would be really useful to my project.

Languages

There is only 3 languages enable for resources? Can we add our custom language? For example russian, kyrgyz languages

Add configuration to skip the creation of .resx files without entries

Hi!

We would like the possibility to skip the creation of empty resx files when importing from excel.

Our concrete use case is, that we are using country variant cultures and only a few of our resources actually need a country variant localization. Therefore, during the import there are a lot of empty .resx files added, which are going to stay empty and only clutter the solution or need to be removed manually.

Our use case could be fixed by an additional configuration entry in the "File Creation" category, with something like: "Do not create empty resource files.".

As we need this feature, we are going to implement this in a fork anways and provide the change in a pull request during the coming week. Are there any concerns/ideas you want to add?

Languages tab - some English variants impossible to see in Win10

The Languages tab doesn't appear to have a way to scroll vertically. So some of the English language variants are not visible as they are off the bottom of the screen.
On my monitor, even with the app maximized, the last English variant I see is en-LS.
I tried scrolling using down arrow, page down, mouse scroll wheel.
If I reduce the size of the program window other languages with lots of cultures are also truncated.

See this image for an example resx languages issue

Calculate ALL usages of resource

Please implement calculation of ALL references in code.
Not only for:

Resource.My_Resource_Key

but also for these references:

(Key name is on other code-line)

Resource
    .My_Resource_Key

Usage in attrubutes, for example:

[RangeValidation(
    1.0,
    double.PositiveInfinity,
    ErrorMessageResourceName = "My_Resource_Key",
    ErrorMessageResourceType = typeof(Resource),
    Severity = ValidationSeverity.Warning
)] 

Visual Studio crash on apply Translate result

IDE: Visual Studio 2015
ResXResourceManager version : 1.3.515

In translate tab, I want to apply the translate result to resource file.

In previous version, if resource file of target language isn't exist, ResXResourceManager will pop a dialog box asking that do I want to add the resource file to project or not.

But in version 1.3.515, Visual Studio crash on apply translate result to resource file if the resource file isn't exist.

Feature Request: Log Warnings to the Error List window and/or Output window of VisualStudio

Would be great if warnings and errors (missing translations, string format mismatches, etc.) could be logged to the VisualStudio ErrorList Window and/or the Output Window.

I'm aware of the "show only lines with warnings and changes" feature but I would really like to see these warnings in the log.

ErrorListProvider might be the way to go: https://msdn.microsoft.com/en-us/library/microsoft.visualstudio.shell.errorlistprovider(v=vs.140).aspx

Suggestion: Secondary languages as nested entries (DependentUpon)

Hi

First of all, thanks for creating an awesome extension for managing translations!
I keep wondering why there are so few good localization tools out there and even the good ones usually lack one feature or the other. However, with your extension, I am very happy so far.

There is one (hopefully small) feature request I have:
Would it be possible to create/update secondary .resx files with the <DependentUpon> tag so that they show up as sub-items to the neutral language .resx file?
I do this for all my .resx files manually and it helps a lot with keeping the solution nicely structured instead of having many similar files that are rarely edited clutter up the view.
It could be added as an optional feature that can be enabled in the configuration, maybe even with a button to update all existing .resx files in the same manner (same as with the "Sort all files now" button).

The resulting view in the Solution Explorer would be like this:

+ Solution
  + Project
    - FileA.cs
    + ResourceA.resx
      - ResourceA.de.resx
      - ResourceA.fr.resx

Unresponsiveness on large resources

I have some large individual resources (e-mail templates, cca. 11k characters). ResX manager hangs completely when trying to open them and the only solution is killing visual studio. The same happens with the standalone version.

I can get it to at least export the resource (by never double clicking so I don't go into edit mode) so I can edit it in excel and import it back, but even this can take a long time.

While not the best use case for resx files, the default VS resource editor can handle them. Is there any chance some optimizations could be made?

The resource isn't recognized

I cannot open a resource, using Visual Studio. When I click to view a .resx on ResX Resource Manager it just simply don't open and I can't figure out what's going on.

Sorting problems

Using the 1.5 release with Visual Studio 15.3.4 within a C# 4.7 project the "When saving a RESX file, sort the XML data nodes by the key" Sort using: "OrdinalIgnoreCase" doesn't sort the RESX files after adding a new key.

Also "Sort all files now" crashes visual studio.

Another bug, pressing ctrl+s doesn't save any changes, clicking the save-all button does.

'Clean-up'

Working with ResXResourceManager is saving a lot of time. Unfortunately the development progress is fast and once used values are gone in the next version from the main .resx-file leading to not used translation in other language .resx-file remain.

So I'm wondering if it is possible to add some kind of 'clean-up' function to this awesome tool, removing entries from translated resx-files if the corresponding one in the 'main'-resx file is gone.

Generated files wrong format dotnetcore

Hi,

When I try to add a language in the resourcemanager the generated file has a wrong name.
let's say I have a folder Resource/Views/User
And it contains a resource file Index.nl.resx
If I add a language (eg. english) the generated file is: Index.nl.en.resx (and not Index.en.resx)

Scripting error in V 1.0.0.99

I was trying the new version of scripting (1.0.0.99) and I am getting the following error. Its working fine in 1.0.0.96. It could be introduced between 1.0.0.97-99.

New-Object : Exception calling ".ctor" with "0" argument(s): "No exports were found that match the constraint:
ContractName ResXManager.Scripting.SourceFilesProvider
RequiredTypeIdentity ResXManager.Scripting.SourceFilesProvider"
At C:\GetContents\Scripting\Sample.ps1:8 char:11

  • $myhost = New-Object -TypeName 'ResXManager.Scripting.Host'
  •       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [New-Object], MethodInvocationException
    • FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand

You cannot call a method on a null-valued expression.
At C:\GetContents\Scripting\Sample.ps1:11 char:1

  • $myhost.Load($solutionFolder)
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : InvokeMethodOnNull
    
    

All entires: 0
Changes compared to snapshot:
You cannot call a method on a null-valued expression.
At C:\GetContents\Scripting\Sample.ps1:36 char:1

  • $myhost.LoadSnapshot($snapshot)
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : InvokeMethodOnNull
    
    

You cannot call a method on a null-valued expression.
At C:\GetContents\Scripting\Sample.ps1:39 char:17

  • Where-Object { $_.Values.GetValue($neutralCulture) -ne $_.SnapshotValues.GetVal ...
    
+ CategoryInfo          : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull

Number of changes: 0
Now you can modify the excel file: C:\temp\export\Test.xlsx:

Importing modified excel file
You cannot call a method on a null-valued expression.
At C:\GetContents\Scripting\Sample.ps1:64 char:1

  • $myhost.ImportExcel($excelFileName)
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : InvokeMethodOnNull
    
    

You cannot call a method on a null-valued expression.
At C:\GetContents\Scripting\Sample.ps1:66 char:1

  • $myhost.Save()
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : InvokeMethodOnNull
    
    

Create a new snapshot with the latest data? (Y/N): Y
Updating snaphot C:\temp\export\1.snapshot
You cannot call a method on a null-valued expression.
At C:\GetContents\Scripting\Sample.ps1:72 char:2

  • $snapshot = $myhost.CreateSnapshot()
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

Done:
You cannot call a method on a null-valued expression.
At C:\GetContents\Scripting\Sample.ps1:77 char:1

  • $myhost.Dispose()
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : InvokeMethodOnNull
    

Feature: Optional TextWrapping

A checkbox/toggleButton to optionally activate text wrapping for long one-liners would be a nice UX improvement. Currently, while translating, I keep giving focus back to the neutral string to view it in the resizable preview panel at the top.

Amazing tool, keep up the great work!

How to get content from the namespace "Microsoft.AspNet.Mvc.Razor.HelperResult"

I have created a custom component by using Html Helper in ASP.NET MVC. Also, did the same logic in ASP.NET Core platform.

My component will be working fine, when I have set the properties. Now I am trying to include one additional support like displaying custom contents (like images, html elements and text) with in my component like in dialog component.

In ASP.NET MVC, I have received the inner content from “System.Web.WebPages.HelperResult” this namespace. But ASP.NET Core, I’m unable to get my component inner content which will be mentioned in my view page.

In ASP.NET Core, I’m trying to get the content from “Microsoft.AspNet.Mvc.Razor.HelperResult” namespace. But unfortunately, the expected result was unable to get from this namespace. Even, I don’t know how to get from this namespace (even surfing in internet no ideas about this).
If there is any alternative options to get the result in ASP.NET Core platform or any possible way, please suggest to me!

Please, find the issue in the attached image.

razor

When opening ResXManager for specific resx it loads all Keys

When right clicking a .resx file it opens the manager and loads all keys, then filter to the specific .resx scope afterwards. This takes considerable time when your solution has around 15.000 keys. Wouldn't it be more efficient to defer loading of all keys untill you search?

Edit:
What I am suggesting is that if you open the ResXmanger from the right click context menu of a ResX file, it doesn't try to load all keys in the solution and instead loads keys related to that specific .resx file (for all languages), to decrease loading time.

Wrongly taken automatic already existing resource

Hi, first of all - best extension ever!

And now to the problem:
I have a Solution in Visual studio 2015 with around 20ish projects.
Most of the projects are libraries and what not, and they are all included into one main project.
I've started localizing stuff in it and here's what I do and get:
Both in xaml or c# code:

  1. Select the text
  2. Right click and select move to resources
  3. RESX window appears.
    And here's the problem:
    Check picture 1 - Key is empty, value is there and I can't confirm it.
    It appears to look at Properties\Resources (which is fine because the resource really exists there) but it doesn't auto fill it.

Now there's more:
4. If i press "New entry" it selects under resources (picture 2) Properties\FiscalErrors (other Resx file that is not default), Code appears and Key is empty.
5. And now if i press Reuse existing again - check picture 3 - It selects the correct Key in Properties\Resources which is great, but code part is Wrong, it gives me x:Static properties:FiscalErrors... instead of x:Static properties:Resources...
i hope this is helpfull in debugging, if you need more info please ask.

problem1
problem2
problem3

Really slow on save

Hi all.
After last update my visual studio 2015 became really slow on save, even if no change to file is made.
If i disable resx manager vs works fine.
Is there any way i can help?

Thank you

Error on opening visual studio add in

Used this project for ages, worked fine. Now after latest visual studio update i'm getting an error when i start it up. I see the following error below:

ResX Resource Manager loaded.
Home: https://github.com/tom-englert/ResXResourceManager
Report issues: https://github.com/tom-englert/ResXResourceManager/issues
Support the project by adding a short review: https://marketplace.visualstudio.com/items?itemName=TomEnglert.ResXManager#review-details
Error: System.Windows.Markup.XamlParseException: Collection property 'Microsoft.Expression.Interactivity.Core.PropertyChangedTrigger'.'Actions' is null. ---> System.Xaml.XamlObjectWriterException: Collection property 'Microsoft.Expression.Interactivity.Core.PropertyChangedTrigger'.'Actions' is null.
at System.Xaml.XamlObjectWriter.WriteGetObject()
at System.Xaml.XamlWriter.WriteNode(XamlReader reader)
at System.Windows.Markup.WpfXamlLoader.TransformNodes(XamlReader xamlReader, XamlObjectWriter xamlWriter, Boolean onlyLoadOneNode, Boolean skipJournaledProperties, Boolean shouldPassLineNumberInfo, IXamlLineInfo xamlLineInfo, IXamlLineInfoConsumer xamlLineInfoConsumer, XamlContextStack`1 stack, IStyleConnector styleConnector)
at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
--- End of inner exception stack trace ---
at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at tomenglertde.ResXManager.View.Visuals.ResourceView.InitializeComponent() in C:\Agent_work\9\s\ResXManager.View\Visuals\ResourceView.xaml:line 1
at tomenglertde.ResXManager.View.Visuals.ResourceView..ctor(ICompositionHost compositionHost) in C:\Agent_work\9\s\ResXManager.View\Visuals\ResourceView.xaml.cs:line 55
Assembly location: C:\Users\menow\AppData\Local\Microsoft\VisualStudio\15.0_7ea3f58a\Extensions\1tc1ejl2.ata
Version: 1.3.515.0

Asp.Net Core

I have a asp.net core with resources in an other project.
When i open the Resx Manager the first time, visual studio stop responding.

The next time i have open it, it worked.
Just want to let you know ;-)

Feature request: resource key sorting

Lovely extension, but it absent very useful feature - automatic resource key sorting on save. Sorted resx files much easier to merge when multiple developers changed same resx.

It would be very nice to see all good resx tools in one extension. What authors think about it?

Cannot see "Neutral" column anymore

Hi,
I've been using the tool with no issues for a whole day. Then suddenly when I reopened my VS, I cannot see the "Neutral" language column anymore. I can open any other language and see both the translations and the comments.

VS for Mac Support

Just as title says. Would be great to have this extension on VS for Mac.

Imports .zh-CN into .ar-IQ

I've tried to import an Excel file with 49 Languages. The last two columns are .ar-IQ (empty) and .zh-IQ. The tool imports the .zh-IQ column into .ar-IQ and .zh-CN resx file. :-(

DNN Tokens

Hello,
What is the Regex to be adding for supporting "dotnetnuke tokens"?,
And what are the configuration for it?
Adding same example\links:
dnn tokens: http://www.dnnsoftware.com/wiki/tokens
Regex for dnn tokens: [(\w+|\W*?:\w+|\W*?)*] (it is o.k?)
Example for tokens:
[Portal:Currency]
[Portal:Description]
[Portal:Email]
[Portal:FooterText]
[Portal:HomeDirectory]
[Portal:LogoFile]
[Portal:PortalName]
[Portal:PortalAlias]
[Portal:TimeZoneOffset]
[User:DisplayName]
[User:Email]
[User:FirstName]
[User:FullName]
[User:LastName]
[User:Username]
[User]
[number]

Thanks,
Nir

Crashes often when opening the manager

When we open the manger is often crashes VS2017. This also happens when we search with the checkmark on. We have one solution with several thousand keys, in around one hundred different resource files with four languages(for now). It would be nice with a setting that set it to default not have the 'search checkmark' checked when opening the manager.

Translate zh-Hans always traditionell

I use the azure translation option in the ResX Resource Manager to translate from english to chinese simple (zh-Hans). The translated text of Azure is always traditional. Is there an option in the program which I have to set for it.

For example:

"Hilfe"
Traditional Chinese: 幫助
Simplified Chinese: 帮助

Use Detect Code References to fill resx file

Hey. Beforehand I would like to thank you for this amazing tool. It is incredible!

I Noticed the Detect Code References in configuration. I would like to know if it is possible to detect keys using a regex and automatically add them to the resx files. I know there is a Move to Resource option, but I would like to do it automatically.

Thanks in advance

Please add an undo or a commit button!

The cat walks on the keyboard and I lose data. Or I make a mistake and type in the wrong row because the grid is super slow to scroll or respond to other display changes, and I lose data. This is a terrific program but the behind-the-scenes spreadsheet grid control is too slow and the lack of a commit button or undo option is making me really hate this thing.

Please consider adding a commit button and not push changes to all of the resource files when anything changes.

[edit]

I then thought, maybe there is a way to turn off that auto-update feature. Sure enough, there is an option. I don't know exactly when the update will happen though! Thanks for making it an option to not push changes immediately, it is much appreciated.

ResX Resource Manager can't show "Main "!

image

ResX Resource Manager loaded.
Home: http://resxresourcemanager.codeplex.com/
Report issues: http://resxresourcemanager.codeplex.com/workitem/list/basic
Support the project by adding a short review: http://visualstudiogallery.msdn.microsoft.com/3b64e04c-e8de-4b97-8358-06c73a97cc68/view/Reviews
Error: System.Windows.Markup.XamlParseException: 设置属性“System.Windows.ResourceDictionary.DeferrableContent”时引发了异常。 ---> System.Xaml.XamlObjectWriterException: 设置属性“System.Windows.ResourceDictionary.DeferrableContent”时引发了异常。 ---> System.Xaml.XamlObjectWriterException: 在“MS.Internal.Markup.StaticExtension”上提供值时引发了异常。 ---> System.ArgumentException: 无法将“TomsToolbox.Wpf.ResourceKeys.AutoToolTipTextBoxStyleKeyName”StaticExtension 值解析为枚举、静态字段或静态属性。
在 System.Windows.Markup.StaticExtension.ProvideValue(IServiceProvider serviceProvider)
在 MS.Internal.Markup.StaticExtension.ProvideValue(IServiceProvider serviceProvider)
在 MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)
--- 内部异常堆栈跟踪的结尾 ---
在 MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)
在 System.Xaml.XamlObjectWriter.Logic_ProvideValue(ObjectWriterContext ctx)
在 System.Xaml.XamlObjectWriter.Logic_AssignProvidedValue(ObjectWriterContext ctx)
在 System.Xaml.XamlObjectWriter.WriteEndObject()
在 System.Xaml.XamlWriter.WriteNode(XamlReader reader)
在 System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter)
在 System.Windows.ResourceDictionary.EvaluateMarkupExtensionNodeList(XamlReader reader, IServiceProvider serviceProvider)
在 System.Windows.ResourceDictionary.GetKeyValue(KeyRecord key, IServiceProvider serviceProvider)
在 System.Windows.ResourceDictionary.SetKeys(IList1 keyCollection, IServiceProvider serviceProvider) 在 System.Windows.ResourceDictionary.SetDeferrableContent(DeferrableContent deferrableContent) 在 System.Windows.Baml2006.WpfSharedBamlSchemaContext.<>c.<Create_BamlProperty_ResourceDictionary_DeferrableContent>b__297_0(Object target, Object value) 在 System.Windows.Baml2006.WpfKnownMemberInvoker.SetValue(Object instance, Object value) 在 MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(XamlMember member, Object obj, Object value) 在 MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value) --- 内部异常堆栈跟踪的结尾 --- 在 MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value) 在 MS.Internal.Xaml.Runtime.PartialTrustTolerantRuntime.SetValue(Object obj, XamlMember property, Object value) 在 System.Xaml.XamlObjectWriter.Logic_ApplyPropertyValue(ObjectWriterContext ctx, XamlMember prop, Object value, Boolean onParent) 在 System.Xaml.XamlObjectWriter.Logic_DoAssignmentToParentProperty(ObjectWriterContext ctx) 在 System.Xaml.XamlObjectWriter.WriteEndMember() 在 System.Xaml.XamlWriter.WriteNode(XamlReader reader) 在 System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter) 在 System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter) 在 System.Windows.SystemResources.ResourceDictionaries.LoadDictionary(Assembly assembly, String assemblyName, String resourceName, Boolean isTraceEnabled, Uri& dictionarySourceUri) 在 System.Windows.SystemResources.ResourceDictionaries.LoadGenericDictionary(Boolean isTraceEnabled) 在 System.Windows.SystemResources.FindDictionaryResource(Object key, Type typeKey, ResourceKey resourceKey, Boolean isTraceEnabled, Boolean allowDeferredResourceReference, Boolean mustReturnDeferredResourceReference, Boolean& canCache) 在 System.Windows.SystemResources.FindResourceInternal(Object key, Boolean allowDeferredResourceReference, Boolean mustReturnDeferredResourceReference) 在 System.Windows.FrameworkElement.FindResourceInternal(FrameworkElement fe, FrameworkContentElement fce, DependencyProperty dp, Object resourceKey, Object unlinkedParent, Boolean allowDeferredResourceReference, Boolean mustReturnDeferredResourceReference, DependencyObject boundaryElement, Boolean isImplicitStyleLookup, Object& source) 在 System.Windows.StaticResourceExtension.FindResourceInAppOrSystem(IServiceProvider serviceProvider, Boolean allowDeferredReference, Boolean mustReturnDeferredResourceReference) 在 System.Windows.StaticResourceExtension.FindResourceInEnviroment(IServiceProvider serviceProvider, Boolean allowDeferredReference, Boolean mustReturnDeferredResourceReference) 在 System.Windows.StaticResourceExtension.TryProvideValueInternal(IServiceProvider serviceProvider, Boolean allowDeferredReference, Boolean mustReturnDeferredResourceReference) 在 System.Windows.ResourceDictionary.SetOptimizedStaticResources(IList1 staticResources, IServiceProvider serviceProvider, StaticResourceExtension staticResourceWorker)
在 System.Windows.ResourceDictionary.SetKeys(IList1 keyCollection, IServiceProvider serviceProvider) 在 System.Windows.ResourceDictionary.SetDeferrableContent(DeferrableContent deferrableContent) 在 System.Windows.Baml2006.WpfSharedBamlSchemaContext.<>c.<Create_BamlProperty_ResourceDictionary_DeferrableContent>b__297_0(Object target, Object value) 在 System.Windows.Baml2006.WpfKnownMemberInvoker.SetValue(Object instance, Object value) 在 MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(XamlMember member, Object obj, Object value) 在 MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value) --- 内部异常堆栈跟踪的结尾 --- 在 System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri) 在 System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri) 在 System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream) 在 System.Windows.Application.LoadComponent(Object component, Uri resourceLocator) 在 tomenglertde.ResXManager.View.Visuals.ResourceView.InitializeComponent() 位置 C:\Agent\_work\3\s\Main\ResXManager.View\Visuals\ResourceView.xaml:行号 1 在 tomenglertde.ResXManager.View.Visuals.ResourceView..ctor(ExportProvider exportProvider) 位置 C:\Agent\_work\3\s\Main\ResXManager.View\Visuals\ResourceView.xaml.cs:行号 52 Error: System.Windows.Markup.XamlParseException: 在“System.Windows.StaticResourceExtension”上提供值时引发了异常。 ---> System.Xaml.XamlObjectWriterException: 设置属性“System.Windows.ResourceDictionary.DeferrableContent”时引发了异常。 ---> System.Xaml.XamlObjectWriterException: 在“MS.Internal.Markup.StaticExtension”上提供值时引发了异常。 ---> System.ArgumentException: 无法将“TomsToolbox.Wpf.ResourceKeys.AutoToolTipTextBoxStyleKeyName”StaticExtension 值解析为枚举、静态字段或静态属性。 在 System.Windows.Markup.StaticExtension.ProvideValue(IServiceProvider serviceProvider) 在 MS.Internal.Markup.StaticExtension.ProvideValue(IServiceProvider serviceProvider) 在 MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider) --- 内部异常堆栈跟踪的结尾 --- 在 MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider) 在 System.Xaml.XamlObjectWriter.Logic_ProvideValue(ObjectWriterContext ctx) 在 System.Xaml.XamlObjectWriter.Logic_AssignProvidedValue(ObjectWriterContext ctx) 在 System.Xaml.XamlObjectWriter.WriteEndObject() 在 System.Xaml.XamlWriter.WriteNode(XamlReader reader) 在 System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter) 在 System.Windows.ResourceDictionary.EvaluateMarkupExtensionNodeList(XamlReader reader, IServiceProvider serviceProvider) 在 System.Windows.ResourceDictionary.GetKeyValue(KeyRecord key, IServiceProvider serviceProvider) 在 System.Windows.ResourceDictionary.SetKeys(IList1 keyCollection, IServiceProvider serviceProvider)
在 System.Windows.ResourceDictionary.SetDeferrableContent(DeferrableContent deferrableContent)
在 System.Windows.Baml2006.WpfSharedBamlSchemaContext.<>c.<Create_BamlProperty_ResourceDictionary_DeferrableContent>b__297_0(Object target, Object value)
在 System.Windows.Baml2006.WpfKnownMemberInvoker.SetValue(Object instance, Object value)
在 MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(XamlMember member, Object obj, Object value)
在 MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value)
--- 内部异常堆栈跟踪的结尾 ---
在 MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value)
在 MS.Internal.Xaml.Runtime.PartialTrustTolerantRuntime.SetValue(Object obj, XamlMember property, Object value)
在 System.Xaml.XamlObjectWriter.Logic_ApplyPropertyValue(ObjectWriterContext ctx, XamlMember prop, Object value, Boolean onParent)
在 System.Xaml.XamlObjectWriter.Logic_DoAssignmentToParentProperty(ObjectWriterContext ctx)
在 System.Xaml.XamlObjectWriter.WriteEndMember()
在 System.Xaml.XamlWriter.WriteNode(XamlReader reader)
在 System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter)
在 System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter)
在 System.Windows.SystemResources.ResourceDictionaries.LoadDictionary(Assembly assembly, String assemblyName, String resourceName, Boolean isTraceEnabled, Uri& dictionarySourceUri)
在 System.Windows.SystemResources.ResourceDictionaries.LoadGenericDictionary(Boolean isTraceEnabled)
在 System.Windows.SystemResources.FindDictionaryResource(Object key, Type typeKey, ResourceKey resourceKey, Boolean isTraceEnabled, Boolean allowDeferredResourceReference, Boolean mustReturnDeferredResourceReference, Boolean& canCache)
在 System.Windows.SystemResources.FindResourceInternal(Object key, Boolean allowDeferredResourceReference, Boolean mustReturnDeferredResourceReference)
在 System.Windows.FrameworkElement.FindResourceInternal(FrameworkElement fe, FrameworkContentElement fce, DependencyProperty dp, Object resourceKey, Object unlinkedParent, Boolean allowDeferredResourceReference, Boolean mustReturnDeferredResourceReference, DependencyObject boundaryElement, Boolean isImplicitStyleLookup, Object& source)
在 System.Windows.StaticResourceExtension.FindResourceInAppOrSystem(IServiceProvider serviceProvider, Boolean allowDeferredReference, Boolean mustReturnDeferredResourceReference)
在 System.Windows.StaticResourceExtension.FindResourceInEnviroment(IServiceProvider serviceProvider, Boolean allowDeferredReference, Boolean mustReturnDeferredResourceReference)
在 System.Windows.StaticResourceExtension.TryProvideValueInternal(IServiceProvider serviceProvider, Boolean allowDeferredReference, Boolean mustReturnDeferredResourceReference)
在 System.Windows.StaticResourceExtension.ProvideValueInternal(IServiceProvider serviceProvider, Boolean allowDeferredReference)
在 System.Windows.StaticResourceExtension.ProvideValue(IServiceProvider serviceProvider)
在 MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)
--- 内部异常堆栈跟踪的结尾 ---
在 System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
在 System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
在 System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
在 System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
在 tomenglertde.ResXManager.View.Visuals.TranslationsView.InitializeComponent() 位置 C:\Agent_work\3\s\Main\ResXManager.View\Visuals\TranslationsView.xaml:行号 1
在 tomenglertde.ResXManager.View.Visuals.TranslationsView..ctor(ExportProvider exportProvider) 位置 C:\Agent_work\3\s\Main\ResXManager.View\Visuals\TranslationsView.xaml.cs:行号 33
Assembly location: C:\Users\Silas\AppData\Local\Microsoft\VisualStudio\14.0\Extensions\jqe51gya.co4
Version: 1.0.0.93
DTE event: Document saved
DTE event: Document saved
DTE event: Document saved
DTE event: Document saved
DTE event: Document opened

Feature: Individual @Invariant Declarations

Take, for example, a language that has a number of sub-cultures with only few cases of different spellings:

Different:

  • en: Color
  • en-GB: Colour

Equivalent:

  • en: House
  • en-GB:

It would be great if there was an option to set something like @Invariant or @MarkAsTranslated for individual locales; essentially marking empty translations as translated (rather than having loads of empty strings being flagged-up as untranslated).

For example, in en-GB you could essentially set everything to invariant - everything but those few strings that have different spellings (e.g. "colour", "organisation", and so forth).

Error on Paste from Excel

Hello, I'm trying to paste the excel data but I'm getting the following error:

Error parsing the data from clipboard: The data you're pasting isn't the same size as your selection.

Is there any format so I can copy and paste?

Tks

Don't change solution file every time

I had change my default language to portuguese and this information is saved into solution file, link this:

GlobalSection(ExtensibilityGlobals) = postSolution
	RESX_NeutralResourcesLanguage = pt-BR
	RESX_PrefixTranslations = False
EndGlobalSection

But every time I change a resource with resxmanager the VisualStudio changes the configuration position in solution file, like this:

GlobalSection(ExtensibilityGlobals) = postSolution
	RESX_PrefixTranslations = False
	RESX_NeutralResourcesLanguage = pt-BR
EndGlobalSection

It's possible to save this preference only when I was changed and avoid Visual Studio changes the solution file every time?

"Neutral" column header not reflecting langusge setting

The VS add-in does not reflect the neutral language selected in the header of the "Neutral" column.

In the AssemblyInfo.cs file, you can set the neutral language for an assembly:
[assembly: NeutralResourcesLanguage("nn-NO")]

However, no matter how this is set, an American flag is flying over the column. This is misleading. Either the flag of the neutral culture should be used, or the flag should be omitted for this column.

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.