NSLocalizedString Problem

后端 未结 2 1847
粉色の甜心
粉色の甜心 2021-01-13 14:38

I\'ve got:

-(IBAction)about {
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@\"About\", @\"Title of AlertView\")
                    


        
2条回答
  •  心在旅途
    2021-01-13 14:56

    Make the Localizable.strings file localizable (click on it, press cmd+i and push the "Make file localizable" button) and add German and English localizations to it. Then write the German localization to the German version of the file and leave the English version like this:

    /* Title of AlertView */
    "About" = "About";
    /* Cancel Button Title */
    "Back" = "Back";
    

提交回复
热议问题