How should keyboard mnemonics be localized? [closed] - c#

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
Is there a standard approach to localizing (internationalize) keyboard mnemonics? For example, in Windows Explorer (English), if the user types Alt-F then C, the File menu opens and then the Close operation is selected.
For a language using qwerty, I guess you can change the mnemonic letters depending on the translated words. But what about a language like Chinese? I've seen some programs put the mnemonic after label in parenthesis, but it doesn't seem ideal.
Reposted: https://ux.stackexchange.com/questions/39074/how-should-keyboard-mnemonics-be-localized

With Java, you can use ResouceBundles. With them, you can create files that hold, each one, strings and objects for a certain locale. For example, you write Resource Bundles for en, en_US, en_UK.
Let's say en_US is the default for English. You write en as if it where en_US, leave en_US blank and just write differences between en_US and en_UK in the en_UK file, Java will find the "equals" in the default en file.
This presentation will introduce some of the concepts of Java i18n.

Related

read,write,modify while texteditor is open [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
after one hour searching I'm writing this question.
how to read,write and modify a text in text editor while the text editor is open, the text editor might be anything such as notepad or vs or word.
the type of c# application isn't matter whatever it be.
Writing to another memory's process is more complex and less stable. Better idea is to send a message/event to another process. This link demonstrates it for notepad, but idea is similar for other editors.
You need to connect to the process, it involves a lot of Windows API and it is different for different applications. My advise, don't do it, I cannot imagine an architecture which includes this kind of actions, it is asking for bugs.
But, if you still want to do it, Google: "connect to a process notepad and change text c#"
You will find many links which explain. For example this one:
https://www.codeproject.com/Articles/670373/Csharp-Read-Write-Another-Process-Memory

Parse java manifest file in C# [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Is there any solution to parse a java manifest (manifest.mf) file in C#?
I need to get values from it.
Thank you very much!
I doubt that there's a C# Specific library for this, but this question (Use of the MANIFEST.MF file in Java) has a great overview of the file, what it's for, and a lot of other helpful information.
That being said, the quick and dirty way (in my opinion) for how to do this would be split every line by a colon, the first value in the array is the header name, and all other values after that, would be the value. (just in case your value has a colon in it, I'm unsure if that's allowed by the spec or not but, but I'd assume so.

How to add a watermark to CSV [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
Is it possible to add a watermark to a Comma Separated Values file?
I have tried to add an image and word art to a Comma Separated Values file but it doesn't work.
No. CSV is plain text, and does not support binary content. It has no concept of watermarks, images, Word art, or anything else. If you can't add it in Notepad, you can't put it in a CSV.
CSVs are straight text files with no graphical association or connection whatsoever. It is impossible to add a watermark to a CSV.

Cabarc exe not unzipping when filepath has unicode characters [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
I am trying to unzip a file from a source folder whose name is in Unicode(Chinese) using Cabarc.exe utility.
But the utility is not unzipping the same.
If i rename the folder to English, then it works.
Is this a known issue? Any work arounds?
Code: Cabarc.exe -p X "C:\测试\sourcefile.zip" "C:\ProgramData\destination"\
Sounds like a typical non-Unicode ('ANSI') compiled app - in which case there's not really much fix possible, any character used in the command line that is not available in your locale code page will necessarily fail.
Setting your Windows locale to code page 936 ("language for non-Unicode applications" -> Chinese) would allow you to use Chinese characters, but not any other non-Chinese characters that aren't available in that code page.
The command chcp 65001 to set your code page to UTF-8 for a particular session would in theory allow you to use all Unicode characters. Unfortunately there are a number of bugs in the implementation of code page 65001 that cause widespread breakage... I don't know if cabarc would survive it.

Advice creating language settings? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Goal:
Create settings to change language in my C# application.
Problem:
Which best practice, advice, course of action, or similiar should I consider to create this functionality in order to reduce pitfall?
Please remember that the langugage can be applied in textbox, label, button etc.
Sooner or later I gonna need to add some more language in the future.
Is there any guideline to create technical languge settings in VS 2010?
Beyond the technical advice, additionally choose a "tester" language that all programmers in the team can read/write in order to test that they've configured resources properly and programmed properly to allow for localization. I would suggest Pig Latin or something similar (or like FaceBook's pirate english).

Categories

Resources