“Your binary is not optimized for iPhone 5” after I upload an app with xcode 6.0.1

We faced the same issue and couldn’t solve it after trying many solutions, we believe it’s a kind of bug in App submission. But we found a workaround which can keep launch images localized and pass the submission verification. Environment: Xcode 6.1 (6A1052c) with iOS 8.1 SDK Precondition: Have following properties in your “*-info.plist” file. … Read more

How to use enable pseudo-locale in Windows for testing?

How do i enable pseudo-locale’s in Windows? Initially the four pseudo-locale’s are not visible in the Control Panel: (archive.org) Note that NLS does not automatically enumerate the pseudo-locales or expose them in the regional and language options portion of the Control Panel. They are only enumerable if values are set in the registry. You enable … Read more

Enum localization

You can implement a description attribute. public class LocalizedDescriptionAttribute : DescriptionAttribute { private readonly string _resourceKey; private readonly ResourceManager _resource; public LocalizedDescriptionAttribute(string resourceKey, Type resourceType) { _resource = new ResourceManager(resourceType); _resourceKey = resourceKey; } public override string Description { get { string displayName = _resource.GetString(_resourceKey); return string.IsNullOrEmpty(displayName) ? string.Format(“[[{0}]]”, _resourceKey) : displayName; } } } … Read more

ASP .NET Core default language is always English

You are setting “arabic” as DefaultRequestCulture but DefaultRequestCulture is used if none of the built-in providers can determine the request culture. The default providers are: QueryStringRequestCultureProvider CookieRequestCultureProvider AcceptLanguageHeaderRequestCultureProvider Most likely the culture is determined from the Accept-Language HTTP header that the browser is sending. You have to remove the AcceptLanguageHeaderRequestCultureProvider in order to fallback to … Read more

Localizing strings in iOS: default (fallback) language?

To avoid all those lengthy syntax and more having more descriptive var name for translators, I derived my own helper method L() for translation and falling back to English NSString * L(NSString * translation_key) { NSString * s = NSLocalizedString(translation_key, nil); if (![[[NSLocale preferredLanguages] objectAtIndex:0] isEqualToString:@”en”] && [s isEqualToString:translation_key]) { NSString * path = [[NSBundle … Read more

Best practice for ASP.NET MVC resource files

You should avoid App_GlobalResources and App_LocalResources. Like Craig mentioned, there are problems with App_GlobalResources/App_LocalResources because you can’t access them outside of the ASP.NET runtime. A good example of how this would be problematic is when you’re unit testing your app. K. Scott Allen blogged about this a while ago. He does a good job of … Read more

PHP Localization Question

I recommend you take a look at Zend_translate, Zend_locale and Zend_Date. I’m only starting to dabble with them myself, but to me, they already look like a really good, clean and modern solution to internationalization, in contrast to the chaos that is gettext. The introduction to Zend_translate lists a number of strong arguments why to … Read more

How to set text to a control from resource file in design time?

The designer only serializes string for Text property. You can not set the Text property to a resource value directly using designer. Even if you open the Form1.Designer.cs file and add a line to initialization to set the Text property to a resource value like Resource1.Key1, after first change in designer, the designer replace your … Read more