Where to find default text for supported languages in WP7 - windows-phone-7

I am creating an application, and I noticed that nowhere can i find text such as 'pin to start' to use for livetiles in my application (creating a secondary tile). I tried to send Microsoft's AppHub a support ticket, but I only received a response saying that I could not be helped with translations? I clearly stated the need to be standardized and uniform across my third party apps and default behavior, but this had no effect on the answer. My problem arises when I translate my applications using a resx translator tool and Bing for my translation service. Some words to not translate correctly, which is fine because I go back through to check and then attempt to do this manually, but phrases such as 'pin to start' which are so unique to the WP7 application list sometimes do not translate properly at all. I would like to be as close to Microsoft's default language translations as possible for supported display languages, but are there any resources which may help me out? Or am I left in the dust to try to figure these out myself?

There is a page Microsoft Terminology Collection where you can download sets of standard texts.

There is no document that will show you the localized versions of the system strings. For that, you will have to dig through OS files, and that implies that you will have access to the WP OS image. You have to rely on your own translation skills or simply switch languages on the phone to check specific strings.

Related

is there anyway to embed an OLE object in Word under macos and use an external program to process the OLE object when double clicking?

guys!
we are developing a formula editor.
we want to insert our formula in Word (the formula image is normally displayed in Word) and edit again, just like xlsx files.
when double clicking, we want to launch our editor program to edit the formula and then replace it in Word.
we have already done that on Windows, but under the macOS, we are confused because we do not know how to implement them.
can you please tell me if that possible? is there a similar function implementation of office word under macos?
any advice or suggestion is welcome!
No, it is not possible because OLE is based on the COM technology which exists on Windows only.
As a possible solution you may consider creating an Office web add-in which can be installed on all platforms from web browsers to Mac OS. See Develop Office Add-ins for more information.
You can post or vote for an existing feature request on Tech Community where they are considered when the Office dev team go through the planning process.

No way to handle internationalization (i18n)?

I'm wondering if there is any way to handle i18n while building HTML/Js apps using trigger.io (forge).
By the way, there is also no way to detect user's locale on devices, workarounding by inspecting User Agent ( or in my case - a FB connect app - asking FB to get the user's locale)
Internationalization is a must have for any serious app ...
I'm currently "hacking" this by creating several JSON files (one per locale), holding same keys in the appropriate language.
1: Is there any plan of detecting/getting user's locale with forge Js API ?
2: Is there any plan to handle automated i18n while building apps ?
Tks.
You could easily write a Trigger.io plugin to detect the device language for you. Here are some resources on how to do this:
Android: http://developer.android.com/reference/java/util/Locale.html
iOS: Getting current device language in iOS?
As soon as you have the language string you could then use one of many js plugins that handle localization for you OR do it on your own. Having multiple json files with the localized strings and loading one of them on demand doesn't sound too hacky to me.
PS: Of course, if you plan to have a mobile browser version of your app you cannot rely on native plugins. In this case you'd have to use a different solution. Take a look at JavaScript for detecting browser language preference.
There are two things to translate: your JS/HTML app and the native elements.
JS/HTML
Use window.navigator.language to get the locale.
Use some library, e.g. https://github.com/wikimedia/jquery.i18n
Native
The native elements aren't shown that often, but do contain some crucial things, such as permissions dialogs ('The app wants access to your photos').
There is currently no support in trigger.io for translating this section that I know of, i.e. they will all be in english.
But as I understand it trigger.io could add support for this fairly easily, by just making it possible to 'switch' on more languages in config.json, since there are already translations for these dialogs built into iOS, just a matter of 'flagging' an app as having support for the language.
Again, I'm not 100% sure on the native part, but this is how I think it works.

Can i override phone's culture settings in WP7 application

I looked through MSDN and couldn't find a clear cut answer to this one. So, if i'm building a localized WP7-application, should i conform to phone's language/culture settings or can i roll my own language/culture-switching mechanism inside the app?
Here's the relevant section from MSDN: http://msdn.microsoft.com/en-us/library/ff637522(v=vs.92).aspx
This is stated in "Testing Your Application":
When changing a display language, verify that the language of your
application UI automatically updates to that language.
Should this be taken as a "soft" guideline or a precondition for Marketplace acceptance?
ps. I know that this question is pretty academic in nature, because i cannot think of any scenario where standard localization mechanism wouldn't be enough.
Edit:
To clarify my point: If i build a localized/globalized app, am i required to or should i use the phone's settings or can i implement my own culture switching?
You would have to perform this sort of test on a real device, by navigating to settings > region + language. In this page you can change language and other locale information such as date format.
I'm not sure, but I guess a developer may implement "own" language switching mechanism inside the app. One example is: I have English choosen as a device language but Czech as region I live. I don't want to see whole OS in Czech but I would like to see one specific application (which supports Czech) in Czech language. It means, without switching OS to Czech this cannot be provided. For this scenario, I think, is the best to have a possibility to choose the language in the app as well - so I can stay in English OS language and I can switch this app to Czech.

Best method for a webpage to access a mac's peripherals?

I'm building a web-based application that can use ActiveX Controls to print to a Thermal Label Printer (specific to shipping labels) in Windows environments, but I am racking my brain to figure out what the best method would be for OSX. Obviously ActiveX doesn't work on macs...
Any ideas about where to start looking? A flash movie? A firefox add-on? My fingers are tired of googling.
There's no way a vanilla web language will allow you to control peripherals from a webpage under Mac OS.
If you really really need to call that from a webpage and can't afford to make a real application, your best go under Safari would be to build a plugin to use Objective-C from Javascript, and do the heavy-duty work from within your plugin. A similar solution probably exists in Firefox.
Also, as I understand it, your program runs on the client with the printer attached. You could write a server-side script and install it on the Macs, and then have your webpage drive it to do the printing.
My first choice to solve this problem quickly would be to use an enterprise label print server like Loftware or Bartender. But, like you said, they are expensive and you are planning on reselling your product.
My second choice would be to scrap the activex control and build a simple print server. There is no standard control language in the label printer world but if you are going to standardize on a certain class of Zebra printer you would only need to implement one driver at first. I have only ever done this for Datamax printers but I'm sure the process for Zebra printers is similar.
The server takes your label data as input (pallet ID, ship to address, etc), inserts that data into a template (painstakingly crafted in the text based printer control language) and then this label file is sent to the appropriate printer.
My third choice would be the browser based solution you are looking for. IT departments hate that stuff.
You can create an NPAPI plug-in, which will work in Safari, Firefox and other Mac web browsers. You'll need to have the user install the plug-in on their system before it can be used, there's no way to install it automatically.
Can't you just use the JavaScript printing API?

Using views from other apps as CoreAnimation Layer

All,
How can I use (NS)Views from other applications as Layers in my CA app. I.e. I'd like to display a Keynote presentation as Layer in my CA app.
I found the iChatTheatre API which looks promising - however I'd need the oposite. An API to get the contents from an app - not to provide it.
Any pointers?
Thanks.
Take a look at the "Son of Grab" sample.
It shows you how to use the CGWindow*() API that was introduced with Mac OS X 10.5
The API allows you to get the content of a whole window, so you have to find a way to get the portions of the window you are interested in.
I don't believe there's a public way to do what you're talking about. Your best approach is probably to reverse-engineer the iChat AV system (the receiving side) and see if you can replicate it. Some initial work has been done by the ICP project. It's very sketchy, but it's a start.
Another approach is the QuickLook API, which has the advantage of not having to run the source application. So far Apple hasn't made the reading side of that API available either. Ciarán Walsh did some handy reverse engineering on QL a couple of years ago, and I've played with that approach, but it is somewhat klunky. You can generate the panel as Ciarán explains, but put it off screen. You can then copy the contents into an NSImage using NSBitmapImageRep -initWithFocusedViewRect:. Unfortunately you can wind up with some funky visual artifacts in this (like scroll bars in some cases), but for some applications it can be effective.

Resources