Application localization (.xib files)

Hi, I'm new to iPhone programming, and to this forum, so first of all - hi all
I need some help with localizing my app. I know how localization works for .string files, and this part of my project is done and working. However I also have to localize one .xib file, and this is the reason why I came here.
I created localizations for my .xib file, but when I init it with initWithNibName method it always loads default English localization In order to use localized strings I use NSLocalizedString macro, so my guess is that I may have to use similar trick here, but unfortunately I cannot find anything about this issue in documentation. Any suggestions greatly appreciated

Ok, I found out what was the problem For reasons unknown to me, the mainBundle didn't recognize my .xib file as localized. What helped was Build->Clean After that I built my project again and localization worked fine

Similar Messages

  • XCode 4 - XIB files and old localizations

    Hello everybody,
    My application supports french and english localizations.
    My current locale is french so the XIB files which are used are the french files - ok.
    I changed the language and region in preferences system : i chose english language and united states region.
    When i launch the application, the current locale is well the one that I chose (english localization), but the XIB files that the application chose are french !
    My application keeps in mind the old XIB files and doesn't take into account the new localization !
    I tried to clean up project, caches, ... and so on - it's always the same problem.
    If you have a idea to explain this behavior...
    thanks.
    FM.

    Hi Sue,
    Take them out of the trash click on there icons go to get info and unlock them, then put them back in the trash and delete.
    Regards Bj.

  • Load View from xib file

    Hello!
    How to load View Class (for example SimpleView) from xib file?
    TIA

    For the iPhone (guessing based on your other posts), if the nib File's Owner object is a subclass of UIViewController, you would use the code you're probably familiar with from the sample apps, e.g.:
    - (void)applicationDidFinishLaunching:(UIApplication *)application {
    SimpleViewController *viewController = [[MyViewController alloc] initWithNibName:@"MyViewController" bundle:nil];
    self.simpleViewController = viewController;
    [viewController release];
    [mainView addSubview:simpleViewController.view];
    The top level view object in the nib file should be identified as an instance of SimpleView, and must (as usual) be connected to the 'view' outlet of the File's Owner object.
    If you've made a nib file with a File's Owner which isn't a view controller (did you mean your nib file contains only an instance of SimpleView which is the Files's owner?!), you should follow the directions in the +Resource Programming Guide+ under "Loading Nib Files Programmatically" [http://developer.apple.com/iphone/library/documentation/Cocoa/Conceptual/Loadi ngResources/CocoaNibs/chapter3_section6.html].

  • Missing .xib File

    When I start a new project, I'm missing the .xib ViewController file.  What does this mean?  I have the latest version of Xcode.

    That means you haven't a xib file. (for example it's the xml file in android or css in web-site)
    You can create one with NewFile, User interface, windows.
    If you are beginner use a View-based Application, the first view (xib) will be call automatically.

  • The application, C:\Program Files\Adobe\Adobe Photoshop CS2\Photoshop.exe, generated an application error The error occurred on 10/01/2009 @ 11:31:59.964 The exception generated was c0000005 at address 7C81BD02 (ntdll!ExpInterlockedPopEntrySListFault)

    Hi,
    I get this error randomly when i run my VB 6.0 application which calls Photoshop CS2 actions. I went through many forums, but could not manage to get the right solution for this.
    "The application, C:\Program Files\Adobe\Adobe Photoshop CS2\Photoshop.exe, generated an application error The error occurred on 10/01/2009 @ 11:31:59.964 The exception generated was c0000005 at address 7C81BD02 (ntdll!ExpInterlockedPopEntrySListFault)
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp."
    OS: WIndows Server 2003 SP2
    Photoshop CS2
    ANy help on this will be highly appreciated.
    Thanks in advance,
    Smiley

    I see this sort of error notice in Bridge and Photoshop, preceded by the message " Photoshop (or Bridge) has encountered a problem and must close. Tell MS.
    Yes or No."
    It most frequently happens in PS when running Dfine 2.0. I have no clue what triggers the Bridge closure. It happens randomly.
    CS3, so nobody gives a tinkers dam, I suppose.
    I see this kind of message in software testing on a regular basis. Of course, when the test is under way, the software is generating a detailed log file which we package up as part of a bug report. Then at the bug scrubs, lively discussions ensue as to who has to fix what!
    I can only image what would happen if the Dfine people and the PS people had to sit through one of those!

  • How to have a live feed from application server log file (realtime viewr )

    how to have a live feed from application server log file (realtime viewr for apps log files)
    hi , thank you for reading my post.
    is there any way to have a live feed of Application server log ?
    for example is there any application that can watch the log file and show the changes as new log items come in ?
    can some one with more experience help ?

    Your question would be more suited to the Developer Forums
    http://devforums.apple.com
    but anyway...
    My goal is to develop a web application that is able to run on iPhone too, to capture the audio and video content from its camera and mic.
    Web Apps running in Safari don't have access to the camera or mic hardware.
    Or I should built a native application distributed through Apple store?
    That is your only option, although such a system already exists:
    http://itunes.apple.com/us/app/ustream-live-broadcaster/id319362690?mt=8

  • How to create an application-specific policy file?

    Hi Everybody:
    I'm a .NET developer with C #. I have a few applications currently running on my computer using the ODP 10.1
    Two weeks ago I installed on my computer the ODP 10.2 Release & now my previous applications have stopped working: when I try to make the connection to the database gives me this exception:
    OraOLEDB (0x80004005)
    ORA-12154: TNS: could not resolve the connect identifier specified
    In FAQ section for ODP.NET I found the next:
    Q: I have two .NET applications on the same machine running two different versions of ODP.NET. How do I ensure both these applications use the correct ODP.NET version?
    A: Beginning with ODP.NET 10.1.0.3, the Oracle installer will register the following publisher policy DLLs in the Global Assembly Cache (GAC) that redirect 9.2, 10.1 and 10.2 ODP.NET applications to use the last installed version of ODP.NET: Policy.9.2.Oracle.DataAccess.dll and Policy.10.1.Oracle.DataAccess.dll.
    ODP.NET 9.2 includes just the first policy DLL above. These policy files ensure that all your ODP.NET applications use the most recently installed version of ODP.NET.
    You may undo the redirection manually. Policy DLLs can be de-installed through gacutil.exe using the /u option. Another approach is to navigate to the GAC directory (i.e. C:\WINNT\assembly) through the Windows Explorer and delete the policy folders. That will eliminate any policy enforcement for all your ODP.NET applications.
    If you have applications on the same machine using different ODP.NET versions, you should create an application-specific policy file.
    I'm trying to do that, but I don't know what is an application-specific policy file. Someone can give me an example of How can I create and application-specific policy file???
    Regards

    Hi,
    Binding redirection is a ".net thing" as opposed to a "odp.net thing", see if this helps:
    http://msdn.microsoft.com/en-us/library/7wd6ex19(VS.71).aspx
    Hope it helps,
    Greg

  • Can you set a second "Open with:" application for a file?

    Hi all,
    I was wondering if something like this exists for OS X Lion or greater: you can set a default application to open a type of file, say Safari for all .html files, but can you set a second default application for a file?
    I usually open files using command + o or command + down arrow from the Finder and I've often thought how good it would be to hit an alternate keyboard shortcut to open the selected file in a secondary default application.
    For example, if I'm making a web page and have the .html selected in the finder I can hit command + o (or command + down arrow) to open it in Safari and if the file isn't open in my editor and is selected in the Finder I can hit, say command + option + o (or command + option + down arrow) to open the .html file in my editor.
    Does anyone know if this can be achieved in OS X Lion or greater?
    Any advice is greatly appreciated.
    Thanks.

    Hi all,
    If anyone's interested in a partial solution, I've rigged up the following.
    I ended up using an Automator action coupled with Spark to capture a keyboard key combination. Spark: http://www.shadowlab.org/Software/spark
    I've used Spark before with good results, and although it's from 2008 it still works on Lion.
    I created an Automator action that does two things:
    gets the selected Finder items
    opens finder items in the text editor I'm using.
    I then saved the workflow as an application so that Spark could run it.
    I've set up a keyboard shortcut that Spark picks up and calls my Automator workflow. It all seems to work nicely.
    So, I've created a specific "open selected file with <text editor>" keyboard shortcut that should do for the time being.

  • When I attempt to Extend a PDF document via my LiveCycle server I get the error"Application Alert" The file could not be saved. Are you sure you want to lose your results?

    When I attempt to Extend a PDF document via my LiveCycle server I get the error"Application Alert" The file could not be saved. Are you sure you want to lose your results?
    I can login fine via this address.
    http://[Server Address]:[Port Number]/ReaderExtensions
    And I can apply the extension successfully, but when I attempt to download I receive the error above.
    Application Alert" The file could not be saved. Are you sure you want to lose your results?

    Please check the supported version of flash player on your client machine for LiveCycle : http://bit.ly/1wGD9t4
    Upgrade or downgrade it accordingly.
    Thanks,
    Wasil

  • Location of application-specific properties files

    I am using Tomcat 4.0.3 under WinXP Pro, and I am trying to get my
    application to "find" an application-specific properties file. I am having problems trying to determine which directory to put this file in.
    Here is the Java code I am using for this class:
    import java.util.Properties;
    import java.io.FileInputStream;
    public class ForumProperties extends Properties {
       private static final String DEFAULT_FILENAME = "/WEB-INF/classes/mystuff.properties";
       private static ForumProperties globalProps;
       private ForumProperties() {
       private ForumProperties(String fileName) throws Exception {
          this();
          load(new FileInputStream(fileName));
       public static ForumProperties getInstance() throws Exception {
          try {
             if (globalProps == null)
                globalProps = new ForumProperties(DEFAULT_FILENAME);
          } catch (Exception ex) {
             ex.printStackTrace(System.out);
             throw new Exception("Error loading properties file");
          return globalProps;
    }I have put the properties file in just about every directory I can think of to try and find out where it's supposed to be, but I can't get it to work. I can put the file into the "user.home" System property (which turns out to be C:\Documents and Settings\Administrator) and have it pick it up, but I would prefer to put the file into the path of the application.
    I have tried four different methods to load this file:
    1. load(new FileInputStream(fileName)); (same as above)
    2. load(Thread.currentThread().getContextClassLoader().getResourceAsStream(fileName));
    3. load(this.getClassLoader().getResourceAsStream(fileName));
    4. load(getServletContext().getResourceAsStream(fileName));
    All of them fail for not finding the file except #4, but that's not the
    optimal solution as it requires a servlet context, which for "genericness of code reasons", I DON'T want to do.
    As an aside, I pulled the "java.class.path" from the System properties to see where it's pointing, and all it has in it is
    "<CATALINA_HOME>\bin\bootstrap.jar" with no other paths included.
    Is there an attribute or something in the server.xml or web.xml file I am forgetting to set, or another approach I should be taking?
    Bob

    See if this code fragment helps.
              String MAIN_FILE_PATH = "./BlueGnome/demos/Properties/DemoPropertiesFile.properties";
              java.net.URL url = ClassLoader.getSystemClassLoader().getResource(MAIN_FILE_PATH);
              System.out.println("PATH: resolved name = " + url);
              // Get the file.
              // We could just use FileInputStream here.  Then we would have
              // to provide a path that was meaningful to the system like
              //     c:\java\BlueGnome\demos\Properties\DemoPropertiesFile.properties
              // Doing it this way allows us to use generic directory
              // seperators and allows for it to search for the file using
              // the CLASSPATH.  That also allows for it to be in a jar file.
              java.io.InputStream is;
              is = ClassLoader.getSystemClassLoader().getResourceAsStream(MAIN_FILE_PATH);
              if (is == null)
                   throw new Exception("Resource File "
                        + MAIN_FILE_PATH + " not found.");
              aProperties.load(is);

  • Deployed Application Missing JSP files

    I have deployed an web appliclation Using JDeveloper 10.1.3.3 to a remote Oracle AS When I look at the Deployed Application on the Server I only see the Servlet, the JSP files are missing. I looked at the .ear and .war files and the have all the components in them but the JSPs seem to be missiong from the server. I did not get any error messages from the deployment log
    ---- Deployment started. ---- Mar 13, 2012 2:19:32 PM
    Target platform is Oracle Application Server 10g 10.1.2 (Windows) (bantest).
    Wrote WAR file to C:\jdev\jdev\mywork\NJTransit\NJTransit\deploy\njtransit.war
    Wrote EAR file to C:\jdev\jdev\mywork\NJTransit\Deployment\deploy\NJTransit.ear
    Invoking DCM servlet client...
    C:\jdev\jdk\jre\bin\javaw.exe -Djava.protocol.handler.pkgs=HTTPClient -jar C:\jdev\jdev\lib\oc4j_remote_deploy.jar http://207.200.160.20:18100/Oc4jDcmServletAPI/ ias_admin **** redeploy D:\oracle\FRHome_1 C:\jdev\jdev\mywork\NJTransit\Deployment\deploy\NJTransit.ear NJTransit
    Initializing log
    Servlet interface for OC4J DCM commands
    Command timeout defined at 600 seconds
    Executing DCM command...
    Executing command redeploy D:\oracle\FRHome_1 C:\jdev\jdev\mywork\NJTransit\Deployment\deploy\NJTransit.ear NJTransit UNDEFINEDCommand = REDEPLOY
    Reading application's ear file
    Ear file was successfully read
    Opening connection to Oc4jDcmServlet
    Setting userName to ias_admin
    Sending command to DCM servlet
    HTTP response code = 200, HTTP response msg = OK
    Command was successfully sent to Oc4jDcmServlet
    Receiving session id from servlet to check command status
    Session id = 5e8e9abcf2b84b9639667c4ea36dccf4a8199cf3785755d564948b1e8d096849
    Please, wait for command to finish...
    Checking command status...
    Setting userName to ias_admin
    Setting Cookie to JSESSIONID=5e8e9abcf2b84b9639667c4ea36dccf4a8199cf3785755d564948b1e8d096849
    Checking command status
    HTTP response code = 200, HTTP response msg = OK
    Command has finished
    Receiving command exit value
    Receiving command output
    **** No output was received from command
    Closing connection to Oc4jDcmServlet
    DCM command completed successfully.
    Output:
    Exit status of DCM servlet client: 0
    Elapsed time for deployment: 13 seconds
    ---- Deployment finished. ---- Mar 13, 2012 2:19:45 PM
    The only odd thing I can see is that UNDEFINED statment in the log.
    I followed the recipe for Deployment from the tutorial so I don't understand why the JSPs are missing.

    I have two version's of JDeveloper running on my machine when you pointed out to me that I was using 10.1.3.0 I downloaded 10.1.3.5 and used it instead. However we still have a problem. One our test and production machine we are running Oracle AS 10.1.2 with Java SDK 1.4. Now the documantation says that this supports JSP runtime 2.0 and Servlet Runtime 2.4. My problem is I still have to get this working for Oracle AS 10.1.2 with Java SDK 1.4. Here's what happens when I deployed to that environment.
    500 Internal Server Error
    java.lang.NullPointerException
    at njtranenrll.jspService(_njtranenrll.java:45)
    [SRC:/njtranenrll.jsp:15]
    at com.orionserver[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:575)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:311)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:498)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:402)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:835)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:341)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:816)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:231)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:136)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)
    12/03/19 23:10:27 Oracle Application Server Containers for J2EE 10g (10.1.2.3.0) initialized
    12/03/20 09:17:21 Notification ==> Application Deployer for NJTransit STARTS [ 2012-03-20T09:17:21.865EDT ]
    12/03/20 09:17:21 Notification ==> Do not undeploy previous deployment
    12/03/20 09:17:21 Notification ==> Copy the archive to D:\oracle\FRHome_1\j2ee\home\applications\NJTransit.ear
    12/03/20 09:17:21 Copy file C:\WINDOWS\TEMP\dir51939.tmp\NJTransit.ear to D:\oracle\FRHome_1\j2ee\home\applications\NJTransit.ear
    12/03/20 09:17:21 Notification ==> Unpack NJTransit.ear begins...
    12/03/20 09:17:21 Auto-unpacking D:\oracle\FRHome_1\j2ee\home\applications\NJTransit.ear... done.
    12/03/20 09:17:21 Notification ==> Unpack NJTransit.ear ends...
    12/03/20 09:17:21 Notification ==> Initialize NJTransit.ear begins...
    12/03/20 09:17:21 Auto-unpacking D:\oracle\FRHome_1\j2ee\home\applications\NJTransit\njtransit.war... done.
    12/03/20 09:17:21 Copying default deployment descriptor from archive at D:\oracle\FRHome_1\j2ee\home\applications\NJTransit/META-INF/orion-application.xml
    to deployment directory D:\oracle\FRHome_1\j2ee\home\application-deployments\NJTransit...
    12/03/20 09:17:21 Notification ==> Initialize NJTransit.ear ends...
    12/03/20 09:17:21 Notification ==> Initialize njtransit begins...
    12/03/20 09:17:21 Notification ==> Initialize njtransit ends...
    12/03/20 09:17:21 Notification ==> Application Deployer for NJTransit COMPLETES [ 2012-03-20T09:17:21.990EDT ]
    12/03/20 09:25:31 Error: null
    12/03/20 09:25:31 Errors parsing jar:file:/D:/oracle/FRHome_1/j2ee/home/applications/NJTransit/njtransit/WEB-INF/lib/standard.jar!/META-INF/fn.tld
    12/03/20 09:25:31 Error: null
    12/03/20 09:25:31 Errors parsing jar:file:/D:/oracle/FRHome_1/j2ee/home/applications/NJTransit/njtransit/WEB-INF/lib/standard.jar!/META-INF/*permittedTaglibs.tld*
    12/03/20 09:25:31 Error: null
    12/03/20 09:25:31 Errors parsing jar:file:/D:/oracle/FRHome_1/j2ee/home/applications/NJTransit/njtransit/WEB-INF/lib/standard.jar!/META-INF/*scriptfree.tld*
    12/03/20 09:25:37 Error: null
    12/03/20 09:25:37 Error: null
    12/03/20 09:25:37 Error: null
    12/03/20 09:25:37 Error: loading Tld's into cachedConfigTable: null
    12/03/20 09:25:37 Error: loading Tld's into cachedConfigTable: null
    12/03/20 09:25:37 Error: loading Tld's into cachedConfigTable: null
    notice the error in parsing the jar file this jar file is standard.jar do I need this jar or can I leave it out?

  • Application Server Directory file attributes lists

    Hi,
    I'm searching for Funtion Module or Method to get Application Server Directory file lists with all attributes.
    1) FM 'SUBST_GET_FILE_LIST' is not getting midifued date and time.
    2) Method CL_GUI_FRONTEND_SERVICES-DIRECTORY_LIST_FILES is getting local directory files.
    I'm looking for standard way to get all attributes whatever we are seeing in AL11 transaction like Name, Length, Creator and last changed date and time stamp-
    ...Nandha

    Hi
    The fm SUBST_GET_FILE_LIST is right but you need to convert the date and time by your self, u can use this routine:
    PERFORM P6_TO_DATE_TIME_TZ(RSTR0400) USING FILE_LIST-MTIME
                                                     FILE_LIST-MOD_TIME
                                                     FILE_LIST-MOD_DATE.
    Max

  • How can i change the label of an array controller in the xib file

    I have seven instances of NSArrayController in my main xib file; they are all labled 'Array Controller' and I cannot change the label in the list of objects.  I can change the label in the identity inspector, but the label still remains 'Array Controller' in the list of objects.  If I double-click on the label that is in the list and change the label its value changes in the identity inspector when I tab out of the label field but the label reverts to 'Array Controller' in the list of objects.  I'll never be able to keep the seven controllers straight in my head.  Is there a solution?

    The problem is was in Xcode, while editing the xib file.  After many back and forth jumps (between Xcode and this composer for the discussion) and many attempts to relabel the array controllers over two hours, the changes have appeared just as I want.  I hate it when that happens (who likes egg on their face?)
    I'm sorry for wasting your time.  Thanks for your input.

  • How do you make console apps the default application for a file type?

    I have a console movie player, mplayer, that I like a lot. I've compiled it from source on my intel core2 macbook pro and it works fine. There is no gui, but to play movie files you open up a terminal and type the command mplayer /path/to/file. I would like mplayer to play a movie file automatically when I double click on the file, but I can't seem to figure out how to do it. I tried setting it in the file info dialogue, but when I go to the path of the binary I want, it is not selected. How can I set a console app as my default application for my file type?

    there is a GUI mplayer for OS X. why don't you use it instead of the command line one?
    if you insist on using the command line mplayer then the only way to do this is to put a GUI wrapper on it. this can be done with automator or apple script for example. but really, why don't you just use the GUI mplayer?

  • Please help: Example how to peploy application from jar file step by step

    Please help: Example how to peploy application from jar file step by step.
    All help appreciated
    Mike

    Thanks I will try these links
    Mike
    "Slava Imeshev" <[email protected]> wrote:
    Hi Mike,
    These links could be useful:
    http://e-docs.bea.com/wls/docs61////adminguide/appman.html
    http://e-docs.bea.com/wls/docs61////quickstart/quick_start.html
    http://e-docs.bea.com/wls/docs61//////ConsoleHelp/application.html
    http://e-docs.bea.com/wls/docs61///programming/environment.html
    Regards,
    Slava Imeshev
    "Mike" <[email protected]> wrote in message
    news:3ca0e94c$[email protected]..
    Please help: Example how to peploy application from jar file step bystep.
    All help appreciated
    Mike

Maybe you are looking for

  • In Windows 8.1, the Thunderbird window keeps resizing

    I have a new Transformer T100A laptop, running Windows 8.1 Pro. I run Thunderbird in desktop mode. The height of the Thunderbird window keeps getting small, while the width remains the same. I usually have my folder mails in the top pane, and the ope

  • Is it possible to use the drawing dynamic content to erase an image rather than draw over the top?

    I'm trying to create a cover for my magazine  that has a chalk board with writing on. I want the user to be able to erase the writing with their finger but can't figure out how to do it. All i can do is draw a solid colour over the top. What i want i

  • Check Availability does not display free busy information

    I have setup Calendar Server and Communications Express (w/ Directory Server, Access Manager, Delegated Administrator, Web Server) to do an evalutation of the Sun Calendar. I started with the 2005Q4 version as it came with our Solaris 10 installation

  • Using iFS as a repository for file upload attachments

    We are creating an auction website where auction owners are allowed to post any number of attachments (*.doc, *.pdf, etc...) to describe the product being auctioned. What is the best way to go about managing these file attachments? The difficulty lie

  • Sd/ssd max throttle in solaris 10 etc/system

    Guru! I need to add any of following lines to /etc/system file for my new Hitachi storage (attached to the Soalris10 Box) setsd: sd_max_throttle = 16mm setssd:ssd_max_throttle =16 I want to know the difference between them and also how can I make sur