localizable.strings insanity

Discussion in 'Mac Programming' started by BollywooD, May 6, 2009.

  1. BollywooD macrumors 6502

    BollywooD

    Joined:
    Apr 27, 2005
    Location:
    Surfers Paradise
    #1
    I cant get my localizable.strings files to work.....

    I have made sure file encoding is set to UTF 16.

    I ran the genstrings commmand to generate my english localization, but even when i change values in this file, my ui isnt updated. the nib localization works just fine?

    once my bundle is built the strings files all show up in the correct pace, the just seem to be ignored?


    Am I totally missing something?

    Ive added my source code for reference....
    its an open source project.
     

    Attached Files:

  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    Since this is a plugin, make sure you're using NSLocalizedStringFromTableInBundle() and pass in your bundle. NSLocalizedString() looks for the strings in the main bundle, which would be Safari.
     
  3. BollywooD thread starter macrumors 6502

    BollywooD

    Joined:
    Apr 27, 2005
    Location:
    Surfers Paradise
    #3
    many thanks, once again kainjow.

    the localization works as it should now, after updating to use NSLocalizedStringFromTableInBundle()
    :D
     

Share This Page