Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Localization] Missing steps for generating and editing resx on Linux and Mac #2501

Open
tanaka-takayoshi opened this issue Jan 12, 2017 · 20 comments

Comments

Projects
None yet
10 participants
@tanaka-takayoshi
Copy link

commented Jan 12, 2017

We need to generate and edit in localization. However the document describes the steps only on the Visual Studio on Windows. Now ASP.NET Core is cross platform so could you describe the supported steps on Linux and Mac OS.

At least, the document should describe the XML schema and the sample XML for resx.

Edit by @Rick-Anderson : See LocalizationResourceGenerator which generates & translates resources based on default <resource>.resx

@spboyer

This comment has been minimized.

Copy link
Contributor

commented Jan 12, 2017

Tooling for VS Code or VS for Mac? @sayedihashimi @madskristensen

@madskristensen

This comment has been minimized.

Copy link

commented Jan 12, 2017

@spboyer I'm not aware of any tooling for those SKUs regarding .resx files. That's not to say that there aren't any

@Rick-Anderson

This comment has been minimized.

Copy link
Contributor

commented Jan 12, 2017

@ryanbrandenburg @DamianEdwards How do Visual Studio for Code folks generate/edit .resx files?

@Rick-Anderson Rick-Anderson self-assigned this Jan 12, 2017

@Rick-Anderson Rick-Anderson added this to the 2017-Quarter 1 milestone Jan 12, 2017

@Rick-Anderson

This comment has been minimized.

Copy link
Contributor

commented Jan 13, 2017

@tanaka-takayoshi

This comment has been minimized.

Copy link
Author

commented Jan 14, 2017

@Rick-Anderson Thanks. I'm not a Mac user but Linux user. However, it appears working on Linux. I'll try later and report.

@tanaka-takayoshi

This comment has been minimized.

Copy link
Author

commented Jan 15, 2017

@Rick-Anderson I tried it, but there are some problems.

  1. POEditor on Linux doesn't have a function to import resx and add a localization term from scratch. It intends to import localization terms from souce code directly, but it doesn't work for ASP.NET Core codes.

  2. http://converter.webtranslateit.com/ has other supported format. I tried CSV. But it can't convert the resource whose key contains space. So, for example, such term can't convert CSV to resx.
    https://github.com/aspnet/Entropy/blob/rel/1.1.0/samples/Localization.StarterWeb/Resources/Views.Home.About.fr.resx#L123

Now, as far as https://msdn.microsoft.com/en-us/library/ekyft91f(v=vs.100).aspx is the formal schema for resource file, only supported way on Linux and Mac OSX is editing resx file directly as plain XML file. I'll try to create VS Code extension for editing resx file or dotnet cli extension for converting to resx from some kind of files (like csv).

@Rick-Anderson

This comment has been minimized.

Copy link
Contributor

commented Jan 15, 2017

@tanaka-takayoshi Thanks for the update.

@spboyer

This comment has been minimized.

Copy link
Contributor

commented Jan 17, 2017

I think that this may be a bug for tooling for xplat and not for docs.

@danroth27

@Rick-Anderson Rick-Anderson modified the milestones: Backlog, 2017-Quarter 1 Mar 20, 2017

@Rick-Anderson

This comment has been minimized.

Copy link
Contributor

commented Mar 20, 2017

@danroth27 @DamianEdwards Will VS for Mac solve this for the Mac? What about Linux?

@Rick-Anderson

This comment has been minimized.

Copy link
Contributor

commented Mar 28, 2017

@DamianEdwards How do Visual Studio for Code folks generate/edit .resx files? Will VS for Mac solve this for the Mac? What about Linux?

@NinoFloris

This comment has been minimized.

Copy link

commented Sep 17, 2017

Any news on this?

@Rick-Anderson Rick-Anderson referenced this issue Mar 3, 2018

Closed

Master list of issues requiring follow up #5591

2 of 11 tasks complete
@rminon

This comment has been minimized.

Copy link

commented Mar 15, 2018

After looking to too many articles I have installed the visual studio community edition on Windows. It seems that the utility tool (https://docs.microsoft.com/es-es/dotnet/framework/tools/resgen-exe-resource-file-generator?view=netframework-4.7.1) for generating .resources from .restext , .txt or resx is, unfortunately, only installed by installing Visual studio

@Rick-Anderson

This comment has been minimized.

Copy link
Contributor

commented Mar 15, 2018

@VanKichline where can we open an issue on this for Visual Studio for Mac. Linux needs a solution too. This is an essential tool.

We really need an xplat tool for this.

@tanaka-takayoshi have you found any workarounds?

@tanaka-takayoshi

This comment has been minimized.

Copy link
Author

commented Mar 18, 2018

@Rick-Anderson Though I haven't checked the recent updates regarding this issue, my previous comment might be still valid.
#2501 (comment)

At first, we need a template file for resource file, which can be generated by Visual Studio. So we need Visual Studio (on Windows) for the first time.
Once a resource file is created, we can copy it to Linux/Mac and simply edit the file.

ASP.NET Core team might have to clarify the XML scheme for the resource file. Once XML scheme is defined, we can create a resource file without Visual Studio.
If XML scheme is same as one for .NET Framework, could you add to ASP.NET Core document as a specificastion?

@Rick-Anderson

This comment has been minimized.

Copy link
Contributor

commented Aug 3, 2018

@ryanbrandenburg @DamianEdwards @danroth27 @rynowak This is our #1 request.

@danroth27

This comment has been minimized.

Copy link
Member

commented Aug 8, 2018

@Andrew-MSFT Are there any plans to support generating/editing resx on xplat?

@hishamco

This comment has been minimized.

Copy link
Contributor

commented Nov 28, 2018

I remembered that I created a tool called LocalizationResourceGenerator which generate & translate resources based on default <resource>.resx, I think I will have a look again to support creating a .resx file from .restext , .txt or any popular format .. please your feedback is welcome

@Rick-Anderson Rick-Anderson removed the bug label Jan 9, 2019

@Rick-Anderson

This comment has been minimized.

Copy link
Contributor

commented Jan 19, 2019

@Andrew-MSFT Are there any plans to support generating/editing resx on xplat?
cc @sayedihashimi

@Rick-Anderson Rick-Anderson added P2 PU and removed P2 labels Jan 19, 2019

@hishamco

This comment has been minimized.

Copy link
Contributor

commented Jan 19, 2019

FYI I update the tool that I created, so you can generate resx files from restext files, but still Visual Studio support will be great

@AndrewBrianHall

This comment has been minimized.

Copy link

commented Jan 23, 2019

This is something we'd like to support eventually, but it's not on the roadmap in the .NET Core 3.0 time frame

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.