Tom*_*ulc 3 xcode localization localizable.strings nslocalizedstring ios
我正在尝试使用,NSLocalizedStringFromTable但没有结果.我已经创建了Profile.strings文件,点击了本地化,在项目设置中我添加了波兰语和英语,所以我的文件里面有2个"文件",我输入了相同的字符串和其他值但是当我切换语言并重新启动应用程序时仍然有一个使用本地化(波兰语).
Xcode中的Profile.strings:
Profile.strings
Profile.strings (Polish)
Profile.strings (English)
Run Code Online (Sandbox Code Playgroud)
抛光:
"fullName.placeholder" = "Imie i nazwisko";
"emailAddress.placeholder" = "Adres email";
"phoneNumber.placeholder" = "Numer telefonu";
Run Code Online (Sandbox Code Playgroud)
英语:
"fullName.placeholder" = "Full name";
"emailAddress.placeholder" = "Email address";
"phoneNumber.placeholder" = "Phone number";
Run Code Online (Sandbox Code Playgroud)
为了获得价值我打电话:
NSLocalizedStringFromTable(@"fullName.placeholder", @"Profile", @"");
Run Code Online (Sandbox Code Playgroud)
每当我打电话给我,我都有价值 Profile.strings (Polish)
我做错了什么?
| 归档时间: |
|
| 查看次数: |
6618 次 |
| 最近记录: |