Do I need English beside Base localization which would contain the exact same ‘translation’?

Apart from addressing question what language end-users will see, you need to consider also what will be shown in the AppStore. My current experience is that if you use Base for English, English won’t appear in list of supported languages (how Apple knows in which language your base localization is) in the description of your … Read more

Non-English default language for iOS App?

Defaulting to a particular language is not what you should strive for. Suppose a japanese user living in France and fluently speaking French has his phone set to Japanese. Your App would default to German, despite it having a French translation; I guess that’s not what you want and it’s certainly not what the user … Read more

The field must be a number. How to change this message to another language?

If you happen to be using ASP.NET MVC 4 onwards, check this post: Localizing Default Error Messages in ASP.NET MVC and WebForms Basically you have to add the following piece of code in your Application_Start() method in Global.asax: ClientDataTypeModelValidatorProvider.ResourceClassKey = “Messages”; DefaultModelBinder.ResourceClassKey = “Messages”; Right click your ASP.NET MVC project in Solution Explorer inside Visual … Read more

Flutter localization without context

If you would prefer to not use a package then here is a solution that worked for me. Now the most common implementation of AppLocalizations I’ve seen usually has these two lines: //……… static const LocalizationsDelegate<AppLocalizations> delegate = _AppLocalizationsDelegate(); static AppLocalizations of(BuildContext context) { return Localizations.of<AppLocalizations>(context, AppLocalizations); } //……… The implementation of the delegate would … Read more

How do I localize a string with formatting placeholders?

NSLocalizedString won’t alter your placeholders, so stringWithFormat can use them as normal. In your example, using numbered placeholders is probably a good idea – [NSString stringWithFormat:@”You can afford %1$i at %2$@%3$li.”, [kCash integerValue]/self.price, kYen, self.price] More info here: Is there a way to specify argument position/index in NSString stringWithFormat?

How to sync localized storyboards’ strings after modifying storyboard in Xcode 5

Check out ReMafoX, it’s a Mac app that perfectly solves your problem. It can be easily installed and integrated within your project, watch this video for a detailed walkthrough. Alternatively, if you prefer an open-source CLI tool without a GUI, you can also use BartyCrouch. Install BartyCrouch via Homebrew: brew install bartycrouch Alternatively, install it … Read more

How to get the FxCop custom dictionary to work?

If you use it inside Visual Studio… From Visual Studio Code Analysis Team Blog To add a custom dictionary to a C# and Visual Basic project is simple: In Solution Explorer, right-click on the project and choose Add -> New Item… Under Templates, select XML File, enter a name for the dictionary, such as CodeAnalysisDictionary.xml … Read more