How to add Traditional Chinese in Translations Editor of Android Studio? - android-studio

Had tried looking over several times but still can't find Traditional Chinese or zh-tw in "Add Locale" list.
It's hard to believe because this list contains a huge amount of locales, including even the locale that might not be used by anyone like "Zhuang; Chuang".
Is there a way using Android Studio to add translations of Traditional Chinese?

Open "src\main\res" directory of your project in the explorer/finder, you will see the folder "value-zh" if you added Chinese in Android studio.
Simply make a copy and rename them to:
"values-zh-rCN" for simplified Chinese
and "values-zh-rTW" for all traditional Chinese
And android studio will automatically recognise that:
See this as an example: https://android.googlesource.com/platform/packages/apps/Settings/+/master/res/
See more from this answer: Simplified and Traditional Chinese vs Regions

Related

Persian (Arabic) Support for Visual Studio Code

Visual Studio Code does not seem to display Persian or Arabic scripts nicely in the terminal window. I can confirm that on Linux, but not sure about macOS or Windows. Instead of displaying right-to-left languages from right to left, it chains characters to each other from left to right. I tried changing its terminal to one with good Persian support like Konsole from the settings, but it didn't work. Is there a way to solve this or do we have to request project maintainers to add the support?
A screen shot is attached to show the problem.
I had the same problems use the package linked below. You can use it to first convert the text and copy that and paste it into the terminal for input. I made it to correctly organize the Arabic characters and display them correctly. The library supports,
Arabic, Farsi, and English characters and symbols.
Check it out.
https://www.npmjs.com/package/rtl-arabic

Can we use Android-Studio Translations Editor for Flutter?

Translations editor was very good in dealing with strings and translating it to many languages. I wonder if I could use it for flutter apps.
if(yes) {
tell me how;
}else{
tell me the best way to translate texts in flutter;
}
thanks
now I think we couldn't use it.
so, for now, I can use excel to make CSV file of strings and use flappy_translator package to use it in a flutter app.
if there's a way to use android studio translations editor or there's a better way, please tell me.
So you want the handy Android Studio Translation Editor, however it only works with
strings.xml in a res/values folder in native Android projects, as it seems.
But I can offer you something similar. I found the Android Studio Plugin Easy i18n
Go to File->Settings->Plugins (windows) and search for the plugin.
After Installation, you can work with JSON files, I put them in assets/translations:
And added the dependency to the whole folder in my Pubspec.yaml:
assets:
- assets/translations/
And if you open the Editor via View->Tool Windows->Easy i18n, you can edit them, very similar to the Android Studio Translation Editor:
I use the values from the JSON files with the Easy Localization plugin.
Disclaimer: I don't think the authors of Easy i18n and Easy Localization are the same team, at least as I can tell. And I am in no way related to these projects/authors. This is just what worked for me. On my journey, I stumbled across this StackOverFlow post multiple times, so I thought I'd share.

Quickly translate strings in Android Studio

Android Studio has the "Translation Editor" built in, which is a very nice tool, but to quickly translate strings, the user interface is quite a hassle. I have to double-click an item to edit it, where I would expect an Enter or F2 keys to work as well.
Is there a shortcut to enter edit mode in the translation editor?
I'm not sure when it got changed, but for everyone (like me) who found this post here. The F2 now works to edit fields without using the mouse.

Eclipse shortcuts in Resharper

I just started with Visual Studio + Resharper, coming from Java development with Eclipse. I can navigate eclipse pretty quickly, because I memorized all the shortcuts I need. Now it seems like Resharper knows all what eclipse can do (probably even more), but its mapped to different keys, and i really don't feel like learning a new set of shortcuts for the same stuff.
So my question:
Where is Resharpers shortcut configuration file (if there is any)? I saw a bunch of .xml files in it's bin directory, but I'm not sure it's the right place to look. Couldn't find anything in the docs, only how to change the shortcuts from VS one-by-one.
Is there an eclipse preset? I found this on github, but there is absolutely no explanation, on what to do with it, and in the file name it states, it's for r# 5.0 and i have 8.1 (not sure if there is any difference in the configuration part).
I found this file using Google Search: https://github.com/chrismo/jetbrains.keymaps/blob/master/resharper.5.0.eclipse.shortcuts.vs2010.vssettings
You can download it and use Visual Studio's Tools -> Import and Export Settings ... command to import it.
Resharper comes with only two default keyboard schemes, 'Visual Studio' or 'IntelliJ IDEA' (see here). Choose one that you are most happy with (under Resharper->Options...->Environment->Keyboard & Menus) and change any shortcuts in Visual Studio (under Tools->Options...->Environment->Keyboard) to match the ones in Eclipse. It may be easier just to re-learn one of the default schemes though.

Is there a way in Visual Studio to specify what a template class (new class) is going to look like?

I'm a long time Eclipse user trying to learn to Visual Studio. I know that Eclipse had Code Templates that would allow you to build classes with certain comments and formatting already added for a class.
For example:
Auto placing the copyright for the code at the top of the file
Who created the file
Predefined Comments,
etc...
Does Visual Studio 2005 have any functionality like this?
It depends. Visual Studio has a built-in code snippets manager that lets you do things like this to at least a degree (i.e., if you insert a code snippet, it'll be formatted as the snippet specifies, but if you write the same code manually, it won't). Also note that there are limitations on the languages with which you can use code snippets.
Outside of that, most of the major add-ins for VS (e.g., Visual Assist-X) provide their own ability to store and insert bits of code, formatted as you specify. Most of these provide at least some features missing from the built-in snippets manager such as working with other languages or being easier to access (along with quite a few other things -- IMO, VS borders on completely unusable without VA-X).
I would recommend looking at item and project templates in Visual Studio, which sound like what you're looking for. But, in your particular case (C++ development), it doesn't look like this is available to you.
The following MSDN article refers to VS templates, and mentions that for Visual C++ projects, that the template architecture isn't supported. Instead, there's information on creating custom wizards for your project and classes, which may give you the flexibility that you need. Sounds like it'll do what you want it to do, but it's much more work than it would be if you could use an item template for including basic comment structure for a default class file.
http://msdn.microsoft.com/en-us/library/6db0hwky%28VS.80%29.aspx

Resources