Multilanguage select on dropdown, typing enable in textarea - actionscript-3

I am working on a flex project. I want to implement a title window in which I have a dropdown with multi language options, selected one option e.g no_NO for Norwegian language. Now user should able to write in Norwegian language in a text area in that window.
Please guide.

Flex provides a mechanism using resource bundles and the ResourceManager. There should be some examples in the official documentation to support runtime localization. I implemented a smal example a while back which shows how to avoid using resources in the markup: localization example # github

Related

What HTML Language Code should I use for Sranantongo?

I need to add support to my application for a new language.
My application shows HTML webpages in an internal CHtmlView browser control.
I have looked through the language codes here for:
Sranantongo
But it is not listed. What language code should I use?
With one google search, i've found that Sranantongo is the speaking language of Suriname. Then i found on the page you gave the link :
SURINAME SR
I have now stumbled over this web page.
It appears more comprehensive.
It states:
So it looks like the right code is srn.

Custom code snippet for WebStorm and PhpStorm

I use custom code snippet for Sublime Text like custom comments, function, reusable block code, CDN and more.. but I could not do that in WebStorm and PhpStorm IDE.
Here is my building block code snippet (comments) for Sublime Text:
/*============================
comments
============================*/
and this code blocks for HTML5 comments
<!-----------------------
comments
----------------------->
Moreover I'm new user for JetBrains software. Can I use custom code snippet above in JetBrains software ?
It's called Live Templates in JetBrains IDEs.
Available at Settings/Preferences | Editor | Live Templates.
You can use existing Live Templates as is, alter them to your needs or create your own.
Creating own is better be done in own group -- they will be stored in separate config file so easier to share, no possible conflicts with built-in ones (easier to update between versions etc.). It also makes perfect sense to use separate group per language -- the same abbreviation can be used for different languages/context but abbreviation within the same group must be unique.
BTW -- I'd say -- do not edit built-ins at all -- just disable specific built-in template and create your own version of it in separate group. This way you can always see what fix/change devs have made in new IDE version etc.
Full official tutorial/how-to is available here: https://confluence.jetbrains.com/display/PhpStorm/Live+Templates+%28Snippets%29+in+PhpStorm
You may also be interested in other articles:
https://confluence.jetbrains.com/display/PhpStorm/Tutorials
in particular (since you have used Sublime in the past): https://confluence.jetbrains.com/display/PhpStorm/PhpStorm+for+Users+of+Text+Editors
Finally I get a tips ! PhpStorm allows you to create your own live templates (code snippets) to optimise your workflows.
Open the settings dialog and head into Editor | Live Templates, you can see the available live templates grouped by language. To add a new template click the + (plus) button and select Live Template. Specify the abbreviation (the short bit of text you type that will be expanded to the full code snippet) and a description.
Then provide the full code snippet in the Template text field. You can include variables in the template in the format $<variable name>$, which will allow you to provide values when the template is expanded. PhpStorm recognises $END$ as a special variable indicating the final position of the cursor after the template has been expanded and values have been provided for all variables.
Next click the Define warning text to specify which language the template is for and optionally the context it is available in.
Now the template is ready to be used. Open a file and type the abbreviation that was specified earlier, then hit Tab to expand the template. The cursor will be positioned on the first variable, provide a value then hit Tab to keep moving through all available variables. The final position of the cursor will be the location of the $END$ variable.
Further Reading
Creating & Editing Live Templates
I don't think you can do this, however you can add custom tags in Settings > Editor > TODO.
//TODO & //FIXME are already implemented.
But this custom tags are not working for HTML.
Maybe you can find an extension to do that in Settings > Plugins.

iOS UIWebView set language for html page

I'm building a website that will be used as app by UIWebView. My website locale is italian, my app locale is italian, but input type controls in html has english text (as in attach).
How i can fix it?
Thank you
I ever met the same problem and fixed that as below, in XCode 7:
In info.plist, Add "Localizations" if it doesn't exist, expand to its child items, and set one of them to your desired language to declare that your app serves this kind of language.
And the actual display language is also impacted by language setting of your device, make sure that Settings->General->Language & Region->Language in your device is set to what you want.
For X-Code 13: under Project Navigation select your App and click on the Info tab and under Localizations add your language of choice.

dynamic HTML page to pdf

I know there is a list of similar questions but all handle pages without user interaction (static even though some js may be there).
Let's say we've a page the user can interact (e.g. svg than changes, or html tables with drilldown - content changes). Those interactions will change the page. Same happens in stackoverflow when entering the question...
The idea is adding a button, "convert to pdf" taking the state of the html and sending to the user back a pdf version (we've a Java server).
Using the print of the browser is not the answer I'm looking for :-).
Is this a stick in the moon ?
You would have to store the parameters that generate the HTML view (i.e. what the user clicks on, what selections they make, etc). If you can have a list of parameters that generate the HTML view, you can have a method which accepts the list of parameters (JSON post?), generates the HTML view and passes it to your PDF generating routine. I'm not too familiar with Java libraries for this purpose, but PHP has TCPDF can take html output to basically generate a PDF for you. Certainly, there are Java libraries which will allow you to do the same thing, or you can use the parameters to get a list of rows/arrays which can be iterated over and output using the PDF library of your choice.
Both iTextPDF and Aspose.PDF would allow you to do that (I've seen them used in two different projects), but there is no magic and you will have to do some work.
The steps are roughly:
Get (as a string) the part of the document which you want to print with jQuery or innerHTML
Call a service on the server side to convert this to PDF
[Serverside] Use a whitlist - based tool to clean up the hmtl (unless you want to be hacked). JSoup is great for that.
[Serverside] Use IText or Aspose API to create the PDF from the HTML (this is not trivial, you will have to read the doc)
Download the document
I'd also recommend DocRaptor, an HTML to PDF API built by my company, Expected Behavior.
DocRaptor uses Prince XML to generate PDFs, and thus produces higher quality results than similar products.
Adding PDF generation to your own web application using our service is as simple as making an HTTP POST request to our server.
Here's a link to DocRaptor's home page:
DocRaptor
And a link to our API documentation:
DocRaptor API documentation

How to set HTML AccessKey using extJS

Hopefully everyone knows the benefit of setting the HTML accesskey property on input-fields and buttons (and various others): It makes the page easy to navigate by enabeling shortcuts (in IE by pressing 'Alt' and the accesskey).
My problem is now that I have been asked to look into extJS for building our forms (and web stuff en general) as this is delivered with our IceBreak server.
I've been able to build a form and at first I figured that I must be able to set the accesskey the same way as all the other properties... but that does not seem to be working =0/
I can see in How to implement accesskey on ExtJs tabs? and http://www.sencha.com/forum/showthread.php?22812-AccessKeys-(Global-keymap) that it is possible to make something similar to accesskeys, but they seem a lot like work-arounds to me.
I just need for Alt and 0-9 or a-z to focus/active the elements. Nothing more fancy than that.
Is there a SIMPLE way of getting extJS to set the accesskey? (preferably on the html-element)
I was about to suggest using the KeyMap component, but I see that the forum links already do that. I have used the keymap object before to create keyboard shortcuts in the past. We replicated the keyboard shortcuts that existed in the thick-client legacy application we were replacing.
If you follow the guidelines in the links you posted, that should get you to where you are going. Following this method is what you'll need to do.