Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6628163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:05:55+00:00 2026-05-25T22:05:55+00:00

I need to add a custom language (iOS has no localisation for it) among

  • 0

I need to add a custom language (iOS has no localisation for it) among with support languages. A user is able to choose desired language in app settings (built-in screen, no in Settings app). I store it to NSUserDefaults:

[[NSUserDefaults standardUserDefaults] setObject:[NSArray arrayWithObject:@"lv"] forKey:@"AppleLanguages"];

Next time, when the app starts, it loads with selected language. And works great.

But here is a ‘small’ issue. The app needs to be restarted. Thus, I need a way to quit the app.

I don’t want to add UIApplicationExitsOnSuspend to Info.plist, because usually the user won’t switch languages, thus, I want the app typically goes to background and resumes, when a user comes back.

I know, I am not allowed to kill the process with exit(). Thus, I imagine maybe it is possible to set UIApplicationExitsOnSuspend at runtime? Scenarios will be similar to this:
A user sets desired language and confirms it.
The app sets UIApplicationExitsOnSuspend (or do something similar to it).
The app instructs a user to quit the app by pressing Home button.

Of course, I may instruct a user to quit the app, by killing the process (go to Home screen, double click Home button, tap and hold an app icon, tap the minus). But it looks to complicated and annoying.

Maybe you have another suggestions, how to add to an app ability to switch languages?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T22:05:56+00:00Added an answer on May 25, 2026 at 10:05 pm

    I have achieve in-app language switch by implementing my own string bundle.

    Source is available here: https://github.com/amjaliks/ObjCAdditions/tree/master/Source/Classes

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need add a new user group for mediawiki. The new group has more
I need to add custom validation(I think) for validating input from an user. Here's
Our custom modules in PyroCMS need to support multiple languages. How is this done?
I have an XSL style sheet for which I need to add some custom
I am making a custom control I need to add some default keybindings, microsoft
I have a need to add custom HTML attributes, specifically classes or styles to
I need to add a custom attribute to the selected text in an NSTextView.
I need to add a custom option to all products as they get saved.
I am using the Jquery Validation plug-in, however i need to add a custom
I need to add a custom property to an Entity Framework class, however when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.