Localizable.strings causing plist parsing error

前端 未结 4 960
天涯浪人
天涯浪人 2020-12-18 20:03

I have just localized the file Localizable.strings in my Xcode project in order to localise my application to a few different languages. However, having edited each of the f

相关标签:
4条回答
  • 2020-12-18 20:27

    As stated in the error message, you're missing semicolons at the end of each line.

    "foo" = "bar";
    

    Is the correct format

    0 讨论(0)
  • 2020-12-18 20:32
    "Enter URL" = "Voer adres in";
    "Headers" = "Koppen";
    "Key" = "sleutel";
    "Value" = "waarde";
    "Parameters" = "Parameters";
    "Tap to add a new line" = "Tik om een nieuwe lijn toe te voegen";
    "Perform request" = "Verzoek Uitvoeren";
    "Response" = "Antwoord";
    "Received Headers" = "Ontvangen Koppen";
    "Error" = "Fout";
    "Loading" = "Verzoek aan het versturen";
    

    this is the correct formula

    0 讨论(0)
  • 2020-12-18 20:39

    Swift 4

    make sure the one for all Apps file for Localizable.strings don't make more than one page just one

    local.string English "hi" = "hi";

    local.string Arabic "hi" = "هاي";

    using

    and put this extension in your app

    extension String {
        var localizedLized: String {
            return NSLocalizedString(self, comment: "")
        }
    }
    
    0 讨论(0)
  • 2020-12-18 20:44

    This message can also be come due to use of :(colon) instead of ;(semicolon) at line end. Please be sure there is semicolon(;) at each end of line and also there is no colon(:) also.

    0 讨论(0)
提交回复
热议问题